Documentation ¶
Overview ¶
Package cloudbilling provides access to the Cloud Billing API.
For product documentation, see: https://cloud.google.com/billing/docs/apis
Library status ¶
These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.
Creating a client ¶
Usage example:
import "google.golang.org/api/cloudbilling/v1beta" ... ctx := context.Background() cloudbillingService, err := cloudbilling.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use google.golang.org/api/option.WithScopes:
cloudbillingService, err := cloudbilling.NewService(ctx, option.WithScopes(cloudbilling.CloudPlatformScope))
To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:
cloudbillingService, err := cloudbilling.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) cloudbillingService, err := cloudbilling.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type BillingAccountsAnomaliesGetCall
- func (c *BillingAccountsAnomaliesGetCall) Context(ctx context.Context) *BillingAccountsAnomaliesGetCall
- func (c *BillingAccountsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaAnomaly, error)
- func (c *BillingAccountsAnomaliesGetCall) Fields(s ...googleapi.Field) *BillingAccountsAnomaliesGetCall
- func (c *BillingAccountsAnomaliesGetCall) Header() http.Header
- func (c *BillingAccountsAnomaliesGetCall) IfNoneMatch(entityTag string) *BillingAccountsAnomaliesGetCall
- type BillingAccountsAnomaliesListCall
- func (c *BillingAccountsAnomaliesListCall) Context(ctx context.Context) *BillingAccountsAnomaliesListCall
- func (c *BillingAccountsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse, error)
- func (c *BillingAccountsAnomaliesListCall) Fields(s ...googleapi.Field) *BillingAccountsAnomaliesListCall
- func (c *BillingAccountsAnomaliesListCall) Filter(filter string) *BillingAccountsAnomaliesListCall
- func (c *BillingAccountsAnomaliesListCall) Header() http.Header
- func (c *BillingAccountsAnomaliesListCall) IfNoneMatch(entityTag string) *BillingAccountsAnomaliesListCall
- func (c *BillingAccountsAnomaliesListCall) PageSize(pageSize int64) *BillingAccountsAnomaliesListCall
- func (c *BillingAccountsAnomaliesListCall) PageToken(pageToken string) *BillingAccountsAnomaliesListCall
- func (c *BillingAccountsAnomaliesListCall) Pages(ctx context.Context, ...) error
- type BillingAccountsAnomaliesService
- type BillingAccountsEstimateCostScenarioCall
- func (c *BillingAccountsEstimateCostScenarioCall) Context(ctx context.Context) *BillingAccountsEstimateCostScenarioCall
- func (c *BillingAccountsEstimateCostScenarioCall) Do(opts ...googleapi.CallOption) (*EstimateCostScenarioForBillingAccountResponse, error)
- func (c *BillingAccountsEstimateCostScenarioCall) Fields(s ...googleapi.Field) *BillingAccountsEstimateCostScenarioCall
- func (c *BillingAccountsEstimateCostScenarioCall) Header() http.Header
- type BillingAccountsService
- type BillingAccountsServicesGetCall
- func (c *BillingAccountsServicesGetCall) Context(ctx context.Context) *BillingAccountsServicesGetCall
- func (c *BillingAccountsServicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService, error)
- func (c *BillingAccountsServicesGetCall) Fields(s ...googleapi.Field) *BillingAccountsServicesGetCall
- func (c *BillingAccountsServicesGetCall) Header() http.Header
- func (c *BillingAccountsServicesGetCall) IfNoneMatch(entityTag string) *BillingAccountsServicesGetCall
- type BillingAccountsServicesListCall
- func (c *BillingAccountsServicesListCall) Context(ctx context.Context) *BillingAccountsServicesListCall
- func (c *BillingAccountsServicesListCall) Do(opts ...googleapi.CallOption) (...)
- func (c *BillingAccountsServicesListCall) Fields(s ...googleapi.Field) *BillingAccountsServicesListCall
- func (c *BillingAccountsServicesListCall) Header() http.Header
- func (c *BillingAccountsServicesListCall) IfNoneMatch(entityTag string) *BillingAccountsServicesListCall
- func (c *BillingAccountsServicesListCall) PageSize(pageSize int64) *BillingAccountsServicesListCall
- func (c *BillingAccountsServicesListCall) PageToken(pageToken string) *BillingAccountsServicesListCall
- func (c *BillingAccountsServicesListCall) Pages(ctx context.Context, f func(...) error) error
- type BillingAccountsServicesService
- type BillingAccountsSkuGroupsGetCall
- func (c *BillingAccountsSkuGroupsGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsGetCall
- func (c *BillingAccountsSkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup, error)
- func (c *BillingAccountsSkuGroupsGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsGetCall
- func (c *BillingAccountsSkuGroupsGetCall) Header() http.Header
- func (c *BillingAccountsSkuGroupsGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsGetCall
- type BillingAccountsSkuGroupsListCall
- func (c *BillingAccountsSkuGroupsListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsListCall
- func (c *BillingAccountsSkuGroupsListCall) Do(opts ...googleapi.CallOption) (...)
- func (c *BillingAccountsSkuGroupsListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsListCall
- func (c *BillingAccountsSkuGroupsListCall) Header() http.Header
- func (c *BillingAccountsSkuGroupsListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsListCall
- func (c *BillingAccountsSkuGroupsListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsListCall
- func (c *BillingAccountsSkuGroupsListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsListCall
- func (c *BillingAccountsSkuGroupsListCall) Pages(ctx context.Context, f func(...) error) error
- type BillingAccountsSkuGroupsService
- type BillingAccountsSkuGroupsSkusGetCall
- func (c *BillingAccountsSkuGroupsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusGetCall
- func (c *BillingAccountsSkuGroupsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku, ...)
- func (c *BillingAccountsSkuGroupsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusGetCall
- func (c *BillingAccountsSkuGroupsSkusGetCall) Header() http.Header
- func (c *BillingAccountsSkuGroupsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusGetCall
- type BillingAccountsSkuGroupsSkusListCall
- func (c *BillingAccountsSkuGroupsSkusListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusListCall
- func (c *BillingAccountsSkuGroupsSkusListCall) Do(opts ...googleapi.CallOption) (...)
- func (c *BillingAccountsSkuGroupsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusListCall
- func (c *BillingAccountsSkuGroupsSkusListCall) Header() http.Header
- func (c *BillingAccountsSkuGroupsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusListCall
- func (c *BillingAccountsSkuGroupsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsSkusListCall
- func (c *BillingAccountsSkuGroupsSkusListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsSkusListCall
- func (c *BillingAccountsSkuGroupsSkusListCall) Pages(ctx context.Context, f func(...) error) error
- type BillingAccountsSkuGroupsSkusService
- type BillingAccountsSkusGetCall
- func (c *BillingAccountsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkusGetCall
- func (c *BillingAccountsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku, error)
- func (c *BillingAccountsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusGetCall
- func (c *BillingAccountsSkusGetCall) Header() http.Header
- func (c *BillingAccountsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusGetCall
- type BillingAccountsSkusListCall
- func (c *BillingAccountsSkusListCall) Context(ctx context.Context) *BillingAccountsSkusListCall
- func (c *BillingAccountsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse, ...)
- func (c *BillingAccountsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusListCall
- func (c *BillingAccountsSkusListCall) Filter(filter string) *BillingAccountsSkusListCall
- func (c *BillingAccountsSkusListCall) Header() http.Header
- func (c *BillingAccountsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusListCall
- func (c *BillingAccountsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkusListCall
- func (c *BillingAccountsSkusListCall) PageToken(pageToken string) *BillingAccountsSkusListCall
- func (c *BillingAccountsSkusListCall) Pages(ctx context.Context, ...) error
- type BillingAccountsSkusPriceGetCall
- func (c *BillingAccountsSkusPriceGetCall) Context(ctx context.Context) *BillingAccountsSkusPriceGetCall
- func (c *BillingAccountsSkusPriceGetCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPriceGetCall
- func (c *BillingAccountsSkusPriceGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice, error)
- func (c *BillingAccountsSkusPriceGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPriceGetCall
- func (c *BillingAccountsSkusPriceGetCall) Header() http.Header
- func (c *BillingAccountsSkusPriceGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPriceGetCall
- type BillingAccountsSkusPriceService
- type BillingAccountsSkusPricesListCall
- func (c *BillingAccountsSkusPricesListCall) Context(ctx context.Context) *BillingAccountsSkusPricesListCall
- func (c *BillingAccountsSkusPricesListCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPricesListCall
- func (c *BillingAccountsSkusPricesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse, ...)
- func (c *BillingAccountsSkusPricesListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPricesListCall
- func (c *BillingAccountsSkusPricesListCall) Header() http.Header
- func (c *BillingAccountsSkusPricesListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPricesListCall
- func (c *BillingAccountsSkusPricesListCall) PageSize(pageSize int64) *BillingAccountsSkusPricesListCall
- func (c *BillingAccountsSkusPricesListCall) PageToken(pageToken string) *BillingAccountsSkusPricesListCall
- func (c *BillingAccountsSkusPricesListCall) Pages(ctx context.Context, ...) error
- type BillingAccountsSkusPricesService
- type BillingAccountsSkusService
- type CacheFillRegions
- type CloudCdnEgressWorkload
- type CloudCdnWorkload
- type CloudInterconnectEgressWorkload
- type CloudInterconnectWorkload
- type CloudStorageEgressWorkload
- type CloudStorageWorkload
- type Commitment
- type CommitmentCostEstimate
- type ComputeVmWorkload
- type CostEstimate
- type CostEstimationResult
- type CostScenario
- type CreditEstimate
- type CustomMachineType
- type Decimal
- type DualRegional
- type EstimateCostScenarioForBillingAccountRequest
- type EstimateCostScenarioForBillingAccountResponse
- type EstimateCostScenarioWithListPriceRequest
- type EstimateCostScenarioWithListPriceResponse
- type EstimationTimePoint
- type GoogleCloudBillingAnomaliesV1betaAnomaly
- type GoogleCloudBillingAnomaliesV1betaAnomalyDeviation
- type GoogleCloudBillingAnomaliesV1betaCause
- type GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse
- type GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo
- type GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice
- type GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice
- type GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount
- type GoogleCloudBillingBillingaccountpricesV1betaFixedPrice
- type GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount
- type GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse
- type GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling
- type GoogleCloudBillingBillingaccountpricesV1betaMergedPrice
- type GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice
- type GoogleCloudBillingBillingaccountpricesV1betaPriceReason
- type GoogleCloudBillingBillingaccountpricesV1betaRate
- type GoogleCloudBillingBillingaccountpricesV1betaRateTier
- type GoogleCloudBillingBillingaccountpricesV1betaUnitInfo
- type GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService
- type GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse
- type GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup
- type GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse
- type GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku
- type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy
- type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyGlobal
- type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional
- type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion
- type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional
- type GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse
- type GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy
- type GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory
- type GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku
- type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy
- type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyGlobal
- type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional
- type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion
- type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional
- type GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse
- type GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy
- type GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory
- type GoogleCloudBillingPricesV1betaAggregationInfo
- type GoogleCloudBillingPricesV1betaListPricesResponse
- type GoogleCloudBillingPricesV1betaPrice
- type GoogleCloudBillingPricesV1betaRate
- type GoogleCloudBillingPricesV1betaRateTier
- type GoogleCloudBillingPricesV1betaUnitInfo
- type GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse
- type GoogleCloudBillingSkugroupsV1betaSkuGroup
- type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy
- type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyGlobal
- type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional
- type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion
- type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional
- type GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse
- type GoogleCloudBillingSkugroupskusV1betaProductTaxonomy
- type GoogleCloudBillingSkugroupskusV1betaSkuGroupSku
- type GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory
- type GuestAccelerator
- type InterRegionEgress
- type IntraRegionEgress
- type MachineType
- type Money
- type MultiRegional
- type PersistentDisk
- type PredefinedMachineType
- type PremiumTierEgressWorkload
- type Price
- type ProjectsAnomaliesGetCall
- func (c *ProjectsAnomaliesGetCall) Context(ctx context.Context) *ProjectsAnomaliesGetCall
- func (c *ProjectsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaAnomaly, error)
- func (c *ProjectsAnomaliesGetCall) Fields(s ...googleapi.Field) *ProjectsAnomaliesGetCall
- func (c *ProjectsAnomaliesGetCall) Header() http.Header
- func (c *ProjectsAnomaliesGetCall) IfNoneMatch(entityTag string) *ProjectsAnomaliesGetCall
- type ProjectsAnomaliesListCall
- func (c *ProjectsAnomaliesListCall) Context(ctx context.Context) *ProjectsAnomaliesListCall
- func (c *ProjectsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse, error)
- func (c *ProjectsAnomaliesListCall) Fields(s ...googleapi.Field) *ProjectsAnomaliesListCall
- func (c *ProjectsAnomaliesListCall) Filter(filter string) *ProjectsAnomaliesListCall
- func (c *ProjectsAnomaliesListCall) Header() http.Header
- func (c *ProjectsAnomaliesListCall) IfNoneMatch(entityTag string) *ProjectsAnomaliesListCall
- func (c *ProjectsAnomaliesListCall) PageSize(pageSize int64) *ProjectsAnomaliesListCall
- func (c *ProjectsAnomaliesListCall) PageToken(pageToken string) *ProjectsAnomaliesListCall
- func (c *ProjectsAnomaliesListCall) Pages(ctx context.Context, ...) error
- type ProjectsAnomaliesService
- type ProjectsService
- type Rate
- type RateTier
- type Regional
- type ScenarioConfig
- type SegmentCostEstimate
- type Service
- type Sku
- type SkuCostEstimate
- type SkuGroupsGetCall
- func (c *SkuGroupsGetCall) Context(ctx context.Context) *SkuGroupsGetCall
- func (c *SkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupsV1betaSkuGroup, error)
- func (c *SkuGroupsGetCall) Fields(s ...googleapi.Field) *SkuGroupsGetCall
- func (c *SkuGroupsGetCall) Header() http.Header
- func (c *SkuGroupsGetCall) IfNoneMatch(entityTag string) *SkuGroupsGetCall
- type SkuGroupsListCall
- func (c *SkuGroupsListCall) Context(ctx context.Context) *SkuGroupsListCall
- func (c *SkuGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse, error)
- func (c *SkuGroupsListCall) Fields(s ...googleapi.Field) *SkuGroupsListCall
- func (c *SkuGroupsListCall) Header() http.Header
- func (c *SkuGroupsListCall) IfNoneMatch(entityTag string) *SkuGroupsListCall
- func (c *SkuGroupsListCall) PageSize(pageSize int64) *SkuGroupsListCall
- func (c *SkuGroupsListCall) PageToken(pageToken string) *SkuGroupsListCall
- func (c *SkuGroupsListCall) Pages(ctx context.Context, ...) error
- type SkuGroupsService
- type SkuGroupsSkusGetCall
- func (c *SkuGroupsSkusGetCall) Context(ctx context.Context) *SkuGroupsSkusGetCall
- func (c *SkuGroupsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupskusV1betaSkuGroupSku, error)
- func (c *SkuGroupsSkusGetCall) Fields(s ...googleapi.Field) *SkuGroupsSkusGetCall
- func (c *SkuGroupsSkusGetCall) Header() http.Header
- func (c *SkuGroupsSkusGetCall) IfNoneMatch(entityTag string) *SkuGroupsSkusGetCall
- type SkuGroupsSkusListCall
- func (c *SkuGroupsSkusListCall) Context(ctx context.Context) *SkuGroupsSkusListCall
- func (c *SkuGroupsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse, error)
- func (c *SkuGroupsSkusListCall) Fields(s ...googleapi.Field) *SkuGroupsSkusListCall
- func (c *SkuGroupsSkusListCall) Header() http.Header
- func (c *SkuGroupsSkusListCall) IfNoneMatch(entityTag string) *SkuGroupsSkusListCall
- func (c *SkuGroupsSkusListCall) PageSize(pageSize int64) *SkuGroupsSkusListCall
- func (c *SkuGroupsSkusListCall) PageToken(pageToken string) *SkuGroupsSkusListCall
- func (c *SkuGroupsSkusListCall) Pages(ctx context.Context, ...) error
- type SkuGroupsSkusService
- type SkusPriceGetCall
- func (c *SkusPriceGetCall) Context(ctx context.Context) *SkusPriceGetCall
- func (c *SkusPriceGetCall) CurrencyCode(currencyCode string) *SkusPriceGetCall
- func (c *SkusPriceGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingPricesV1betaPrice, error)
- func (c *SkusPriceGetCall) Fields(s ...googleapi.Field) *SkusPriceGetCall
- func (c *SkusPriceGetCall) Header() http.Header
- func (c *SkusPriceGetCall) IfNoneMatch(entityTag string) *SkusPriceGetCall
- type SkusPriceService
- type SkusPricesListCall
- func (c *SkusPricesListCall) Context(ctx context.Context) *SkusPricesListCall
- func (c *SkusPricesListCall) CurrencyCode(currencyCode string) *SkusPricesListCall
- func (c *SkusPricesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingPricesV1betaListPricesResponse, error)
- func (c *SkusPricesListCall) Fields(s ...googleapi.Field) *SkusPricesListCall
- func (c *SkusPricesListCall) Header() http.Header
- func (c *SkusPricesListCall) IfNoneMatch(entityTag string) *SkusPricesListCall
- func (c *SkusPricesListCall) PageSize(pageSize int64) *SkusPricesListCall
- func (c *SkusPricesListCall) PageToken(pageToken string) *SkusPricesListCall
- func (c *SkusPricesListCall) Pages(ctx context.Context, ...) error
- type SkusPricesService
- type SkusService
- type StandardTierEgressWorkload
- type Usage
- type UsageRateTimeline
- type UsageRateTimelineEntry
- type V1betaEstimateCostScenarioCall
- func (c *V1betaEstimateCostScenarioCall) Context(ctx context.Context) *V1betaEstimateCostScenarioCall
- func (c *V1betaEstimateCostScenarioCall) Do(opts ...googleapi.CallOption) (*EstimateCostScenarioWithListPriceResponse, error)
- func (c *V1betaEstimateCostScenarioCall) Fields(s ...googleapi.Field) *V1betaEstimateCostScenarioCall
- func (c *V1betaEstimateCostScenarioCall) Header() http.Header
- type V1betaService
- type VlanAttachment
- type VmResourceBasedCud
- type VmToVmEgressWorkload
- type Workload
- type WorkloadCostEstimate
Constants ¶
const ( // View and manage your Google Cloud Platform billing accounts CloudBillingScope = "https://www.googleapis.com/auth/cloud-billing" // View your Google Cloud Platform billing accounts CloudBillingReadonlyScope = "https://www.googleapis.com/auth/cloud-billing.readonly" // See, edit, configure, and delete your Google Cloud data and see the // email address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingAccountsAnomaliesGetCall ¶
type BillingAccountsAnomaliesGetCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsAnomaliesGetCall) Context ¶
func (c *BillingAccountsAnomaliesGetCall) Context(ctx context.Context) *BillingAccountsAnomaliesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsAnomaliesGetCall) Do ¶
func (c *BillingAccountsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaAnomaly, error)
Do executes the "cloudbilling.billingAccounts.anomalies.get" call. Exactly one of *GoogleCloudBillingAnomaliesV1betaAnomaly or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingAnomaliesV1betaAnomaly.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsAnomaliesGetCall) Fields ¶
func (c *BillingAccountsAnomaliesGetCall) Fields(s ...googleapi.Field) *BillingAccountsAnomaliesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsAnomaliesGetCall) Header ¶
func (c *BillingAccountsAnomaliesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsAnomaliesGetCall) IfNoneMatch ¶
func (c *BillingAccountsAnomaliesGetCall) IfNoneMatch(entityTag string) *BillingAccountsAnomaliesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type BillingAccountsAnomaliesListCall ¶
type BillingAccountsAnomaliesListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsAnomaliesListCall) Context ¶
func (c *BillingAccountsAnomaliesListCall) Context(ctx context.Context) *BillingAccountsAnomaliesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsAnomaliesListCall) Do ¶
func (c *BillingAccountsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse, error)
Do executes the "cloudbilling.billingAccounts.anomalies.list" call. Exactly one of *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse.ServerResponse .Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsAnomaliesListCall) Fields ¶
func (c *BillingAccountsAnomaliesListCall) Fields(s ...googleapi.Field) *BillingAccountsAnomaliesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsAnomaliesListCall) Filter ¶
func (c *BillingAccountsAnomaliesListCall) Filter(filter string) *BillingAccountsAnomaliesListCall
Filter sets the optional parameter "filter": Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = "20231201" AND end_time = "20240120" .
func (*BillingAccountsAnomaliesListCall) Header ¶
func (c *BillingAccountsAnomaliesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsAnomaliesListCall) IfNoneMatch ¶
func (c *BillingAccountsAnomaliesListCall) IfNoneMatch(entityTag string) *BillingAccountsAnomaliesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BillingAccountsAnomaliesListCall) PageSize ¶
func (c *BillingAccountsAnomaliesListCall) PageSize(pageSize int64) *BillingAccountsAnomaliesListCall
PageSize sets the optional parameter "pageSize": Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.
func (*BillingAccountsAnomaliesListCall) PageToken ¶
func (c *BillingAccountsAnomaliesListCall) PageToken(pageToken string) *BillingAccountsAnomaliesListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*BillingAccountsAnomaliesListCall) Pages ¶
func (c *BillingAccountsAnomaliesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type BillingAccountsAnomaliesService ¶
type BillingAccountsAnomaliesService struct {
// contains filtered or unexported fields
}
func NewBillingAccountsAnomaliesService ¶
func NewBillingAccountsAnomaliesService(s *Service) *BillingAccountsAnomaliesService
func (*BillingAccountsAnomaliesService) Get ¶
func (r *BillingAccountsAnomaliesService) Get(name string) *BillingAccountsAnomaliesGetCall
Get: Gets an anomaly for a billing account or a project.
- name: Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.
func (*BillingAccountsAnomaliesService) List ¶
func (r *BillingAccountsAnomaliesService) List(parent string) *BillingAccountsAnomaliesListCall
List: Lists anomalies for a billing account or a project.
- parent: The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.
type BillingAccountsEstimateCostScenarioCall ¶
type BillingAccountsEstimateCostScenarioCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsEstimateCostScenarioCall) Context ¶
func (c *BillingAccountsEstimateCostScenarioCall) Context(ctx context.Context) *BillingAccountsEstimateCostScenarioCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsEstimateCostScenarioCall) Do ¶
func (c *BillingAccountsEstimateCostScenarioCall) Do(opts ...googleapi.CallOption) (*EstimateCostScenarioForBillingAccountResponse, error)
Do executes the "cloudbilling.billingAccounts.estimateCostScenario" call. Exactly one of *EstimateCostScenarioForBillingAccountResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EstimateCostScenarioForBillingAccountResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsEstimateCostScenarioCall) Fields ¶
func (c *BillingAccountsEstimateCostScenarioCall) Fields(s ...googleapi.Field) *BillingAccountsEstimateCostScenarioCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsEstimateCostScenarioCall) Header ¶
func (c *BillingAccountsEstimateCostScenarioCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type BillingAccountsService ¶
type BillingAccountsService struct { Anomalies *BillingAccountsAnomaliesService Services *BillingAccountsServicesService SkuGroups *BillingAccountsSkuGroupsService Skus *BillingAccountsSkusService // contains filtered or unexported fields }
func NewBillingAccountsService ¶
func NewBillingAccountsService(s *Service) *BillingAccountsService
func (*BillingAccountsService) EstimateCostScenario ¶
func (r *BillingAccountsService) EstimateCostScenario(billingAccount string, estimatecostscenarioforbillingaccountrequest *EstimateCostScenarioForBillingAccountRequest) *BillingAccountsEstimateCostScenarioCall
EstimateCostScenario: Use custom pricing in the estimate, using a `CostScenario` with a defined `billingAccount`.
- billingAccount: Resource name of the billing account for the cost estimate. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF` is the resource name for billing account `012345-567890-ABCDEF`. Must be specified.
type BillingAccountsServicesGetCall ¶
type BillingAccountsServicesGetCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsServicesGetCall) Context ¶
func (c *BillingAccountsServicesGetCall) Context(ctx context.Context) *BillingAccountsServicesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsServicesGetCall) Do ¶
func (c *BillingAccountsServicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService, error)
Do executes the "cloudbilling.billingAccounts.services.get" call. Exactly one of *GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService.S erverResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsServicesGetCall) Fields ¶
func (c *BillingAccountsServicesGetCall) Fields(s ...googleapi.Field) *BillingAccountsServicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsServicesGetCall) Header ¶
func (c *BillingAccountsServicesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsServicesGetCall) IfNoneMatch ¶
func (c *BillingAccountsServicesGetCall) IfNoneMatch(entityTag string) *BillingAccountsServicesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type BillingAccountsServicesListCall ¶
type BillingAccountsServicesListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsServicesListCall) Context ¶
func (c *BillingAccountsServicesListCall) Context(ctx context.Context) *BillingAccountsServicesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsServicesListCall) Do ¶
func (c *BillingAccountsServicesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse, error)
Do executes the "cloudbilling.billingAccounts.services.list" call. Exactly one of *GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServi cesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServi cesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsServicesListCall) Fields ¶
func (c *BillingAccountsServicesListCall) Fields(s ...googleapi.Field) *BillingAccountsServicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsServicesListCall) Header ¶
func (c *BillingAccountsServicesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsServicesListCall) IfNoneMatch ¶
func (c *BillingAccountsServicesListCall) IfNoneMatch(entityTag string) *BillingAccountsServicesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BillingAccountsServicesListCall) PageSize ¶
func (c *BillingAccountsServicesListCall) PageSize(pageSize int64) *BillingAccountsServicesListCall
PageSize sets the optional parameter "pageSize": Maximum number of billing account service to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.
func (*BillingAccountsServicesListCall) PageToken ¶
func (c *BillingAccountsServicesListCall) PageToken(pageToken string) *BillingAccountsServicesListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListBillingAccountServices call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*BillingAccountsServicesListCall) Pages ¶
func (c *BillingAccountsServicesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type BillingAccountsServicesService ¶
type BillingAccountsServicesService struct {
// contains filtered or unexported fields
}
func NewBillingAccountsServicesService ¶
func NewBillingAccountsServicesService(s *Service) *BillingAccountsServicesService
func (*BillingAccountsServicesService) Get ¶
func (r *BillingAccountsServicesService) Get(name string) *BillingAccountsServicesGetCall
Get: Gets a Google Cloud service visible to a billing account.
- name: The name of the billing account service to retrieve. Format: billingAccounts/{billing_account}/services/{service}.
func (*BillingAccountsServicesService) List ¶
func (r *BillingAccountsServicesService) List(parent string) *BillingAccountsServicesListCall
List: Lists services visible to a billing account.
- parent: The billing account to list billing account service from. Format: billingAccounts/{billing_account}.
type BillingAccountsSkuGroupsGetCall ¶
type BillingAccountsSkuGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSkuGroupsGetCall) Context ¶
func (c *BillingAccountsSkuGroupsGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsSkuGroupsGetCall) Do ¶
func (c *BillingAccountsSkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup, error)
Do executes the "cloudbilling.billingAccounts.skuGroups.get" call. Exactly one of *GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup
or error will be non-nil. Any non-2xx status code is an error.
Response headers are in either *GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup .ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsSkuGroupsGetCall) Fields ¶
func (c *BillingAccountsSkuGroupsGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsSkuGroupsGetCall) Header ¶
func (c *BillingAccountsSkuGroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsSkuGroupsGetCall) IfNoneMatch ¶
func (c *BillingAccountsSkuGroupsGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type BillingAccountsSkuGroupsListCall ¶
type BillingAccountsSkuGroupsListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSkuGroupsListCall) Context ¶
func (c *BillingAccountsSkuGroupsListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsSkuGroupsListCall) Do ¶
func (c *BillingAccountsSkuGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse, error)
Do executes the "cloudbilling.billingAccounts.skuGroups.list" call. Exactly one of *GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuG roupsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuG roupsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsSkuGroupsListCall) Fields ¶
func (c *BillingAccountsSkuGroupsListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsSkuGroupsListCall) Header ¶
func (c *BillingAccountsSkuGroupsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsSkuGroupsListCall) IfNoneMatch ¶
func (c *BillingAccountsSkuGroupsListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BillingAccountsSkuGroupsListCall) PageSize ¶
func (c *BillingAccountsSkuGroupsListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsListCall
PageSize sets the optional parameter "pageSize": Maximum number of billing account SKU groups to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.
func (*BillingAccountsSkuGroupsListCall) PageToken ¶
func (c *BillingAccountsSkuGroupsListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListBillingAccountSkuGroups call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*BillingAccountsSkuGroupsListCall) Pages ¶
func (c *BillingAccountsSkuGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type BillingAccountsSkuGroupsService ¶
type BillingAccountsSkuGroupsService struct { Skus *BillingAccountsSkuGroupsSkusService // contains filtered or unexported fields }
func NewBillingAccountsSkuGroupsService ¶
func NewBillingAccountsSkuGroupsService(s *Service) *BillingAccountsSkuGroupsService
func (*BillingAccountsSkuGroupsService) Get ¶
func (r *BillingAccountsSkuGroupsService) Get(name string) *BillingAccountsSkuGroupsGetCall
Get: Gets a SKU group visible to a billing account.
- name: The name of the BillingAccountSkuGroup to retrieve. Format: billingAccounts/{billing_account}/skuGroups/{sku_group}.
func (*BillingAccountsSkuGroupsService) List ¶
func (r *BillingAccountsSkuGroupsService) List(parent string) *BillingAccountsSkuGroupsListCall
List: Lists SKU groups visible to a billing account.
- parent: The billing account to list billing account SKU groups from. Format: billingAccounts/{billing_account}.
type BillingAccountsSkuGroupsSkusGetCall ¶
type BillingAccountsSkuGroupsSkusGetCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSkuGroupsSkusGetCall) Context ¶
func (c *BillingAccountsSkuGroupsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsSkuGroupsSkusGetCall) Do ¶
func (c *BillingAccountsSkuGroupsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku, error)
Do executes the "cloudbilling.billingAccounts.skuGroups.skus.get" call. Exactly one of *GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGr oupSku or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGr oupSku.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsSkuGroupsSkusGetCall) Fields ¶
func (c *BillingAccountsSkuGroupsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsSkuGroupsSkusGetCall) Header ¶
func (c *BillingAccountsSkuGroupsSkusGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsSkuGroupsSkusGetCall) IfNoneMatch ¶
func (c *BillingAccountsSkuGroupsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type BillingAccountsSkuGroupsSkusListCall ¶
type BillingAccountsSkuGroupsSkusListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSkuGroupsSkusListCall) Context ¶
func (c *BillingAccountsSkuGroupsSkusListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsSkuGroupsSkusListCall) Do ¶
func (c *BillingAccountsSkuGroupsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse, error)
Do executes the "cloudbilling.billingAccounts.skuGroups.skus.list" call. Exactly one of *GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountS kuGroupSkusResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountS kuGroupSkusResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsSkuGroupsSkusListCall) Fields ¶
func (c *BillingAccountsSkuGroupsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsSkuGroupsSkusListCall) Header ¶
func (c *BillingAccountsSkuGroupsSkusListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsSkuGroupsSkusListCall) IfNoneMatch ¶
func (c *BillingAccountsSkuGroupsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BillingAccountsSkuGroupsSkusListCall) PageSize ¶
func (c *BillingAccountsSkuGroupsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsSkusListCall
PageSize sets the optional parameter "pageSize": Maximum number of billing account SKU group SKUs to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.
func (*BillingAccountsSkuGroupsSkusListCall) PageToken ¶
func (c *BillingAccountsSkuGroupsSkusListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsSkusListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListBillingAccountSkuGroupSkus call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*BillingAccountsSkuGroupsSkusListCall) Pages ¶
func (c *BillingAccountsSkuGroupsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type BillingAccountsSkuGroupsSkusService ¶
type BillingAccountsSkuGroupsSkusService struct {
// contains filtered or unexported fields
}
func NewBillingAccountsSkuGroupsSkusService ¶
func NewBillingAccountsSkuGroupsSkusService(s *Service) *BillingAccountsSkuGroupsSkusService
func (*BillingAccountsSkuGroupsSkusService) Get ¶
func (r *BillingAccountsSkuGroupsSkusService) Get(name string) *BillingAccountsSkuGroupsSkusGetCall
Get: Gets a SKU that is part of a billing account SKU group.
- name: The name of the billing account SKU group SKU to retrieve. Format: billingAccounts/{billing_account}/skuGroups/{sku_group}/skus/{sku}.
func (*BillingAccountsSkuGroupsSkusService) List ¶
func (r *BillingAccountsSkuGroupsSkusService) List(parent string) *BillingAccountsSkuGroupsSkusListCall
List: Lists SKUs that is part of billing account SKU groups.
- parent: The billing account SKU group to list billing account SKU group SKUs from. Format: billingAccounts/{billing_account}/skuGroups/{sku_group}.
type BillingAccountsSkusGetCall ¶
type BillingAccountsSkusGetCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSkusGetCall) Context ¶
func (c *BillingAccountsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkusGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsSkusGetCall) Do ¶
func (c *BillingAccountsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku, error)
Do executes the "cloudbilling.billingAccounts.skus.get" call. Exactly one of *GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku.ServerRes ponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsSkusGetCall) Fields ¶
func (c *BillingAccountsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsSkusGetCall) Header ¶
func (c *BillingAccountsSkusGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsSkusGetCall) IfNoneMatch ¶
func (c *BillingAccountsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type BillingAccountsSkusListCall ¶
type BillingAccountsSkusListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSkusListCall) Context ¶
func (c *BillingAccountsSkusListCall) Context(ctx context.Context) *BillingAccountsSkusListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsSkusListCall) Do ¶
func (c *BillingAccountsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse, error)
Do executes the "cloudbilling.billingAccounts.skus.list" call. Exactly one of *GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusRespo nse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusRespo nse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsSkusListCall) Fields ¶
func (c *BillingAccountsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsSkusListCall) Filter ¶
func (c *BillingAccountsSkusListCall) Filter(filter string) *BillingAccountsSkusListCall
Filter sets the optional parameter "filter": Options for how to filter the billing account SKUs. Currently, only filter on `billing_account_service` is supported. Only !=, = operators are supported. Examples: - billing_account_service = "billingAccounts/012345-567890-ABCDEF/services/DA34-426B-A397"
func (*BillingAccountsSkusListCall) Header ¶
func (c *BillingAccountsSkusListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsSkusListCall) IfNoneMatch ¶
func (c *BillingAccountsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BillingAccountsSkusListCall) PageSize ¶
func (c *BillingAccountsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkusListCall
PageSize sets the optional parameter "pageSize": Maximum number of billing account SKUs to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.
func (*BillingAccountsSkusListCall) PageToken ¶
func (c *BillingAccountsSkusListCall) PageToken(pageToken string) *BillingAccountsSkusListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListBillingAccountSkus call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*BillingAccountsSkusListCall) Pages ¶
func (c *BillingAccountsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type BillingAccountsSkusPriceGetCall ¶
type BillingAccountsSkusPriceGetCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSkusPriceGetCall) Context ¶
func (c *BillingAccountsSkusPriceGetCall) Context(ctx context.Context) *BillingAccountsSkusPriceGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsSkusPriceGetCall) CurrencyCode ¶
func (c *BillingAccountsSkusPriceGetCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPriceGetCall
CurrencyCode sets the optional parameter "currencyCode": ISO-4217 currency code for the price. If not specified, the currency of the billing account is used.
func (*BillingAccountsSkusPriceGetCall) Do ¶
func (c *BillingAccountsSkusPriceGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice, error)
Do executes the "cloudbilling.billingAccounts.skus.price.get" call. Exactly one of *GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice.Serve rResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsSkusPriceGetCall) Fields ¶
func (c *BillingAccountsSkusPriceGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPriceGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsSkusPriceGetCall) Header ¶
func (c *BillingAccountsSkusPriceGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsSkusPriceGetCall) IfNoneMatch ¶
func (c *BillingAccountsSkusPriceGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPriceGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type BillingAccountsSkusPriceService ¶
type BillingAccountsSkusPriceService struct {
// contains filtered or unexported fields
}
func NewBillingAccountsSkusPriceService ¶
func NewBillingAccountsSkusPriceService(s *Service) *BillingAccountsSkusPriceService
func (*BillingAccountsSkusPriceService) Get ¶
func (r *BillingAccountsSkusPriceService) Get(name string) *BillingAccountsSkusPriceGetCall
Get: Gets the latest price for SKUs available to your Cloud Billing account.
- name: Name of the billing account price to retrieve. Format: billingAccounts/{billing_account}/skus/{sku}/price.
type BillingAccountsSkusPricesListCall ¶
type BillingAccountsSkusPricesListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsSkusPricesListCall) Context ¶
func (c *BillingAccountsSkusPricesListCall) Context(ctx context.Context) *BillingAccountsSkusPricesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingAccountsSkusPricesListCall) CurrencyCode ¶
func (c *BillingAccountsSkusPricesListCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPricesListCall
CurrencyCode sets the optional parameter "currencyCode": ISO-4217 currency code for the price. If not specified, currency of billing account will be used.
func (*BillingAccountsSkusPricesListCall) Do ¶
func (c *BillingAccountsSkusPricesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse, error)
Do executes the "cloudbilling.billingAccounts.skus.prices.list" call. Exactly one of *GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesR esponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesR esponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsSkusPricesListCall) Fields ¶
func (c *BillingAccountsSkusPricesListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPricesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingAccountsSkusPricesListCall) Header ¶
func (c *BillingAccountsSkusPricesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BillingAccountsSkusPricesListCall) IfNoneMatch ¶
func (c *BillingAccountsSkusPricesListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPricesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BillingAccountsSkusPricesListCall) PageSize ¶
func (c *BillingAccountsSkusPricesListCall) PageSize(pageSize int64) *BillingAccountsSkusPricesListCall
PageSize sets the optional parameter "pageSize": Maximum number of billing account price to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.
func (*BillingAccountsSkusPricesListCall) PageToken ¶
func (c *BillingAccountsSkusPricesListCall) PageToken(pageToken string) *BillingAccountsSkusPricesListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListBillingAccountPrices call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*BillingAccountsSkusPricesListCall) Pages ¶
func (c *BillingAccountsSkusPricesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type BillingAccountsSkusPricesService ¶
type BillingAccountsSkusPricesService struct {
// contains filtered or unexported fields
}
func NewBillingAccountsSkusPricesService ¶
func NewBillingAccountsSkusPricesService(s *Service) *BillingAccountsSkusPricesService
func (*BillingAccountsSkusPricesService) List ¶
func (r *BillingAccountsSkusPricesService) List(parent string) *BillingAccountsSkusPricesListCall
List: Lists the latest prices for SKUs available to your Cloud Billing account.
- parent: To list all Billing Account SKUs, use `-` as the SKU ID. Format: `billingAccounts/{billing_account}/skus/-` Note: Specifying an actual SKU resource id will return a collection of one Billing Account Price.
type BillingAccountsSkusService ¶
type BillingAccountsSkusService struct { Price *BillingAccountsSkusPriceService Prices *BillingAccountsSkusPricesService // contains filtered or unexported fields }
func NewBillingAccountsSkusService ¶
func NewBillingAccountsSkusService(s *Service) *BillingAccountsSkusService
func (*BillingAccountsSkusService) Get ¶
func (r *BillingAccountsSkusService) Get(name string) *BillingAccountsSkusGetCall
Get: Gets a SKU visible to a billing account.
- name: The name of the billing account SKU to retrieve. Format: billingAccounts/{billing_account}/skus/{sku}.
func (*BillingAccountsSkusService) List ¶
func (r *BillingAccountsSkusService) List(parent string) *BillingAccountsSkusListCall
List: Lists SKUs visible to a billing account.
- parent: The billing account to list billing account SKU from. Format: billingAccounts/{billing_account}.
type CacheFillRegions ¶
type CacheFillRegions struct { // DestinationRegion: The destination region for cache fill. // // Possible values: // "CACHE_FILL_DESTINATION_REGION_UNSPECIFIED" - Not specified // "CACHE_FILL_DESTINATION_REGION_ASIA_PACIFIC" - Asia Pacific // "CACHE_FILL_DESTINATION_REGION_EUROPE" - Europe // "CACHE_FILL_DESTINATION_REGION_NORTH_AMERICA" - North America // "CACHE_FILL_DESTINATION_REGION_OCEANIA" - Oceania // "CACHE_FILL_DESTINATION_REGION_SOUTH_AMERICA" - South America // "CACHE_FILL_DESTINATION_REGION_CHINA" - China // "CACHE_FILL_DESTINATION_REGION_OTHERS" - Others DestinationRegion string `json:"destinationRegion,omitempty"` // SourceRegion: The source region for cache fill. // // Possible values: // "CACHE_FILL_SOURCE_REGION_UNSPECIFIED" - Not specified // "CACHE_FILL_REGION_ASIA_PACIFIC" - Asia Pacific // "CACHE_FILL_SOURCE_REGION_EUROPE" - Europe // "CACHE_FILL_SOURCE_REGION_NORTH_AMERICA" - North America // "CACHE_FILL_SOURCE_REGION_OCEANIA" - Oceania // "CACHE_FILL_SOURCE_REGION_SOUTH_AMERICA" - South America SourceRegion string `json:"sourceRegion,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationRegion") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DestinationRegion") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CacheFillRegions: Specifies the regions for Cache Fill.
func (*CacheFillRegions) MarshalJSON ¶
func (s *CacheFillRegions) MarshalJSON() ([]byte, error)
type CloudCdnEgressWorkload ¶
type CloudCdnEgressWorkload struct { // CacheEgressDestination: The destination for the cache data transfer. // // Possible values: // "CACHE_EGRESS_DESTINATION_UNSPECIFIED" - Unspecified. // "CACHE_EGRESS_DESTINATION_ASIA_PACIFIC" - Asia Pacific. // "CACHE_EGRESS_DESTINATION_CHINA" - China. // "CACHE_EGRESS_DESTINATION_EUROPE" - Europe. // "CACHE_EGRESS_DESTINATION_NORTH_AMERICA" - North America. // "CACHE_EGRESS_DESTINATION_OCEANIA" - Oceania including Australia, // New Zealand, and surrounding Pacific Ocean islands such as Papua New // Guinea and Fiji. This region excludes Hawaii. // "CACHE_EGRESS_DESTINATION_LATIN_AMERICA" - Latin America (Including // the Caribbean, South America and Central America.) // "CACHE_EGRESS_DESTINATION_OTHER_DESTINATIONS" - All other // destinations (including Africa and Antarctica) CacheEgressDestination string `json:"cacheEgressDestination,omitempty"` // CacheEgressRate: Cache data transfer usage. The rate of data cache // transferred to the destination. Use units such as GiBy/s or TiBy/mo, // based on The Unified Code for Units of Measure // (https://ucum.org/ucum.html) standard. CacheEgressRate *Usage `json:"cacheEgressRate,omitempty"` // ForceSendFields is a list of field names (e.g. // "CacheEgressDestination") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CacheEgressDestination") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CloudCdnEgressWorkload: Specifies usage for Cloud CDN Data Transfer.
func (*CloudCdnEgressWorkload) MarshalJSON ¶
func (s *CloudCdnEgressWorkload) MarshalJSON() ([]byte, error)
type CloudCdnWorkload ¶
type CloudCdnWorkload struct { // CacheFillOriginService: The source service for the cache fill. // // Possible values: // "CACHE_FILL_ORIGIN_SERVICE_UNSPECIFIED" - Not specified. // "CACHE_FILL_ORIGIN_SERVICE_GOOGLE_CLOUD_STORAGE_BUCKET" - Origin // service is Google Cloud Storage. // "CACHE_FILL_ORIGIN_SERVICE_BACKEND_SERVICE" - Origin service is // backend service, such as Compute VMs, external backend, etc. CacheFillOriginService string `json:"cacheFillOriginService,omitempty"` // CacheFillRate: Cache fill usage. The rate of data transferred between // cache fill regions. For example: units such as "GiBy/s" or "TBy/mo". CacheFillRate *Usage `json:"cacheFillRate,omitempty"` // CacheFillRegions: The regions where data is transferred from Google // data locations into Google global cache servers. The SKU prices for // cache fill across services are the same. CacheFillRegions *CacheFillRegions `json:"cacheFillRegions,omitempty"` // CacheLookUpRate: Cache look up requests. This is specified to // indicate the number of requests. For example: units such as "1/s". CacheLookUpRate *Usage `json:"cacheLookUpRate,omitempty"` // ForceSendFields is a list of field names (e.g. // "CacheFillOriginService") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CacheFillOriginService") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CloudCdnWorkload: Specifies usage for Cloud CDN resources.
func (*CloudCdnWorkload) MarshalJSON ¶
func (s *CloudCdnWorkload) MarshalJSON() ([]byte, error)
type CloudInterconnectEgressWorkload ¶
type CloudInterconnectEgressWorkload struct { // EgressRate: Outbound data transfer usage. This usage applies when you // move or copy data from one Google Cloud service to another service. // The units are GiBy/s, By/s, and so on, based on The Unified Code for // Units of Measure (https://ucum.org/ucum.html) standard. EgressRate *Usage `json:"egressRate,omitempty"` // InterconnectConnectionLocation: Locations in the Interconnect // connection location table // (https://cloud.google.com/vpc/network-pricing#interconnect-pricing). // These are the Interconnect Data Transfer charges. // // Possible values: // "INTERCONNECT_CONNECTION_LOCATION_UNSPECIFIED" - Unspecified. // "INTERCONNECT_CONNECTION_LOCATION_ASIA" - Asia. // "INTERCONNECT_CONNECTION_LOCATION_EUROPE" - Europe. // "INTERCONNECT_CONNECTION_LOCATION_NORTH_AMERICA" - North America. // "INTERCONNECT_CONNECTION_LOCATION_SOUTH_AMERICA" - South America. // "INTERCONNECT_CONNECTION_LOCATION_AUSTRALIA" - Australia. InterconnectConnectionLocation string `json:"interconnectConnectionLocation,omitempty"` // ForceSendFields is a list of field names (e.g. "EgressRate") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EgressRate") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CloudInterconnectEgressWorkload: Includes the estimate for Interconnect Data Transfer only. To specify usage for data transfer between VMs and internet end-points, use the Standard Tier Internet Data Transfer interface.
func (*CloudInterconnectEgressWorkload) MarshalJSON ¶
func (s *CloudInterconnectEgressWorkload) MarshalJSON() ([]byte, error)
type CloudInterconnectWorkload ¶
type CloudInterconnectWorkload struct { // InterconnectAttachments: VLAN attachment used for interconnect. InterconnectAttachments []*VlanAttachment `json:"interconnectAttachments,omitempty"` // InterconnectType: VLAN attachment type // // Possible values: // "INTERCONNECT_TYPE_UNSPECIFIED" - Unspecified // "INTERCONNECT_TYPE_DEDICATED" - Type is dedicated // "INTERCONNECT_TYPE_PARTNER" - Type is partner InterconnectType string `json:"interconnectType,omitempty"` // LinkType: Interconnect circuit link type. // // Possible values: // "LINK_TYPE_UNSPECIFIED" - Unspecified // "LINK_TYPE_ETHERNET_10G_LR" - Link type is 10 Gbps. // "LINK_TYPE_ETHERNET_100G_LR" - Link type is 100 Gbps. LinkType string `json:"linkType,omitempty"` // ProvisionedLinkCount: Interconnect usage. This is specified as a // unitless quantity which indicates the number of circuit provisioned // in interconnect. ProvisionedLinkCount *Usage `json:"provisionedLinkCount,omitempty"` // ForceSendFields is a list of field names (e.g. // "InterconnectAttachments") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InterconnectAttachments") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CloudInterconnectWorkload: Specifies usage for Cloud Interconnect resources.
func (*CloudInterconnectWorkload) MarshalJSON ¶
func (s *CloudInterconnectWorkload) MarshalJSON() ([]byte, error)
type CloudStorageEgressWorkload ¶
type CloudStorageEgressWorkload struct { // DestinationContinent: Where the data is sent to. // // Possible values: // "DESTINATION_CONTINENT_UNSPECIFIED" - Not specified. // "DESTINATION_CONTINENT_ASIA_PACIFIC" - Asia Pacific. // "DESTINATION_CONTINENT_AUTRALIA" - Australia. // "DESTINATION_CONTINENT_EUROPE" - Europe. // "DESTINATION_CONTINENT_NORTH_AMERICA" - North America. // "DESTINATION_CONTINENT_SOUTH_AMERICA" - South America DestinationContinent string `json:"destinationContinent,omitempty"` // EgressRate: Data transfer usage rate. This usage applies when you // move or copy data from one Cloud Storage bucket to another or when // another Google Cloud service accesses data in your Cloud Storage // bucket. The expected units are GiBy/s, By/s, and so on, based on The // Unified Code for Units of Measure (https://ucum.org/ucum.html) // standard. EgressRate *Usage `json:"egressRate,omitempty"` // SourceContinent: Where the data comes from. // // Possible values: // "SOURCE_CONTINENT_UNSPECIFIED" - Not specified. // "SOURCE_CONTINENT_ASIA_PACIFIC" - Asia Pacific. // "SOURCE_CONTINENT_AUSTRALIA" - Australia. // "SOURCE_CONTINENT_EUROPE" - Europe. // "SOURCE_CONTINENT_NORTH_AMERICA" - North America. // "SOURCE_CONTINENT_SOUTH_AMERICA" - South America. SourceContinent string `json:"sourceContinent,omitempty"` // ForceSendFields is a list of field names (e.g. // "DestinationContinent") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DestinationContinent") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CloudStorageEgressWorkload: Specification of a network type. Network data transfer within Google Cloud applies when you move or copy data from one Cloud Storage bucket to another or when another Google Cloud service accesses data in your Cloud Storage bucket.This includes the network data transfer within Google Cloud and the general network usage.
func (*CloudStorageEgressWorkload) MarshalJSON ¶
func (s *CloudStorageEgressWorkload) MarshalJSON() ([]byte, error)
type CloudStorageWorkload ¶
type CloudStorageWorkload struct { // DataRetrieval: Data retrieval usage. A retrieval cost applies when // data or metadata is read, copied, or rewritten . For example: units // such as "GiB/s" or "B/s". DataRetrieval *Usage `json:"dataRetrieval,omitempty"` // DataStored: Data storage usage. The amount of data stored in buckets. // For example: units such as GiBy/s or TiBy/mo, based on The Unified // Code for Units of Measure (https://ucum.org/ucum.html) standard. DataStored *Usage `json:"dataStored,omitempty"` // DualRegion: Specify dual regions. DualRegion *DualRegional `json:"dualRegion,omitempty"` // MultiRegion: Specify multi regions. MultiRegion *MultiRegional `json:"multiRegion,omitempty"` // OperationA: Class A operation usage in Cloud Storage, such as listing // the objects in buckets. See the operations pricing // (https://cloud.google.com/storage/pricing#operations-pricing) tables // for a list of which operations fall into each class. For example: // units such as "1/s". OperationA *Usage `json:"operationA,omitempty"` // OperationB: Class B operation usage in Cloud Storage, such as // `getIamPolicy`. See the operations pricing // (https://cloud.google.com/storage/pricing#operations-pricing) tables // for a list of which operations fall into each class. For example: // units such as "1/s". OperationB *Usage `json:"operationB,omitempty"` // Region: Specify a single region. Region *Regional `json:"region,omitempty"` // StorageClass: The storage class // (https://cloud.google.com/storage/docs/storage-classes#classes) of // the data and operation. For example: "standard" and "nearline". StorageClass string `json:"storageClass,omitempty"` // ForceSendFields is a list of field names (e.g. "DataRetrieval") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DataRetrieval") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CloudStorageWorkload: Specifies usage of Cloud Storage resources.
func (*CloudStorageWorkload) MarshalJSON ¶
func (s *CloudStorageWorkload) MarshalJSON() ([]byte, error)
type Commitment ¶
type Commitment struct { // Name: Required. A name for this commitment. All commitments in a // CostScenario must have unique names. Each name may be at most 128 // characters long. Name string `json:"name,omitempty"` // VmResourceBasedCud: A resource-based committed use discount (CUD). VmResourceBasedCud *VmResourceBasedCud `json:"vmResourceBasedCud,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Commitment: Commitments give you the ability to pay a recurring fee in exchange for a benefit, such as a discount for your use. For example, this object might contain details of a spend-based committed use discount (CUD) (https://cloud.google.com/docs/cuds#spend_based_commitments). Within a CostScenario, adding a commitment includes the cost of the commitment and any discounts.
func (*Commitment) MarshalJSON ¶
func (s *Commitment) MarshalJSON() ([]byte, error)
type CommitmentCostEstimate ¶
type CommitmentCostEstimate struct { // CommitmentTotalCostEstimate: Total estimated costs for the // commitment. CommitmentTotalCostEstimate *CostEstimate `json:"commitmentTotalCostEstimate,omitempty"` // Name: The name of the commitment, as specified in the `CostScenario`. Name string `json:"name,omitempty"` // SkuCostEstimates: Estimated costs for each SKU in the commitment. SkuCostEstimates []*SkuCostEstimate `json:"skuCostEstimates,omitempty"` // ForceSendFields is a list of field names (e.g. // "CommitmentTotalCostEstimate") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "CommitmentTotalCostEstimate") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
CommitmentCostEstimate: Estimated cost for a commitment.
func (*CommitmentCostEstimate) MarshalJSON ¶
func (s *CommitmentCostEstimate) MarshalJSON() ([]byte, error)
type ComputeVmWorkload ¶
type ComputeVmWorkload struct { // EnableConfidentialCompute: Defines whether each instance has // confidential compute enabled. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` // GuestAccelerator: Guest accelerators attached to each machine. GuestAccelerator *GuestAccelerator `json:"guestAccelerator,omitempty"` // InstancesRunning: VM usage. This is specified as a unitless quantity // which indicates the number of instances running. InstancesRunning *Usage `json:"instancesRunning,omitempty"` // Licenses: Premium image licenses used by each instance. Licenses []string `json:"licenses,omitempty"` // MachineType: The machine type. MachineType *MachineType `json:"machineType,omitempty"` // PersistentDisks: Persistent disks attached to each instance. Must // include a boot disk. PersistentDisks []*PersistentDisk `json:"persistentDisks,omitempty"` // Preemptible: Defines whether each instance is preemptible. Preemptible bool `json:"preemptible,omitempty"` // Region: The region // (https://cloud.google.com/compute/docs/regions-zones) where the VMs // run. For example: "us-central1". Region string `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. // "EnableConfidentialCompute") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "EnableConfidentialCompute") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
ComputeVmWorkload: Specificies usage of a set of identical compute VM instances.
func (*ComputeVmWorkload) MarshalJSON ¶
func (s *ComputeVmWorkload) MarshalJSON() ([]byte, error)
type CostEstimate ¶
type CostEstimate struct { // CreditEstimates: The estimated credits applied. CreditEstimates []*CreditEstimate `json:"creditEstimates,omitempty"` // NetCostEstimate: The estimated net cost after applying credits. NetCostEstimate *Money `json:"netCostEstimate,omitempty"` // PreCreditCostEstimate: The estimated cost prior to applying credits. PreCreditCostEstimate *Money `json:"preCreditCostEstimate,omitempty"` // ForceSendFields is a list of field names (e.g. "CreditEstimates") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreditEstimates") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CostEstimate: An estimated cost.
func (*CostEstimate) MarshalJSON ¶
func (s *CostEstimate) MarshalJSON() ([]byte, error)
type CostEstimationResult ¶
type CostEstimationResult struct { // CurrencyCode: Required. The ISO 4217 currency code for the cost // estimate. CurrencyCode string `json:"currencyCode,omitempty"` // SegmentCostEstimates: Required. Estimated costs for each idealized // month of a `CostScenario`. SegmentCostEstimates []*SegmentCostEstimate `json:"segmentCostEstimates,omitempty"` // Skus: Required. Information about SKUs used in the estimate. Skus []*Sku `json:"skus,omitempty"` // ForceSendFields is a list of field names (e.g. "CurrencyCode") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CurrencyCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CostEstimationResult: The result of a estimating the costs of a `CostScenario`.
func (*CostEstimationResult) MarshalJSON ¶
func (s *CostEstimationResult) MarshalJSON() ([]byte, error)
type CostScenario ¶
type CostScenario struct { // Commitments: New commitments to estimate the costs for. The cost of // the commitments will be included in the estimate result and discounts // the commitment entitles will be included in the workload cost // estimates. A maximum of 100 workloads can be provided. Commitments []*Commitment `json:"commitments,omitempty"` // ScenarioConfig: Configuration for the scenario. ScenarioConfig *ScenarioConfig `json:"scenarioConfig,omitempty"` // Workloads: The Google Cloud usage whose costs are estimated. A // maximum of 100 workloads can be provided. Workloads []*Workload `json:"workloads,omitempty"` // ForceSendFields is a list of field names (e.g. "Commitments") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Commitments") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CostScenario: Encapsulates all the information needed to perform a cost estimate. It includes a specification of the Google Cloud usage whose costs are estimated, and configuration options.
func (*CostScenario) MarshalJSON ¶
func (s *CostScenario) MarshalJSON() ([]byte, error)
type CreditEstimate ¶
type CreditEstimate struct { // CreditAmount: The estimated credit amount. CreditAmount *Money `json:"creditAmount,omitempty"` // CreditDescription: The credit description. CreditDescription string `json:"creditDescription,omitempty"` // CreditType: The credit type. CreditType string `json:"creditType,omitempty"` // ForceSendFields is a list of field names (e.g. "CreditAmount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreditAmount") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CreditEstimate: An estimated credit applied to the costs on a SKU.
func (*CreditEstimate) MarshalJSON ¶
func (s *CreditEstimate) MarshalJSON() ([]byte, error)
type CustomMachineType ¶
type CustomMachineType struct { // MachineSeries: Required. The machine series. Only certain machine // series // (https://cloud.google.com/compute/docs/general-purpose-machines#custom_machine_types) // support custom configurations. For example: "n1". MachineSeries string `json:"machineSeries,omitempty"` // MemorySizeGb: Required. Memory size of the VM in GB (2^30 bytes). // Must be an increment of 0.25 (256 MB). Each machine series // (https://cloud.google.com/compute/docs/machine-types#machine_type_comparison) // has limitations on allowed values for the ratio of memory-to-vCPU // count. MemorySizeGb float64 `json:"memorySizeGb,omitempty"` // VirtualCpuCount: Required. The number of vCPUs. The allowed values // depend on the machine series // (https://cloud.google.com/compute/docs/machine-types#machine_type_comparison). VirtualCpuCount int64 `json:"virtualCpuCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "MachineSeries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MachineSeries") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CustomMachineType: Specification of a custom machine type.
func (*CustomMachineType) MarshalJSON ¶
func (s *CustomMachineType) MarshalJSON() ([]byte, error)
func (*CustomMachineType) UnmarshalJSON ¶
func (s *CustomMachineType) UnmarshalJSON(data []byte) error
type Decimal ¶
type Decimal struct { // Value: The decimal value, as a string. The string representation // consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), // followed by a sequence of zero or more decimal digits ("the // integer"), optionally followed by a fraction, optionally followed by // an exponent. An empty string **should** be interpreted as `0`. The // fraction consists of a decimal point followed by zero or more decimal // digits. The string must contain at least one digit in either the // integer or the fraction. The number formed by the sign, the integer // and the fraction is referred to as the significand. The exponent // consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed // by one or more decimal digits. Services **should** normalize decimal // values before storing them by: - Removing an explicitly-provided `+` // sign (`+2.5` -> `2.5`). - Replacing a zero-length integer value with // `0` (`.5` -> `0.5`). - Coercing the exponent character to upper-case, // with explicit sign (`2.5e8` -> `2.5E+8`). - Removing an // explicitly-provided zero exponent (`2.5E0` -> `2.5`). Services // **may** perform additional normalization based on its own needs and // the internal decimal implementation selected, such as shifting the // decimal point and exponent value together (example: `2.5E-1` <-> // `0.25`). Additionally, services **may** preserve trailing zeroes in // the fraction to indicate increased precision, but are not required to // do so. Note that only the `.` character is supported to divide the // integer and the fraction; `,` **should not** be supported regardless // of locale. Additionally, thousand separators **should not** be // supported. If a service does support them, values **must** be // normalized. The ENBF grammar is: DecimalString = ” | [Sign] // Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | // [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { // '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services // **should** clearly document the range of supported values, the // maximum supported precision (total number of digits), and, if // applicable, the scale (number of digits after the decimal point), as // well as how it behaves when receiving out-of-bounds values. Services // **may** choose to accept values passed as input even when the value // has a higher precision or scale than the service supports, and // **should** round the value to fit the supported scale. Alternatively, // the service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` // in gRPC) if precision would be lost. Services **should** error with // `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service // receives a value outside of the supported range. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Value") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Value") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Decimal: A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.org/3/library/decimal.html
func (*Decimal) MarshalJSON ¶
type DualRegional ¶
type DualRegional struct { // Name: The location name // (https://cloud.google.com/storage/docs/locations#available-locations) // where the data is stored. For example: "asia1" for dual region. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DualRegional: Area contains dual locations.
func (*DualRegional) MarshalJSON ¶
func (s *DualRegional) MarshalJSON() ([]byte, error)
type EstimateCostScenarioForBillingAccountRequest ¶
type EstimateCostScenarioForBillingAccountRequest struct { // CostScenario: The scenario to estimate costs for. CostScenario *CostScenario `json:"costScenario,omitempty"` // ForceSendFields is a list of field names (e.g. "CostScenario") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CostScenario") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
EstimateCostScenarioForBillingAccountRequest: Request for EstimateCostScenarioForBillingAccount.
func (*EstimateCostScenarioForBillingAccountRequest) MarshalJSON ¶
func (s *EstimateCostScenarioForBillingAccountRequest) MarshalJSON() ([]byte, error)
type EstimateCostScenarioForBillingAccountResponse ¶
type EstimateCostScenarioForBillingAccountResponse struct { // CostEstimationResult: The result of the cost estimation. CostEstimationResult *CostEstimationResult `json:"costEstimationResult,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "CostEstimationResult") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CostEstimationResult") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
EstimateCostScenarioForBillingAccountResponse: Response for EstimateCostScenarioForBillingAccount
func (*EstimateCostScenarioForBillingAccountResponse) MarshalJSON ¶
func (s *EstimateCostScenarioForBillingAccountResponse) MarshalJSON() ([]byte, error)
type EstimateCostScenarioWithListPriceRequest ¶
type EstimateCostScenarioWithListPriceRequest struct { // CostScenario: The scenario to estimate costs for. CostScenario *CostScenario `json:"costScenario,omitempty"` // ForceSendFields is a list of field names (e.g. "CostScenario") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CostScenario") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
EstimateCostScenarioWithListPriceRequest: Request for EstimateCostScenarioWithListPrice.
func (*EstimateCostScenarioWithListPriceRequest) MarshalJSON ¶
func (s *EstimateCostScenarioWithListPriceRequest) MarshalJSON() ([]byte, error)
type EstimateCostScenarioWithListPriceResponse ¶
type EstimateCostScenarioWithListPriceResponse struct { // CostEstimationResult: The result of the cost estimation. CostEstimationResult *CostEstimationResult `json:"costEstimationResult,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "CostEstimationResult") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CostEstimationResult") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
EstimateCostScenarioWithListPriceResponse: Response for EstimateCostScenarioWithListPrice
func (*EstimateCostScenarioWithListPriceResponse) MarshalJSON ¶
func (s *EstimateCostScenarioWithListPriceResponse) MarshalJSON() ([]byte, error)
type EstimationTimePoint ¶
type EstimationTimePoint struct { // EstimationTimeFrameOffset: The point in time, relative to the start // of the time frame covered by the cost estimate. EstimationTimeFrameOffset string `json:"estimationTimeFrameOffset,omitempty"` // ForceSendFields is a list of field names (e.g. // "EstimationTimeFrameOffset") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "EstimationTimeFrameOffset") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
EstimationTimePoint: Represents a point in time.
func (*EstimationTimePoint) MarshalJSON ¶
func (s *EstimationTimePoint) MarshalJSON() ([]byte, error)
type GoogleCloudBillingAnomaliesV1betaAnomaly ¶
type GoogleCloudBillingAnomaliesV1betaAnomaly struct { // DetectionTime: Time that the anomaly was detected. Will be set to // 00:00 google time of the detected date. DetectionTime string `json:"detectionTime,omitempty"` // Deviation: Deviation information of the anomaly. Deviation *GoogleCloudBillingAnomaliesV1betaAnomalyDeviation `json:"deviation,omitempty"` // Name: Identifier. Resource name for the anomaly. Name string `json:"name,omitempty"` // ResourceDisplayName: The display name of the resource that the // anomaly occurred in/belongs to. ResourceDisplayName string `json:"resourceDisplayName,omitempty"` // RootCauses: A list of causes which contribute to the anomaly. RootCauses []*GoogleCloudBillingAnomaliesV1betaCause `json:"rootCauses,omitempty"` // Scope: Indicate the scope of the anomaly. // // Possible values: // "SCOPE_UNSPECIFIED" - Default unspecified value. // "SCOPE_BILLING_ACCOUNT" - Indicates the anomaly is for a billing // account. // "SCOPE_PROJECT" - Indicates the anomaly is for a project. Scope string `json:"scope,omitempty"` // Severity: Severity of the anomaly. Unspecified if severity is not // met/assigned. // // Possible values: // "ANOMALY_SEVERITY_UNSPECIFIED" - Default unspecified value. // "ANOMALY_SEVERITY_LOW" - Indicates the anomaly's severity is low. // "ANOMALY_SEVERITY_MEDIUM" - Indicates the anomaly's severity is // medium. // "ANOMALY_SEVERITY_HIGH" - Indicates the anomaly's severity is high. Severity string `json:"severity,omitempty"` // UpdateTime: Output only. The most recent anomaly's last updated time. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DetectionTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DetectionTime") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingAnomaliesV1betaAnomaly: Encapsulates an anomaly.
func (*GoogleCloudBillingAnomaliesV1betaAnomaly) MarshalJSON ¶
func (s *GoogleCloudBillingAnomaliesV1betaAnomaly) MarshalJSON() ([]byte, error)
type GoogleCloudBillingAnomaliesV1betaAnomalyDeviation ¶
type GoogleCloudBillingAnomaliesV1betaAnomalyDeviation struct { // ActualSpend: The actual spend for the anomaly. ActualSpend *Money `json:"actualSpend,omitempty"` // DeviationAmount: The difference between the actual spend and expected // spend's upper bound. Calculation formula: deviation_amount = // actual_spend - expected_spend. DeviationAmount *Money `json:"deviationAmount,omitempty"` // DeviationPercentage: The percentage of devition amount from expected // spend's upper bound. Calculation formula: deviation_percentage = // divation_amount / expected_spend * 100. DeviationPercentage float64 `json:"deviationPercentage,omitempty"` // ExpectedSpend: The expected spend for the anomaly. ExpectedSpend *Money `json:"expectedSpend,omitempty"` // ForceSendFields is a list of field names (e.g. "ActualSpend") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ActualSpend") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingAnomaliesV1betaAnomalyDeviation: Encapsulates the deviation information.
func (*GoogleCloudBillingAnomaliesV1betaAnomalyDeviation) MarshalJSON ¶
func (s *GoogleCloudBillingAnomaliesV1betaAnomalyDeviation) MarshalJSON() ([]byte, error)
func (*GoogleCloudBillingAnomaliesV1betaAnomalyDeviation) UnmarshalJSON ¶
func (s *GoogleCloudBillingAnomaliesV1betaAnomalyDeviation) UnmarshalJSON(data []byte) error
type GoogleCloudBillingAnomaliesV1betaCause ¶
type GoogleCloudBillingAnomaliesV1betaCause struct { // CauseType: The cause type. // // Possible values: // "CAUSE_TYPE_UNSPECIFIED" - Default unspecified value. // "CAUSE_TYPE_PROJECT" - Caused by a project. // "CAUSE_TYPE_SERVICE" - Caused by a service. // "CAUSE_TYPE_SKU" - Caused by a SKU. CauseType string `json:"causeType,omitempty"` // Deviation: The deviation information for the cause. Deviation *GoogleCloudBillingAnomaliesV1betaAnomalyDeviation `json:"deviation,omitempty"` // DisplayName: The display name of the cause. DisplayName string `json:"displayName,omitempty"` // Resource: The resource name of the cause. project: // projects/{project}. service: services/{service}. sku: // services/{service}/skus/{sku}. Resource string `json:"resource,omitempty"` // SubCauses: The sub causes. SubCauses []*GoogleCloudBillingAnomaliesV1betaCause `json:"subCauses,omitempty"` // ForceSendFields is a list of field names (e.g. "CauseType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CauseType") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingAnomaliesV1betaCause: Encapsulates the information of the reason which caused the anomaly.
func (*GoogleCloudBillingAnomaliesV1betaCause) MarshalJSON ¶
func (s *GoogleCloudBillingAnomaliesV1betaCause) MarshalJSON() ([]byte, error)
type GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse ¶
type GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse struct { // Anomalies: The returned anomalies. Anomalies []*GoogleCloudBillingAnomaliesV1betaAnomaly `json:"anomalies,omitempty"` // NextPageToken: Token that can be sent as `page_token` in the // subsequent request to retrieve the next page. If this field is empty, // there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Anomalies") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Anomalies") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse: Response message for ListAnomalies.
func (*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse) MarshalJSON ¶
func (s *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo ¶
type GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo struct { // Interval: Interval at which usage is aggregated to compute cost. // Example: "MONTHLY" interval indicates that usage is aggregated every // month. // // Possible values: // "INTERVAL_UNSPECIFIED" - Default unspecified value. // "INTERVAL_MONTHLY" - Usage is aggregated every month. // "INTERVAL_DAILY" - Usage is aggregated every day. Interval string `json:"interval,omitempty"` // Level: Level at which usage is aggregated to compute cost. Example: // "ACCOUNT" level indicates that usage is aggregated across all // projects in a single account. // // Possible values: // "LEVEL_UNSPECIFIED" - Default unspecified value. // "LEVEL_ACCOUNT" - Usage is aggregated at an account level. // "LEVEL_PROJECT" - Usage is aggregated at a project level. Level string `json:"level,omitempty"` // ForceSendFields is a list of field names (e.g. "Interval") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Interval") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo: Encapsulates the aggregation information such as aggregation level and interval for a billing account price.
func (*GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice ¶
type GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice struct { // CurrencyCode: ISO-4217 currency code for the price. CurrencyCode string `json:"currencyCode,omitempty"` // Name: Resource name for the latest billing account price. Name string `json:"name,omitempty"` // PriceReason: Background information on the origin of the price. PriceReason *GoogleCloudBillingBillingaccountpricesV1betaPriceReason `json:"priceReason,omitempty"` // Rate: Rate price metadata. Billing account SKUs with `Rate` price are // offered by pricing tiers. The price can have 1 or more rate pricing // tiers. Rate *GoogleCloudBillingBillingaccountpricesV1betaRate `json:"rate,omitempty"` // ValueType: Type of the price. The possible values are: // ["unspecified", "rate"]. ValueType string `json:"valueType,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CurrencyCode") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CurrencyCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice: Encapsulates the latest price for a billing account SKU.
func (*GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice ¶
type GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice struct { }
GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice: Encapsulates a default price which is the current list price.
type GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount ¶
type GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount struct { // DiscountPercent: Percentage of the fixed discount. DiscountPercent *Decimal `json:"discountPercent,omitempty"` // DiscountScopeType: Type of the fixed discount scope which indicates // the source of the discount. It can have values such as 'unspecified' // and 'sku-group'. DiscountScopeType string `json:"discountScopeType,omitempty"` // FixTime: Time that the fixed discount is anchored to. FixTime string `json:"fixTime,omitempty"` // SkuGroup: SKU group where the fixed discount comes from. SkuGroup string `json:"skuGroup,omitempty"` // ForceSendFields is a list of field names (e.g. "DiscountPercent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DiscountPercent") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount: Encapsulates a discount off the list price, anchored to the list price as of a fixed time.
func (*GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaFixedPrice ¶
type GoogleCloudBillingBillingaccountpricesV1betaFixedPrice struct { }
GoogleCloudBillingBillingaccountpricesV1betaFixedPrice: Encapsulates a set fixed price applicable during the terms of a contract agreement.
type GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount ¶
type GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount struct { // DiscountPercent: Percentage of the floating discount. DiscountPercent *Decimal `json:"discountPercent,omitempty"` // DiscountScopeType: Type of the floating discount scope which // indicates the source of the discount. It can have values such as // 'unspecified' and 'sku-group'. DiscountScopeType string `json:"discountScopeType,omitempty"` // SkuGroup: SKU group where the floating discount comes from. SkuGroup string `json:"skuGroup,omitempty"` // ForceSendFields is a list of field names (e.g. "DiscountPercent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DiscountPercent") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount: Encapsulates a discount off the current list price, not anchored to any list price as of a fixed time.
func (*GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse ¶
type GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse struct { // BillingAccountPrices: The returned billing account prices. BillingAccountPrices []*GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice `json:"billingAccountPrices,omitempty"` // NextPageToken: Token that can be sent as `page_token` in the // subsequent request to retrieve the next page. If this field is empty, // there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "BillingAccountPrices") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BillingAccountPrices") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesRe sponse: Response message for ListBillingAccountPrices.
func (*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling ¶
type GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling struct { }
GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling: Encapsulates a contract feature that the list price (DefaultPrice) will be used for the price if the current list price drops lower than the custom fixed price. Available to new contracts after March 21, 2022. Applies to all fixed price SKUs in the contract, including FixedPrice, FixedDiscount, MigratedPrice, and MergedPrice.
type GoogleCloudBillingBillingaccountpricesV1betaMergedPrice ¶
type GoogleCloudBillingBillingaccountpricesV1betaMergedPrice struct { }
GoogleCloudBillingBillingaccountpricesV1betaMergedPrice: Encapsulates a price after merging from multiple sources. With merged tiers, each individual tier can be from a different source with different discount types.
type GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice ¶
type GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice struct { // SourceSku: Source SKU where the discount is migrated from. Format: // billingAccounts/{billing_account}/skus/{sku} SourceSku string `json:"sourceSku,omitempty"` // ForceSendFields is a list of field names (e.g. "SourceSku") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "SourceSku") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice: Encapsulates a price migrated from other SKUs.
func (*GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaPriceReason ¶
type GoogleCloudBillingBillingaccountpricesV1betaPriceReason struct { // DefaultPrice: Default price which is the current list price. DefaultPrice *GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice `json:"defaultPrice,omitempty"` // FixedDiscount: Discount off the list price, anchored to the list // price as of a fixed time. FixedDiscount *GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount `json:"fixedDiscount,omitempty"` // FixedPrice: Fixed price applicable during the terms of a contract // agreement. FixedPrice *GoogleCloudBillingBillingaccountpricesV1betaFixedPrice `json:"fixedPrice,omitempty"` // FloatingDiscount: Discount off the current list price, not anchored // to any list price as of a fixed time. FloatingDiscount *GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount `json:"floatingDiscount,omitempty"` // ListPriceAsCeiling: Contract feature that the list price // (DefaultPrice) will be used for the price if the current list price // drops lower than the custom fixed price. Available to new contracts // after March 21, 2022. Applies to all fixed price SKUs in the // contract, including FixedPrice, FixedDiscount, MigratedPrice, and // MergedPrice. ListPriceAsCeiling *GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling `json:"listPriceAsCeiling,omitempty"` // MergedPrice: Price after merging from multiple sources. MergedPrice *GoogleCloudBillingBillingaccountpricesV1betaMergedPrice `json:"mergedPrice,omitempty"` // MigratedPrice: Price migrated from other SKUs. MigratedPrice *GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice `json:"migratedPrice,omitempty"` // Type: Type of the price reason. It can have values such as // 'unspecified', 'default-price', 'fixed-price', 'fixed-discount', // 'floating-discount', 'migrated-price', 'merged-price', // 'list-price-as-ceiling'. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultPrice") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DefaultPrice") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaPriceReason: Encapsulates a price reason which contains background information about the origin of the price.
func (*GoogleCloudBillingBillingaccountpricesV1betaPriceReason) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaPriceReason) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaRate ¶
type GoogleCloudBillingBillingaccountpricesV1betaRate struct { // AggregationInfo: Aggregation info for tiers such as aggregation level // and interval. AggregationInfo *GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo `json:"aggregationInfo,omitempty"` // Tiers: All tiers associated with the `Rate` price. Tiers []*GoogleCloudBillingBillingaccountpricesV1betaRateTier `json:"tiers,omitempty"` // UnitInfo: Unit info such as name and quantity. UnitInfo *GoogleCloudBillingBillingaccountpricesV1betaUnitInfo `json:"unitInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "AggregationInfo") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AggregationInfo") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaRate: Encapsulates a `Rate` price. Billing account SKUs with `Rate` price are offered by pricing tiers. The price have 1 or more rate pricing tiers.
func (*GoogleCloudBillingBillingaccountpricesV1betaRate) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaRate) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaRateTier ¶
type GoogleCloudBillingBillingaccountpricesV1betaRateTier struct { // ContractPrice: Negotiated contract price specific for a billing // account. ContractPrice *Money `json:"contractPrice,omitempty"` // EffectiveDiscountPercent: Percentage of effective discount calculated // using the current list price per pricing tier. Formula used: // effective_discount_percent = (list_price - contract_price) / // list_price × 100 If list_price and contract_price are zero, this // field is the same as `discount_percent` of FixedDiscount and // FloatingDiscount. If your contract does NOT have the feature // LIST_PRICE_AS_CEILING enabled, the effective_discount_percent can be // negative if the SKU has a FixedDiscount and the current list price is // lower than the list price on the date of the contract agreement. See // the `FixedDiscount.fix_time` on when the discount was set. If you // have questions regarding pricing per SKU, contact your Account team // for more details. EffectiveDiscountPercent *Decimal `json:"effectiveDiscountPercent,omitempty"` // ListPrice: List price of one tier. ListPrice *Money `json:"listPrice,omitempty"` // StartAmount: Lower bound amount for a tier. Tiers 0-100, 100-200 will // be represented with two tiers with `start_amount` 0 and 100. StartAmount *Decimal `json:"startAmount,omitempty"` // ForceSendFields is a list of field names (e.g. "ContractPrice") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContractPrice") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaRateTier: Encapsulates a rate price tier.
func (*GoogleCloudBillingBillingaccountpricesV1betaRateTier) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaRateTier) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountpricesV1betaUnitInfo ¶
type GoogleCloudBillingBillingaccountpricesV1betaUnitInfo struct { // Unit: Shorthand for the unit. Example: GiBy.mo. Unit string `json:"unit,omitempty"` // UnitDescription: Human-readable description of the unit. Example: // gibibyte month. UnitDescription string `json:"unitDescription,omitempty"` // UnitQuantity: Unit quantity for the tier. Example: if the RateTier // price is $1 per 1000000 Bytes, then `unit_quantity` is set to // 1000000. UnitQuantity *Decimal `json:"unitQuantity,omitempty"` // ForceSendFields is a list of field names (e.g. "Unit") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Unit") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountpricesV1betaUnitInfo: Encapsulates the unit information for a Rate
func (*GoogleCloudBillingBillingaccountpricesV1betaUnitInfo) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountpricesV1betaUnitInfo) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService ¶
type GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService struct { // DisplayName: Description of the BillingAccountService. Example: // "BigQuery", "Compute Engine". DisplayName string `json:"displayName,omitempty"` // Name: Resource name for the BillingAccountService. Example: // "billingAccounts/012345-567890-ABCDEF/services/DA34-426B-A397". Name string `json:"name,omitempty"` // ServiceId: Identifier for the service. It is the string after the // collection identifier "services/". Example: "DA34-426B-A397". ServiceId string `json:"serviceId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService: Encapsulates a Google Cloud service visible to a billing account.
func (*GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse ¶
type GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse struct { // BillingAccountServices: The returned billing account services. BillingAccountServices []*GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService `json:"billingAccountServices,omitempty"` // NextPageToken: Token that can be sent as `page_token` in the // subsequent request to retrieve the next page. If this field is empty, // there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "BillingAccountServices") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BillingAccountServices") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServic esResponse: Response message for ListBillingAccountServices.
func (*GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup ¶
type GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup struct { // DisplayName: Description of the BillingAccountSkuGroup. Example: "A2 // VMs (1 Year CUD)". DisplayName string `json:"displayName,omitempty"` // Name: Resource name for the BillingAccountSkuGroup. Example: // "billingAccounts/012345-567890-ABCDEF/skuGroups/0e6403d1-4694-44d2-a69 // 6-7a78b1a69301". Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup:
Encapsulates a stock keeping (SKU) group visible to a billing
account. A SKU group represents a collection of SKUs that are related to each other. For example, the `AI Platform APIs` SKU group includes SKUs from the Cloud Dialogflow API, the Cloud Text-to-Speech API, and additional related APIs.
func (*GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse ¶
type GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse struct { // BillingAccountSkuGroups: The returned publicly listed billing account // SKU groups. BillingAccountSkuGroups []*GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup `json:"billingAccountSkuGroups,omitempty"` // NextPageToken: Token that can be sent as `page_token` in the // subsequent request to retrieve the next page. If this field is empty, // there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "BillingAccountSkuGroups") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BillingAccountSkuGroups") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGr oupsResponse: Response message for ListBillingAccountSkuGroups.
func (*GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku ¶
type GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku struct { // BillingAccountService: BillingAccountService that the // BillingAccountSkuGroupSku belongs to. BillingAccountService string `json:"billingAccountService,omitempty"` // DisplayName: Description of the BillingAccountSkuGroupSku. Example: // "A2 Instance Core running in Hong Kong". DisplayName string `json:"displayName,omitempty"` // GeoTaxonomy: Geographic metadata that applies to the // BillingAccountSkuGroupSku. GeoTaxonomy *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy `json:"geoTaxonomy,omitempty"` // Name: Resource name for the BillingAccountSkuGroupSku. Example: // "billingAccounts/012345-567890-ABCDEF/skuGroups/0e6403d1-4694-44d2-a69 // 6-7a78b1a69301/skus/AA95-CD31-42FE". Name string `json:"name,omitempty"` // ProductTaxonomy: List of product categories that apply to the // BillingAccountSkuGroupSku. ProductTaxonomy *GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy `json:"productTaxonomy,omitempty"` // SkuId: Unique identifier for the SKU. It is the string after the // collection identifier "skus/" Example: "AA95-CD31-42FE". SkuId string `json:"skuId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "BillingAccountService") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BillingAccountService") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGro upSku: Encapsulates a SKU that is part of a billing account SKU group.
func (*GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy ¶
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy struct { // GlobalMetadata: Global geographic metadata with no regions. GlobalMetadata *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyGlobal `json:"globalMetadata,omitempty"` // MultiRegionalMetadata: Multi-regional geographic metadata with 2 or // more regions. MultiRegionalMetadata *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional `json:"multiRegionalMetadata,omitempty"` // RegionalMetadata: Regional geographic metadata with 1 region. RegionalMetadata *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional `json:"regionalMetadata,omitempty"` // Type: Type of geographic taxonomy associated with the billing account // SKU group SKU. // // Possible values: // "TYPE_UNSPECIFIED" - Default value. Unspecified type. // "TYPE_GLOBAL" - Global geographic taxonomy with no regions. // "TYPE_REGIONAL" - Regional geographic taxonomy with 1 region. // "TYPE_MULTI_REGIONAL" - Multi-regional geographic taxonomy with 2 // or more regions. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "GlobalMetadata") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GlobalMetadata") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy: Encapsulates geographic metadata, such as regions and multi-regions like `us-east4` or `European Union`.
func (*GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyGlobal ¶
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyGlobal struct { }
GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyGlobal: Encapsulates a global geographic taxonomy.
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional ¶
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional struct { // Regions: Google Cloud regions associated with the multi-regional // geographic taxonomy. Regions []*GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion `json:"regions,omitempty"` // ForceSendFields is a list of field names (e.g. "Regions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Regions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegi onal: Encapsulates a multi-regional geographic taxonomy.
func (*GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion ¶
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion struct { // Region: Description of a Google Cloud region. Example: "us-west2". Region string `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "Region") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Region") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion: Encapsulates a Google Cloud region.
func (*GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional ¶
type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional struct { // Region: Google Cloud region associated with the regional geographic // taxonomy. Region *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "Region") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Region") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional:
Encapsulates a regional geographic taxonomy.
func (*GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse ¶
type GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse struct { // BillingAccountSkuGroupSkus: The returned billing account SKU group // SKUs. BillingAccountSkuGroupSkus []*GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku `json:"billingAccountSkuGroupSkus,omitempty"` // NextPageToken: Token that can be sent as `page_token` in the // subsequent request to retrieve the next page. If this field is empty, // there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "BillingAccountSkuGroupSkus") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "BillingAccountSkuGroupSkus") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSk uGroupSkusResponse: Response message for ListBillingAccountSkuGroupSkus.
func (*GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy ¶
type GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy struct { // TaxonomyCategories: All product categories that the billing account // SKU group SKU belong to. TaxonomyCategories []*GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory `json:"taxonomyCategories,omitempty"` // ForceSendFields is a list of field names (e.g. "TaxonomyCategories") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "TaxonomyCategories") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy: Encapsulates product categories, such as `Serverless`, `Cloud Run`, `TaskQueue`, and others.
func (*GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory ¶
type GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory struct { // Category: Name of the product category. Category string `json:"category,omitempty"` // ForceSendFields is a list of field names (e.g. "Category") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Category") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory: Encapsulates a product category.
func (*GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku ¶
type GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku struct { // BillingAccountService: BillingAccountService that the // BillingAccountSku belongs to. BillingAccountService string `json:"billingAccountService,omitempty"` // DisplayName: Description of the BillingAccountSku. Example: "A2 // Instance Core running in Hong Kong". DisplayName string `json:"displayName,omitempty"` // GeoTaxonomy: Geographic metadata that applies to the // BillingAccountSku. GeoTaxonomy *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy `json:"geoTaxonomy,omitempty"` // Name: Resource name for the BillingAccountSku. Example: // "billingAccounts/012345-567890-ABCDEF/skus/AA95-CD31-42FE". Name string `json:"name,omitempty"` // ProductTaxonomy: List of product categories that apply to the // BillingAccountSku. ProductTaxonomy *GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy `json:"productTaxonomy,omitempty"` // SkuId: Unique identifier for the SKU. It is the string after the // collection identifier "skus/" Example: "AA95-CD31-42FE". SkuId string `json:"skuId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "BillingAccountService") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BillingAccountService") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku: Encapsulates a stock keeping unit (SKU) visible to a billing account. A SKU distinctly identifies a resource that you can purchase, such as `Nvidia Tesla K80 GPU attached to Spot Preemptible VMs running in Warsaw`.
func (*GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy ¶
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy struct { // GlobalMetadata: Global geographic metadata with no regions. GlobalMetadata *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyGlobal `json:"globalMetadata,omitempty"` // MultiRegionalMetadata: Multi-regional geographic metadata with 2 or // more regions. MultiRegionalMetadata *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional `json:"multiRegionalMetadata,omitempty"` // RegionalMetadata: Regional geographic metadata with 1 region. RegionalMetadata *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional `json:"regionalMetadata,omitempty"` // Type: Type of geographic taxonomy associated with the billing account // SKU. // // Possible values: // "TYPE_UNSPECIFIED" - Default value. Unspecified type. // "TYPE_GLOBAL" - Global geographic taxonomy with no regions. // "TYPE_REGIONAL" - Regional geographic taxonomy with 1 region. // "TYPE_MULTI_REGIONAL" - Multi-regional geographic taxonomy with 2 // or more regions. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "GlobalMetadata") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GlobalMetadata") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy: Encapsulates geographic metadata, such as regions and multi-regions like `us-east4` or `European Union`.
func (*GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyGlobal ¶
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyGlobal struct { }
GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyGlobal: Encapsulates a global geographic taxonomy.
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional ¶
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional struct { // Regions: Google Cloud regions associated with the multi-regional // geographic taxonomy. Regions []*GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion `json:"regions,omitempty"` // ForceSendFields is a list of field names (e.g. "Regions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Regions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional: Encapsulates a multi-regional geographic taxonomy.
func (*GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion ¶
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion struct { // Region: Description of a Google Cloud region. Example: "us-west2". Region string `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "Region") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Region") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion: Encapsulates a Google Cloud region.
func (*GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional ¶
type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional struct { // Region: Google Cloud region associated with the regional geographic // taxonomy. Region *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "Region") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Region") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional: Encapsulates a regional geographic taxonomy.
func (*GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse ¶
type GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse struct { // BillingAccountSkus: The returned billing account SKUs. BillingAccountSkus []*GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku `json:"billingAccountSkus,omitempty"` // NextPageToken: Token that can be sent as `page_token` in the // subsequent request to retrieve the next page. If this field is empty, // there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BillingAccountSkus") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BillingAccountSkus") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusRespon se: Response message for ListBillingAccountSkus.
func (*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy ¶
type GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy struct { // TaxonomyCategories: All product categories that the billing account // SKU belong to. TaxonomyCategories []*GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory `json:"taxonomyCategories,omitempty"` // ForceSendFields is a list of field names (e.g. "TaxonomyCategories") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "TaxonomyCategories") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy: Encapsulates product categories, such as `Serverless`, `Cloud Run`, `TaskQueue`, and others.
func (*GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy) MarshalJSON() ([]byte, error)
type GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory ¶
type GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory struct { // Category: Name of the product category. Category string `json:"category,omitempty"` // ForceSendFields is a list of field names (e.g. "Category") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Category") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory: Encapsulates a product category.
func (*GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory) MarshalJSON ¶
func (s *GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory) MarshalJSON() ([]byte, error)
type GoogleCloudBillingPricesV1betaAggregationInfo ¶
type GoogleCloudBillingPricesV1betaAggregationInfo struct { // Interval: Interval at which usage is aggregated to compute cost. // Example: "MONTHLY" interval indicates that usage is aggregated every // month. // // Possible values: // "INTERVAL_UNSPECIFIED" - Default unspecified value. // "INTERVAL_MONTHLY" - Usage is aggregated every month. // "INTERVAL_DAILY" - Usage is aggregated every day. Interval string `json:"interval,omitempty"` // Level: Level at which usage is aggregated to compute cost. Example: // "ACCOUNT" level indicates that usage is aggregated across all // projects in a single account. // // Possible values: // "LEVEL_UNSPECIFIED" - Default unspecified value. // "LEVEL_ACCOUNT" - Usage is aggregated at an account level. // "LEVEL_PROJECT" - Usage is aggregated at a project level. Level string `json:"level,omitempty"` // ForceSendFields is a list of field names (e.g. "Interval") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Interval") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingPricesV1betaAggregationInfo: Encapsulates the aggregation information such as aggregation level and interval for a price.
func (*GoogleCloudBillingPricesV1betaAggregationInfo) MarshalJSON ¶
func (s *GoogleCloudBillingPricesV1betaAggregationInfo) MarshalJSON() ([]byte, error)
type GoogleCloudBillingPricesV1betaListPricesResponse ¶
type GoogleCloudBillingPricesV1betaListPricesResponse struct { // NextPageToken: Token that can be sent as `page_token` in the // subsequent request to retrieve the next page. If this field is empty, // there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // Prices: The returned publicly listed prices. Prices []*GoogleCloudBillingPricesV1betaPrice `json:"prices,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingPricesV1betaListPricesResponse: Response message for ListPrices.
func (*GoogleCloudBillingPricesV1betaListPricesResponse) MarshalJSON ¶
func (s *GoogleCloudBillingPricesV1betaListPricesResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBillingPricesV1betaPrice ¶
type GoogleCloudBillingPricesV1betaPrice struct { // CurrencyCode: ISO-4217 currency code for the price. CurrencyCode string `json:"currencyCode,omitempty"` // Name: Resource name for the latest price. Name string `json:"name,omitempty"` // Rate: Rate price metadata. SKUs with `Rate` price are offered by // pricing tiers. The price can have 1 or more rate pricing tiers. Rate *GoogleCloudBillingPricesV1betaRate `json:"rate,omitempty"` // ValueType: Type of the price. It can have values: ["unspecified", // "rate"]. ValueType string `json:"valueType,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CurrencyCode") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CurrencyCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingPricesV1betaPrice: Encapsulates the latest price for a SKU.
func (*GoogleCloudBillingPricesV1betaPrice) MarshalJSON ¶
func (s *GoogleCloudBillingPricesV1betaPrice) MarshalJSON() ([]byte, error)
type GoogleCloudBillingPricesV1betaRate ¶
type GoogleCloudBillingPricesV1betaRate struct { // AggregationInfo: Aggregation info for tiers such as aggregation level // and interval. AggregationInfo *GoogleCloudBillingPricesV1betaAggregationInfo `json:"aggregationInfo,omitempty"` // Tiers: All tiers associated with the `Rate` price. Tiers []*GoogleCloudBillingPricesV1betaRateTier `json:"tiers,omitempty"` // UnitInfo: Unit info such as name and quantity. UnitInfo *GoogleCloudBillingPricesV1betaUnitInfo `json:"unitInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "AggregationInfo") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AggregationInfo") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingPricesV1betaRate: Encapsulates a `Rate` price. SKUs with `Rate` price are offered by pricing tiers. The price have 1 or more rate pricing tiers.
func (*GoogleCloudBillingPricesV1betaRate) MarshalJSON ¶
func (s *GoogleCloudBillingPricesV1betaRate) MarshalJSON() ([]byte, error)
type GoogleCloudBillingPricesV1betaRateTier ¶
type GoogleCloudBillingPricesV1betaRateTier struct { // ListPrice: List price of one tier. ListPrice *Money `json:"listPrice,omitempty"` // StartAmount: Lower bound amount for a tier. Tiers 0-100, 100-200 will // be represented with two tiers with `start_amount` 0 and 100. StartAmount *Decimal `json:"startAmount,omitempty"` // ForceSendFields is a list of field names (e.g. "ListPrice") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ListPrice") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingPricesV1betaRateTier: Encapsulates a rate price tier.
func (*GoogleCloudBillingPricesV1betaRateTier) MarshalJSON ¶
func (s *GoogleCloudBillingPricesV1betaRateTier) MarshalJSON() ([]byte, error)
type GoogleCloudBillingPricesV1betaUnitInfo ¶
type GoogleCloudBillingPricesV1betaUnitInfo struct { // Unit: Shorthand for the unit. Example: GiBy.mo. Unit string `json:"unit,omitempty"` // UnitDescription: Human-readable description of the unit. Example: // gibibyte month. UnitDescription string `json:"unitDescription,omitempty"` // UnitQuantity: Unit quantity for the tier. Example: if the RateTier // price is $1 per 1000000 Bytes, then `unit_quantity` is set to // 1000000. UnitQuantity *Decimal `json:"unitQuantity,omitempty"` // ForceSendFields is a list of field names (e.g. "Unit") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Unit") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingPricesV1betaUnitInfo: Encapsulates the unit information for a Rate
func (*GoogleCloudBillingPricesV1betaUnitInfo) MarshalJSON ¶
func (s *GoogleCloudBillingPricesV1betaUnitInfo) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse ¶
type GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse struct { // NextPageToken: Token that can be sent as `page_token` in the // subsequent request to retrieve the next page. If this field is empty, // there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // SkuGroups: The returned publicly listed SKU groups. SkuGroups []*GoogleCloudBillingSkugroupsV1betaSkuGroup `json:"skuGroups,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse: Response message for ListSkuGroups.
func (*GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupsV1betaSkuGroup ¶
type GoogleCloudBillingSkugroupsV1betaSkuGroup struct { // DisplayName: Description of the SKU group. Example: "A2 VMs (1 Year // CUD)". DisplayName string `json:"displayName,omitempty"` // Name: Resource name for the SKU group. Example: // "skuGroups/0e6403d1-4694-44d2-a696-7a78b1a69301". Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupsV1betaSkuGroup: Encapsulates a publicly listed stock keeping unit (SKU) group. A SKU group represents a collection of SKUs that are related to each other. For example, the `AI Platform APIs` SKU group includes SKUs from the Cloud Dialogflow API, the Cloud Text-to-Speech API, and additional related APIs.
func (*GoogleCloudBillingSkugroupsV1betaSkuGroup) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupsV1betaSkuGroup) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy ¶
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy struct { // GlobalMetadata: Global geographic metadata with no regions. GlobalMetadata *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyGlobal `json:"globalMetadata,omitempty"` // MultiRegionalMetadata: Multi-regional geographic metadata with 2 or // more regions. MultiRegionalMetadata *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional `json:"multiRegionalMetadata,omitempty"` // RegionalMetadata: Regional geographic metadata with 1 region. RegionalMetadata *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional `json:"regionalMetadata,omitempty"` // Type: Type of geographic taxonomy associated with the SKU group SKU. // // Possible values: // "TYPE_UNSPECIFIED" - Default value. Unspecified type. // "TYPE_GLOBAL" - Global geographic taxonomy with no regions. // "TYPE_REGIONAL" - Regional geographic taxonomy with 1 region. // "TYPE_MULTI_REGIONAL" - Multi-regional geographic taxonomy with 2 // or more regions. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "GlobalMetadata") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GlobalMetadata") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy: Encapsulates geographic metadata, such as regions and multi-regions like `us-east4` or `European Union`.
func (*GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyGlobal ¶
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyGlobal struct { }
GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyGlobal: Encapsulates a global geographic taxonomy.
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional ¶
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional struct { // Regions: Google Cloud regions associated with the multi-regional // geographic taxonomy. Regions []*GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion `json:"regions,omitempty"` // ForceSendFields is a list of field names (e.g. "Regions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Regions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional: Encapsulates a multi-regional geographic taxonomy.
func (*GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion ¶
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion struct { // Region: Description of a Google Cloud region. Example: "us-west2". Region string `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "Region") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Region") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion: Encapsulates a Google Cloud region.
func (*GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional ¶
type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional struct { // Region: Google Cloud region associated with the regional geographic // taxonomy. Region *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "Region") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Region") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional: Encapsulates a regional geographic taxonomy.
func (*GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse ¶
type GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse struct { // NextPageToken: Token that can be sent as `page_token` in the // subsequent request to retrieve the next page. If this field is empty, // there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // SkuGroupSkus: The returned SKU group SKUs. SkuGroupSkus []*GoogleCloudBillingSkugroupskusV1betaSkuGroupSku `json:"skuGroupSkus,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse: Response message for ListSkuGroupSkus.
func (*GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupskusV1betaProductTaxonomy ¶
type GoogleCloudBillingSkugroupskusV1betaProductTaxonomy struct { // TaxonomyCategories: All product categories that the SKU group SKU // belongs to. TaxonomyCategories []*GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory `json:"taxonomyCategories,omitempty"` // ForceSendFields is a list of field names (e.g. "TaxonomyCategories") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "TaxonomyCategories") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupskusV1betaProductTaxonomy: Encapsulates product categories, such as `Serverless`, `Cloud Run`, `TaskQueue`, and others.
func (*GoogleCloudBillingSkugroupskusV1betaProductTaxonomy) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupskusV1betaProductTaxonomy) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupskusV1betaSkuGroupSku ¶
type GoogleCloudBillingSkugroupskusV1betaSkuGroupSku struct { // DisplayName: Description of the SkuGroupSku. Example: "A2 Instance // Core running in Hong Kong". DisplayName string `json:"displayName,omitempty"` // GeoTaxonomy: Geographic metadata that applies to the SkuGroupSku. GeoTaxonomy *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy `json:"geoTaxonomy,omitempty"` // Name: Resource name for the SkuGroupSku. Example: // "skuGroups/0e6403d1-4694-44d2-a696-7a78b1a69301/skus/AA95-CD31-42FE". Name string `json:"name,omitempty"` // ProductTaxonomy: List of product categories that apply to the // SkuGroupSku. ProductTaxonomy *GoogleCloudBillingSkugroupskusV1betaProductTaxonomy `json:"productTaxonomy,omitempty"` // Service: Service that the SkuGroupSku belongs to. Service string `json:"service,omitempty"` // SkuId: Unique identifier for the SKU. It is the string after the // collection identifier "skus/" Example: "AA95-CD31-42FE". SkuId string `json:"skuId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupskusV1betaSkuGroupSku: Encapsulates a publicly listed stock keeping unit (SKU) that is part of a publicly listed SKU group. A SKU group represents a collection of SKUs that are related to each other. For example, the `AI Platform APIs` SKU group includes SKUs from the Cloud Dialogflow API, the Cloud Text-to-Speech API, and additional related APIs.
func (*GoogleCloudBillingSkugroupskusV1betaSkuGroupSku) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupskusV1betaSkuGroupSku) MarshalJSON() ([]byte, error)
type GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory ¶
type GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory struct { // Category: Name of the product category. Category string `json:"category,omitempty"` // ForceSendFields is a list of field names (e.g. "Category") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Category") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory: Encapsulates a product category.
func (*GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory) MarshalJSON ¶
func (s *GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory) MarshalJSON() ([]byte, error)
type GuestAccelerator ¶
type GuestAccelerator struct { // AcceleratorCount: The number of the guest accelerator cards exposed // to each instance. AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"` // AcceleratorType: The type of the guest accelerator cards. For // example: "nvidia-tesla-t4". AcceleratorType string `json:"acceleratorType,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AcceleratorCount") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GuestAccelerator: Specification of a set of guest accelerators attached to a machine.
func (*GuestAccelerator) MarshalJSON ¶
func (s *GuestAccelerator) MarshalJSON() ([]byte, error)
type InterRegionEgress ¶
type InterRegionEgress struct { // DestinationRegion: Which region // (https://cloud.google.com/compute/docs/regions-zones) the data is // transferred to. DestinationRegion string `json:"destinationRegion,omitempty"` // EgressRate: VM to VM data transfer usage. The expected units such are // GiBy/s, By/s, and so on. EgressRate *Usage `json:"egressRate,omitempty"` // SourceRegion: Which region // (https://cloud.google.com/compute/docs/regions-zones) the data is // transferred from. SourceRegion string `json:"sourceRegion,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationRegion") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DestinationRegion") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InterRegionEgress: Data transfer between two regions.
func (*InterRegionEgress) MarshalJSON ¶
func (s *InterRegionEgress) MarshalJSON() ([]byte, error)
type IntraRegionEgress ¶
type IntraRegionEgress struct { // EgressRate: VM to VM data transfer usage. The expected are GiBy/s, // By/s, and so on. EgressRate *Usage `json:"egressRate,omitempty"` // ForceSendFields is a list of field names (e.g. "EgressRate") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EgressRate") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
IntraRegionEgress: Data transfer within the same region. When the source region and destination region are in the same zone, using internal IP addresses, there isn't any charge for data transfer.
func (*IntraRegionEgress) MarshalJSON ¶
func (s *IntraRegionEgress) MarshalJSON() ([]byte, error)
type MachineType ¶
type MachineType struct { CustomMachineType *CustomMachineType `json:"customMachineType,omitempty"` PredefinedMachineType *PredefinedMachineType `json:"predefinedMachineType,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomMachineType") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CustomMachineType") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
MachineType: Specification of machine series, memory, and number of vCPUs.
func (*MachineType) MarshalJSON ¶
func (s *MachineType) MarshalJSON() ([]byte, error)
type Money ¶
type Money struct { // CurrencyCode: The three-letter currency code defined in ISO 4217. CurrencyCode string `json:"currencyCode,omitempty"` // Nanos: Number of nano (10^-9) units of the amount. The value must be // between -999,999,999 and +999,999,999 inclusive. If `units` is // positive, `nanos` must be positive or zero. If `units` is zero, // `nanos` can be positive, zero, or negative. If `units` is negative, // `nanos` must be negative or zero. For example $-1.75 is represented // as `units`=-1 and `nanos`=-750,000,000. Nanos int64 `json:"nanos,omitempty"` // Units: The whole units of the amount. For example if `currencyCode` // is "USD", then 1 unit is one US dollar. Units int64 `json:"units,omitempty,string"` // ForceSendFields is a list of field names (e.g. "CurrencyCode") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CurrencyCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Money: Represents an amount of money with its currency type.
func (*Money) MarshalJSON ¶
type MultiRegional ¶
type MultiRegional struct { // Name: The location name // (https://cloud.google.com/storage/docs/locations#available-locations) // where the data is stored. For example: "us" for multi-region. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MultiRegional: Area contains multiple locations.
func (*MultiRegional) MarshalJSON ¶
func (s *MultiRegional) MarshalJSON() ([]byte, error)
type PersistentDisk ¶
type PersistentDisk struct { // DiskSize: Specifies the size of disk. Must be at least 10 GB. DiskSize *Usage `json:"diskSize,omitempty"` // DiskType: The disk type // (https://cloud.google.com/compute/docs/disks#disk-types). For // example: "pd-standard". DiskType string `json:"diskType,omitempty"` // ProvisionedIops: Indicates how many IOPS to provision for the disk // for extreme persistent disks. This sets the number of I/O operations // per second that the disk can handle. Values must be between 10,000 // and 120,000. ProvisionedIops *Usage `json:"provisionedIops,omitempty"` // Scope: The geographic scope of the disk. Defaults to `SCOPE_ZONAL` if // not specified. // // Possible values: // "SCOPE_UNSPECIFIED" - Unspecified. // "SCOPE_ZONAL" - The disk exists in a single zone. // "SCOPE_REGIONAL" - The disk is replicated in a secondary zone // within the same region. Scope string `json:"scope,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskSize") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DiskSize") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PersistentDisk: Specification of a persistent disk attached to a VM.
func (*PersistentDisk) MarshalJSON ¶
func (s *PersistentDisk) MarshalJSON() ([]byte, error)
type PredefinedMachineType ¶
type PredefinedMachineType struct { // MachineType: The machine type // (https://cloud.google.com/compute/docs/machine-types). For example: // "n1-standard1". MachineType string `json:"machineType,omitempty"` // ForceSendFields is a list of field names (e.g. "MachineType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MachineType") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PredefinedMachineType: Specification of a predefined machine type.
func (*PredefinedMachineType) MarshalJSON ¶
func (s *PredefinedMachineType) MarshalJSON() ([]byte, error)
type PremiumTierEgressWorkload ¶
type PremiumTierEgressWorkload struct { // DestinationContinent: Where the data is sent to. // // Possible values: // "DESTINATION_CONTINENT_UNSPECIFIED" - Not specified. // "DESTINATION_CONTINENT_ASIA_PACIFIC" - Asia Pacific. // "DESTINATION_CONTINENT_AFRICA" - Africa. // "DESTINATION_CONTINENT_NORTH_AMERICA" - North America. // "DESTINATION_CONTINENT_AUTRALIA" - Australia. // "DESTINATION_CONTINENT_CENTRAL_AMERICA" - Central America. // "DESTINATION_CONTINENT_CHINA" - China. // "DESTINATION_CONTINENT_EASTERN_EUROPE" - Eastern Europe. // "DESTINATION_CONTINENT_WESTERN_EUROPE" - Western Europe. // "DESTINATION_CONTINENT_EMEA" - Other regions in Europe, Middle East // and Africa. // "DESTINATION_CONTINENT_INDIA" - India // "DESTINATION_CONTINENT_MIDDLE_EAST" - Middle East. // "DESTINATION_CONTINENT_SOUTH_AMERICA" - South America. DestinationContinent string `json:"destinationContinent,omitempty"` // EgressRate: Premium Tier Data Transfer usage. The expected units are // GiBy/s, By/s, and so on, based on The Unified Code for Units of // Measure (https://ucum.org/ucum.html) standard. EgressRate *Usage `json:"egressRate,omitempty"` // SourceRegion: Which region // (https://cloud.google.com/compute/docs/regions-zones) the data comes // from. SourceRegion string `json:"sourceRegion,omitempty"` // ForceSendFields is a list of field names (e.g. // "DestinationContinent") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DestinationContinent") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
PremiumTierEgressWorkload: Specify a Premium Tier Internet Data Transfer networking workload.
func (*PremiumTierEgressWorkload) MarshalJSON ¶
func (s *PremiumTierEgressWorkload) MarshalJSON() ([]byte, error)
type Price ¶
type Price struct { // EffectiveTime: The timestamp within the estimation time frame when // the price was set. EffectiveTime *EstimationTimePoint `json:"effectiveTime,omitempty"` // PriceType: The type of price. Possible values: "RATE" PriceType string `json:"priceType,omitempty"` // Rate: A set of tiered rates. Rate *Rate `json:"rate,omitempty"` // ForceSendFields is a list of field names (e.g. "EffectiveTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EffectiveTime") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Price: The price of a SKU at a point int time.
func (*Price) MarshalJSON ¶
type ProjectsAnomaliesGetCall ¶
type ProjectsAnomaliesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAnomaliesGetCall) Context ¶
func (c *ProjectsAnomaliesGetCall) Context(ctx context.Context) *ProjectsAnomaliesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAnomaliesGetCall) Do ¶
func (c *ProjectsAnomaliesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaAnomaly, error)
Do executes the "cloudbilling.projects.anomalies.get" call. Exactly one of *GoogleCloudBillingAnomaliesV1betaAnomaly or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingAnomaliesV1betaAnomaly.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAnomaliesGetCall) Fields ¶
func (c *ProjectsAnomaliesGetCall) Fields(s ...googleapi.Field) *ProjectsAnomaliesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAnomaliesGetCall) Header ¶
func (c *ProjectsAnomaliesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAnomaliesGetCall) IfNoneMatch ¶
func (c *ProjectsAnomaliesGetCall) IfNoneMatch(entityTag string) *ProjectsAnomaliesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsAnomaliesListCall ¶
type ProjectsAnomaliesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAnomaliesListCall) Context ¶
func (c *ProjectsAnomaliesListCall) Context(ctx context.Context) *ProjectsAnomaliesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAnomaliesListCall) Do ¶
func (c *ProjectsAnomaliesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse, error)
Do executes the "cloudbilling.projects.anomalies.list" call. Exactly one of *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse.ServerResponse .Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAnomaliesListCall) Fields ¶
func (c *ProjectsAnomaliesListCall) Fields(s ...googleapi.Field) *ProjectsAnomaliesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAnomaliesListCall) Filter ¶
func (c *ProjectsAnomaliesListCall) Filter(filter string) *ProjectsAnomaliesListCall
Filter sets the optional parameter "filter": Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days' anomalies. Examples: - start_time = "20231201" AND end_time = "20240120" .
func (*ProjectsAnomaliesListCall) Header ¶
func (c *ProjectsAnomaliesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAnomaliesListCall) IfNoneMatch ¶
func (c *ProjectsAnomaliesListCall) IfNoneMatch(entityTag string) *ProjectsAnomaliesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAnomaliesListCall) PageSize ¶
func (c *ProjectsAnomaliesListCall) PageSize(pageSize int64) *ProjectsAnomaliesListCall
PageSize sets the optional parameter "pageSize": Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.
func (*ProjectsAnomaliesListCall) PageToken ¶
func (c *ProjectsAnomaliesListCall) PageToken(pageToken string) *ProjectsAnomaliesListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*ProjectsAnomaliesListCall) Pages ¶
func (c *ProjectsAnomaliesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingAnomaliesV1betaListAnomaliesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsAnomaliesService ¶
type ProjectsAnomaliesService struct {
// contains filtered or unexported fields
}
func NewProjectsAnomaliesService ¶
func NewProjectsAnomaliesService(s *Service) *ProjectsAnomaliesService
func (*ProjectsAnomaliesService) Get ¶
func (r *ProjectsAnomaliesService) Get(name string) *ProjectsAnomaliesGetCall
Get: Gets an anomaly for a billing account or a project.
- name: Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}.
func (*ProjectsAnomaliesService) List ¶
func (r *ProjectsAnomaliesService) List(parent string) *ProjectsAnomaliesListCall
List: Lists anomalies for a billing account or a project.
- parent: The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}.
type ProjectsService ¶
type ProjectsService struct { Anomalies *ProjectsAnomaliesService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type Rate ¶
type Rate struct { // Tiers: The service tiers. Tiers []*RateTier `json:"tiers,omitempty"` // Unit: The SKU's pricing unit. For example, if the tier price is $1 // per 1000000 Bytes, then this field will show 'By'. The `start_amount` // field in each tier will be in this unit. Unit string `json:"unit,omitempty"` // UnitCount: The SKU's count for the pricing unit. For example, if the // tier price is $1 per 1000000 Bytes, then this column will show // 1000000. UnitCount float64 `json:"unitCount,omitempty"` // ForceSendFields is a list of field names (e.g. "Tiers") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Tiers") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Rate: A SKU price consisting of tiered rates.
func (*Rate) MarshalJSON ¶
func (*Rate) UnmarshalJSON ¶
type RateTier ¶
type RateTier struct { // Price: The price for this tier. Price *Money `json:"price,omitempty"` // StartAmount: The magnitude of usage in which the tier interval // begins. Example: "From 100 GiBi the price is $1 per byte" implies // `start_amount` = 100 StartAmount float64 `json:"startAmount,omitempty"` // ForceSendFields is a list of field names (e.g. "Price") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Price") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RateTier: Pricing details for a service tier.
func (*RateTier) MarshalJSON ¶
func (*RateTier) UnmarshalJSON ¶
type Regional ¶
type Regional struct { // Name: The location name // (https://cloud.google.com/storage/docs/locations#available-locations). // For example: "us-central1" for region. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Regional: Area contains only one location.
func (*Regional) MarshalJSON ¶
type ScenarioConfig ¶
type ScenarioConfig struct { // EstimateDuration: Time frame for the estimate. Workloads must specify // usage for this duration. Duration must be at least 1 hour (3,600 // seconds) and at most 10 years (315,360,000 seconds). The calculations // for years and months are based on a 730-hour (2,628,000-second) // month. For durations longer than one month (2,628,000 seconds), the // duration is rounded up to the next month, so the estimate shows you // the costs for full months. For example, a duration of 3,232,800 // seconds (roughly 5 weeks) is rounded up to 2 months. EstimateDuration string `json:"estimateDuration,omitempty"` // ForceSendFields is a list of field names (e.g. "EstimateDuration") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EstimateDuration") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ScenarioConfig: Configuration for a CostScenario. Specifies how costs are calculated.
func (*ScenarioConfig) MarshalJSON ¶
func (s *ScenarioConfig) MarshalJSON() ([]byte, error)
type SegmentCostEstimate ¶
type SegmentCostEstimate struct { // CommitmentCostEstimates: Estimated costs for each commitment. CommitmentCostEstimates []*CommitmentCostEstimate `json:"commitmentCostEstimates,omitempty"` // SegmentStartTime: Timestamp for the start of the segment. SegmentStartTime *EstimationTimePoint `json:"segmentStartTime,omitempty"` // SegmentTotalCostEstimate: Total estimated costs for the time segment. SegmentTotalCostEstimate *CostEstimate `json:"segmentTotalCostEstimate,omitempty"` // WorkloadCostEstimates: Estimated costs for each workload. WorkloadCostEstimates []*WorkloadCostEstimate `json:"workloadCostEstimates,omitempty"` // ForceSendFields is a list of field names (e.g. // "CommitmentCostEstimates") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CommitmentCostEstimates") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SegmentCostEstimate: Workload cost estimates for a single time segment.
func (*SegmentCostEstimate) MarshalJSON ¶
func (s *SegmentCostEstimate) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment BillingAccounts *BillingAccountsService Projects *ProjectsService SkuGroups *SkuGroupsService Skus *SkusService V1beta *V1betaService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type Sku ¶
type Sku struct { // DisplayName: The display name for the SKU. Example: A2 Instance Core // running in Americas DisplayName string `json:"displayName,omitempty"` // Prices: A timeline of prices for a SKU in chronological order. Note: // The API currently only supports using a constant price for the entire // estimation time frame so this list will contain a single value. Prices []*Price `json:"prices,omitempty"` // Sku: The resource name for the SKU. Example: // "services/DA34-426B-A397/skus/AA95-CD31-42FE" Sku string `json:"sku,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Sku: Information about SKUs appearing in the cost estimate.
func (*Sku) MarshalJSON ¶
type SkuCostEstimate ¶
type SkuCostEstimate struct { // CostEstimate: The estimated cost for the usage on this SKU. CostEstimate *CostEstimate `json:"costEstimate,omitempty"` // Sku: The resource name for the SKU. Example: // "services/DA34-426B-A397/skus/AA95-CD31-42FE" More information about // the SKU can be found in the `skus` field of the // `CostEstimationResult`. Sku string `json:"sku,omitempty"` // UsageAmount: The amount of usage on this SKU. UsageAmount float64 `json:"usageAmount,omitempty"` // UsageUnit: The unit for the usage on this SKU. UsageUnit string `json:"usageUnit,omitempty"` // ForceSendFields is a list of field names (e.g. "CostEstimate") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CostEstimate") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SkuCostEstimate: Estimated cost for usage on a SKU.
func (*SkuCostEstimate) MarshalJSON ¶
func (s *SkuCostEstimate) MarshalJSON() ([]byte, error)
func (*SkuCostEstimate) UnmarshalJSON ¶
func (s *SkuCostEstimate) UnmarshalJSON(data []byte) error
type SkuGroupsGetCall ¶
type SkuGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*SkuGroupsGetCall) Context ¶
func (c *SkuGroupsGetCall) Context(ctx context.Context) *SkuGroupsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SkuGroupsGetCall) Do ¶
func (c *SkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupsV1betaSkuGroup, error)
Do executes the "cloudbilling.skuGroups.get" call. Exactly one of *GoogleCloudBillingSkugroupsV1betaSkuGroup or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingSkugroupsV1betaSkuGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SkuGroupsGetCall) Fields ¶
func (c *SkuGroupsGetCall) Fields(s ...googleapi.Field) *SkuGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SkuGroupsGetCall) Header ¶
func (c *SkuGroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SkuGroupsGetCall) IfNoneMatch ¶
func (c *SkuGroupsGetCall) IfNoneMatch(entityTag string) *SkuGroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type SkuGroupsListCall ¶
type SkuGroupsListCall struct {
// contains filtered or unexported fields
}
func (*SkuGroupsListCall) Context ¶
func (c *SkuGroupsListCall) Context(ctx context.Context) *SkuGroupsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SkuGroupsListCall) Do ¶
func (c *SkuGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse, error)
Do executes the "cloudbilling.skuGroups.list" call. Exactly one of *GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse.ServerResponse .Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SkuGroupsListCall) Fields ¶
func (c *SkuGroupsListCall) Fields(s ...googleapi.Field) *SkuGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SkuGroupsListCall) Header ¶
func (c *SkuGroupsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SkuGroupsListCall) IfNoneMatch ¶
func (c *SkuGroupsListCall) IfNoneMatch(entityTag string) *SkuGroupsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*SkuGroupsListCall) PageSize ¶
func (c *SkuGroupsListCall) PageSize(pageSize int64) *SkuGroupsListCall
PageSize sets the optional parameter "pageSize": Maximum number of SKU groups to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.
func (*SkuGroupsListCall) PageToken ¶
func (c *SkuGroupsListCall) PageToken(pageToken string) *SkuGroupsListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListSkuGroups call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*SkuGroupsListCall) Pages ¶
func (c *SkuGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type SkuGroupsService ¶
type SkuGroupsService struct { Skus *SkuGroupsSkusService // contains filtered or unexported fields }
func NewSkuGroupsService ¶
func NewSkuGroupsService(s *Service) *SkuGroupsService
func (*SkuGroupsService) Get ¶
func (r *SkuGroupsService) Get(name string) *SkuGroupsGetCall
Get: Gets a publicly listed SKU group.
- name: The name of the SKU group to retrieve. Format: skuGroups/{sku_group}.
func (*SkuGroupsService) List ¶
func (r *SkuGroupsService) List() *SkuGroupsListCall
List: Lists all publicly listed SKU groups.
type SkuGroupsSkusGetCall ¶
type SkuGroupsSkusGetCall struct {
// contains filtered or unexported fields
}
func (*SkuGroupsSkusGetCall) Context ¶
func (c *SkuGroupsSkusGetCall) Context(ctx context.Context) *SkuGroupsSkusGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SkuGroupsSkusGetCall) Do ¶
func (c *SkuGroupsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupskusV1betaSkuGroupSku, error)
Do executes the "cloudbilling.skuGroups.skus.get" call. Exactly one of *GoogleCloudBillingSkugroupskusV1betaSkuGroupSku or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingSkugroupskusV1betaSkuGroupSku.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SkuGroupsSkusGetCall) Fields ¶
func (c *SkuGroupsSkusGetCall) Fields(s ...googleapi.Field) *SkuGroupsSkusGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SkuGroupsSkusGetCall) Header ¶
func (c *SkuGroupsSkusGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SkuGroupsSkusGetCall) IfNoneMatch ¶
func (c *SkuGroupsSkusGetCall) IfNoneMatch(entityTag string) *SkuGroupsSkusGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type SkuGroupsSkusListCall ¶
type SkuGroupsSkusListCall struct {
// contains filtered or unexported fields
}
func (*SkuGroupsSkusListCall) Context ¶
func (c *SkuGroupsSkusListCall) Context(ctx context.Context) *SkuGroupsSkusListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SkuGroupsSkusListCall) Do ¶
func (c *SkuGroupsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse, error)
Do executes the "cloudbilling.skuGroups.skus.list" call. Exactly one of *GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse.ServerRe sponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SkuGroupsSkusListCall) Fields ¶
func (c *SkuGroupsSkusListCall) Fields(s ...googleapi.Field) *SkuGroupsSkusListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SkuGroupsSkusListCall) Header ¶
func (c *SkuGroupsSkusListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SkuGroupsSkusListCall) IfNoneMatch ¶
func (c *SkuGroupsSkusListCall) IfNoneMatch(entityTag string) *SkuGroupsSkusListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*SkuGroupsSkusListCall) PageSize ¶
func (c *SkuGroupsSkusListCall) PageSize(pageSize int64) *SkuGroupsSkusListCall
PageSize sets the optional parameter "pageSize": Maximum number of SKU group SKUs to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.
func (*SkuGroupsSkusListCall) PageToken ¶
func (c *SkuGroupsSkusListCall) PageToken(pageToken string) *SkuGroupsSkusListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListSkuGroupSkus call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*SkuGroupsSkusListCall) Pages ¶
func (c *SkuGroupsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type SkuGroupsSkusService ¶
type SkuGroupsSkusService struct {
// contains filtered or unexported fields
}
func NewSkuGroupsSkusService ¶
func NewSkuGroupsSkusService(s *Service) *SkuGroupsSkusService
func (*SkuGroupsSkusService) Get ¶
func (r *SkuGroupsSkusService) Get(name string) *SkuGroupsSkusGetCall
Get: Gets a publicly listed SKU that is part of a publicly listed SKU group.
- name: The name of the SKU group SKU to retrieve. Format: skuGroups/{sku_group}/skus/{sku}.
func (*SkuGroupsSkusService) List ¶
func (r *SkuGroupsSkusService) List(parent string) *SkuGroupsSkusListCall
List: Lists all publicly listed SKUs contained by a publicly listed SKU group.
- parent: The SkuGroup to list SkuGroupSku from. Format: skuGroups/{sku_group}.
type SkusPriceGetCall ¶
type SkusPriceGetCall struct {
// contains filtered or unexported fields
}
func (*SkusPriceGetCall) Context ¶
func (c *SkusPriceGetCall) Context(ctx context.Context) *SkusPriceGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SkusPriceGetCall) CurrencyCode ¶
func (c *SkusPriceGetCall) CurrencyCode(currencyCode string) *SkusPriceGetCall
CurrencyCode sets the optional parameter "currencyCode": ISO-4217 currency code for the price. If not specified, USD will be used.
func (*SkusPriceGetCall) Do ¶
func (c *SkusPriceGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingPricesV1betaPrice, error)
Do executes the "cloudbilling.skus.price.get" call. Exactly one of *GoogleCloudBillingPricesV1betaPrice or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingPricesV1betaPrice.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SkusPriceGetCall) Fields ¶
func (c *SkusPriceGetCall) Fields(s ...googleapi.Field) *SkusPriceGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SkusPriceGetCall) Header ¶
func (c *SkusPriceGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SkusPriceGetCall) IfNoneMatch ¶
func (c *SkusPriceGetCall) IfNoneMatch(entityTag string) *SkusPriceGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type SkusPriceService ¶
type SkusPriceService struct {
// contains filtered or unexported fields
}
func NewSkusPriceService ¶
func NewSkusPriceService(s *Service) *SkusPriceService
func (*SkusPriceService) Get ¶
func (r *SkusPriceService) Get(name string) *SkusPriceGetCall
Get: Gets the latest price for the given SKU.
- name: Name of the latest price to retrieve. Format: skus/{sku}/price.
type SkusPricesListCall ¶
type SkusPricesListCall struct {
// contains filtered or unexported fields
}
func (*SkusPricesListCall) Context ¶
func (c *SkusPricesListCall) Context(ctx context.Context) *SkusPricesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*SkusPricesListCall) CurrencyCode ¶
func (c *SkusPricesListCall) CurrencyCode(currencyCode string) *SkusPricesListCall
CurrencyCode sets the optional parameter "currencyCode": ISO-4217 currency code for the price. If not specified, USD will be used.
func (*SkusPricesListCall) Do ¶
func (c *SkusPricesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingPricesV1betaListPricesResponse, error)
Do executes the "cloudbilling.skus.prices.list" call. Exactly one of *GoogleCloudBillingPricesV1betaListPricesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudBillingPricesV1betaListPricesResponse.ServerResponse.Heade r or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*SkusPricesListCall) Fields ¶
func (c *SkusPricesListCall) Fields(s ...googleapi.Field) *SkusPricesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SkusPricesListCall) Header ¶
func (c *SkusPricesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SkusPricesListCall) IfNoneMatch ¶
func (c *SkusPricesListCall) IfNoneMatch(entityTag string) *SkusPricesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*SkusPricesListCall) PageSize ¶
func (c *SkusPricesListCall) PageSize(pageSize int64) *SkusPricesListCall
PageSize sets the optional parameter "pageSize": Maximum number of prices to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.
func (*SkusPricesListCall) PageToken ¶
func (c *SkusPricesListCall) PageToken(pageToken string) *SkusPricesListCall
PageToken sets the optional parameter "pageToken": Page token received from a previous ListPrices call to retrieve the next page of results. If this field is empty, the first page is returned.
func (*SkusPricesListCall) Pages ¶
func (c *SkusPricesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingPricesV1betaListPricesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type SkusPricesService ¶
type SkusPricesService struct {
// contains filtered or unexported fields
}
func NewSkusPricesService ¶
func NewSkusPricesService(s *Service) *SkusPricesService
func (*SkusPricesService) List ¶
func (r *SkusPricesService) List(parent string) *SkusPricesListCall
List: Lists the latest prices for all SKUs.
- parent: To list the prices for all SKUs, use `-` as the SKU ID. Format: `skus/-` Specifying a specific SKU ID returns a collection with one Price object for the SKU.
type SkusService ¶
type SkusService struct { Price *SkusPriceService Prices *SkusPricesService // contains filtered or unexported fields }
func NewSkusService ¶
func NewSkusService(s *Service) *SkusService
type StandardTierEgressWorkload ¶
type StandardTierEgressWorkload struct { // EgressRate: Standard Tier Data Transfer usage. The expected units are // GiBy/s, By/s, and so on, based on the The Unified Code for Units of // Measure (https://ucum.org/ucum.html) standard. EgressRate *Usage `json:"egressRate,omitempty"` // SourceRegion: Which region // (https://cloud.google.com/compute/docs/regions-zones) the data is // transferred from. SourceRegion string `json:"sourceRegion,omitempty"` // ForceSendFields is a list of field names (e.g. "EgressRate") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EgressRate") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
StandardTierEgressWorkload: Specify Standard Tier Internet Data Transfer.
func (*StandardTierEgressWorkload) MarshalJSON ¶
func (s *StandardTierEgressWorkload) MarshalJSON() ([]byte, error)
type Usage ¶
type Usage struct { // UsageRateTimeline: A timeline of usage rates over the estimate // interval. UsageRateTimeline *UsageRateTimeline `json:"usageRateTimeline,omitempty"` // ForceSendFields is a list of field names (e.g. "UsageRateTimeline") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "UsageRateTimeline") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Usage: An amount of usage over a time frame.
func (*Usage) MarshalJSON ¶
type UsageRateTimeline ¶
type UsageRateTimeline struct { // Unit: The unit for the usage rate in each timeline entry. If you // provide an incorrect unit for an instance, the correct unit is // provided in the error message. The supported units are a subset of // The Unified Code for Units of Measure (https://ucum.org/ucum.html) // standard: * **Time units (TIME-UNIT)** * `s` second * `min` minute * // `h` hour * `d` day * `wk` week * `mo` month * `yr` year * `ms` // millisecond * `us` microsecond * `ns` nanosecond * **Basic storage // units (BASIC-STORAGE-UNIT)** * `bit` bit * `By` byte * **Count units // (COUNT-UNIT)** * `count` count * **Prefixes (PREFIX)** * `k` kilo // (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` // peta (10^15) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) // * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also // includes these connectors: * `/` division or ratio (as an infix // operator). For example: `kBy/{email}` or `MiBy/10ms`. * `.` // multiplication or composition (as an infix operator). For example: // `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: “` // Expression = Component { "." Component } { "/" Component } ; // Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] | Annotation | // "1" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | COUNT-UNIT // Annotation = "{" NAME "}" ; “` Examples: * Request per second: `1/s` // or `{requests}/s` * GibiBytes: `GiBy` * GibiBytes * seconds: `GiBy.s` Unit string `json:"unit,omitempty"` // UsageRateTimelineEntries: The timeline entries. Each entry has a // start time and usage rate. The start time specifies the effective // time of the usage rate. The entries must be sorted by start time in // an increasing order. UsageRateTimelineEntries []*UsageRateTimelineEntry `json:"usageRateTimelineEntries,omitempty"` // ForceSendFields is a list of field names (e.g. "Unit") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Unit") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UsageRateTimeline: A timeline of usage rates. Consists of a series of entries, each of which specifies a constant rate of usage during a time interval. Each entry contains an effective time. The usage rate is in effect from that time until the effective time of the subsequent entry, or, for the last entry, for the remaining portion of estimation time frame. Effective times are specified as an offset into the estimation time frame. Usage is considered to be zero until the `effective_time` of the first entry. All subsequent entries must have an effective time greater than the previous entry and less than the estimate time frame. The effective time on all entries must be an integer number of hours.
func (*UsageRateTimeline) MarshalJSON ¶
func (s *UsageRateTimeline) MarshalJSON() ([]byte, error)
type UsageRateTimelineEntry ¶
type UsageRateTimelineEntry struct { // EffectiveTime: The effective time for this entry. The usage rate is // in effect starting at this time until the effective time of the // subsequent entry in the timeline. The last entry defines the usage // rate until the end of the `Usage` time frame. Must correspond to an // integer number of hours. EffectiveTime *EstimationTimePoint `json:"effectiveTime,omitempty"` // UsageRate: The usage rate. UsageRate float64 `json:"usageRate,omitempty"` // ForceSendFields is a list of field names (e.g. "EffectiveTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EffectiveTime") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UsageRateTimelineEntry: A usage rate timeline entry. Each entry specifies a constant usage rate during a time interval.
func (*UsageRateTimelineEntry) MarshalJSON ¶
func (s *UsageRateTimelineEntry) MarshalJSON() ([]byte, error)
func (*UsageRateTimelineEntry) UnmarshalJSON ¶
func (s *UsageRateTimelineEntry) UnmarshalJSON(data []byte) error
type V1betaEstimateCostScenarioCall ¶
type V1betaEstimateCostScenarioCall struct {
// contains filtered or unexported fields
}
func (*V1betaEstimateCostScenarioCall) Context ¶
func (c *V1betaEstimateCostScenarioCall) Context(ctx context.Context) *V1betaEstimateCostScenarioCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*V1betaEstimateCostScenarioCall) Do ¶
func (c *V1betaEstimateCostScenarioCall) Do(opts ...googleapi.CallOption) (*EstimateCostScenarioWithListPriceResponse, error)
Do executes the "cloudbilling.estimateCostScenario" call. Exactly one of *EstimateCostScenarioWithListPriceResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EstimateCostScenarioWithListPriceResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*V1betaEstimateCostScenarioCall) Fields ¶
func (c *V1betaEstimateCostScenarioCall) Fields(s ...googleapi.Field) *V1betaEstimateCostScenarioCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*V1betaEstimateCostScenarioCall) Header ¶
func (c *V1betaEstimateCostScenarioCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type V1betaService ¶
type V1betaService struct {
// contains filtered or unexported fields
}
func NewV1betaService ¶
func NewV1betaService(s *Service) *V1betaService
func (*V1betaService) EstimateCostScenario ¶
func (r *V1betaService) EstimateCostScenario(estimatecostscenariowithlistpricerequest *EstimateCostScenarioWithListPriceRequest) *V1betaEstimateCostScenarioCall
EstimateCostScenario: Estimate list prices using a `CostScenario` without a defined `billingAccount`.
type VlanAttachment ¶
type VlanAttachment struct { // Bandwidth: Capacities in the pricing table // (https://cloud.google.com/vpc/network-pricing#interconnect-pricing) // Examples of capacity are: 50/100/200/300/400/500-Mbps, // 1/2/5/10/20/50-Gbps. // // Possible values: // "BANDWIDTH_UNSPECIFIED" - Unspecified // "BANDWIDTH_BPS_50M" - 50 Mbit/s // "BANDWIDTH_BPS_100M" - 100 Mbit/s // "BANDWIDTH_BPS_200M" - 200 Mbit/s // "BANDWIDTH_BPS_300M" - 300 Mbit/s // "BANDWIDTH_BPS_400M" - 400 Mbit/s // "BANDWIDTH_BPS_500M" - 500 Mbit/s // "BANDWIDTH_BPS_1G" - 1 Gbit/s // "BANDWIDTH_BPS_2G" - 2 Gbit/s // "BANDWIDTH_BPS_5G" - 5 Gbit/s // "BANDWIDTH_BPS_10G" - 10 Gbit/s // "BANDWIDTH_BPS_20G" - 20 Gbit/s // "BANDWIDTH_BPS_50G" - 50 Gbit/s Bandwidth string `json:"bandwidth,omitempty"` // VlanCount: VLAN usage. This is specified as a unitless quantity which // indicates the number of VLAN attachment used in interconnect. VlanCount *Usage `json:"vlanCount,omitempty"` // ForceSendFields is a list of field names (e.g. "Bandwidth") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Bandwidth") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VlanAttachment: VLAN attachment for Cloud Interconnect.
func (*VlanAttachment) MarshalJSON ¶
func (s *VlanAttachment) MarshalJSON() ([]byte, error)
type VmResourceBasedCud ¶
type VmResourceBasedCud struct { // GuestAccelerator: Guest accelerator, known as GPU. GuestAccelerator *GuestAccelerator `json:"guestAccelerator,omitempty"` // MachineSeries: The machine series for CUD. For example: "n1" for // general purpose N1 machine type commitments. "n2" for general purpose // N2 machine type commitments. "e2" for general purpose E2 machine type // commitments. "n2d" for general purpose N2D machine type commitments. // "t2d" for general purpose T2D machine type commitments. "c2"/"c2d" // for compute-optimized commitments. "m1"/"m2" for the memory-optimized // commitments. "a2' for the accelerator-optimized commitments. MachineSeries string `json:"machineSeries,omitempty"` // MemorySizeGb: Memory size of the VM in GB (2^30 bytes). Must be an // increment of 0.25 (256 MB). MemorySizeGb float64 `json:"memorySizeGb,omitempty"` // Plan: Commitment usage plan. // // Possible values: // "COMMITMENT_PLAN_UNSPECIFIED" - Not specified commitment plan. // "TWELVE_MONTH" - 1 year commitment. // "THIRTY_SIX_MONTH" - 3 years commitment. Plan string `json:"plan,omitempty"` // Region: The region where the VM runs. For example: "us-central1" Region string `json:"region,omitempty"` // VirtualCpuCount: The number of vCPUs. The number of vCPUs must be an // integer of 0 or more and can be even or odd. VirtualCpuCount int64 `json:"virtualCpuCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "GuestAccelerator") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GuestAccelerator") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
VmResourceBasedCud: Specifies a resource-based committed use discount (CUD).
func (*VmResourceBasedCud) MarshalJSON ¶
func (s *VmResourceBasedCud) MarshalJSON() ([]byte, error)
func (*VmResourceBasedCud) UnmarshalJSON ¶
func (s *VmResourceBasedCud) UnmarshalJSON(data []byte) error
type VmToVmEgressWorkload ¶
type VmToVmEgressWorkload struct { InterRegionEgress *InterRegionEgress `json:"interRegionEgress,omitempty"` IntraRegionEgress *IntraRegionEgress `json:"intraRegionEgress,omitempty"` // ForceSendFields is a list of field names (e.g. "InterRegionEgress") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InterRegionEgress") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
VmToVmEgressWorkload: Specify VM to VM data transfer.
func (*VmToVmEgressWorkload) MarshalJSON ¶
func (s *VmToVmEgressWorkload) MarshalJSON() ([]byte, error)
type Workload ¶
type Workload struct { // CloudCdnEgressWorkload: Usage on Google Cloud CDN Data Transfer. CloudCdnEgressWorkload *CloudCdnEgressWorkload `json:"cloudCdnEgressWorkload,omitempty"` // CloudCdnWorkload: Usage on Google Cloud CDN. CloudCdnWorkload *CloudCdnWorkload `json:"cloudCdnWorkload,omitempty"` // CloudInterconnectEgressWorkload: Usage on Google Cloud Interconnect // Data Transfer. CloudInterconnectEgressWorkload *CloudInterconnectEgressWorkload `json:"cloudInterconnectEgressWorkload,omitempty"` // CloudInterconnectWorkload: Usage on Google Cloud Interconnect. CloudInterconnectWorkload *CloudInterconnectWorkload `json:"cloudInterconnectWorkload,omitempty"` // CloudStorageEgressWorkload: Usage on Cloud Storage Data Transfer. CloudStorageEgressWorkload *CloudStorageEgressWorkload `json:"cloudStorageEgressWorkload,omitempty"` // CloudStorageWorkload: Usage on Google Cloud Storage. CloudStorageWorkload *CloudStorageWorkload `json:"cloudStorageWorkload,omitempty"` // ComputeVmWorkload: Usage of a Google Compute Engine Virtual Machine. ComputeVmWorkload *ComputeVmWorkload `json:"computeVmWorkload,omitempty"` // Name: Required. A name for this workload. All workloads in a // `CostScenario` must have a unique `name`. Each `name` may be at most // 128 characters long. Name string `json:"name,omitempty"` // PremiumTierEgressWorkload: Usage on Premium Tier Internet Data // Transfer. PremiumTierEgressWorkload *PremiumTierEgressWorkload `json:"premiumTierEgressWorkload,omitempty"` // StandardTierEgressWorkload: Usage on Standard Tier Internet Data // Transfer. StandardTierEgressWorkload *StandardTierEgressWorkload `json:"standardTierEgressWorkload,omitempty"` // VmToVmEgressWorkload: Usage on VM to VM Data Transfer. VmToVmEgressWorkload *VmToVmEgressWorkload `json:"vmToVmEgressWorkload,omitempty"` // ForceSendFields is a list of field names (e.g. // "CloudCdnEgressWorkload") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CloudCdnEgressWorkload") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Workload: Specifies usage on a single Google Cloud product over a time frame. Each Google Cloud product has its own message, containing specific product configuration parameters of the product usage amounts along each dimension in which the product is billed.
func (*Workload) MarshalJSON ¶
type WorkloadCostEstimate ¶
type WorkloadCostEstimate struct { // Name: The name of the workload, as specified in the `CostScenario`. Name string `json:"name,omitempty"` // SkuCostEstimates: Estimated costs for each SKU in the workload. SkuCostEstimates []*SkuCostEstimate `json:"skuCostEstimates,omitempty"` // WorkloadTotalCostEstimate: Total estimated costs for the workload. WorkloadTotalCostEstimate *CostEstimate `json:"workloadTotalCostEstimate,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
WorkloadCostEstimate: Estimated cost for a workload.
func (*WorkloadCostEstimate) MarshalJSON ¶
func (s *WorkloadCostEstimate) MarshalJSON() ([]byte, error)