google-apis-cloudbilling_v1beta 0.22.0 → 0.23.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 +5 -0
- data/lib/google/apis/cloudbilling_v1beta/classes.rb +756 -2268
- data/lib/google/apis/cloudbilling_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/cloudbilling_v1beta/representations.rb +45 -797
- data/lib/google/apis/cloudbilling_v1beta/service.rb +0 -67
- metadata +3 -3
@@ -52,43 +52,6 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
-
# Use custom pricing in the estimate, using a `CostScenario` with a defined `
|
56
|
-
# billingAccount`.
|
57
|
-
# @param [String] billing_account
|
58
|
-
# Resource name of the billing account for the cost estimate. The resource name
|
59
|
-
# has the form `billingAccounts/`billing_account_id``. For example, `
|
60
|
-
# billingAccounts/012345-567890-ABCDEF` is the resource name for billing account
|
61
|
-
# `012345-567890-ABCDEF`. Must be specified.
|
62
|
-
# @param [Google::Apis::CloudbillingV1beta::EstimateCostScenarioForBillingAccountRequest] estimate_cost_scenario_for_billing_account_request_object
|
63
|
-
# @param [String] fields
|
64
|
-
# Selector specifying which fields to include in a partial response.
|
65
|
-
# @param [String] quota_user
|
66
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
67
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
68
|
-
# @param [Google::Apis::RequestOptions] options
|
69
|
-
# Request-specific options
|
70
|
-
#
|
71
|
-
# @yield [result, err] Result & error if block supplied
|
72
|
-
# @yieldparam result [Google::Apis::CloudbillingV1beta::EstimateCostScenarioForBillingAccountResponse] parsed result object
|
73
|
-
# @yieldparam err [StandardError] error object if request failed
|
74
|
-
#
|
75
|
-
# @return [Google::Apis::CloudbillingV1beta::EstimateCostScenarioForBillingAccountResponse]
|
76
|
-
#
|
77
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
79
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
80
|
-
def estimate_cost_scenario_for_billing_account(billing_account, estimate_cost_scenario_for_billing_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
-
command = make_simple_command(:post, 'v1beta/{+billingAccount}:estimateCostScenario', options)
|
82
|
-
command.request_representation = Google::Apis::CloudbillingV1beta::EstimateCostScenarioForBillingAccountRequest::Representation
|
83
|
-
command.request_object = estimate_cost_scenario_for_billing_account_request_object
|
84
|
-
command.response_representation = Google::Apis::CloudbillingV1beta::EstimateCostScenarioForBillingAccountResponse::Representation
|
85
|
-
command.response_class = Google::Apis::CloudbillingV1beta::EstimateCostScenarioForBillingAccountResponse
|
86
|
-
command.params['billingAccount'] = billing_account unless billing_account.nil?
|
87
|
-
command.query['fields'] = fields unless fields.nil?
|
88
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
89
|
-
execute_or_queue_command(command, &block)
|
90
|
-
end
|
91
|
-
|
92
55
|
# Gets a Google Cloud service visible to a billing account.
|
93
56
|
# @param [String] name
|
94
57
|
# Required. The name of the billing account service to retrieve. Format:
|
@@ -669,36 +632,6 @@ module Google
|
|
669
632
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
670
633
|
execute_or_queue_command(command, &block)
|
671
634
|
end
|
672
|
-
|
673
|
-
# Estimate list prices using a `CostScenario` without a defined `billingAccount`.
|
674
|
-
# @param [Google::Apis::CloudbillingV1beta::EstimateCostScenarioWithListPriceRequest] estimate_cost_scenario_with_list_price_request_object
|
675
|
-
# @param [String] fields
|
676
|
-
# Selector specifying which fields to include in a partial response.
|
677
|
-
# @param [String] quota_user
|
678
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
679
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
680
|
-
# @param [Google::Apis::RequestOptions] options
|
681
|
-
# Request-specific options
|
682
|
-
#
|
683
|
-
# @yield [result, err] Result & error if block supplied
|
684
|
-
# @yieldparam result [Google::Apis::CloudbillingV1beta::EstimateCostScenarioWithListPriceResponse] parsed result object
|
685
|
-
# @yieldparam err [StandardError] error object if request failed
|
686
|
-
#
|
687
|
-
# @return [Google::Apis::CloudbillingV1beta::EstimateCostScenarioWithListPriceResponse]
|
688
|
-
#
|
689
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
690
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
691
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
692
|
-
def estimate_cost_scenario_with_list_price(estimate_cost_scenario_with_list_price_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
693
|
-
command = make_simple_command(:post, 'v1beta:estimateCostScenario', options)
|
694
|
-
command.request_representation = Google::Apis::CloudbillingV1beta::EstimateCostScenarioWithListPriceRequest::Representation
|
695
|
-
command.request_object = estimate_cost_scenario_with_list_price_request_object
|
696
|
-
command.response_representation = Google::Apis::CloudbillingV1beta::EstimateCostScenarioWithListPriceResponse::Representation
|
697
|
-
command.response_class = Google::Apis::CloudbillingV1beta::EstimateCostScenarioWithListPriceResponse
|
698
|
-
command.query['fields'] = fields unless fields.nil?
|
699
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
700
|
-
execute_or_queue_command(command, &block)
|
701
|
-
end
|
702
635
|
|
703
636
|
protected
|
704
637
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudbilling_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbilling_v1beta/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbilling_v1beta/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbilling_v1beta/v0.23.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbilling_v1beta
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Cloud Billing API V1beta
|
79
79
|
test_files: []
|