google-apis-cloudbilling_v1 0.28.0 → 0.29.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a615bbc81ce4720fd95425af455b815eeb6abbf7acce5d44af686723451fec9
|
4
|
+
data.tar.gz: e9184a3eb61c690cea49126eaa5ff0ea73bf37f14416331e806d6c743771c51e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c6d5fcec8a4d1c6b7161fa1434a6c2903f89e55300cf1b4ad7f54dc1430dd6b992aef7c0aa8e8bea1e39d177335d5e20313e68d24c069d8f832d8aa5542a983
|
7
|
+
data.tar.gz: 0b21add8b98565786e2ab69dc70a58e177aba09a75caacb3b63a5a25812e4b5b0f39d3725f8eeaf3ad8ff16d0f9bab5f80caa4e2869c523b0281aab91434650e
|
data/CHANGELOG.md
CHANGED
@@ -514,6 +514,26 @@ module Google
|
|
514
514
|
end
|
515
515
|
end
|
516
516
|
|
517
|
+
# Request message for `MoveBillingAccount` RPC.
|
518
|
+
class MoveBillingAccountRequest
|
519
|
+
include Google::Apis::Core::Hashable
|
520
|
+
|
521
|
+
# Required. The resource name of the Organization to reparent the billing
|
522
|
+
# account under. Must be of the form `organizations/`organization_id``.
|
523
|
+
# Corresponds to the JSON property `destinationParent`
|
524
|
+
# @return [String]
|
525
|
+
attr_accessor :destination_parent
|
526
|
+
|
527
|
+
def initialize(**args)
|
528
|
+
update!(**args)
|
529
|
+
end
|
530
|
+
|
531
|
+
# Update properties of this object
|
532
|
+
def update!(**args)
|
533
|
+
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
|
534
|
+
end
|
535
|
+
end
|
536
|
+
|
517
537
|
# An Identity and Access Management (IAM) policy, which specifies access
|
518
538
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
519
539
|
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
@@ -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.29.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 = "20231025"
|
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
|
|
@@ -279,6 +285,13 @@ module Google
|
|
279
285
|
end
|
280
286
|
end
|
281
287
|
|
288
|
+
class MoveBillingAccountRequest
|
289
|
+
# @private
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
291
|
+
property :destination_parent, as: 'destinationParent'
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
282
295
|
class Policy
|
283
296
|
# @private
|
284
297
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -62,6 +62,10 @@ module Google
|
|
62
62
|
# This method will return an error if the parent account has not been
|
63
63
|
# provisioned for subaccounts.
|
64
64
|
# @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object
|
65
|
+
# @param [String] parent
|
66
|
+
# Optional. The parent to create a billing account from. Format: - organizations/
|
67
|
+
# `organization_id` eg organizations/12345678 - billingAccounts/`
|
68
|
+
# billing_account_id` eg `billingAccounts/012345-567890-ABCDEF`
|
65
69
|
# @param [String] fields
|
66
70
|
# Selector specifying which fields to include in a partial response.
|
67
71
|
# @param [String] quota_user
|
@@ -79,12 +83,13 @@ module Google
|
|
79
83
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
80
84
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
81
85
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
82
|
-
def create_billing_account(billing_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
86
|
+
def create_billing_account(billing_account_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
83
87
|
command = make_simple_command(:post, 'v1/billingAccounts', options)
|
84
88
|
command.request_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
85
89
|
command.request_object = billing_account_object
|
86
90
|
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
87
91
|
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
92
|
+
command.query['parent'] = parent unless parent.nil?
|
88
93
|
command.query['fields'] = fields unless fields.nil?
|
89
94
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
95
|
execute_or_queue_command(command, &block)
|
@@ -184,6 +189,10 @@ module Google
|
|
184
189
|
# A token identifying a page of results to return. This should be a `
|
185
190
|
# next_page_token` value returned from a previous `ListBillingAccounts` call. If
|
186
191
|
# unspecified, the first page of results is returned.
|
192
|
+
# @param [String] parent
|
193
|
+
# Optional. The parent resource to list billing accounts from. Format: -
|
194
|
+
# organizations/`organization_id` eg organizations/12345678 - billingAccounts/`
|
195
|
+
# billing_account_id` eg `billingAccounts/012345-567890-ABCDEF`
|
187
196
|
# @param [String] fields
|
188
197
|
# Selector specifying which fields to include in a partial response.
|
189
198
|
# @param [String] quota_user
|
@@ -201,13 +210,50 @@ module Google
|
|
201
210
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
202
211
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
203
212
|
# @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)
|
213
|
+
def list_billing_accounts(filter: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
205
214
|
command = make_simple_command(:get, 'v1/billingAccounts', options)
|
206
215
|
command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation
|
207
216
|
command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse
|
208
217
|
command.query['filter'] = filter unless filter.nil?
|
209
218
|
command.query['pageSize'] = page_size unless page_size.nil?
|
210
219
|
command.query['pageToken'] = page_token unless page_token.nil?
|
220
|
+
command.query['parent'] = parent unless parent.nil?
|
221
|
+
command.query['fields'] = fields unless fields.nil?
|
222
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
223
|
+
execute_or_queue_command(command, &block)
|
224
|
+
end
|
225
|
+
|
226
|
+
# Changes which parent organization a billing account belongs to.
|
227
|
+
# @param [String] name
|
228
|
+
# Required. The resource name of the billing account to move. Must be of the
|
229
|
+
# form `billingAccounts/`billing_account_id``. The specified billing account
|
230
|
+
# cannot be a subaccount, since a subaccount always belongs to the same
|
231
|
+
# organization as its parent account.
|
232
|
+
# @param [Google::Apis::CloudbillingV1::MoveBillingAccountRequest] move_billing_account_request_object
|
233
|
+
# @param [String] fields
|
234
|
+
# Selector specifying which fields to include in a partial response.
|
235
|
+
# @param [String] quota_user
|
236
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
237
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
238
|
+
# @param [Google::Apis::RequestOptions] options
|
239
|
+
# Request-specific options
|
240
|
+
#
|
241
|
+
# @yield [result, err] Result & error if block supplied
|
242
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::BillingAccount] parsed result object
|
243
|
+
# @yieldparam err [StandardError] error object if request failed
|
244
|
+
#
|
245
|
+
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
246
|
+
#
|
247
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
248
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
249
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
250
|
+
def move_billing_account(name, move_billing_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
251
|
+
command = make_simple_command(:post, 'v1/{+name}:move', options)
|
252
|
+
command.request_representation = Google::Apis::CloudbillingV1::MoveBillingAccountRequest::Representation
|
253
|
+
command.request_object = move_billing_account_request_object
|
254
|
+
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
255
|
+
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
256
|
+
command.params['name'] = name unless name.nil?
|
211
257
|
command.query['fields'] = fields unless fields.nil?
|
212
258
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
213
259
|
execute_or_queue_command(command, &block)
|
@@ -372,6 +418,229 @@ module Google
|
|
372
418
|
execute_or_queue_command(command, &block)
|
373
419
|
end
|
374
420
|
|
421
|
+
# This method creates [billing subaccounts](https://cloud.google.com/billing/
|
422
|
+
# docs/concepts#subaccounts). Google Cloud resellers should use the Channel
|
423
|
+
# Services APIs, [accounts.customers.create](https://cloud.google.com/channel/
|
424
|
+
# docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.
|
425
|
+
# entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/
|
426
|
+
# accounts.customers.entitlements/create). When creating a subaccount, the
|
427
|
+
# current authenticated user must have the `billing.accounts.update` IAM
|
428
|
+
# permission on the parent account, which is typically given to billing account [
|
429
|
+
# administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
|
430
|
+
# This method will return an error if the parent account has not been
|
431
|
+
# provisioned for subaccounts.
|
432
|
+
# @param [String] parent
|
433
|
+
# Optional. The parent to create a billing account from. Format: - organizations/
|
434
|
+
# `organization_id` eg organizations/12345678 - billingAccounts/`
|
435
|
+
# billing_account_id` eg `billingAccounts/012345-567890-ABCDEF`
|
436
|
+
# @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object
|
437
|
+
# @param [String] fields
|
438
|
+
# Selector specifying which fields to include in a partial response.
|
439
|
+
# @param [String] quota_user
|
440
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
441
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
442
|
+
# @param [Google::Apis::RequestOptions] options
|
443
|
+
# Request-specific options
|
444
|
+
#
|
445
|
+
# @yield [result, err] Result & error if block supplied
|
446
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::BillingAccount] parsed result object
|
447
|
+
# @yieldparam err [StandardError] error object if request failed
|
448
|
+
#
|
449
|
+
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
450
|
+
#
|
451
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
452
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
453
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
454
|
+
def create_billing_account_sub_account(parent, billing_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
455
|
+
command = make_simple_command(:post, 'v1/{+parent}/subAccounts', options)
|
456
|
+
command.request_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
457
|
+
command.request_object = billing_account_object
|
458
|
+
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
459
|
+
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
460
|
+
command.params['parent'] = parent unless parent.nil?
|
461
|
+
command.query['fields'] = fields unless fields.nil?
|
462
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
463
|
+
execute_or_queue_command(command, &block)
|
464
|
+
end
|
465
|
+
|
466
|
+
# Lists the billing accounts that the current authenticated user has permission
|
467
|
+
# to [view](https://cloud.google.com/billing/docs/how-to/billing-access).
|
468
|
+
# @param [String] parent
|
469
|
+
# Optional. The parent resource to list billing accounts from. Format: -
|
470
|
+
# organizations/`organization_id` eg organizations/12345678 - billingAccounts/`
|
471
|
+
# billing_account_id` eg `billingAccounts/012345-567890-ABCDEF`
|
472
|
+
# @param [String] filter
|
473
|
+
# Options for how to filter the returned billing accounts. This only supports
|
474
|
+
# filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts)
|
475
|
+
# under a single provided parent billing account. (e.g. "master_billing_account=
|
476
|
+
# billingAccounts/012345-678901-ABCDEF"). Boolean algebra and other fields are
|
477
|
+
# not currently supported.
|
478
|
+
# @param [Fixnum] page_size
|
479
|
+
# Requested page size. The maximum page size is 100; this is also the default.
|
480
|
+
# @param [String] page_token
|
481
|
+
# A token identifying a page of results to return. This should be a `
|
482
|
+
# next_page_token` value returned from a previous `ListBillingAccounts` call. If
|
483
|
+
# unspecified, the first page of results is returned.
|
484
|
+
# @param [String] fields
|
485
|
+
# Selector specifying which fields to include in a partial response.
|
486
|
+
# @param [String] quota_user
|
487
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
488
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
489
|
+
# @param [Google::Apis::RequestOptions] options
|
490
|
+
# Request-specific options
|
491
|
+
#
|
492
|
+
# @yield [result, err] Result & error if block supplied
|
493
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::ListBillingAccountsResponse] parsed result object
|
494
|
+
# @yieldparam err [StandardError] error object if request failed
|
495
|
+
#
|
496
|
+
# @return [Google::Apis::CloudbillingV1::ListBillingAccountsResponse]
|
497
|
+
#
|
498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
501
|
+
def list_billing_account_sub_accounts(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
502
|
+
command = make_simple_command(:get, 'v1/{+parent}/subAccounts', options)
|
503
|
+
command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation
|
504
|
+
command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse
|
505
|
+
command.params['parent'] = parent unless parent.nil?
|
506
|
+
command.query['filter'] = filter unless filter.nil?
|
507
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
508
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
509
|
+
command.query['fields'] = fields unless fields.nil?
|
510
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
511
|
+
execute_or_queue_command(command, &block)
|
512
|
+
end
|
513
|
+
|
514
|
+
# This method creates [billing subaccounts](https://cloud.google.com/billing/
|
515
|
+
# docs/concepts#subaccounts). Google Cloud resellers should use the Channel
|
516
|
+
# Services APIs, [accounts.customers.create](https://cloud.google.com/channel/
|
517
|
+
# docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.
|
518
|
+
# entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/
|
519
|
+
# accounts.customers.entitlements/create). When creating a subaccount, the
|
520
|
+
# current authenticated user must have the `billing.accounts.update` IAM
|
521
|
+
# permission on the parent account, which is typically given to billing account [
|
522
|
+
# administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
|
523
|
+
# This method will return an error if the parent account has not been
|
524
|
+
# provisioned for subaccounts.
|
525
|
+
# @param [String] parent
|
526
|
+
# Optional. The parent to create a billing account from. Format: - organizations/
|
527
|
+
# `organization_id` eg organizations/12345678 - billingAccounts/`
|
528
|
+
# billing_account_id` eg `billingAccounts/012345-567890-ABCDEF`
|
529
|
+
# @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object
|
530
|
+
# @param [String] fields
|
531
|
+
# Selector specifying which fields to include in a partial response.
|
532
|
+
# @param [String] quota_user
|
533
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
534
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
535
|
+
# @param [Google::Apis::RequestOptions] options
|
536
|
+
# Request-specific options
|
537
|
+
#
|
538
|
+
# @yield [result, err] Result & error if block supplied
|
539
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::BillingAccount] parsed result object
|
540
|
+
# @yieldparam err [StandardError] error object if request failed
|
541
|
+
#
|
542
|
+
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
543
|
+
#
|
544
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
545
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
546
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
547
|
+
def create_organization_billing_account(parent, billing_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
548
|
+
command = make_simple_command(:post, 'v1/{+parent}/billingAccounts', options)
|
549
|
+
command.request_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
550
|
+
command.request_object = billing_account_object
|
551
|
+
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
552
|
+
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
553
|
+
command.params['parent'] = parent unless parent.nil?
|
554
|
+
command.query['fields'] = fields unless fields.nil?
|
555
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
556
|
+
execute_or_queue_command(command, &block)
|
557
|
+
end
|
558
|
+
|
559
|
+
# Lists the billing accounts that the current authenticated user has permission
|
560
|
+
# to [view](https://cloud.google.com/billing/docs/how-to/billing-access).
|
561
|
+
# @param [String] parent
|
562
|
+
# Optional. The parent resource to list billing accounts from. Format: -
|
563
|
+
# organizations/`organization_id` eg organizations/12345678 - billingAccounts/`
|
564
|
+
# billing_account_id` eg `billingAccounts/012345-567890-ABCDEF`
|
565
|
+
# @param [String] filter
|
566
|
+
# Options for how to filter the returned billing accounts. This only supports
|
567
|
+
# filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts)
|
568
|
+
# under a single provided parent billing account. (e.g. "master_billing_account=
|
569
|
+
# billingAccounts/012345-678901-ABCDEF"). Boolean algebra and other fields are
|
570
|
+
# not currently supported.
|
571
|
+
# @param [Fixnum] page_size
|
572
|
+
# Requested page size. The maximum page size is 100; this is also the default.
|
573
|
+
# @param [String] page_token
|
574
|
+
# A token identifying a page of results to return. This should be a `
|
575
|
+
# next_page_token` value returned from a previous `ListBillingAccounts` call. If
|
576
|
+
# unspecified, the first page of results is returned.
|
577
|
+
# @param [String] fields
|
578
|
+
# Selector specifying which fields to include in a partial response.
|
579
|
+
# @param [String] quota_user
|
580
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
581
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
582
|
+
# @param [Google::Apis::RequestOptions] options
|
583
|
+
# Request-specific options
|
584
|
+
#
|
585
|
+
# @yield [result, err] Result & error if block supplied
|
586
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::ListBillingAccountsResponse] parsed result object
|
587
|
+
# @yieldparam err [StandardError] error object if request failed
|
588
|
+
#
|
589
|
+
# @return [Google::Apis::CloudbillingV1::ListBillingAccountsResponse]
|
590
|
+
#
|
591
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
592
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
593
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
594
|
+
def list_organization_billing_accounts(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
595
|
+
command = make_simple_command(:get, 'v1/{+parent}/billingAccounts', options)
|
596
|
+
command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation
|
597
|
+
command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse
|
598
|
+
command.params['parent'] = parent unless parent.nil?
|
599
|
+
command.query['filter'] = filter unless filter.nil?
|
600
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
601
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
602
|
+
command.query['fields'] = fields unless fields.nil?
|
603
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
604
|
+
execute_or_queue_command(command, &block)
|
605
|
+
end
|
606
|
+
|
607
|
+
# Changes which parent organization a billing account belongs to.
|
608
|
+
# @param [String] destination_parent
|
609
|
+
# Required. The resource name of the Organization to reparent the billing
|
610
|
+
# account under. Must be of the form `organizations/`organization_id``.
|
611
|
+
# @param [String] name
|
612
|
+
# Required. The resource name of the billing account to move. Must be of the
|
613
|
+
# form `billingAccounts/`billing_account_id``. The specified billing account
|
614
|
+
# cannot be a subaccount, since a subaccount always belongs to the same
|
615
|
+
# organization as its parent account.
|
616
|
+
# @param [String] fields
|
617
|
+
# Selector specifying which fields to include in a partial response.
|
618
|
+
# @param [String] quota_user
|
619
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
620
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
621
|
+
# @param [Google::Apis::RequestOptions] options
|
622
|
+
# Request-specific options
|
623
|
+
#
|
624
|
+
# @yield [result, err] Result & error if block supplied
|
625
|
+
# @yieldparam result [Google::Apis::CloudbillingV1::BillingAccount] parsed result object
|
626
|
+
# @yieldparam err [StandardError] error object if request failed
|
627
|
+
#
|
628
|
+
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
629
|
+
#
|
630
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
631
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
632
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
633
|
+
def move_organization_billing_account(destination_parent, name, fields: nil, quota_user: nil, options: nil, &block)
|
634
|
+
command = make_simple_command(:get, 'v1/{+destinationParent}/{+name}:move', options)
|
635
|
+
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
636
|
+
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
637
|
+
command.params['destinationParent'] = destination_parent unless destination_parent.nil?
|
638
|
+
command.params['name'] = name unless name.nil?
|
639
|
+
command.query['fields'] = fields unless fields.nil?
|
640
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
641
|
+
execute_or_queue_command(command, &block)
|
642
|
+
end
|
643
|
+
|
375
644
|
# Gets the billing information for a project. The current authenticated user
|
376
645
|
# must have the `resourcemanager.projects.get` permission for the project, which
|
377
646
|
# can be granted by assigning the [Project Viewer](https://cloud.google.com/iam/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.29.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-10-29 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-cloudbilling_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbilling_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbilling_v1/v0.29.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbilling_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|