Class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
- Inherits:
-
Object
- Object
- Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
- 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
AllUpdatesRule defines notifications that are sent on every update to the billing account's spend, regardless of the thresholds defined using threshold rules.
Instance Attribute Summary collapse
-
#pubsub_topic ⇒ String
Required.
-
#schema_version ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
constructor
A new instance of GoogleCloudBillingBudgetsV1beta1AllUpdatesRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
Returns a new instance of GoogleCloudBillingBudgetsV1beta1AllUpdatesRule.
54 55 56 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 54 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pubsub_topic ⇒ String
Required. The name of the Cloud Pub/Sub topic where budget related messages
will be
published, in the form projects/
project_id/topics/
topic_id`. Updates
are sent at regular intervals to the topic.
The topic needs to be created before the budget is created; see
https://cloud.google.com/billing/docs/how-to/budgets#manage-notifications
for more details.
Caller is expected to have
pubsub.topics.setIamPolicypermission on the topic when it's set for a
budget, otherwise, the API call will fail with PERMISSION_DENIED. See
https://cloud.google.com/pubsub/docs/access-control for more details on
Pub/Sub roles and permissions.
Corresponds to the JSON property
pubsubTopic`
45 46 47 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 45 def pubsub_topic @pubsub_topic end |
#schema_version ⇒ String
Required. The schema version of the notification.
Only "1.0" is accepted. It represents the JSON schema as defined in
https://cloud.google.com/billing/docs/how-to/budgets#notification_format
Corresponds to the JSON property schemaVersion
52 53 54 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 52 def schema_version @schema_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
59 60 61 62 |
# File 'generated/google/apis/billingbudgets_v1beta1/classes.rb', line 59 def update!(**args) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) @schema_version = args[:schema_version] if args.key?(:schema_version) end |