generated/google/apis/billingbudgets_v1/classes.rb in google-api-client-0.47.0 vs generated/google/apis/billingbudgets_v1/classes.rb in google-api-client-0.48.0
- old
+ new
@@ -117,10 +117,20 @@
# A filter for a budget, limiting the scope of the cost to calculate.
class GoogleCloudBillingBudgetsV1Filter
include Google::Apis::Core::Hashable
+ # Optional. A list of credit types to be subtracted from gross cost to determine
+ # the spend for threshold calculations if and only if credit_types_treatment is
+ # INCLUDE_SPECIFIED_CREDITS. If credit_types_treatment is not
+ # INCLUDE_SPECIFIED_CREDITS, this field must be empty. See credits.type on https:
+ # //cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ # for a list of acceptable credit type values in this field.
+ # Corresponds to the JSON property `creditTypes`
+ # @return [Array<String>]
+ attr_accessor :credit_types
+
# Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
# Corresponds to the JSON property `creditTypesTreatment`
# @return [String]
attr_accessor :credit_types_treatment
@@ -163,9 +173,10 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @credit_types = args[:credit_types] if args.key?(:credit_types)
@credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment)
@labels = args[:labels] if args.key?(:labels)
@projects = args[:projects] if args.key?(:projects)
@services = args[:services] if args.key?(:services)
@subaccounts = args[:subaccounts] if args.key?(:subaccounts)