Billing Budgets V1beta1 API - Class Google::Cloud::Billing::Budgets::V1beta1::Filter (v0.11.0)

Reference documentation and code samples for the Billing Budgets V1beta1 API class Google::Cloud::Billing::Budgets::V1beta1::Filter.

A filter for a budget, limiting the scope of the cost to calculate.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#calendar_period

def calendar_period() -> ::Google::Cloud::Billing::Budgets::V1beta1::CalendarPeriod
Returns
  • (::Google::Cloud::Billing::Budgets::V1beta1::CalendarPeriod) — Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.

#calendar_period=

def calendar_period=(value) -> ::Google::Cloud::Billing::Budgets::V1beta1::CalendarPeriod
Parameter
  • value (::Google::Cloud::Billing::Budgets::V1beta1::CalendarPeriod) — Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
Returns
  • (::Google::Cloud::Billing::Budgets::V1beta1::CalendarPeriod) — Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.

#credit_types

def credit_types() -> ::Array<::String>
Returns

#credit_types=

def credit_types=(value) -> ::Array<::String>
Parameter
Returns

#credit_types_treatment

def credit_types_treatment() -> ::Google::Cloud::Billing::Budgets::V1beta1::Filter::CreditTypesTreatment
Returns

#credit_types_treatment=

def credit_types_treatment=(value) -> ::Google::Cloud::Billing::Budgets::V1beta1::Filter::CreditTypesTreatment
Parameter
Returns

#custom_period

def custom_period() -> ::Google::Cloud::Billing::Budgets::V1beta1::CustomPeriod
Returns

#custom_period=

def custom_period=(value) -> ::Google::Cloud::Billing::Budgets::V1beta1::CustomPeriod
Parameter
Returns

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::ListValue}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Protobuf::ListValue}) — Optional. A single label and value pair specifying that usage from only this set of labeled resources should be included in the budget. If omitted, the report will include all labeled and unlabeled usage.

    An object containing a single "key": value pair. Example: { "name": "wrench" }.

    Currently, multiple entries or multiple values per entry are not allowed.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::ListValue}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Protobuf::ListValue}) — Optional. A single label and value pair specifying that usage from only this set of labeled resources should be included in the budget. If omitted, the report will include all labeled and unlabeled usage.

    An object containing a single "key": value pair. Example: { "name": "wrench" }.

    Currently, multiple entries or multiple values per entry are not allowed.

Returns
  • (::Google::Protobuf::Map{::String => ::Google::Protobuf::ListValue}) — Optional. A single label and value pair specifying that usage from only this set of labeled resources should be included in the budget. If omitted, the report will include all labeled and unlabeled usage.

    An object containing a single "key": value pair. Example: { "name": "wrench" }.

    Currently, multiple entries or multiple values per entry are not allowed.

#projects

def projects() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. A set of projects of the form projects/{project}, specifying that usage from only this set of projects should be included in the budget. If omitted, the report will include all usage for the billing account, regardless of which project the usage occurred on.

#projects=

def projects=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. A set of projects of the form projects/{project}, specifying that usage from only this set of projects should be included in the budget. If omitted, the report will include all usage for the billing account, regardless of which project the usage occurred on.
Returns
  • (::Array<::String>) — Optional. A set of projects of the form projects/{project}, specifying that usage from only this set of projects should be included in the budget. If omitted, the report will include all usage for the billing account, regardless of which project the usage occurred on.

#resource_ancestors

def resource_ancestors() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. A set of folder and organization names of the form folders/{folderId} or organizations/{organizationId}, specifying that usage from only this set of folders and organizations should be included in the budget. If omitted, the budget includes all usage that the billing account pays for. If the folder or organization contains projects that are paid for by a different Cloud Billing account, the budget doesn't apply to those projects.

#resource_ancestors=

def resource_ancestors=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. A set of folder and organization names of the form folders/{folderId} or organizations/{organizationId}, specifying that usage from only this set of folders and organizations should be included in the budget. If omitted, the budget includes all usage that the billing account pays for. If the folder or organization contains projects that are paid for by a different Cloud Billing account, the budget doesn't apply to those projects.
Returns
  • (::Array<::String>) — Optional. A set of folder and organization names of the form folders/{folderId} or organizations/{organizationId}, specifying that usage from only this set of folders and organizations should be included in the budget. If omitted, the budget includes all usage that the billing account pays for. If the folder or organization contains projects that are paid for by a different Cloud Billing account, the budget doesn't apply to those projects.

#services

def services() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. A set of services of the form services/{service_id}, specifying that usage from only this set of services should be included in the budget. If omitted, the report will include usage for all the services. The service names are available through the Catalog API: https://cloud.google.com/billing/v1/how-tos/catalog-api.

#services=

def services=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. A set of services of the form services/{service_id}, specifying that usage from only this set of services should be included in the budget. If omitted, the report will include usage for all the services. The service names are available through the Catalog API: https://cloud.google.com/billing/v1/how-tos/catalog-api.
Returns
  • (::Array<::String>) — Optional. A set of services of the form services/{service_id}, specifying that usage from only this set of services should be included in the budget. If omitted, the report will include usage for all the services. The service names are available through the Catalog API: https://cloud.google.com/billing/v1/how-tos/catalog-api.

#subaccounts

def subaccounts() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. A set of subaccounts of the form billingAccounts/{account_id}, specifying that usage from only this set of subaccounts should be included in the budget. If a subaccount is set to the name of the parent account, usage from the parent account will be included. If omitted, the report will include usage from the parent account and all subaccounts, if they exist.

#subaccounts=

def subaccounts=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. A set of subaccounts of the form billingAccounts/{account_id}, specifying that usage from only this set of subaccounts should be included in the budget. If a subaccount is set to the name of the parent account, usage from the parent account will be included. If omitted, the report will include usage from the parent account and all subaccounts, if they exist.
Returns
  • (::Array<::String>) — Optional. A set of subaccounts of the form billingAccounts/{account_id}, specifying that usage from only this set of subaccounts should be included in the budget. If a subaccount is set to the name of the parent account, usage from the parent account will be included. If omitted, the report will include usage from the parent account and all subaccounts, if they exist.