google-apis-billingbudgets_v1beta1 0.24.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/billingbudgets_v1beta1/classes.rb +17 -0
- data/lib/google/apis/billingbudgets_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/billingbudgets_v1beta1/representations.rb +2 -0
- data/lib/google/apis/billingbudgets_v1beta1/service.rb +9 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 671a9837e3812552efecf74771bf8ace4b18bbb94e8ea71104a73708f6fd5ba7
|
4
|
+
data.tar.gz: 95c435fac9d022861ace864e9475a2beb50fe16deebfa4cb468bcba176b9d03b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d943f8feced66a7defb3b9ba0fe594a33d58eeb3e26920c18acac4c68db7371a4523f19d3cb966773b42f58614742fe567da57873281a8049c7c55e1fd36667
|
7
|
+
data.tar.gz: b428b00da97fd037a969263f0c85fdbbc2d6832c4fd970f59f6ff43054338ad773ec4b33808e87f405c0f54f362da1da9042126e59d9e866620c72e5b5c652be
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-billingbudgets_v1beta1
|
2
2
|
|
3
|
+
### v0.26.0 (2023-11-05)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231029
|
6
|
+
|
7
|
+
### v0.25.0 (2023-08-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230818
|
10
|
+
|
3
11
|
### v0.24.0 (2023-07-02)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230624
|
@@ -36,6 +36,16 @@ module Google
|
|
36
36
|
attr_accessor :disable_default_iam_recipients
|
37
37
|
alias_method :disable_default_iam_recipients?, :disable_default_iam_recipients
|
38
38
|
|
39
|
+
# Optional. When set to true, and when the budget has a single project
|
40
|
+
# configured, notifications will be sent to project level recipients of that
|
41
|
+
# project. This field will be ignored if the budget has multiple or no project
|
42
|
+
# configured. Currently, project level recipients are the users with `Owner`
|
43
|
+
# role on a cloud project.
|
44
|
+
# Corresponds to the JSON property `enableProjectLevelRecipients`
|
45
|
+
# @return [Boolean]
|
46
|
+
attr_accessor :enable_project_level_recipients
|
47
|
+
alias_method :enable_project_level_recipients?, :enable_project_level_recipients
|
48
|
+
|
39
49
|
# Optional. Targets to send notifications to when a threshold is exceeded. This
|
40
50
|
# is in addition to default recipients who have billing account IAM roles. The
|
41
51
|
# value is the full REST resource name of a monitoring notification channel with
|
@@ -75,6 +85,7 @@ module Google
|
|
75
85
|
# Update properties of this object
|
76
86
|
def update!(**args)
|
77
87
|
@disable_default_iam_recipients = args[:disable_default_iam_recipients] if args.key?(:disable_default_iam_recipients)
|
88
|
+
@enable_project_level_recipients = args[:enable_project_level_recipients] if args.key?(:enable_project_level_recipients)
|
78
89
|
@monitoring_notification_channels = args[:monitoring_notification_channels] if args.key?(:monitoring_notification_channels)
|
79
90
|
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
|
80
91
|
@schema_version = args[:schema_version] if args.key?(:schema_version)
|
@@ -123,6 +134,11 @@ module Google
|
|
123
134
|
# @return [String]
|
124
135
|
attr_accessor :name
|
125
136
|
|
137
|
+
#
|
138
|
+
# Corresponds to the JSON property `ownershipScope`
|
139
|
+
# @return [String]
|
140
|
+
attr_accessor :ownership_scope
|
141
|
+
|
126
142
|
# Optional. Rules that trigger alerts (notifications of thresholds being crossed)
|
127
143
|
# when spend exceeds the specified percentages of the budget. Optional for `
|
128
144
|
# pubsubTopic` notifications. Required if using email notifications.
|
@@ -142,6 +158,7 @@ module Google
|
|
142
158
|
@display_name = args[:display_name] if args.key?(:display_name)
|
143
159
|
@etag = args[:etag] if args.key?(:etag)
|
144
160
|
@name = args[:name] if args.key?(:name)
|
161
|
+
@ownership_scope = args[:ownership_scope] if args.key?(:ownership_scope)
|
145
162
|
@threshold_rules = args[:threshold_rules] if args.key?(:threshold_rules)
|
146
163
|
end
|
147
164
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module BillingbudgetsV1beta1
|
18
18
|
# Version of the google-apis-billingbudgets_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.26.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231029"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -104,6 +104,7 @@ module Google
|
|
104
104
|
# @private
|
105
105
|
class Representation < Google::Apis::Core::JsonRepresentation
|
106
106
|
property :disable_default_iam_recipients, as: 'disableDefaultIamRecipients'
|
107
|
+
property :enable_project_level_recipients, as: 'enableProjectLevelRecipients'
|
107
108
|
collection :monitoring_notification_channels, as: 'monitoringNotificationChannels'
|
108
109
|
property :pubsub_topic, as: 'pubsubTopic'
|
109
110
|
property :schema_version, as: 'schemaVersion'
|
@@ -122,6 +123,7 @@ module Google
|
|
122
123
|
property :display_name, as: 'displayName'
|
123
124
|
property :etag, as: 'etag'
|
124
125
|
property :name, as: 'name'
|
126
|
+
property :ownership_scope, as: 'ownershipScope'
|
125
127
|
collection :threshold_rules, as: 'thresholdRules', class: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ThresholdRule, decorator: Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ThresholdRule::Representation
|
126
128
|
|
127
129
|
end
|
@@ -165,6 +165,13 @@ module Google
|
|
165
165
|
# Optional. The value returned by the last `ListBudgetsResponse` which indicates
|
166
166
|
# that this is a continuation of a prior `ListBudgets` call, and that the system
|
167
167
|
# should return the next page of data.
|
168
|
+
# @param [String] scope
|
169
|
+
# Optional. Set the scope of the budgets to be returned, in the format of the
|
170
|
+
# resource name. The scope of a budget is the cost that it tracks, such as costs
|
171
|
+
# for a single project, or the costs for all projects in a folder. Only project
|
172
|
+
# scope (in the format of "projects/project-id" or "projects/123") is supported
|
173
|
+
# in this field. When this field is set to a project's resource name, the
|
174
|
+
# budgets returned are tracking the costs for that project.
|
168
175
|
# @param [String] fields
|
169
176
|
# Selector specifying which fields to include in a partial response.
|
170
177
|
# @param [String] quota_user
|
@@ -182,13 +189,14 @@ module Google
|
|
182
189
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
183
190
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
184
191
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
185
|
-
def list_billing_account_budgets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
192
|
+
def list_billing_account_budgets(parent, page_size: nil, page_token: nil, scope: nil, fields: nil, quota_user: nil, options: nil, &block)
|
186
193
|
command = make_simple_command(:get, 'v1beta1/{+parent}/budgets', options)
|
187
194
|
command.response_representation = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse::Representation
|
188
195
|
command.response_class = Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
|
189
196
|
command.params['parent'] = parent unless parent.nil?
|
190
197
|
command.query['pageSize'] = page_size unless page_size.nil?
|
191
198
|
command.query['pageToken'] = page_token unless page_token.nil?
|
199
|
+
command.query['scope'] = scope unless scope.nil?
|
192
200
|
command.query['fields'] = fields unless fields.nil?
|
193
201
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
194
202
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-billingbudgets_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-billingbudgets_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-billingbudgets_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-billingbudgets_v1beta1/v0.26.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-billingbudgets_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Billing Budget API V1beta1
|