google-apis-cloudbilling_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 12cea4cc4410113f8f543a1e519c7796705a3a352aedd8d03286be9edbfe1976
4
+ data.tar.gz: 34166f3666db25099dc3a9f6309b719dc09b2ceea0caa6f96e666a612b3fc03b
5
+ SHA512:
6
+ metadata.gz: 3b1ed69b37ee8f7632d4c7bf3c210ee8bc1e315af0867abc7e2a417a9a4e484bb6bfec0bf0cc953a207701d69da561cb9f3c64cc9b4b34f00b7fd258b67befa5
7
+ data.tar.gz: edbdd0272b0e1d03d2ba7cf75608e03099afddc804773c1430df061b63c38f03c874dcbbeb9885386e821d0841a65739c653c57e179930bae0d9e6efca9332d6
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-cloudbilling_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/cloudbilling_v1/*.rb
9
+ lib/google/apis/cloudbilling_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-cloudbilling_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201017
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1 of the Cloud Billing API
2
+
3
+ This is a simple client library for version V1 of the Cloud Billing API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/cloudbilling.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-cloudbilling_v1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-cloudbilling_v1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/cloudbilling_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::CloudbillingV1::CloudbillingService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Cloudbilling service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Billing API, see the {Google::Apis::CloudbillingV1::CloudbillingService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-cloudbilling_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
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
+
82
+ The [product documentation](https://cloud.google.com/billing/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
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. Currently, this means Ruby 2.5 and later. 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
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/cloudbilling_v1"
@@ -0,0 +1,43 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/cloudbilling_v1/service.rb'
16
+ require 'google/apis/cloudbilling_v1/classes.rb'
17
+ require 'google/apis/cloudbilling_v1/representations.rb'
18
+ require 'google/apis/cloudbilling_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Billing API
23
+ #
24
+ # Allows developers to manage billing for their Google Cloud Platform projects
25
+ # programmatically.
26
+ #
27
+ # @see https://cloud.google.com/billing/
28
+ module CloudbillingV1
29
+ # Version of the Cloud Billing API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1'
32
+
33
+ # View and manage your Google Cloud Platform billing accounts
34
+ AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing'
35
+
36
+ # View your Google Cloud Platform billing accounts
37
+ AUTH_CLOUD_BILLING_READONLY = 'https://www.googleapis.com/auth/cloud-billing.readonly'
38
+
39
+ # View and manage your data across Google Cloud Platform services
40
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,1002 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudbillingV1
24
+
25
+ # Represents the aggregation level and interval for pricing of a single SKU.
26
+ class AggregationInfo
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The number of intervals to aggregate over. Example: If aggregation_level is "
30
+ # DAILY" and aggregation_count is 14, aggregation will be over 14 days.
31
+ # Corresponds to the JSON property `aggregationCount`
32
+ # @return [Fixnum]
33
+ attr_accessor :aggregation_count
34
+
35
+ #
36
+ # Corresponds to the JSON property `aggregationInterval`
37
+ # @return [String]
38
+ attr_accessor :aggregation_interval
39
+
40
+ #
41
+ # Corresponds to the JSON property `aggregationLevel`
42
+ # @return [String]
43
+ attr_accessor :aggregation_level
44
+
45
+ def initialize(**args)
46
+ update!(**args)
47
+ end
48
+
49
+ # Update properties of this object
50
+ def update!(**args)
51
+ @aggregation_count = args[:aggregation_count] if args.key?(:aggregation_count)
52
+ @aggregation_interval = args[:aggregation_interval] if args.key?(:aggregation_interval)
53
+ @aggregation_level = args[:aggregation_level] if args.key?(:aggregation_level)
54
+ end
55
+ end
56
+
57
+ # Specifies the audit configuration for a service. The configuration determines
58
+ # which permission types are logged, and what identities, if any, are exempted
59
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
60
+ # are AuditConfigs for both `allServices` and a specific service, the union of
61
+ # the two AuditConfigs is used for that service: the log_types specified in each
62
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
63
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
64
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
65
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
66
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
67
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
68
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
69
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
70
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
71
+ # DATA_WRITE logging.
72
+ class AuditConfig
73
+ include Google::Apis::Core::Hashable
74
+
75
+ # The configuration for logging of each type of permission.
76
+ # Corresponds to the JSON property `auditLogConfigs`
77
+ # @return [Array<Google::Apis::CloudbillingV1::AuditLogConfig>]
78
+ attr_accessor :audit_log_configs
79
+
80
+ # Specifies a service that will be enabled for audit logging. For example, `
81
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
82
+ # value that covers all services.
83
+ # Corresponds to the JSON property `service`
84
+ # @return [String]
85
+ attr_accessor :service
86
+
87
+ def initialize(**args)
88
+ update!(**args)
89
+ end
90
+
91
+ # Update properties of this object
92
+ def update!(**args)
93
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
94
+ @service = args[:service] if args.key?(:service)
95
+ end
96
+ end
97
+
98
+ # Provides the configuration for logging a type of permissions. Example: ` "
99
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
100
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
101
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
102
+ # DATA_READ logging.
103
+ class AuditLogConfig
104
+ include Google::Apis::Core::Hashable
105
+
106
+ # Specifies the identities that do not cause logging for this type of permission.
107
+ # Follows the same format of Binding.members.
108
+ # Corresponds to the JSON property `exemptedMembers`
109
+ # @return [Array<String>]
110
+ attr_accessor :exempted_members
111
+
112
+ # The log type that this config enables.
113
+ # Corresponds to the JSON property `logType`
114
+ # @return [String]
115
+ attr_accessor :log_type
116
+
117
+ def initialize(**args)
118
+ update!(**args)
119
+ end
120
+
121
+ # Update properties of this object
122
+ def update!(**args)
123
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
124
+ @log_type = args[:log_type] if args.key?(:log_type)
125
+ end
126
+ end
127
+
128
+ # A billing account in the [Google Cloud Console](https://console.cloud.google.
129
+ # com/). You can assign a billing account to one or more projects.
130
+ class BillingAccount
131
+ include Google::Apis::Core::Hashable
132
+
133
+ # The display name given to the billing account, such as `My Billing Account`.
134
+ # This name is displayed in the Google Cloud Console.
135
+ # Corresponds to the JSON property `displayName`
136
+ # @return [String]
137
+ attr_accessor :display_name
138
+
139
+ # If this account is a [subaccount](https://cloud.google.com/billing/docs/
140
+ # concepts), then this will be the resource name of the master billing account
141
+ # that it is being resold through. Otherwise this will be empty.
142
+ # Corresponds to the JSON property `masterBillingAccount`
143
+ # @return [String]
144
+ attr_accessor :master_billing_account
145
+
146
+ # Output only. The resource name of the billing account. The resource name has
147
+ # the form `billingAccounts/`billing_account_id``. For example, `billingAccounts/
148
+ # 012345-567890-ABCDEF` would be the resource name for billing account `012345-
149
+ # 567890-ABCDEF`.
150
+ # Corresponds to the JSON property `name`
151
+ # @return [String]
152
+ attr_accessor :name
153
+
154
+ # Output only. True if the billing account is open, and will therefore be
155
+ # charged for any usage on associated projects. False if the billing account is
156
+ # closed, and therefore projects associated with it will be unable to use paid
157
+ # services.
158
+ # Corresponds to the JSON property `open`
159
+ # @return [Boolean]
160
+ attr_accessor :open
161
+ alias_method :open?, :open
162
+
163
+ def initialize(**args)
164
+ update!(**args)
165
+ end
166
+
167
+ # Update properties of this object
168
+ def update!(**args)
169
+ @display_name = args[:display_name] if args.key?(:display_name)
170
+ @master_billing_account = args[:master_billing_account] if args.key?(:master_billing_account)
171
+ @name = args[:name] if args.key?(:name)
172
+ @open = args[:open] if args.key?(:open)
173
+ end
174
+ end
175
+
176
+ # Associates `members` with a `role`.
177
+ class Binding
178
+ include Google::Apis::Core::Hashable
179
+
180
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
181
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
182
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
183
+ # "Summary size limit" description: "Determines if a summary is less than 100
184
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
185
+ # Requestor is owner" description: "Determines if requestor is the document
186
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
187
+ # Logic): title: "Public documents" description: "Determine whether the document
188
+ # should be publicly visible" expression: "document.type != 'private' &&
189
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
190
+ # string" description: "Create a notification string with a timestamp."
191
+ # expression: "'New message received at ' + string(document.create_time)" The
192
+ # exact variables and functions that may be referenced within an expression are
193
+ # determined by the service that evaluates it. See the service documentation for
194
+ # additional information.
195
+ # Corresponds to the JSON property `condition`
196
+ # @return [Google::Apis::CloudbillingV1::Expr]
197
+ attr_accessor :condition
198
+
199
+ # Specifies the identities requesting access for a Cloud Platform resource. `
200
+ # members` can have the following values: * `allUsers`: A special identifier
201
+ # that represents anyone who is on the internet; with or without a Google
202
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
203
+ # anyone who is authenticated with a Google account or a service account. * `
204
+ # user:`emailid``: An email address that represents a specific Google account.
205
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
206
+ # address that represents a service account. For example, `my-other-app@appspot.
207
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
208
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
209
+ # `uniqueid``: An email address (plus unique identifier) representing a user
210
+ # that has been recently deleted. For example, `alice@example.com?uid=
211
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
212
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
213
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
214
+ # identifier) representing a service account that has been recently deleted. For
215
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
216
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
217
+ # emailid`` and the undeleted service account retains the role in the binding. *
218
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
219
+ # identifier) representing a Google group that has been recently deleted. For
220
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
221
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
222
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
223
+ # primary) that represents all the users of that domain. For example, `google.
224
+ # com` or `example.com`.
225
+ # Corresponds to the JSON property `members`
226
+ # @return [Array<String>]
227
+ attr_accessor :members
228
+
229
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
230
+ # , or `roles/owner`.
231
+ # Corresponds to the JSON property `role`
232
+ # @return [String]
233
+ attr_accessor :role
234
+
235
+ def initialize(**args)
236
+ update!(**args)
237
+ end
238
+
239
+ # Update properties of this object
240
+ def update!(**args)
241
+ @condition = args[:condition] if args.key?(:condition)
242
+ @members = args[:members] if args.key?(:members)
243
+ @role = args[:role] if args.key?(:role)
244
+ end
245
+ end
246
+
247
+ # Represents the category hierarchy of a SKU.
248
+ class Category
249
+ include Google::Apis::Core::Hashable
250
+
251
+ # The type of product the SKU refers to. Example: "Compute", "Storage", "Network"
252
+ # , "ApplicationServices" etc.
253
+ # Corresponds to the JSON property `resourceFamily`
254
+ # @return [String]
255
+ attr_accessor :resource_family
256
+
257
+ # A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "
258
+ # Ops", "GoogleEgress" etc.
259
+ # Corresponds to the JSON property `resourceGroup`
260
+ # @return [String]
261
+ attr_accessor :resource_group
262
+
263
+ # The display name of the service this SKU belongs to.
264
+ # Corresponds to the JSON property `serviceDisplayName`
265
+ # @return [String]
266
+ attr_accessor :service_display_name
267
+
268
+ # Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "
269
+ # Commit1Mo", "Commit1Yr" etc.
270
+ # Corresponds to the JSON property `usageType`
271
+ # @return [String]
272
+ attr_accessor :usage_type
273
+
274
+ def initialize(**args)
275
+ update!(**args)
276
+ end
277
+
278
+ # Update properties of this object
279
+ def update!(**args)
280
+ @resource_family = args[:resource_family] if args.key?(:resource_family)
281
+ @resource_group = args[:resource_group] if args.key?(:resource_group)
282
+ @service_display_name = args[:service_display_name] if args.key?(:service_display_name)
283
+ @usage_type = args[:usage_type] if args.key?(:usage_type)
284
+ end
285
+ end
286
+
287
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
288
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
289
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
290
+ # "Summary size limit" description: "Determines if a summary is less than 100
291
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
292
+ # Requestor is owner" description: "Determines if requestor is the document
293
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
294
+ # Logic): title: "Public documents" description: "Determine whether the document
295
+ # should be publicly visible" expression: "document.type != 'private' &&
296
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
297
+ # string" description: "Create a notification string with a timestamp."
298
+ # expression: "'New message received at ' + string(document.create_time)" The
299
+ # exact variables and functions that may be referenced within an expression are
300
+ # determined by the service that evaluates it. See the service documentation for
301
+ # additional information.
302
+ class Expr
303
+ include Google::Apis::Core::Hashable
304
+
305
+ # Optional. Description of the expression. This is a longer text which describes
306
+ # the expression, e.g. when hovered over it in a UI.
307
+ # Corresponds to the JSON property `description`
308
+ # @return [String]
309
+ attr_accessor :description
310
+
311
+ # Textual representation of an expression in Common Expression Language syntax.
312
+ # Corresponds to the JSON property `expression`
313
+ # @return [String]
314
+ attr_accessor :expression
315
+
316
+ # Optional. String indicating the location of the expression for error reporting,
317
+ # e.g. a file name and a position in the file.
318
+ # Corresponds to the JSON property `location`
319
+ # @return [String]
320
+ attr_accessor :location
321
+
322
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
323
+ # This can be used e.g. in UIs which allow to enter the expression.
324
+ # Corresponds to the JSON property `title`
325
+ # @return [String]
326
+ attr_accessor :title
327
+
328
+ def initialize(**args)
329
+ update!(**args)
330
+ end
331
+
332
+ # Update properties of this object
333
+ def update!(**args)
334
+ @description = args[:description] if args.key?(:description)
335
+ @expression = args[:expression] if args.key?(:expression)
336
+ @location = args[:location] if args.key?(:location)
337
+ @title = args[:title] if args.key?(:title)
338
+ end
339
+ end
340
+
341
+ # Encapsulates the geographic taxonomy data for a sku.
342
+ class GeoTaxonomy
343
+ include Google::Apis::Core::Hashable
344
+
345
+ # The list of regions associated with a sku. Empty for Global skus, which are
346
+ # associated with all Google Cloud regions.
347
+ # Corresponds to the JSON property `regions`
348
+ # @return [Array<String>]
349
+ attr_accessor :regions
350
+
351
+ # The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
352
+ # Corresponds to the JSON property `type`
353
+ # @return [String]
354
+ attr_accessor :type
355
+
356
+ def initialize(**args)
357
+ update!(**args)
358
+ end
359
+
360
+ # Update properties of this object
361
+ def update!(**args)
362
+ @regions = args[:regions] if args.key?(:regions)
363
+ @type = args[:type] if args.key?(:type)
364
+ end
365
+ end
366
+
367
+ # Response message for `ListBillingAccounts`.
368
+ class ListBillingAccountsResponse
369
+ include Google::Apis::Core::Hashable
370
+
371
+ # A list of billing accounts.
372
+ # Corresponds to the JSON property `billingAccounts`
373
+ # @return [Array<Google::Apis::CloudbillingV1::BillingAccount>]
374
+ attr_accessor :billing_accounts
375
+
376
+ # A token to retrieve the next page of results. To retrieve the next page, call `
377
+ # ListBillingAccounts` again with the `page_token` field set to this value. This
378
+ # field is empty if there are no more results to retrieve.
379
+ # Corresponds to the JSON property `nextPageToken`
380
+ # @return [String]
381
+ attr_accessor :next_page_token
382
+
383
+ def initialize(**args)
384
+ update!(**args)
385
+ end
386
+
387
+ # Update properties of this object
388
+ def update!(**args)
389
+ @billing_accounts = args[:billing_accounts] if args.key?(:billing_accounts)
390
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
391
+ end
392
+ end
393
+
394
+ # Request message for `ListProjectBillingInfoResponse`.
395
+ class ListProjectBillingInfoResponse
396
+ include Google::Apis::Core::Hashable
397
+
398
+ # A token to retrieve the next page of results. To retrieve the next page, call `
399
+ # ListProjectBillingInfo` again with the `page_token` field set to this value.
400
+ # This field is empty if there are no more results to retrieve.
401
+ # Corresponds to the JSON property `nextPageToken`
402
+ # @return [String]
403
+ attr_accessor :next_page_token
404
+
405
+ # A list of `ProjectBillingInfo` resources representing the projects associated
406
+ # with the billing account.
407
+ # Corresponds to the JSON property `projectBillingInfo`
408
+ # @return [Array<Google::Apis::CloudbillingV1::ProjectBillingInfo>]
409
+ attr_accessor :project_billing_info
410
+
411
+ def initialize(**args)
412
+ update!(**args)
413
+ end
414
+
415
+ # Update properties of this object
416
+ def update!(**args)
417
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
418
+ @project_billing_info = args[:project_billing_info] if args.key?(:project_billing_info)
419
+ end
420
+ end
421
+
422
+ # Response message for `ListServices`.
423
+ class ListServicesResponse
424
+ include Google::Apis::Core::Hashable
425
+
426
+ # A token to retrieve the next page of results. To retrieve the next page, call `
427
+ # ListServices` again with the `page_token` field set to this value. This field
428
+ # is empty if there are no more results to retrieve.
429
+ # Corresponds to the JSON property `nextPageToken`
430
+ # @return [String]
431
+ attr_accessor :next_page_token
432
+
433
+ # A list of services.
434
+ # Corresponds to the JSON property `services`
435
+ # @return [Array<Google::Apis::CloudbillingV1::Service>]
436
+ attr_accessor :services
437
+
438
+ def initialize(**args)
439
+ update!(**args)
440
+ end
441
+
442
+ # Update properties of this object
443
+ def update!(**args)
444
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
445
+ @services = args[:services] if args.key?(:services)
446
+ end
447
+ end
448
+
449
+ # Response message for `ListSkus`.
450
+ class ListSkusResponse
451
+ include Google::Apis::Core::Hashable
452
+
453
+ # A token to retrieve the next page of results. To retrieve the next page, call `
454
+ # ListSkus` again with the `page_token` field set to this value. This field is
455
+ # empty if there are no more results to retrieve.
456
+ # Corresponds to the JSON property `nextPageToken`
457
+ # @return [String]
458
+ attr_accessor :next_page_token
459
+
460
+ # The list of public SKUs of the given service.
461
+ # Corresponds to the JSON property `skus`
462
+ # @return [Array<Google::Apis::CloudbillingV1::Sku>]
463
+ attr_accessor :skus
464
+
465
+ def initialize(**args)
466
+ update!(**args)
467
+ end
468
+
469
+ # Update properties of this object
470
+ def update!(**args)
471
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
472
+ @skus = args[:skus] if args.key?(:skus)
473
+ end
474
+ end
475
+
476
+ # Represents an amount of money with its currency type.
477
+ class Money
478
+ include Google::Apis::Core::Hashable
479
+
480
+ # The three-letter currency code defined in ISO 4217.
481
+ # Corresponds to the JSON property `currencyCode`
482
+ # @return [String]
483
+ attr_accessor :currency_code
484
+
485
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
486
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
487
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
488
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
489
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
490
+ # Corresponds to the JSON property `nanos`
491
+ # @return [Fixnum]
492
+ attr_accessor :nanos
493
+
494
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
495
+ # 1 unit is one US dollar.
496
+ # Corresponds to the JSON property `units`
497
+ # @return [Fixnum]
498
+ attr_accessor :units
499
+
500
+ def initialize(**args)
501
+ update!(**args)
502
+ end
503
+
504
+ # Update properties of this object
505
+ def update!(**args)
506
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
507
+ @nanos = args[:nanos] if args.key?(:nanos)
508
+ @units = args[:units] if args.key?(:units)
509
+ end
510
+ end
511
+
512
+ # An Identity and Access Management (IAM) policy, which specifies access
513
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
514
+ # A `binding` binds one or more `members` to a single `role`. Members can be
515
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
516
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
517
+ # role or a user-created custom role. For some types of Google Cloud resources,
518
+ # a `binding` can also specify a `condition`, which is a logical expression that
519
+ # allows access to a resource only if the expression evaluates to `true`. A
520
+ # condition can add constraints based on attributes of the request, the resource,
521
+ # or both. To learn which resources support conditions in their IAM policies,
522
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
523
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
524
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
525
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
526
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
527
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
528
+ # title": "expirable access", "description": "Does not grant access after Sep
529
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
530
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
531
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
532
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
533
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
534
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
535
+ # description: Does not grant access after Sep 2020 expression: request.time <
536
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
537
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
538
+ # google.com/iam/docs/).
539
+ class Policy
540
+ include Google::Apis::Core::Hashable
541
+
542
+ # Specifies cloud audit logging configuration for this policy.
543
+ # Corresponds to the JSON property `auditConfigs`
544
+ # @return [Array<Google::Apis::CloudbillingV1::AuditConfig>]
545
+ attr_accessor :audit_configs
546
+
547
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
548
+ # condition` that determines how and when the `bindings` are applied. Each of
549
+ # the `bindings` must contain at least one member.
550
+ # Corresponds to the JSON property `bindings`
551
+ # @return [Array<Google::Apis::CloudbillingV1::Binding>]
552
+ attr_accessor :bindings
553
+
554
+ # `etag` is used for optimistic concurrency control as a way to help prevent
555
+ # simultaneous updates of a policy from overwriting each other. It is strongly
556
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
557
+ # to perform policy updates in order to avoid race conditions: An `etag` is
558
+ # returned in the response to `getIamPolicy`, and systems are expected to put
559
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
560
+ # applied to the same version of the policy. **Important:** If you use IAM
561
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
562
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
563
+ # with a version `1` policy, and all of the conditions in the version `3` policy
564
+ # are lost.
565
+ # Corresponds to the JSON property `etag`
566
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
567
+ # @return [String]
568
+ attr_accessor :etag
569
+
570
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
571
+ # Requests that specify an invalid value are rejected. Any operation that
572
+ # affects conditional role bindings must specify version `3`. This requirement
573
+ # applies to the following operations: * Getting a policy that includes a
574
+ # conditional role binding * Adding a conditional role binding to a policy *
575
+ # Changing a conditional role binding in a policy * Removing any role binding,
576
+ # with or without a condition, from a policy that includes conditions **
577
+ # Important:** If you use IAM Conditions, you must include the `etag` field
578
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
579
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
580
+ # conditions in the version `3` policy are lost. If a policy does not include
581
+ # any conditions, operations on that policy may specify any valid version or
582
+ # leave the field unset. To learn which resources support conditions in their
583
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
584
+ # conditions/resource-policies).
585
+ # Corresponds to the JSON property `version`
586
+ # @return [Fixnum]
587
+ attr_accessor :version
588
+
589
+ def initialize(**args)
590
+ update!(**args)
591
+ end
592
+
593
+ # Update properties of this object
594
+ def update!(**args)
595
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
596
+ @bindings = args[:bindings] if args.key?(:bindings)
597
+ @etag = args[:etag] if args.key?(:etag)
598
+ @version = args[:version] if args.key?(:version)
599
+ end
600
+ end
601
+
602
+ # Expresses a mathematical pricing formula. For Example:- `usage_unit: GBy` `
603
+ # tiered_rates:` `[start_usage_amount: 20, unit_price: $10]` `[
604
+ # start_usage_amount: 100, unit_price: $5]` The above expresses a pricing
605
+ # formula where the first 20GB is free, the next 80GB is priced at $10 per GB
606
+ # followed by $5 per GB for additional usage.
607
+ class PricingExpression
608
+ include Google::Apis::Core::Hashable
609
+
610
+ # The base unit for the SKU which is the unit used in usage exports. Example: "
611
+ # By"
612
+ # Corresponds to the JSON property `baseUnit`
613
+ # @return [String]
614
+ attr_accessor :base_unit
615
+
616
+ # Conversion factor for converting from price per usage_unit to price per
617
+ # base_unit, and start_usage_amount to start_usage_amount in base_unit.
618
+ # unit_price / base_unit_conversion_factor = price per base_unit.
619
+ # start_usage_amount * base_unit_conversion_factor = start_usage_amount in
620
+ # base_unit.
621
+ # Corresponds to the JSON property `baseUnitConversionFactor`
622
+ # @return [Float]
623
+ attr_accessor :base_unit_conversion_factor
624
+
625
+ # The base unit in human readable form. Example: "byte".
626
+ # Corresponds to the JSON property `baseUnitDescription`
627
+ # @return [String]
628
+ attr_accessor :base_unit_description
629
+
630
+ # The recommended quantity of units for displaying pricing info. When displaying
631
+ # pricing info it is recommended to display: (unit_price * display_quantity) per
632
+ # display_quantity usage_unit. This field does not affect the pricing formula
633
+ # and is for display purposes only. Example: If the unit_price is "0.0001 USD",
634
+ # the usage_unit is "GB" and the display_quantity is "1000" then the recommended
635
+ # way of displaying the pricing info is "0.10 USD per 1000 GB"
636
+ # Corresponds to the JSON property `displayQuantity`
637
+ # @return [Float]
638
+ attr_accessor :display_quantity
639
+
640
+ # The list of tiered rates for this pricing. The total cost is computed by
641
+ # applying each of the tiered rates on usage. This repeated list is sorted by
642
+ # ascending order of start_usage_amount.
643
+ # Corresponds to the JSON property `tieredRates`
644
+ # @return [Array<Google::Apis::CloudbillingV1::TierRate>]
645
+ attr_accessor :tiered_rates
646
+
647
+ # The short hand for unit of usage this pricing is specified in. Example:
648
+ # usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
649
+ # Corresponds to the JSON property `usageUnit`
650
+ # @return [String]
651
+ attr_accessor :usage_unit
652
+
653
+ # The unit of usage in human readable form. Example: "gibi byte".
654
+ # Corresponds to the JSON property `usageUnitDescription`
655
+ # @return [String]
656
+ attr_accessor :usage_unit_description
657
+
658
+ def initialize(**args)
659
+ update!(**args)
660
+ end
661
+
662
+ # Update properties of this object
663
+ def update!(**args)
664
+ @base_unit = args[:base_unit] if args.key?(:base_unit)
665
+ @base_unit_conversion_factor = args[:base_unit_conversion_factor] if args.key?(:base_unit_conversion_factor)
666
+ @base_unit_description = args[:base_unit_description] if args.key?(:base_unit_description)
667
+ @display_quantity = args[:display_quantity] if args.key?(:display_quantity)
668
+ @tiered_rates = args[:tiered_rates] if args.key?(:tiered_rates)
669
+ @usage_unit = args[:usage_unit] if args.key?(:usage_unit)
670
+ @usage_unit_description = args[:usage_unit_description] if args.key?(:usage_unit_description)
671
+ end
672
+ end
673
+
674
+ # Represents the pricing information for a SKU at a single point of time.
675
+ class PricingInfo
676
+ include Google::Apis::Core::Hashable
677
+
678
+ # Represents the aggregation level and interval for pricing of a single SKU.
679
+ # Corresponds to the JSON property `aggregationInfo`
680
+ # @return [Google::Apis::CloudbillingV1::AggregationInfo]
681
+ attr_accessor :aggregation_info
682
+
683
+ # Conversion rate used for currency conversion, from USD to the currency
684
+ # specified in the request. This includes any surcharge collected for billing in
685
+ # non USD currency. If a currency is not specified in the request this defaults
686
+ # to 1.0. Example: USD * currency_conversion_rate = JPY
687
+ # Corresponds to the JSON property `currencyConversionRate`
688
+ # @return [Float]
689
+ attr_accessor :currency_conversion_rate
690
+
691
+ # The timestamp from which this pricing was effective within the requested time
692
+ # range. This is guaranteed to be greater than or equal to the start_time field
693
+ # in the request and less than the end_time field in the request. If a time
694
+ # range was not specified in the request this field will be equivalent to a time
695
+ # within the last 12 hours, indicating the latest pricing info.
696
+ # Corresponds to the JSON property `effectiveTime`
697
+ # @return [String]
698
+ attr_accessor :effective_time
699
+
700
+ # Expresses a mathematical pricing formula. For Example:- `usage_unit: GBy` `
701
+ # tiered_rates:` `[start_usage_amount: 20, unit_price: $10]` `[
702
+ # start_usage_amount: 100, unit_price: $5]` The above expresses a pricing
703
+ # formula where the first 20GB is free, the next 80GB is priced at $10 per GB
704
+ # followed by $5 per GB for additional usage.
705
+ # Corresponds to the JSON property `pricingExpression`
706
+ # @return [Google::Apis::CloudbillingV1::PricingExpression]
707
+ attr_accessor :pricing_expression
708
+
709
+ # An optional human readable summary of the pricing information, has a maximum
710
+ # length of 256 characters.
711
+ # Corresponds to the JSON property `summary`
712
+ # @return [String]
713
+ attr_accessor :summary
714
+
715
+ def initialize(**args)
716
+ update!(**args)
717
+ end
718
+
719
+ # Update properties of this object
720
+ def update!(**args)
721
+ @aggregation_info = args[:aggregation_info] if args.key?(:aggregation_info)
722
+ @currency_conversion_rate = args[:currency_conversion_rate] if args.key?(:currency_conversion_rate)
723
+ @effective_time = args[:effective_time] if args.key?(:effective_time)
724
+ @pricing_expression = args[:pricing_expression] if args.key?(:pricing_expression)
725
+ @summary = args[:summary] if args.key?(:summary)
726
+ end
727
+ end
728
+
729
+ # Encapsulation of billing information for a Google Cloud Console project. A
730
+ # project has at most one associated billing account at a time (but a billing
731
+ # account can be assigned to multiple projects).
732
+ class ProjectBillingInfo
733
+ include Google::Apis::Core::Hashable
734
+
735
+ # The resource name of the billing account associated with the project, if any.
736
+ # For example, `billingAccounts/012345-567890-ABCDEF`.
737
+ # Corresponds to the JSON property `billingAccountName`
738
+ # @return [String]
739
+ attr_accessor :billing_account_name
740
+
741
+ # True if the project is associated with an open billing account, to which usage
742
+ # on the project is charged. False if the project is associated with a closed
743
+ # billing account, or no billing account at all, and therefore cannot use paid
744
+ # services. This field is read-only.
745
+ # Corresponds to the JSON property `billingEnabled`
746
+ # @return [Boolean]
747
+ attr_accessor :billing_enabled
748
+ alias_method :billing_enabled?, :billing_enabled
749
+
750
+ # The resource name for the `ProjectBillingInfo`; has the form `projects/`
751
+ # project_id`/billingInfo`. For example, the resource name for the billing
752
+ # information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/
753
+ # billingInfo`. This field is read-only.
754
+ # Corresponds to the JSON property `name`
755
+ # @return [String]
756
+ attr_accessor :name
757
+
758
+ # The ID of the project that this `ProjectBillingInfo` represents, such as `
759
+ # tokyo-rain-123`. This is a convenience field so that you don't need to parse
760
+ # the `name` field to obtain a project ID. This field is read-only.
761
+ # Corresponds to the JSON property `projectId`
762
+ # @return [String]
763
+ attr_accessor :project_id
764
+
765
+ def initialize(**args)
766
+ update!(**args)
767
+ end
768
+
769
+ # Update properties of this object
770
+ def update!(**args)
771
+ @billing_account_name = args[:billing_account_name] if args.key?(:billing_account_name)
772
+ @billing_enabled = args[:billing_enabled] if args.key?(:billing_enabled)
773
+ @name = args[:name] if args.key?(:name)
774
+ @project_id = args[:project_id] if args.key?(:project_id)
775
+ end
776
+ end
777
+
778
+ # Encapsulates a single service in Google Cloud Platform.
779
+ class Service
780
+ include Google::Apis::Core::Hashable
781
+
782
+ # The business under which the service is offered. Ex. "businessEntities/GCP", "
783
+ # businessEntities/Maps"
784
+ # Corresponds to the JSON property `businessEntityName`
785
+ # @return [String]
786
+ attr_accessor :business_entity_name
787
+
788
+ # A human readable display name for this service.
789
+ # Corresponds to the JSON property `displayName`
790
+ # @return [String]
791
+ attr_accessor :display_name
792
+
793
+ # The resource name for the service. Example: "services/DA34-426B-A397"
794
+ # Corresponds to the JSON property `name`
795
+ # @return [String]
796
+ attr_accessor :name
797
+
798
+ # The identifier for the service. Example: "DA34-426B-A397"
799
+ # Corresponds to the JSON property `serviceId`
800
+ # @return [String]
801
+ attr_accessor :service_id
802
+
803
+ def initialize(**args)
804
+ update!(**args)
805
+ end
806
+
807
+ # Update properties of this object
808
+ def update!(**args)
809
+ @business_entity_name = args[:business_entity_name] if args.key?(:business_entity_name)
810
+ @display_name = args[:display_name] if args.key?(:display_name)
811
+ @name = args[:name] if args.key?(:name)
812
+ @service_id = args[:service_id] if args.key?(:service_id)
813
+ end
814
+ end
815
+
816
+ # Request message for `SetIamPolicy` method.
817
+ class SetIamPolicyRequest
818
+ include Google::Apis::Core::Hashable
819
+
820
+ # An Identity and Access Management (IAM) policy, which specifies access
821
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
822
+ # A `binding` binds one or more `members` to a single `role`. Members can be
823
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
824
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
825
+ # role or a user-created custom role. For some types of Google Cloud resources,
826
+ # a `binding` can also specify a `condition`, which is a logical expression that
827
+ # allows access to a resource only if the expression evaluates to `true`. A
828
+ # condition can add constraints based on attributes of the request, the resource,
829
+ # or both. To learn which resources support conditions in their IAM policies,
830
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
831
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
832
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
833
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
834
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
835
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
836
+ # title": "expirable access", "description": "Does not grant access after Sep
837
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
838
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
839
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
840
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
841
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
842
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
843
+ # description: Does not grant access after Sep 2020 expression: request.time <
844
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
845
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
846
+ # google.com/iam/docs/).
847
+ # Corresponds to the JSON property `policy`
848
+ # @return [Google::Apis::CloudbillingV1::Policy]
849
+ attr_accessor :policy
850
+
851
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
852
+ # the fields in the mask will be modified. If no mask is provided, the following
853
+ # default mask is used: `paths: "bindings, etag"`
854
+ # Corresponds to the JSON property `updateMask`
855
+ # @return [String]
856
+ attr_accessor :update_mask
857
+
858
+ def initialize(**args)
859
+ update!(**args)
860
+ end
861
+
862
+ # Update properties of this object
863
+ def update!(**args)
864
+ @policy = args[:policy] if args.key?(:policy)
865
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
866
+ end
867
+ end
868
+
869
+ # Encapsulates a single SKU in Google Cloud Platform
870
+ class Sku
871
+ include Google::Apis::Core::Hashable
872
+
873
+ # Represents the category hierarchy of a SKU.
874
+ # Corresponds to the JSON property `category`
875
+ # @return [Google::Apis::CloudbillingV1::Category]
876
+ attr_accessor :category
877
+
878
+ # A human readable description of the SKU, has a maximum length of 256
879
+ # characters.
880
+ # Corresponds to the JSON property `description`
881
+ # @return [String]
882
+ attr_accessor :description
883
+
884
+ # Encapsulates the geographic taxonomy data for a sku.
885
+ # Corresponds to the JSON property `geoTaxonomy`
886
+ # @return [Google::Apis::CloudbillingV1::GeoTaxonomy]
887
+ attr_accessor :geo_taxonomy
888
+
889
+ # The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-
890
+ # CD31-42FE"
891
+ # Corresponds to the JSON property `name`
892
+ # @return [String]
893
+ attr_accessor :name
894
+
895
+ # A timeline of pricing info for this SKU in chronological order.
896
+ # Corresponds to the JSON property `pricingInfo`
897
+ # @return [Array<Google::Apis::CloudbillingV1::PricingInfo>]
898
+ attr_accessor :pricing_info
899
+
900
+ # Identifies the service provider. This is 'Google' for first party services in
901
+ # Google Cloud Platform.
902
+ # Corresponds to the JSON property `serviceProviderName`
903
+ # @return [String]
904
+ attr_accessor :service_provider_name
905
+
906
+ # List of service regions this SKU is offered at. Example: "asia-east1" Service
907
+ # regions can be found at https://cloud.google.com/about/locations/
908
+ # Corresponds to the JSON property `serviceRegions`
909
+ # @return [Array<String>]
910
+ attr_accessor :service_regions
911
+
912
+ # The identifier for the SKU. Example: "AA95-CD31-42FE"
913
+ # Corresponds to the JSON property `skuId`
914
+ # @return [String]
915
+ attr_accessor :sku_id
916
+
917
+ def initialize(**args)
918
+ update!(**args)
919
+ end
920
+
921
+ # Update properties of this object
922
+ def update!(**args)
923
+ @category = args[:category] if args.key?(:category)
924
+ @description = args[:description] if args.key?(:description)
925
+ @geo_taxonomy = args[:geo_taxonomy] if args.key?(:geo_taxonomy)
926
+ @name = args[:name] if args.key?(:name)
927
+ @pricing_info = args[:pricing_info] if args.key?(:pricing_info)
928
+ @service_provider_name = args[:service_provider_name] if args.key?(:service_provider_name)
929
+ @service_regions = args[:service_regions] if args.key?(:service_regions)
930
+ @sku_id = args[:sku_id] if args.key?(:sku_id)
931
+ end
932
+ end
933
+
934
+ # Request message for `TestIamPermissions` method.
935
+ class TestIamPermissionsRequest
936
+ include Google::Apis::Core::Hashable
937
+
938
+ # The set of permissions to check for the `resource`. Permissions with wildcards
939
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
940
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
941
+ # Corresponds to the JSON property `permissions`
942
+ # @return [Array<String>]
943
+ attr_accessor :permissions
944
+
945
+ def initialize(**args)
946
+ update!(**args)
947
+ end
948
+
949
+ # Update properties of this object
950
+ def update!(**args)
951
+ @permissions = args[:permissions] if args.key?(:permissions)
952
+ end
953
+ end
954
+
955
+ # Response message for `TestIamPermissions` method.
956
+ class TestIamPermissionsResponse
957
+ include Google::Apis::Core::Hashable
958
+
959
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
960
+ # Corresponds to the JSON property `permissions`
961
+ # @return [Array<String>]
962
+ attr_accessor :permissions
963
+
964
+ def initialize(**args)
965
+ update!(**args)
966
+ end
967
+
968
+ # Update properties of this object
969
+ def update!(**args)
970
+ @permissions = args[:permissions] if args.key?(:permissions)
971
+ end
972
+ end
973
+
974
+ # The price rate indicating starting usage and its corresponding price.
975
+ class TierRate
976
+ include Google::Apis::Core::Hashable
977
+
978
+ # Usage is priced at this rate only after this amount. Example:
979
+ # start_usage_amount of 10 indicates that the usage will be priced at the
980
+ # unit_price after the first 10 usage_units.
981
+ # Corresponds to the JSON property `startUsageAmount`
982
+ # @return [Float]
983
+ attr_accessor :start_usage_amount
984
+
985
+ # Represents an amount of money with its currency type.
986
+ # Corresponds to the JSON property `unitPrice`
987
+ # @return [Google::Apis::CloudbillingV1::Money]
988
+ attr_accessor :unit_price
989
+
990
+ def initialize(**args)
991
+ update!(**args)
992
+ end
993
+
994
+ # Update properties of this object
995
+ def update!(**args)
996
+ @start_usage_amount = args[:start_usage_amount] if args.key?(:start_usage_amount)
997
+ @unit_price = args[:unit_price] if args.key?(:unit_price)
998
+ end
999
+ end
1000
+ end
1001
+ end
1002
+ end