google-apis-cloudbilling_v1 0.28.0 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7928f56780dd536b066a60b9cf96164d9bf0fa30d36fc0793fe6034dcecfdb7
4
- data.tar.gz: d8dcd5fd9e8f3149a62c1854943a0f2e2c7e7a6edfcafab0148f434b4fa41be7
3
+ metadata.gz: 470b160b56cc1baa53356740f5528feed58359f476134a591832a9fd88007fb1
4
+ data.tar.gz: '0915db38e43b4277e0c1bd75e89c4a31c743b022adf08136f87730bc0a51bc7c'
5
5
  SHA512:
6
- metadata.gz: dfe4540e8b450d6dac07ab828a83df1a48c9ef34c91d001cb110ec5caa11b58bdf7804a045e6336dc158febc55a0e1bb1db1cc56bfa683d73aca61b69439b468
7
- data.tar.gz: 8c1c2322cb2b30940497a787fced530bbd6c047a3efd75eb42138582888b2657c87ece2812204ac92fa297acbf5dc74a4fa33d4231d4ca11422d4f6b13be53cf
6
+ metadata.gz: 891024d298b011d5b5398f5d93651e0e5c654f7db52ecf9cc2e155db9fd6a21190f922735f2a227461e797ccfa09886c10e4c582b98257dcfe2bdf99bcf94269
7
+ data.tar.gz: 6d3f986014945bcd328bb982d4708916f345dc7d82058015a502f464e8c141f10b21d9eed29429e6d24e5e3c6a21dbfac7ab377c5c3e054570f48be4b94a9b6a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudbilling_v1
2
2
 
3
+ ### v0.30.0 (2023-11-19)
4
+
5
+ * Regenerated from discovery document revision 20231115
6
+
7
+ ### v0.29.0 (2023-10-29)
8
+
9
+ * Regenerated from discovery document revision 20231025
10
+
3
11
  ### v0.28.0 (2023-08-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20230813
@@ -160,6 +160,15 @@ module Google
160
160
  attr_accessor :open
161
161
  alias_method :open?, :open
162
162
 
163
+ # Output only. The billing account's parent resource identifier. Use the `
164
+ # MoveBillingAccount` method to update the account's parent resource if it is a
165
+ # organization. Format: - organizations/`organization_id`, for example:
166
+ # organizations/12345678 - billingAccounts/`billing_account_id`, for example: `
167
+ # billingAccounts/012345-567890-ABCDEF`
168
+ # Corresponds to the JSON property `parent`
169
+ # @return [String]
170
+ attr_accessor :parent
171
+
163
172
  def initialize(**args)
164
173
  update!(**args)
165
174
  end
@@ -170,6 +179,7 @@ module Google
170
179
  @master_billing_account = args[:master_billing_account] if args.key?(:master_billing_account)
171
180
  @name = args[:name] if args.key?(:name)
172
181
  @open = args[:open] if args.key?(:open)
182
+ @parent = args[:parent] if args.key?(:parent)
173
183
  end
174
184
  end
175
185
 
@@ -514,6 +524,26 @@ module Google
514
524
  end
515
525
  end
516
526
 
527
+ # Request message for `MoveBillingAccount` RPC.
528
+ class MoveBillingAccountRequest
529
+ include Google::Apis::Core::Hashable
530
+
531
+ # Required. The resource name of the Organization to reparent the billing
532
+ # account under. Must be of the form `organizations/`organization_id``.
533
+ # Corresponds to the JSON property `destinationParent`
534
+ # @return [String]
535
+ attr_accessor :destination_parent
536
+
537
+ def initialize(**args)
538
+ update!(**args)
539
+ end
540
+
541
+ # Update properties of this object
542
+ def update!(**args)
543
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
544
+ end
545
+ end
546
+
517
547
  # An Identity and Access Management (IAM) policy, which specifies access
518
548
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
519
549
  # 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.28.0"
19
+ GEM_VERSION = "0.30.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 = "20230813"
25
+ REVISION = "20231115"
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
 
@@ -193,6 +199,7 @@ module Google
193
199
  property :master_billing_account, as: 'masterBillingAccount'
194
200
  property :name, as: 'name'
195
201
  property :open, as: 'open'
202
+ property :parent, as: 'parent'
196
203
  end
197
204
  end
198
205
 
@@ -279,6 +286,13 @@ module Google
279
286
  end
280
287
  end
281
288
 
289
+ class MoveBillingAccountRequest
290
+ # @private
291
+ class Representation < Google::Apis::Core::JsonRepresentation
292
+ property :destination_parent, as: 'destinationParent'
293
+ end
294
+ end
295
+
282
296
  class Policy
283
297
  # @private
284
298
  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.28.0
4
+ version: 0.30.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-08-27 00:00:00.000000000 Z
11
+ date: 2023-11-19 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.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbilling_v1/v0.30.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: []