google-cloud-billing-v1 0.12.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/billing/v1/cloud_billing/paths.rb +14 -0
- data/lib/google/cloud/billing/v1/cloud_billing_pb.rb +1 -1
- data/lib/google/cloud/billing/v1/version.rb +1 -1
- data/proto_docs/google/cloud/billing/v1/cloud_billing.rb +12 -11
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 287fcba98a40e130202163b9cf3fcf66d9e1777e71840feb31f83731f7e74299
|
4
|
+
data.tar.gz: 8777c438891b0880234b65f6417654c23a06669f816bed2533dc62abf9efd010
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf293587b91d6feca4eb01250d2a6291f882a5833f4289dfc48df85c8459c975b66f52c75bb7a3647a1e3d38c48568fbbcc9627de134ba79c9128350bf422fa3
|
7
|
+
data.tar.gz: b9cfceabb9e6276a0ef7119def0e773f9fcbeee6e4b90268500220ddedf1e3901606ddc1ccf2021c54c49b8e9c302441a112256796bed7d058041eadd20dcc43
|
@@ -38,6 +38,20 @@ module Google
|
|
38
38
|
"billingAccounts/#{billing_account}"
|
39
39
|
end
|
40
40
|
|
41
|
+
##
|
42
|
+
# Create a fully-qualified ProjectBillingInfo resource string.
|
43
|
+
#
|
44
|
+
# The resource will be in the following format:
|
45
|
+
#
|
46
|
+
# `projects/{project}/billingInfo`
|
47
|
+
#
|
48
|
+
# @param project [String]
|
49
|
+
#
|
50
|
+
# @return [::String]
|
51
|
+
def project_billing_info_path project:
|
52
|
+
"projects/#{project}/billingInfo"
|
53
|
+
end
|
54
|
+
|
41
55
|
extend self
|
42
56
|
end
|
43
57
|
end
|
@@ -13,7 +13,7 @@ require 'google/iam/v1/policy_pb'
|
|
13
13
|
require 'google/protobuf/field_mask_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n+google/cloud/billing/v1/cloud_billing.proto\x12\x17google.cloud.billing.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a google/protobuf/field_mask.proto\"\x9b\x01\n\x0e\x42illingAccount\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x11\n\x04open\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1e\n\x16master_billing_account\x18\x04 \x01(\t\"
|
16
|
+
descriptor_data = "\n+google/cloud/billing/v1/cloud_billing.proto\x12\x17google.cloud.billing.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a google/protobuf/field_mask.proto\"\x9b\x01\n\x0e\x42illingAccount\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x11\n\x04open\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1e\n\x16master_billing_account\x18\x04 \x01(\t\"\xd1\x01\n\x12ProjectBillingInfo\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nproject_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x14\x62illing_account_name\x18\x03 \x01(\t\x12\x1c\n\x0f\x62illing_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03:S\xea\x41P\n.cloudbilling.googleapis.com/ProjectBillingInfo\x12\x1eprojects/{project}/billingInfo\"\\\n\x18GetBillingAccountRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\"S\n\x1aListBillingAccountsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\"y\n\x1bListBillingAccountsResponse\x12\x41\n\x10\x62illing_accounts\x18\x01 \x03(\x0b\x32\'.google.cloud.billing.v1.BillingAccount\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1b\x43reateBillingAccountRequest\x12\x45\n\x0f\x62illing_account\x18\x01 \x01(\x0b\x32\'.google.cloud.billing.v1.BillingAccountB\x03\xe0\x41\x02\"\xcf\x01\n\x1bUpdateBillingAccountRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12=\n\x07\x61\x63\x63ount\x18\x02 \x01(\x0b\x32\'.google.cloud.billing.v1.BillingAccountB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x88\x01\n\x1dListProjectBillingInfoRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1eListProjectBillingInfoResponse\x12I\n\x14project_billing_info\x18\x01 \x03(\x0b\x32+.google.cloud.billing.v1.ProjectBillingInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1cGetProjectBillingInfoRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.cloudbilling.googleapis.com/ProjectBillingInfo\"\x7f\n\x1fUpdateProjectBillingInfoRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\x14project_billing_info\x18\x02 \x01(\x0b\x32+.google.cloud.billing.v1.ProjectBillingInfo2\xb2\x0f\n\x0c\x43loudBilling\x12\x9c\x01\n\x11GetBillingAccount\x12\x31.google.cloud.billing.v1.GetBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\"+\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/{name=billingAccounts/*}\xda\x41\x04name\x12\xa0\x01\n\x13ListBillingAccounts\x12\x33.google.cloud.billing.v1.ListBillingAccountsRequest\x1a\x34.google.cloud.billing.v1.ListBillingAccountsResponse\"\x1e\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/billingAccounts\xda\x41\x00\x12\xb3\x01\n\x14UpdateBillingAccount\x12\x34.google.cloud.billing.v1.UpdateBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\"<\x82\xd3\xe4\x93\x02\'2\x1c/v1/{name=billingAccounts/*}:\x07\x61\x63\x63ount\xda\x41\x0cname,account\x12\xb5\x01\n\x14\x43reateBillingAccount\x12\x34.google.cloud.billing.v1.CreateBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\">\x82\xd3\xe4\x93\x02&\"\x13/v1/billingAccounts:\x0f\x62illing_account\xda\x41\x0f\x62illing_account\x12\xbf\x01\n\x16ListProjectBillingInfo\x12\x36.google.cloud.billing.v1.ListProjectBillingInfoRequest\x1a\x37.google.cloud.billing.v1.ListProjectBillingInfoResponse\"4\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=billingAccounts/*}/projects\xda\x41\x04name\x12\xad\x01\n\x15GetProjectBillingInfo\x12\x35.google.cloud.billing.v1.GetProjectBillingInfoRequest\x1a+.google.cloud.billing.v1.ProjectBillingInfo\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*}/billingInfo\xda\x41\x04name\x12\xde\x01\n\x18UpdateProjectBillingInfo\x12\x38.google.cloud.billing.v1.UpdateProjectBillingInfoRequest\x1a+.google.cloud.billing.v1.ProjectBillingInfo\"[\x82\xd3\xe4\x93\x02\x39\x1a!/v1/{name=projects/*}/billingInfo:\x14project_billing_info\xda\x41\x19name,project_billing_info\x12\x8b\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"@\x82\xd3\xe4\x93\x02/\x12-/v1/{resource=billingAccounts/*}:getIamPolicy\xda\x41\x08resource\x12\x95\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"J\x82\xd3\xe4\x93\x02\x32\"-/v1/{resource=billingAccounts/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\xc0\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"U\x82\xd3\xe4\x93\x02\x38\"3/v1/{resource=billingAccounts/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x1a\xb5\x01\xca\x41\x1b\x63loudbilling.googleapis.com\xd2\x41\x93\x01https://www.googleapis.com/auth/cloud-billing,https://www.googleapis.com/auth/cloud-billing.readonly,https://www.googleapis.com/auth/cloud-platformBi\n\x1b\x63om.google.cloud.billing.v1B\x11\x43loudBillingProtoP\x01Z5cloud.google.com/go/billing/apiv1/billingpb;billingpbb\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -55,27 +55,28 @@ module Google
|
|
55
55
|
# Encapsulation of billing information for a Google Cloud Console project. A
|
56
56
|
# project has at most one associated billing account at a time (but a billing
|
57
57
|
# account can be assigned to multiple projects).
|
58
|
-
# @!attribute [
|
58
|
+
# @!attribute [r] name
|
59
59
|
# @return [::String]
|
60
|
-
# The resource name for the `ProjectBillingInfo`; has the form
|
60
|
+
# Output only. The resource name for the `ProjectBillingInfo`; has the form
|
61
61
|
# `projects/{project_id}/billingInfo`. For example, the resource name for the
|
62
62
|
# billing information for project `tokyo-rain-123` would be
|
63
63
|
# `projects/tokyo-rain-123/billingInfo`. This field is read-only.
|
64
|
-
# @!attribute [
|
64
|
+
# @!attribute [r] project_id
|
65
65
|
# @return [::String]
|
66
|
-
# The ID of the project that this `ProjectBillingInfo`
|
67
|
-
# `tokyo-rain-123`. This is a convenience field so that
|
68
|
-
# parse the `name` field to obtain a project ID. This field
|
66
|
+
# Output only. The ID of the project that this `ProjectBillingInfo`
|
67
|
+
# represents, such as `tokyo-rain-123`. This is a convenience field so that
|
68
|
+
# you don't need to parse the `name` field to obtain a project ID. This field
|
69
|
+
# is read-only.
|
69
70
|
# @!attribute [rw] billing_account_name
|
70
71
|
# @return [::String]
|
71
72
|
# The resource name of the billing account associated with the project, if
|
72
73
|
# any. For example, `billingAccounts/012345-567890-ABCDEF`.
|
73
|
-
# @!attribute [
|
74
|
+
# @!attribute [r] billing_enabled
|
74
75
|
# @return [::Boolean]
|
75
|
-
# True if the project is associated with an open billing
|
76
|
-
# usage on the project is charged. False if the project is
|
77
|
-
# closed billing account, or no billing account at all, and
|
78
|
-
# use paid services. This field is read-only.
|
76
|
+
# Output only. True if the project is associated with an open billing
|
77
|
+
# account, to which usage on the project is charged. False if the project is
|
78
|
+
# associated with a closed billing account, or no billing account at all, and
|
79
|
+
# therefore cannot use paid services. This field is read-only.
|
79
80
|
class ProjectBillingInfo
|
80
81
|
include ::Google::Protobuf::MessageExts
|
81
82
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -40,6 +40,7 @@ module Google
|
|
40
40
|
#
|
41
41
|
# **JSON example:**
|
42
42
|
#
|
43
|
+
# ```
|
43
44
|
# {
|
44
45
|
# "bindings": [
|
45
46
|
# {
|
@@ -67,9 +68,11 @@ module Google
|
|
67
68
|
# "etag": "BwWWja0YfJA=",
|
68
69
|
# "version": 3
|
69
70
|
# }
|
71
|
+
# ```
|
70
72
|
#
|
71
73
|
# **YAML example:**
|
72
74
|
#
|
75
|
+
# ```
|
73
76
|
# bindings:
|
74
77
|
# - members:
|
75
78
|
# - user:mike@example.com
|
@@ -86,6 +89,7 @@ module Google
|
|
86
89
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
87
90
|
# etag: BwWWja0YfJA=
|
88
91
|
# version: 3
|
92
|
+
# ```
|
89
93
|
#
|
90
94
|
# For a description of IAM and its features, see the
|
91
95
|
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
@@ -157,7 +161,7 @@ module Google
|
|
157
161
|
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
158
162
|
# @!attribute [rw] members
|
159
163
|
# @return [::Array<::String>]
|
160
|
-
# Specifies the principals requesting access for a Cloud
|
164
|
+
# Specifies the principals requesting access for a Google Cloud resource.
|
161
165
|
# `members` can have the following values:
|
162
166
|
#
|
163
167
|
# * `allUsers`: A special identifier that represents anyone who is
|
@@ -267,8 +271,8 @@ module Google
|
|
267
271
|
# }
|
268
272
|
#
|
269
273
|
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
270
|
-
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
271
|
-
# aliya@example.com from DATA_WRITE logging.
|
274
|
+
# logging. It also exempts `jose@example.com` from DATA_READ logging, and
|
275
|
+
# `aliya@example.com` from DATA_WRITE logging.
|
272
276
|
# @!attribute [rw] service
|
273
277
|
# @return [::String]
|
274
278
|
# Specifies a service that will be enabled for audit logging.
|
@@ -356,7 +360,7 @@ module Google
|
|
356
360
|
# Required
|
357
361
|
# @!attribute [rw] member
|
358
362
|
# @return [::String]
|
359
|
-
# A single identity requesting access for a Cloud
|
363
|
+
# A single identity requesting access for a Google Cloud resource.
|
360
364
|
# Follows the same format of Binding.members.
|
361
365
|
# Required
|
362
366
|
# @!attribute [rw] condition
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-billing-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|