google-apis-cloudbilling_v1 0.22.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +71 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/cloudbilling_v1/classes.rb +115 -48
- data/lib/google/apis/cloudbilling_v1/gem_version.rb +3 -3
- data/lib/google/apis/cloudbilling_v1/representations.rb +15 -0
- data/lib/google/apis/cloudbilling_v1/service.rb +284 -10
- data/lib/google/apis/cloudbilling_v1.rb +1 -1
- metadata +7 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f388a4510ce4d309440eca2135f44584250906e35cc7a4283bdc723fe50904a
|
4
|
+
data.tar.gz: 6d0216b0a68cef224493b7cc2dd9b671c026baf6859baf3b635935d61a490c35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c80c9027065d87251a1bcb96395b7245bfdb31496bf8c57d29ed6cbb6bab65617b46086f743cbc14275c0612bb0c86851202b32c9e0957a1dc60a18179e634a9
|
7
|
+
data.tar.gz: 41b37e18b48feb348c5ce1efeeace3311fa9cce37a7c6abacc1b5759433df84feb4261acd3d7c5b105bee5dd7cc0393fa166a20b781e9c8216ce0306113cf899
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,76 @@
|
|
1
1
|
# Release history for google-apis-cloudbilling_v1
|
2
2
|
|
3
|
+
### v0.39.0 (2025-05-04)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.17.0
|
6
|
+
|
7
|
+
### v0.38.0 (2024-10-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241011
|
10
|
+
* Regenerated using generator version 0.15.1
|
11
|
+
|
12
|
+
### v0.37.0 (2024-05-26)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20240517
|
15
|
+
|
16
|
+
### v0.36.0 (2024-05-19)
|
17
|
+
|
18
|
+
* Regenerated using generator version 0.15.0
|
19
|
+
|
20
|
+
### v0.35.0 (2024-02-24)
|
21
|
+
|
22
|
+
* Regenerated using generator version 0.14.0
|
23
|
+
|
24
|
+
### v0.34.0 (2024-01-28)
|
25
|
+
|
26
|
+
* Regenerated from discovery document revision 20240119
|
27
|
+
* Regenerated using generator version 0.13.1
|
28
|
+
|
29
|
+
### v0.33.0 (2024-01-22)
|
30
|
+
|
31
|
+
* Regenerated from discovery document revision 20240112
|
32
|
+
* Regenerated using generator version 0.13.0
|
33
|
+
|
34
|
+
### v0.32.0 (2023-12-24)
|
35
|
+
|
36
|
+
* Regenerated from discovery document revision 20231215
|
37
|
+
|
38
|
+
### v0.31.0 (2023-12-17)
|
39
|
+
|
40
|
+
* Regenerated from discovery document revision 20231208
|
41
|
+
|
42
|
+
### v0.30.0 (2023-11-19)
|
43
|
+
|
44
|
+
* Regenerated from discovery document revision 20231115
|
45
|
+
|
46
|
+
### v0.29.0 (2023-10-29)
|
47
|
+
|
48
|
+
* Regenerated from discovery document revision 20231025
|
49
|
+
|
50
|
+
### v0.28.0 (2023-08-27)
|
51
|
+
|
52
|
+
* Regenerated from discovery document revision 20230813
|
53
|
+
|
54
|
+
### v0.27.0 (2023-08-13)
|
55
|
+
|
56
|
+
* Regenerated from discovery document revision 20230803
|
57
|
+
|
58
|
+
### v0.26.0 (2023-08-03)
|
59
|
+
|
60
|
+
* Regenerated from discovery document revision 20230724
|
61
|
+
|
62
|
+
### v0.25.0 (2023-07-02)
|
63
|
+
|
64
|
+
* Regenerated from discovery document revision 20230629
|
65
|
+
|
66
|
+
### v0.24.0 (2023-06-18)
|
67
|
+
|
68
|
+
* Regenerated from discovery document revision 20230616
|
69
|
+
|
70
|
+
### v0.23.0 (2023-02-26)
|
71
|
+
|
72
|
+
* Regenerated using generator version 0.12.0
|
73
|
+
|
3
74
|
### v0.22.0 (2023-02-05)
|
4
75
|
|
5
76
|
* Regenerated from discovery document revision 20230130
|
data/OVERVIEW.md
CHANGED
@@ -79,13 +79,13 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
|
|
79
79
|
|
80
80
|
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
81
81
|
|
82
|
-
The [product documentation](https://cloud.google.com/billing/) may provide guidance regarding the preferred client library to use.
|
82
|
+
The [product documentation](https://cloud.google.com/billing/docs/apis) may provide guidance regarding the preferred client library to use.
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.1+.
|
87
87
|
|
88
|
-
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life.
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
90
90
|
## License
|
91
91
|
|
@@ -130,6 +130,17 @@ module Google
|
|
130
130
|
class BillingAccount
|
131
131
|
include Google::Apis::Core::Hashable
|
132
132
|
|
133
|
+
# Optional. The currency in which the billing account is billed and charged,
|
134
|
+
# represented as an ISO 4217 code such as `USD`. Billing account currency is
|
135
|
+
# determined at the time of billing account creation and cannot be updated
|
136
|
+
# subsequently, so this field should not be set on update requests. In addition,
|
137
|
+
# a subaccount always matches the currency of its parent billing account, so
|
138
|
+
# this field should not be set on subaccount creation requests. Clients can read
|
139
|
+
# this field to determine the currency of an existing billing account.
|
140
|
+
# Corresponds to the JSON property `currencyCode`
|
141
|
+
# @return [String]
|
142
|
+
attr_accessor :currency_code
|
143
|
+
|
133
144
|
# The display name given to the billing account, such as `My Billing Account`.
|
134
145
|
# This name is displayed in the Google Cloud Console.
|
135
146
|
# Corresponds to the JSON property `displayName`
|
@@ -153,23 +164,34 @@ module Google
|
|
153
164
|
|
154
165
|
# Output only. True if the billing account is open, and will therefore be
|
155
166
|
# charged for any usage on associated projects. False if the billing account is
|
156
|
-
# closed, and therefore projects associated with it
|
167
|
+
# closed, and therefore projects associated with it are unable to use paid
|
157
168
|
# services.
|
158
169
|
# Corresponds to the JSON property `open`
|
159
170
|
# @return [Boolean]
|
160
171
|
attr_accessor :open
|
161
172
|
alias_method :open?, :open
|
162
173
|
|
174
|
+
# Output only. The billing account's parent resource identifier. Use the `
|
175
|
+
# MoveBillingAccount` method to update the account's parent resource if it is a
|
176
|
+
# organization. Format: - `organizations/`organization_id``, for example, `
|
177
|
+
# organizations/12345678` - `billingAccounts/`billing_account_id``, for example,
|
178
|
+
# `billingAccounts/012345-567890-ABCDEF`
|
179
|
+
# Corresponds to the JSON property `parent`
|
180
|
+
# @return [String]
|
181
|
+
attr_accessor :parent
|
182
|
+
|
163
183
|
def initialize(**args)
|
164
184
|
update!(**args)
|
165
185
|
end
|
166
186
|
|
167
187
|
# Update properties of this object
|
168
188
|
def update!(**args)
|
189
|
+
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
169
190
|
@display_name = args[:display_name] if args.key?(:display_name)
|
170
191
|
@master_billing_account = args[:master_billing_account] if args.key?(:master_billing_account)
|
171
192
|
@name = args[:name] if args.key?(:name)
|
172
193
|
@open = args[:open] if args.key?(:open)
|
194
|
+
@parent = args[:parent] if args.key?(:parent)
|
173
195
|
end
|
174
196
|
end
|
175
197
|
|
@@ -212,27 +234,52 @@ module Google
|
|
212
234
|
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
213
235
|
# email address that represents a Google group. For example, `admins@example.com`
|
214
236
|
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
|
215
|
-
# users of that domain. For example, `google.com` or `example.com`. * `
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
237
|
+
# users of that domain. For example, `google.com` or `example.com`. * `principal:
|
238
|
+
# //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
|
239
|
+
# subject_attribute_value``: A single identity in a workforce identity pool. * `
|
240
|
+
# principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
|
241
|
+
# group/`group_id``: All workforce identities in a group. * `principalSet://iam.
|
242
|
+
# googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
|
243
|
+
# attribute_name`/`attribute_value``: All workforce identities with a specific
|
244
|
+
# attribute value. * `principalSet://iam.googleapis.com/locations/global/
|
245
|
+
# workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
|
246
|
+
# principal://iam.googleapis.com/projects/`project_number`/locations/global/
|
247
|
+
# workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
|
248
|
+
# identity in a workload identity pool. * `principalSet://iam.googleapis.com/
|
249
|
+
# projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
|
250
|
+
# group/`group_id``: A workload identity pool group. * `principalSet://iam.
|
251
|
+
# googleapis.com/projects/`project_number`/locations/global/
|
252
|
+
# workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
|
253
|
+
# All identities in a workload identity pool with a certain attribute. * `
|
254
|
+
# principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
|
255
|
+
# workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
|
256
|
+
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
257
|
+
# identifier) representing a user that has been recently deleted. For example, `
|
258
|
+
# alice@example.com?uid=123456789012345678901`. If the user is recovered, this
|
259
|
+
# value reverts to `user:`emailid`` and the recovered user retains the role in
|
260
|
+
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
|
261
|
+
# address (plus unique identifier) representing a service account that has been
|
262
|
+
# recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
223
263
|
# 123456789012345678901`. If the service account is undeleted, this value
|
224
264
|
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
225
265
|
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
226
266
|
# An email address (plus unique identifier) representing a Google group that has
|
227
267
|
# been recently deleted. For example, `admins@example.com?uid=
|
228
268
|
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
229
|
-
# group:`emailid`` and the recovered group retains the role in the binding.
|
269
|
+
# group:`emailid`` and the recovered group retains the role in the binding. * `
|
270
|
+
# deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
|
271
|
+
# pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
|
272
|
+
# workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
|
273
|
+
# locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
|
230
274
|
# Corresponds to the JSON property `members`
|
231
275
|
# @return [Array<String>]
|
232
276
|
attr_accessor :members
|
233
277
|
|
234
278
|
# Role that is assigned to the list of `members`, or principals. For example, `
|
235
|
-
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
279
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
|
280
|
+
# roles and permissions, see the [IAM documentation](https://cloud.google.com/
|
281
|
+
# iam/docs/roles-overview). For a list of the available pre-defined roles, see [
|
282
|
+
# here](https://cloud.google.com/iam/docs/understanding-roles).
|
236
283
|
# Corresponds to the JSON property `role`
|
237
284
|
# @return [String]
|
238
285
|
attr_accessor :role
|
@@ -514,6 +561,26 @@ module Google
|
|
514
561
|
end
|
515
562
|
end
|
516
563
|
|
564
|
+
# Request message for `MoveBillingAccount` RPC.
|
565
|
+
class MoveBillingAccountRequest
|
566
|
+
include Google::Apis::Core::Hashable
|
567
|
+
|
568
|
+
# Required. The resource name of the Organization to move the billing account
|
569
|
+
# under. Must be of the form `organizations/`organization_id``.
|
570
|
+
# Corresponds to the JSON property `destinationParent`
|
571
|
+
# @return [String]
|
572
|
+
attr_accessor :destination_parent
|
573
|
+
|
574
|
+
def initialize(**args)
|
575
|
+
update!(**args)
|
576
|
+
end
|
577
|
+
|
578
|
+
# Update properties of this object
|
579
|
+
def update!(**args)
|
580
|
+
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
|
581
|
+
end
|
582
|
+
end
|
583
|
+
|
517
584
|
# An Identity and Access Management (IAM) policy, which specifies access
|
518
585
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
519
586
|
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
@@ -525,22 +592,22 @@ module Google
|
|
525
592
|
# evaluates to `true`. A condition can add constraints based on attributes of
|
526
593
|
# the request, the resource, or both. To learn which resources support
|
527
594
|
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
528
|
-
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
595
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
529
596
|
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
530
597
|
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
531
598
|
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
532
599
|
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
533
600
|
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
534
601
|
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
535
|
-
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML
|
536
|
-
# bindings: - members: - user:mike@example.com - group:admins@
|
537
|
-
# domain:google.com - serviceAccount:my-project-id@appspot.
|
538
|
-
# role: roles/resourcemanager.organizationAdmin - members: -
|
539
|
-
# com role: roles/resourcemanager.organizationViewer condition:
|
540
|
-
# access description: Does not grant access after Sep 2020
|
541
|
-
# time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
542
|
-
# a description of IAM and its features, see the
|
543
|
-
# cloud.google.com/iam/docs/).
|
602
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
603
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
604
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
605
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
606
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
607
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
608
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
609
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
610
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
544
611
|
class Policy
|
545
612
|
include Google::Apis::Core::Hashable
|
546
613
|
|
@@ -748,26 +815,26 @@ module Google
|
|
748
815
|
# @return [String]
|
749
816
|
attr_accessor :billing_account_name
|
750
817
|
|
751
|
-
# True if the project is associated with an open billing account,
|
752
|
-
# on the project is charged. False if the project is associated
|
753
|
-
# billing account, or no billing account at all, and therefore
|
754
|
-
#
|
818
|
+
# Output only. True if the project is associated with an open billing account,
|
819
|
+
# to which usage on the project is charged. False if the project is associated
|
820
|
+
# with a closed billing account, or no billing account at all, and therefore
|
821
|
+
# cannot use paid services.
|
755
822
|
# Corresponds to the JSON property `billingEnabled`
|
756
823
|
# @return [Boolean]
|
757
824
|
attr_accessor :billing_enabled
|
758
825
|
alias_method :billing_enabled?, :billing_enabled
|
759
826
|
|
760
|
-
# The resource name for the `ProjectBillingInfo`; has the form `
|
761
|
-
# project_id`/billingInfo`. For example, the resource name for the
|
762
|
-
# information for project `tokyo-rain-123` would be `projects/tokyo-rain-
|
763
|
-
# billingInfo`.
|
827
|
+
# Output only. The resource name for the `ProjectBillingInfo`; has the form `
|
828
|
+
# projects/`project_id`/billingInfo`. For example, the resource name for the
|
829
|
+
# billing information for project `tokyo-rain-123` would be `projects/tokyo-rain-
|
830
|
+
# 123/billingInfo`.
|
764
831
|
# Corresponds to the JSON property `name`
|
765
832
|
# @return [String]
|
766
833
|
attr_accessor :name
|
767
834
|
|
768
|
-
# The ID of the project that this `ProjectBillingInfo` represents,
|
769
|
-
# tokyo-rain-123`. This is a convenience field so that you don't need
|
770
|
-
# the `name` field to obtain a project ID.
|
835
|
+
# Output only. The ID of the project that this `ProjectBillingInfo` represents,
|
836
|
+
# such as `tokyo-rain-123`. This is a convenience field so that you don't need
|
837
|
+
# to parse the `name` field to obtain a project ID.
|
771
838
|
# Corresponds to the JSON property `projectId`
|
772
839
|
# @return [String]
|
773
840
|
attr_accessor :project_id
|
@@ -800,12 +867,12 @@ module Google
|
|
800
867
|
# @return [String]
|
801
868
|
attr_accessor :display_name
|
802
869
|
|
803
|
-
# The resource name for the service. Example: "services/
|
870
|
+
# The resource name for the service. Example: "services/6F81-5844-456A"
|
804
871
|
# Corresponds to the JSON property `name`
|
805
872
|
# @return [String]
|
806
873
|
attr_accessor :name
|
807
874
|
|
808
|
-
# The identifier for the service. Example: "
|
875
|
+
# The identifier for the service. Example: "6F81-5844-456A"
|
809
876
|
# Corresponds to the JSON property `serviceId`
|
810
877
|
# @return [String]
|
811
878
|
attr_accessor :service_id
|
@@ -838,22 +905,22 @@ module Google
|
|
838
905
|
# evaluates to `true`. A condition can add constraints based on attributes of
|
839
906
|
# the request, the resource, or both. To learn which resources support
|
840
907
|
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
841
|
-
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
908
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
842
909
|
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
843
910
|
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
844
911
|
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
845
912
|
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
846
913
|
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
847
914
|
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
848
|
-
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML
|
849
|
-
# bindings: - members: - user:mike@example.com - group:admins@
|
850
|
-
# domain:google.com - serviceAccount:my-project-id@appspot.
|
851
|
-
# role: roles/resourcemanager.organizationAdmin - members: -
|
852
|
-
# com role: roles/resourcemanager.organizationViewer condition:
|
853
|
-
# access description: Does not grant access after Sep 2020
|
854
|
-
# time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
855
|
-
# a description of IAM and its features, see the
|
856
|
-
# cloud.google.com/iam/docs/).
|
915
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
916
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
917
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
918
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
919
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
920
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
921
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
922
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
923
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
857
924
|
# Corresponds to the JSON property `policy`
|
858
925
|
# @return [Google::Apis::CloudbillingV1::Policy]
|
859
926
|
attr_accessor :policy
|
@@ -876,7 +943,7 @@ module Google
|
|
876
943
|
end
|
877
944
|
end
|
878
945
|
|
879
|
-
# Encapsulates a single SKU in Google Cloud
|
946
|
+
# Encapsulates a single SKU in Google Cloud
|
880
947
|
class Sku
|
881
948
|
include Google::Apis::Core::Hashable
|
882
949
|
|
@@ -896,8 +963,8 @@ module Google
|
|
896
963
|
# @return [Google::Apis::CloudbillingV1::GeoTaxonomy]
|
897
964
|
attr_accessor :geo_taxonomy
|
898
965
|
|
899
|
-
# The resource name for the SKU. Example: "services/
|
900
|
-
#
|
966
|
+
# The resource name for the SKU. Example: "services/6F81-5844-456A/skus/D041-
|
967
|
+
# B8A1-6E0B"
|
901
968
|
# Corresponds to the JSON property `name`
|
902
969
|
# @return [String]
|
903
970
|
attr_accessor :name
|
@@ -919,7 +986,7 @@ module Google
|
|
919
986
|
# @return [Array<String>]
|
920
987
|
attr_accessor :service_regions
|
921
988
|
|
922
|
-
# The identifier for the SKU. Example: "
|
989
|
+
# The identifier for the SKU. Example: "D041-B8A1-6E0B"
|
923
990
|
# Corresponds to the JSON property `skuId`
|
924
991
|
# @return [String]
|
925
992
|
attr_accessor :sku_id
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudbillingV1
|
18
18
|
# Version of the google-apis-cloudbilling_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.39.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.17.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241011"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class MoveBillingAccountRequest
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class Policy
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -189,10 +195,12 @@ module Google
|
|
189
195
|
class BillingAccount
|
190
196
|
# @private
|
191
197
|
class Representation < Google::Apis::Core::JsonRepresentation
|
198
|
+
property :currency_code, as: 'currencyCode'
|
192
199
|
property :display_name, as: 'displayName'
|
193
200
|
property :master_billing_account, as: 'masterBillingAccount'
|
194
201
|
property :name, as: 'name'
|
195
202
|
property :open, as: 'open'
|
203
|
+
property :parent, as: 'parent'
|
196
204
|
end
|
197
205
|
end
|
198
206
|
|
@@ -279,6 +287,13 @@ module Google
|
|
279
287
|
end
|
280
288
|
end
|
281
289
|
|
290
|
+
class MoveBillingAccountRequest
|
291
|
+
# @private
|
292
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
293
|
+
property :destination_parent, as: 'destinationParent'
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
282
297
|
class Policy
|
283
298
|
# @private
|
284
299
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -31,8 +31,10 @@ module Google
|
|
31
31
|
# Cloudbilling = Google::Apis::CloudbillingV1 # Alias the module
|
32
32
|
# service = Cloudbilling::CloudbillingService.new
|
33
33
|
#
|
34
|
-
# @see https://cloud.google.com/billing/
|
34
|
+
# @see https://cloud.google.com/billing/docs/apis
|
35
35
|
class CloudbillingService < Google::Apis::Core::BaseService
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://cloudbilling.$UNIVERSE_DOMAIN$/"
|
37
|
+
|
36
38
|
# @return [String]
|
37
39
|
# API key. Your API key identifies your project and provides you with API access,
|
38
40
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -44,7 +46,7 @@ module Google
|
|
44
46
|
attr_accessor :quota_user
|
45
47
|
|
46
48
|
def initialize
|
47
|
-
super(
|
49
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
48
50
|
client_name: 'google-apis-cloudbilling_v1',
|
49
51
|
client_version: Google::Apis::CloudbillingV1::GEM_VERSION)
|
50
52
|
@batch_path = 'batch'
|
@@ -60,8 +62,12 @@ module Google
|
|
60
62
|
# permission on the parent account, which is typically given to billing account [
|
61
63
|
# administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
|
62
64
|
# This method will return an error if the parent account has not been
|
63
|
-
# provisioned
|
65
|
+
# provisioned for subaccounts.
|
64
66
|
# @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object
|
67
|
+
# @param [String] parent
|
68
|
+
# Optional. The parent to create a billing account from. Format: - `
|
69
|
+
# billingAccounts/`billing_account_id``, for example, `billingAccounts/012345-
|
70
|
+
# 567890-ABCDEF`
|
65
71
|
# @param [String] fields
|
66
72
|
# Selector specifying which fields to include in a partial response.
|
67
73
|
# @param [String] quota_user
|
@@ -79,12 +85,13 @@ module Google
|
|
79
85
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
80
86
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
81
87
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
82
|
-
def create_billing_account(billing_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
88
|
+
def create_billing_account(billing_account_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
83
89
|
command = make_simple_command(:post, 'v1/billingAccounts', options)
|
84
90
|
command.request_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
85
91
|
command.request_object = billing_account_object
|
86
92
|
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
87
93
|
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
94
|
+
command.query['parent'] = parent unless parent.nil?
|
88
95
|
command.query['fields'] = fields unless fields.nil?
|
89
96
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
97
|
execute_or_queue_command(command, &block)
|
@@ -173,10 +180,10 @@ module Google
|
|
173
180
|
# Lists the billing accounts that the current authenticated user has permission
|
174
181
|
# to [view](https://cloud.google.com/billing/docs/how-to/billing-access).
|
175
182
|
# @param [String] filter
|
176
|
-
# Options for how to filter the returned billing accounts.
|
177
|
-
#
|
178
|
-
#
|
179
|
-
# master_billing_account=billingAccounts/012345-678901-ABCDEF
|
183
|
+
# Options for how to filter the returned billing accounts. This only supports
|
184
|
+
# filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts)
|
185
|
+
# under a single provided parent billing account. (for example, `
|
186
|
+
# master_billing_account=billingAccounts/012345-678901-ABCDEF`). Boolean algebra
|
180
187
|
# and other fields are not currently supported.
|
181
188
|
# @param [Fixnum] page_size
|
182
189
|
# Requested page size. The maximum page size is 100; this is also the default.
|
@@ -184,6 +191,11 @@ module Google
|
|
184
191
|
# A token identifying a page of results to return. This should be a `
|
185
192
|
# next_page_token` value returned from a previous `ListBillingAccounts` call. If
|
186
193
|
# unspecified, the first page of results is returned.
|
194
|
+
# @param [String] parent
|
195
|
+
# Optional. The parent resource to list billing accounts from. Format: - `
|
196
|
+
# organizations/`organization_id``, for example, `organizations/12345678` - `
|
197
|
+
# billingAccounts/`billing_account_id``, for example, `billingAccounts/012345-
|
198
|
+
# 567890-ABCDEF`
|
187
199
|
# @param [String] fields
|
188
200
|
# Selector specifying which fields to include in a partial response.
|
189
201
|
# @param [String] quota_user
|
@@ -201,13 +213,50 @@ module Google
|
|
201
213
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
202
214
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
203
215
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
204
|
-
def list_billing_accounts(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
216
|
+
def list_billing_accounts(filter: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
205
217
|
command = make_simple_command(:get, 'v1/billingAccounts', options)
|
206
218
|
command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation
|
207
219
|
command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse
|
208
220
|
command.query['filter'] = filter unless filter.nil?
|
209
221
|
command.query['pageSize'] = page_size unless page_size.nil?
|
210
222
|
command.query['pageToken'] = page_token unless page_token.nil?
|
223
|
+
command.query['parent'] = parent unless parent.nil?
|
224
|
+
command.query['fields'] = fields unless fields.nil?
|
225
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
226
|
+
execute_or_queue_command(command, &block)
|
227
|
+
end
|
228
|
+
|
229
|
+
# Changes which parent organization a billing account belongs to.
|
230
|
+
# @param [String] name
|
231
|
+
# Required. The resource name of the billing account to move. Must be of the
|
232
|
+
# form `billingAccounts/`billing_account_id``. The specified billing account
|
233
|
+
# cannot be a subaccount, since a subaccount always belongs to the same
|
234
|
+
# organization as its parent account.
|
235
|
+
# @param [Google::Apis::CloudbillingV1::MoveBillingAccountRequest] move_billing_account_request_object
|
236
|
+
# @param [String] fields
|
237
|
+
# Selector specifying which fields to include in a partial response.
|
238
|
+
# @param [String] quota_user
|
239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
241
|
+
# @param [Google::Apis::RequestOptions] options
|
242
|
+
# Request-specific options
|
243
|
+
#
|
244
|
+
# @yield [result, err] Result & error if block supplied
|
245
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::BillingAccount] parsed result object
|
246
|
+
# @yieldparam err [StandardError] error object if request failed
|
247
|
+
#
|
248
|
+
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
249
|
+
#
|
250
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
251
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
252
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
253
|
+
def move_billing_account(name, move_billing_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
254
|
+
command = make_simple_command(:post, 'v1/{+name}:move', options)
|
255
|
+
command.request_representation = Google::Apis::CloudbillingV1::MoveBillingAccountRequest::Representation
|
256
|
+
command.request_object = move_billing_account_request_object
|
257
|
+
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
258
|
+
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
259
|
+
command.params['name'] = name unless name.nil?
|
211
260
|
command.query['fields'] = fields unless fields.nil?
|
212
261
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
213
262
|
execute_or_queue_command(command, &block)
|
@@ -372,6 +421,231 @@ module Google
|
|
372
421
|
execute_or_queue_command(command, &block)
|
373
422
|
end
|
374
423
|
|
424
|
+
# This method creates [billing subaccounts](https://cloud.google.com/billing/
|
425
|
+
# docs/concepts#subaccounts). Google Cloud resellers should use the Channel
|
426
|
+
# Services APIs, [accounts.customers.create](https://cloud.google.com/channel/
|
427
|
+
# docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.
|
428
|
+
# entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/
|
429
|
+
# accounts.customers.entitlements/create). When creating a subaccount, the
|
430
|
+
# current authenticated user must have the `billing.accounts.update` IAM
|
431
|
+
# permission on the parent account, which is typically given to billing account [
|
432
|
+
# administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
|
433
|
+
# This method will return an error if the parent account has not been
|
434
|
+
# provisioned for subaccounts.
|
435
|
+
# @param [String] parent
|
436
|
+
# Optional. The parent to create a billing account from. Format: - `
|
437
|
+
# billingAccounts/`billing_account_id``, for example, `billingAccounts/012345-
|
438
|
+
# 567890-ABCDEF`
|
439
|
+
# @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object
|
440
|
+
# @param [String] fields
|
441
|
+
# Selector specifying which fields to include in a partial response.
|
442
|
+
# @param [String] quota_user
|
443
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
444
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
445
|
+
# @param [Google::Apis::RequestOptions] options
|
446
|
+
# Request-specific options
|
447
|
+
#
|
448
|
+
# @yield [result, err] Result & error if block supplied
|
449
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::BillingAccount] parsed result object
|
450
|
+
# @yieldparam err [StandardError] error object if request failed
|
451
|
+
#
|
452
|
+
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
453
|
+
#
|
454
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
455
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
456
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
457
|
+
def create_billing_account_sub_account(parent, billing_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
458
|
+
command = make_simple_command(:post, 'v1/{+parent}/subAccounts', options)
|
459
|
+
command.request_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
460
|
+
command.request_object = billing_account_object
|
461
|
+
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
462
|
+
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
463
|
+
command.params['parent'] = parent unless parent.nil?
|
464
|
+
command.query['fields'] = fields unless fields.nil?
|
465
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
466
|
+
execute_or_queue_command(command, &block)
|
467
|
+
end
|
468
|
+
|
469
|
+
# Lists the billing accounts that the current authenticated user has permission
|
470
|
+
# to [view](https://cloud.google.com/billing/docs/how-to/billing-access).
|
471
|
+
# @param [String] parent
|
472
|
+
# Optional. The parent resource to list billing accounts from. Format: - `
|
473
|
+
# organizations/`organization_id``, for example, `organizations/12345678` - `
|
474
|
+
# billingAccounts/`billing_account_id``, for example, `billingAccounts/012345-
|
475
|
+
# 567890-ABCDEF`
|
476
|
+
# @param [String] filter
|
477
|
+
# Options for how to filter the returned billing accounts. This only supports
|
478
|
+
# filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts)
|
479
|
+
# under a single provided parent billing account. (for example, `
|
480
|
+
# master_billing_account=billingAccounts/012345-678901-ABCDEF`). Boolean algebra
|
481
|
+
# and other fields are not currently supported.
|
482
|
+
# @param [Fixnum] page_size
|
483
|
+
# Requested page size. The maximum page size is 100; this is also the default.
|
484
|
+
# @param [String] page_token
|
485
|
+
# A token identifying a page of results to return. This should be a `
|
486
|
+
# next_page_token` value returned from a previous `ListBillingAccounts` call. If
|
487
|
+
# unspecified, the first page of results is returned.
|
488
|
+
# @param [String] fields
|
489
|
+
# Selector specifying which fields to include in a partial response.
|
490
|
+
# @param [String] quota_user
|
491
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
492
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
493
|
+
# @param [Google::Apis::RequestOptions] options
|
494
|
+
# Request-specific options
|
495
|
+
#
|
496
|
+
# @yield [result, err] Result & error if block supplied
|
497
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::ListBillingAccountsResponse] parsed result object
|
498
|
+
# @yieldparam err [StandardError] error object if request failed
|
499
|
+
#
|
500
|
+
# @return [Google::Apis::CloudbillingV1::ListBillingAccountsResponse]
|
501
|
+
#
|
502
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
503
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
504
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
505
|
+
def list_billing_account_sub_accounts(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
506
|
+
command = make_simple_command(:get, 'v1/{+parent}/subAccounts', options)
|
507
|
+
command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation
|
508
|
+
command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse
|
509
|
+
command.params['parent'] = parent unless parent.nil?
|
510
|
+
command.query['filter'] = filter unless filter.nil?
|
511
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
512
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
513
|
+
command.query['fields'] = fields unless fields.nil?
|
514
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
515
|
+
execute_or_queue_command(command, &block)
|
516
|
+
end
|
517
|
+
|
518
|
+
# This method creates [billing subaccounts](https://cloud.google.com/billing/
|
519
|
+
# docs/concepts#subaccounts). Google Cloud resellers should use the Channel
|
520
|
+
# Services APIs, [accounts.customers.create](https://cloud.google.com/channel/
|
521
|
+
# docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.
|
522
|
+
# entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/
|
523
|
+
# accounts.customers.entitlements/create). When creating a subaccount, the
|
524
|
+
# current authenticated user must have the `billing.accounts.update` IAM
|
525
|
+
# permission on the parent account, which is typically given to billing account [
|
526
|
+
# administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
|
527
|
+
# This method will return an error if the parent account has not been
|
528
|
+
# provisioned for subaccounts.
|
529
|
+
# @param [String] parent
|
530
|
+
# Optional. The parent to create a billing account from. Format: - `
|
531
|
+
# billingAccounts/`billing_account_id``, for example, `billingAccounts/012345-
|
532
|
+
# 567890-ABCDEF`
|
533
|
+
# @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object
|
534
|
+
# @param [String] fields
|
535
|
+
# Selector specifying which fields to include in a partial response.
|
536
|
+
# @param [String] quota_user
|
537
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
538
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
539
|
+
# @param [Google::Apis::RequestOptions] options
|
540
|
+
# Request-specific options
|
541
|
+
#
|
542
|
+
# @yield [result, err] Result & error if block supplied
|
543
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::BillingAccount] parsed result object
|
544
|
+
# @yieldparam err [StandardError] error object if request failed
|
545
|
+
#
|
546
|
+
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
547
|
+
#
|
548
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
549
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
550
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
551
|
+
def create_organization_billing_account(parent, billing_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
552
|
+
command = make_simple_command(:post, 'v1/{+parent}/billingAccounts', options)
|
553
|
+
command.request_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
554
|
+
command.request_object = billing_account_object
|
555
|
+
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
556
|
+
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
557
|
+
command.params['parent'] = parent unless parent.nil?
|
558
|
+
command.query['fields'] = fields unless fields.nil?
|
559
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
560
|
+
execute_or_queue_command(command, &block)
|
561
|
+
end
|
562
|
+
|
563
|
+
# Lists the billing accounts that the current authenticated user has permission
|
564
|
+
# to [view](https://cloud.google.com/billing/docs/how-to/billing-access).
|
565
|
+
# @param [String] parent
|
566
|
+
# Optional. The parent resource to list billing accounts from. Format: - `
|
567
|
+
# organizations/`organization_id``, for example, `organizations/12345678` - `
|
568
|
+
# billingAccounts/`billing_account_id``, for example, `billingAccounts/012345-
|
569
|
+
# 567890-ABCDEF`
|
570
|
+
# @param [String] filter
|
571
|
+
# Options for how to filter the returned billing accounts. This only supports
|
572
|
+
# filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts)
|
573
|
+
# under a single provided parent billing account. (for example, `
|
574
|
+
# master_billing_account=billingAccounts/012345-678901-ABCDEF`). Boolean algebra
|
575
|
+
# and other fields are not currently supported.
|
576
|
+
# @param [Fixnum] page_size
|
577
|
+
# Requested page size. The maximum page size is 100; this is also the default.
|
578
|
+
# @param [String] page_token
|
579
|
+
# A token identifying a page of results to return. This should be a `
|
580
|
+
# next_page_token` value returned from a previous `ListBillingAccounts` call. If
|
581
|
+
# unspecified, the first page of results is returned.
|
582
|
+
# @param [String] fields
|
583
|
+
# Selector specifying which fields to include in a partial response.
|
584
|
+
# @param [String] quota_user
|
585
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
586
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
587
|
+
# @param [Google::Apis::RequestOptions] options
|
588
|
+
# Request-specific options
|
589
|
+
#
|
590
|
+
# @yield [result, err] Result & error if block supplied
|
591
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::ListBillingAccountsResponse] parsed result object
|
592
|
+
# @yieldparam err [StandardError] error object if request failed
|
593
|
+
#
|
594
|
+
# @return [Google::Apis::CloudbillingV1::ListBillingAccountsResponse]
|
595
|
+
#
|
596
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
597
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
598
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
599
|
+
def list_organization_billing_accounts(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
600
|
+
command = make_simple_command(:get, 'v1/{+parent}/billingAccounts', options)
|
601
|
+
command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation
|
602
|
+
command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse
|
603
|
+
command.params['parent'] = parent unless parent.nil?
|
604
|
+
command.query['filter'] = filter unless filter.nil?
|
605
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
606
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
607
|
+
command.query['fields'] = fields unless fields.nil?
|
608
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
609
|
+
execute_or_queue_command(command, &block)
|
610
|
+
end
|
611
|
+
|
612
|
+
# Changes which parent organization a billing account belongs to.
|
613
|
+
# @param [String] destination_parent
|
614
|
+
# Required. The resource name of the Organization to move the billing account
|
615
|
+
# under. Must be of the form `organizations/`organization_id``.
|
616
|
+
# @param [String] name
|
617
|
+
# Required. The resource name of the billing account to move. Must be of the
|
618
|
+
# form `billingAccounts/`billing_account_id``. The specified billing account
|
619
|
+
# cannot be a subaccount, since a subaccount always belongs to the same
|
620
|
+
# organization as its parent account.
|
621
|
+
# @param [String] fields
|
622
|
+
# Selector specifying which fields to include in a partial response.
|
623
|
+
# @param [String] quota_user
|
624
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
625
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
626
|
+
# @param [Google::Apis::RequestOptions] options
|
627
|
+
# Request-specific options
|
628
|
+
#
|
629
|
+
# @yield [result, err] Result & error if block supplied
|
630
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::BillingAccount] parsed result object
|
631
|
+
# @yieldparam err [StandardError] error object if request failed
|
632
|
+
#
|
633
|
+
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
634
|
+
#
|
635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
638
|
+
def move_organization_billing_account(destination_parent, name, fields: nil, quota_user: nil, options: nil, &block)
|
639
|
+
command = make_simple_command(:get, 'v1/{+destinationParent}/{+name}:move', options)
|
640
|
+
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
641
|
+
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
642
|
+
command.params['destinationParent'] = destination_parent unless destination_parent.nil?
|
643
|
+
command.params['name'] = name unless name.nil?
|
644
|
+
command.query['fields'] = fields unless fields.nil?
|
645
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
646
|
+
execute_or_queue_command(command, &block)
|
647
|
+
end
|
648
|
+
|
375
649
|
# Gets the billing information for a project. The current authenticated user
|
376
650
|
# must have the `resourcemanager.projects.get` permission for the project, which
|
377
651
|
# can be granted by assigning the [Project Viewer](https://cloud.google.com/iam/
|
@@ -499,7 +773,7 @@ module Google
|
|
499
773
|
|
500
774
|
# Lists all publicly available SKUs for a given cloud service.
|
501
775
|
# @param [String] parent
|
502
|
-
# Required. The name of the service. Example: "services/
|
776
|
+
# Required. The name of the service. Example: "services/6F81-5844-456A"
|
503
777
|
# @param [String] currency_code
|
504
778
|
# The ISO 4217 currency code for the pricing info in the response proto. Will
|
505
779
|
# use the conversion rate as of start_time. Optional. If not specified USD will
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# Allows developers to manage billing for their Google Cloud Platform projects
|
25
25
|
# programmatically.
|
26
26
|
#
|
27
|
-
# @see https://cloud.google.com/billing/
|
27
|
+
# @see https://cloud.google.com/billing/docs/apis
|
28
28
|
module CloudbillingV1
|
29
29
|
# Version of the Cloud Billing API this client connects to.
|
30
30
|
# This is NOT the gem version.
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudbilling_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-apis-core
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.15.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.15.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -58,9 +57,8 @@ licenses:
|
|
58
57
|
metadata:
|
59
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbilling_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbilling_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbilling_v1/v0.39.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbilling_v1
|
63
|
-
post_install_message:
|
64
62
|
rdoc_options: []
|
65
63
|
require_paths:
|
66
64
|
- lib
|
@@ -68,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
66
|
requirements:
|
69
67
|
- - ">="
|
70
68
|
- !ruby/object:Gem::Version
|
71
|
-
version: '
|
69
|
+
version: '3.1'
|
72
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
71
|
requirements:
|
74
72
|
- - ">="
|
75
73
|
- !ruby/object:Gem::Version
|
76
74
|
version: '0'
|
77
75
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.8
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for Cloud Billing API V1
|
82
79
|
test_files: []
|