google-cloud-billing-v1 0.1.1 → 0.2.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/AUTHENTICATION.md +30 -27
- data/lib/google/cloud/billing/v1/cloud_billing/client.rb +278 -28
- data/lib/google/cloud/billing/v1/cloud_catalog/client.rb +149 -9
- data/lib/google/cloud/billing/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +73 -73
- data/proto_docs/google/cloud/billing/v1/cloud_billing.rb +2 -2
- data/proto_docs/google/cloud/billing/v1/cloud_catalog.rb +2 -2
- data/proto_docs/google/iam/v1/iam_policy.rb +3 -3
- data/proto_docs/google/iam/v1/policy.rb +11 -11
- data/proto_docs/google/protobuf/field_mask.rb +40 -40
- data/proto_docs/google/protobuf/timestamp.rb +3 -3
- metadata +8 -8
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @!attribute [rw] name
|
27
27
|
# @return [String]
|
28
28
|
# The resource name of the billing account. The resource name has the form
|
29
|
-
# `billingAccounts
|
29
|
+
# `billingAccounts/{billing_account_id}`. For example,
|
30
30
|
# `billingAccounts/012345-567890-ABCDEF` would be the resource name for
|
31
31
|
# billing account `012345-567890-ABCDEF`.
|
32
32
|
# @!attribute [r] open
|
@@ -56,7 +56,7 @@ module Google
|
|
56
56
|
# @!attribute [rw] name
|
57
57
|
# @return [String]
|
58
58
|
# The resource name for the `ProjectBillingInfo`; has the form
|
59
|
-
# `projects
|
59
|
+
# `projects/{project_id}/billingInfo`. For example, the resource name for the
|
60
60
|
# billing information for project `tokyo-rain-123` would be
|
61
61
|
# `projects/tokyo-rain-123/billingInfo`. This field is read-only.
|
62
62
|
# @!attribute [rw] project_id
|
@@ -198,9 +198,9 @@ module Google
|
|
198
198
|
|
199
199
|
# Represents the aggregation level and interval for pricing of a single SKU.
|
200
200
|
# @!attribute [rw] aggregation_level
|
201
|
-
# @return [
|
201
|
+
# @return [Google::Cloud::Billing::V1::AggregationInfo::AggregationLevel]
|
202
202
|
# @!attribute [rw] aggregation_interval
|
203
|
-
# @return [
|
203
|
+
# @return [Google::Cloud::Billing::V1::AggregationInfo::AggregationInterval]
|
204
204
|
# @!attribute [rw] aggregation_count
|
205
205
|
# @return [Integer]
|
206
206
|
# The number of intervals to aggregate over.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @return [String]
|
26
26
|
# REQUIRED: The resource for which the policy is being specified.
|
27
27
|
# `resource` is usually specified as a path. For example, a Project
|
28
|
-
# resource is specified as `projects
|
28
|
+
# resource is specified as `projects/{project}`.
|
29
29
|
# @!attribute [rw] policy
|
30
30
|
# @return [Google::Iam::V1::Policy]
|
31
31
|
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
@@ -42,7 +42,7 @@ module Google
|
|
42
42
|
# @return [String]
|
43
43
|
# REQUIRED: The resource for which the policy is being requested.
|
44
44
|
# `resource` is usually specified as a path. For example, a Project
|
45
|
-
# resource is specified as `projects
|
45
|
+
# resource is specified as `projects/{project}`.
|
46
46
|
class GetIamPolicyRequest
|
47
47
|
include Google::Protobuf::MessageExts
|
48
48
|
extend Google::Protobuf::MessageExts::ClassMethods
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
# @return [String]
|
54
54
|
# REQUIRED: The resource for which the policy detail is being requested.
|
55
55
|
# `resource` is usually specified as a path. For example, a Project
|
56
|
-
# resource is specified as `projects
|
56
|
+
# resource is specified as `projects/{project}`.
|
57
57
|
# @!attribute [rw] permissions
|
58
58
|
# @return [Array<String>]
|
59
59
|
# The set of permissions to check for the `resource`. Permissions with
|
@@ -31,9 +31,9 @@ module Google
|
|
31
31
|
#
|
32
32
|
# **Example**
|
33
33
|
#
|
34
|
-
#
|
34
|
+
# {
|
35
35
|
# "bindings": [
|
36
|
-
#
|
36
|
+
# {
|
37
37
|
# "role": "roles/owner",
|
38
38
|
# "members": [
|
39
39
|
# "user:mike@example.com",
|
@@ -41,13 +41,13 @@ module Google
|
|
41
41
|
# "domain:google.com",
|
42
42
|
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
43
43
|
# ]
|
44
|
-
#
|
45
|
-
#
|
44
|
+
# },
|
45
|
+
# {
|
46
46
|
# "role": "roles/viewer",
|
47
47
|
# "members": ["user:sean@example.com"]
|
48
|
-
#
|
48
|
+
# }
|
49
49
|
# ]
|
50
|
-
#
|
50
|
+
# }
|
51
51
|
#
|
52
52
|
# For a description of IAM and its features, see the
|
53
53
|
# [IAM developer's guide](https://cloud.google.com/iam).
|
@@ -93,17 +93,17 @@ module Google
|
|
93
93
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
94
94
|
# who is authenticated with a Google account or a service account.
|
95
95
|
#
|
96
|
-
# * `user
|
96
|
+
# * `user:{emailid}`: An email address that represents a specific Google
|
97
97
|
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
98
98
|
#
|
99
99
|
#
|
100
|
-
# * `serviceAccount
|
100
|
+
# * `serviceAccount:{emailid}`: An email address that represents a service
|
101
101
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
102
102
|
#
|
103
|
-
# * `group
|
103
|
+
# * `group:{emailid}`: An email address that represents a Google group.
|
104
104
|
# For example, `admins@example.com`.
|
105
105
|
#
|
106
|
-
# * `domain
|
106
|
+
# * `domain:{domain}`: A Google Apps domain name that represents all the
|
107
107
|
# users of that domain. For example, `google.com` or `example.com`.
|
108
108
|
class Binding
|
109
109
|
include Google::Protobuf::MessageExts
|
@@ -122,7 +122,7 @@ module Google
|
|
122
122
|
# One delta entry for Binding. Each individual change (only one member in each
|
123
123
|
# entry) to a binding will be a separate entry.
|
124
124
|
# @!attribute [rw] action
|
125
|
-
# @return [
|
125
|
+
# @return [Google::Iam::V1::BindingDelta::Action]
|
126
126
|
# The action that was performed on a Binding.
|
127
127
|
# Required
|
128
128
|
# @!attribute [rw] role
|
@@ -39,14 +39,14 @@ module Google
|
|
39
39
|
# specified in the mask. For example, if the mask in the previous
|
40
40
|
# example is applied to a response message as follows:
|
41
41
|
#
|
42
|
-
# f
|
42
|
+
# f {
|
43
43
|
# a : 22
|
44
|
-
# b
|
44
|
+
# b {
|
45
45
|
# d : 1
|
46
46
|
# x : 2
|
47
|
-
#
|
47
|
+
# }
|
48
48
|
# y : 13
|
49
|
-
#
|
49
|
+
# }
|
50
50
|
# z: 8
|
51
51
|
#
|
52
52
|
# The result will not contain specific values for fields x,y and z
|
@@ -54,12 +54,12 @@ module Google
|
|
54
54
|
# output):
|
55
55
|
#
|
56
56
|
#
|
57
|
-
# f
|
57
|
+
# f {
|
58
58
|
# a : 22
|
59
|
-
# b
|
59
|
+
# b {
|
60
60
|
# d : 1
|
61
|
-
#
|
62
|
-
#
|
61
|
+
# }
|
62
|
+
# }
|
63
63
|
#
|
64
64
|
# A repeated field is not allowed except at the last position of a
|
65
65
|
# paths string.
|
@@ -96,21 +96,21 @@ module Google
|
|
96
96
|
# update operation, then the existing sub-message in the target resource is
|
97
97
|
# overwritten. Given the target message:
|
98
98
|
#
|
99
|
-
# f
|
100
|
-
# b
|
99
|
+
# f {
|
100
|
+
# b {
|
101
101
|
# d : 1
|
102
102
|
# x : 2
|
103
|
-
#
|
103
|
+
# }
|
104
104
|
# c : 1
|
105
|
-
#
|
105
|
+
# }
|
106
106
|
#
|
107
107
|
# And an update message:
|
108
108
|
#
|
109
|
-
# f
|
110
|
-
# b
|
109
|
+
# f {
|
110
|
+
# b {
|
111
111
|
# d : 10
|
112
|
-
#
|
113
|
-
#
|
112
|
+
# }
|
113
|
+
# }
|
114
114
|
#
|
115
115
|
# then if the field mask is:
|
116
116
|
#
|
@@ -118,12 +118,12 @@ module Google
|
|
118
118
|
#
|
119
119
|
# then the result will be:
|
120
120
|
#
|
121
|
-
# f
|
122
|
-
# b
|
121
|
+
# f {
|
122
|
+
# b {
|
123
123
|
# d : 10
|
124
|
-
#
|
124
|
+
# }
|
125
125
|
# c : 1
|
126
|
-
#
|
126
|
+
# }
|
127
127
|
#
|
128
128
|
# However, if the update mask was:
|
129
129
|
#
|
@@ -131,13 +131,13 @@ module Google
|
|
131
131
|
#
|
132
132
|
# then the result would be:
|
133
133
|
#
|
134
|
-
# f
|
135
|
-
# b
|
134
|
+
# f {
|
135
|
+
# b {
|
136
136
|
# d : 10
|
137
137
|
# x : 2
|
138
|
-
#
|
138
|
+
# }
|
139
139
|
# c : 1
|
140
|
-
#
|
140
|
+
# }
|
141
141
|
#
|
142
142
|
# In order to reset a field's value to the default, the field must
|
143
143
|
# be in the mask and set to the default value in the provided resource.
|
@@ -172,51 +172,51 @@ module Google
|
|
172
172
|
#
|
173
173
|
# As an example, consider the following message declarations:
|
174
174
|
#
|
175
|
-
# message Profile
|
175
|
+
# message Profile {
|
176
176
|
# User user = 1;
|
177
177
|
# Photo photo = 2;
|
178
|
-
#
|
179
|
-
# message User
|
178
|
+
# }
|
179
|
+
# message User {
|
180
180
|
# string display_name = 1;
|
181
181
|
# string address = 2;
|
182
|
-
#
|
182
|
+
# }
|
183
183
|
#
|
184
184
|
# In proto a field mask for `Profile` may look as such:
|
185
185
|
#
|
186
|
-
# mask
|
186
|
+
# mask {
|
187
187
|
# paths: "user.display_name"
|
188
188
|
# paths: "photo"
|
189
|
-
#
|
189
|
+
# }
|
190
190
|
#
|
191
191
|
# In JSON, the same mask is represented as below:
|
192
192
|
#
|
193
|
-
#
|
193
|
+
# {
|
194
194
|
# mask: "user.displayName,photo"
|
195
|
-
#
|
195
|
+
# }
|
196
196
|
#
|
197
197
|
# # Field Masks and Oneof Fields
|
198
198
|
#
|
199
199
|
# Field masks treat fields in oneofs just as regular fields. Consider the
|
200
200
|
# following message:
|
201
201
|
#
|
202
|
-
# message SampleMessage
|
203
|
-
# oneof test_oneof
|
202
|
+
# message SampleMessage {
|
203
|
+
# oneof test_oneof {
|
204
204
|
# string name = 4;
|
205
205
|
# SubMessage sub_message = 9;
|
206
|
-
#
|
207
|
-
#
|
206
|
+
# }
|
207
|
+
# }
|
208
208
|
#
|
209
209
|
# The field mask can be:
|
210
210
|
#
|
211
|
-
# mask
|
211
|
+
# mask {
|
212
212
|
# paths: "name"
|
213
|
-
#
|
213
|
+
# }
|
214
214
|
#
|
215
215
|
# Or:
|
216
216
|
#
|
217
|
-
# mask
|
217
|
+
# mask {
|
218
218
|
# paths: "sub_message"
|
219
|
-
#
|
219
|
+
# }
|
220
220
|
#
|
221
221
|
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
222
222
|
# paths.
|
@@ -77,9 +77,9 @@ module Google
|
|
77
77
|
#
|
78
78
|
# In JSON format, the Timestamp type is encoded as a string in the
|
79
79
|
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
80
|
-
# format is "
|
81
|
-
# where
|
82
|
-
#
|
80
|
+
# format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
|
81
|
+
# where \\{year} is always expressed using four digits while \\{month}, \\{day},
|
82
|
+
# \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
|
83
83
|
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
84
84
|
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
85
85
|
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
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.2.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: 2020-
|
11
|
+
date: 2020-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,14 +84,14 @@ dependencies:
|
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '12.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '12.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
117
|
+
version: '0.18'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0.
|
124
|
+
version: '0.18'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: yard
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|