Class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Filter
- Inherits:
-
Object
- Object
- Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1Filter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/billingbudgets_v1beta1/classes.rb,
generated/google/apis/billingbudgets_v1beta1/representations.rb,
generated/google/apis/billingbudgets_v1beta1/representations.rb
Overview
A filter for a budget, limiting the scope of the cost to calculate.
Instance Attribute Summary collapse
-
#credit_types_treatment ⇒ String
Optional.
-
#projects ⇒ Array<String>
Optional.
-
#services ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1beta1Filter
constructor
A new instance of GoogleCloudBillingBudgetsV1beta1Filter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1beta1Filter
Returns a new instance of GoogleCloudBillingBudgetsV1beta1Filter.
212 213 214 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 212 def initialize(**args) update!(**args) end |
Instance Attribute Details
#credit_types_treatment ⇒ String
Optional. If not set, default behavior is INCLUDE_ALL_CREDITS
.
Corresponds to the JSON property creditTypesTreatment
191 192 193 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 191 def credit_types_treatment @credit_types_treatment end |
#projects ⇒ Array<String>
Optional. A set of projects of the form projects/
project_id`,
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.
Only zero or one project can be specified currently.
Corresponds to the JSON property
projects`
200 201 202 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 200 def projects @projects end |
#services ⇒ 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.
Corresponds to the JSON property
services`
210 211 212 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 210 def services @services end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
217 218 219 220 221 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 217 def update!(**args) @credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment) @projects = args[:projects] if args.key?(:projects) @services = args[:services] if args.key?(:services) end |