google-cloud-bigquery-data_policies-v1beta1 0.a → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/bigquery/data_policies/v1beta1/data_policy_service/client.rb +1128 -0
  6. data/lib/google/cloud/bigquery/data_policies/v1beta1/data_policy_service/credentials.rb +50 -0
  7. data/lib/google/cloud/bigquery/data_policies/v1beta1/data_policy_service/paths.rb +71 -0
  8. data/lib/google/cloud/bigquery/data_policies/v1beta1/data_policy_service.rb +51 -0
  9. data/lib/google/cloud/bigquery/data_policies/v1beta1/version.rb +7 -2
  10. data/lib/google/cloud/bigquery/data_policies/v1beta1.rb +42 -0
  11. data/lib/google/cloud/bigquery/datapolicies/v1beta1/datapolicy_pb.rb +63 -0
  12. data/lib/google/cloud/bigquery/datapolicies/v1beta1/datapolicy_services_pb.rb +63 -0
  13. data/lib/google-cloud-bigquery-data_policies-v1beta1.rb +21 -0
  14. data/proto_docs/README.md +4 -0
  15. data/proto_docs/google/api/client.rb +381 -0
  16. data/proto_docs/google/api/field_behavior.rb +71 -0
  17. data/proto_docs/google/api/launch_stage.rb +71 -0
  18. data/proto_docs/google/api/resource.rb +222 -0
  19. data/proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb +195 -0
  20. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  21. data/proto_docs/google/iam/v1/options.rb +50 -0
  22. data/proto_docs/google/iam/v1/policy.rb +422 -0
  23. data/proto_docs/google/protobuf/duration.rb +98 -0
  24. data/proto_docs/google/protobuf/empty.rb +34 -0
  25. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  26. data/proto_docs/google/type/expr.rb +75 -0
  27. metadata +195 -13
@@ -0,0 +1,422 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Iam
22
+ module V1
23
+ # An Identity and Access Management (IAM) policy, which specifies access
24
+ # controls for Google Cloud resources.
25
+ #
26
+ #
27
+ # A `Policy` is a collection of `bindings`. A `binding` binds one or more
28
+ # `members`, or principals, to a single `role`. Principals can be user
29
+ # accounts, service accounts, Google groups, and domains (such as G Suite). A
30
+ # `role` is a named list of permissions; each `role` can be an IAM predefined
31
+ # role or a user-created custom role.
32
+ #
33
+ # For some types of Google Cloud resources, a `binding` can also specify a
34
+ # `condition`, which is a logical expression that allows access to a resource
35
+ # only if the expression evaluates to `true`. A condition can add constraints
36
+ # based on attributes of the request, the resource, or both. To learn which
37
+ # resources support conditions in their IAM policies, see the
38
+ # [IAM
39
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
40
+ #
41
+ # **JSON example:**
42
+ #
43
+ # {
44
+ # "bindings": [
45
+ # {
46
+ # "role": "roles/resourcemanager.organizationAdmin",
47
+ # "members": [
48
+ # "user:mike@example.com",
49
+ # "group:admins@example.com",
50
+ # "domain:google.com",
51
+ # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
52
+ # ]
53
+ # },
54
+ # {
55
+ # "role": "roles/resourcemanager.organizationViewer",
56
+ # "members": [
57
+ # "user:eve@example.com"
58
+ # ],
59
+ # "condition": {
60
+ # "title": "expirable access",
61
+ # "description": "Does not grant access after Sep 2020",
62
+ # "expression": "request.time <
63
+ # timestamp('2020-10-01T00:00:00.000Z')",
64
+ # }
65
+ # }
66
+ # ],
67
+ # "etag": "BwWWja0YfJA=",
68
+ # "version": 3
69
+ # }
70
+ #
71
+ # **YAML example:**
72
+ #
73
+ # bindings:
74
+ # - members:
75
+ # - user:mike@example.com
76
+ # - group:admins@example.com
77
+ # - domain:google.com
78
+ # - serviceAccount:my-project-id@appspot.gserviceaccount.com
79
+ # role: roles/resourcemanager.organizationAdmin
80
+ # - members:
81
+ # - user:eve@example.com
82
+ # role: roles/resourcemanager.organizationViewer
83
+ # condition:
84
+ # title: expirable access
85
+ # description: Does not grant access after Sep 2020
86
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
87
+ # etag: BwWWja0YfJA=
88
+ # version: 3
89
+ #
90
+ # For a description of IAM and its features, see the
91
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
92
+ # @!attribute [rw] version
93
+ # @return [::Integer]
94
+ # Specifies the format of the policy.
95
+ #
96
+ # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
97
+ # are rejected.
98
+ #
99
+ # Any operation that affects conditional role bindings must specify version
100
+ # `3`. This requirement applies to the following operations:
101
+ #
102
+ # * Getting a policy that includes a conditional role binding
103
+ # * Adding a conditional role binding to a policy
104
+ # * Changing a conditional role binding in a policy
105
+ # * Removing any role binding, with or without a condition, from a policy
106
+ # that includes conditions
107
+ #
108
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
109
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
110
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
111
+ # the conditions in the version `3` policy are lost.
112
+ #
113
+ # If a policy does not include any conditions, operations on that policy may
114
+ # specify any valid version or leave the field unset.
115
+ #
116
+ # To learn which resources support conditions in their IAM policies, see the
117
+ # [IAM
118
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
119
+ # @!attribute [rw] bindings
120
+ # @return [::Array<::Google::Iam::V1::Binding>]
121
+ # Associates a list of `members`, or principals, with a `role`. Optionally,
122
+ # may specify a `condition` that determines how and when the `bindings` are
123
+ # applied. Each of the `bindings` must contain at least one principal.
124
+ #
125
+ # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
126
+ # of these principals can be Google groups. Each occurrence of a principal
127
+ # counts towards these limits. For example, if the `bindings` grant 50
128
+ # different roles to `user:alice@example.com`, and not to any other
129
+ # principal, then you can add another 1,450 principals to the `bindings` in
130
+ # the `Policy`.
131
+ # @!attribute [rw] audit_configs
132
+ # @return [::Array<::Google::Iam::V1::AuditConfig>]
133
+ # Specifies cloud audit logging configuration for this policy.
134
+ # @!attribute [rw] etag
135
+ # @return [::String]
136
+ # `etag` is used for optimistic concurrency control as a way to help
137
+ # prevent simultaneous updates of a policy from overwriting each other.
138
+ # It is strongly suggested that systems make use of the `etag` in the
139
+ # read-modify-write cycle to perform policy updates in order to avoid race
140
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
141
+ # systems are expected to put that etag in the request to `setIamPolicy` to
142
+ # ensure that their change will be applied to the same version of the policy.
143
+ #
144
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
145
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
146
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
147
+ # the conditions in the version `3` policy are lost.
148
+ class Policy
149
+ include ::Google::Protobuf::MessageExts
150
+ extend ::Google::Protobuf::MessageExts::ClassMethods
151
+ end
152
+
153
+ # Associates `members`, or principals, with a `role`.
154
+ # @!attribute [rw] role
155
+ # @return [::String]
156
+ # Role that is assigned to the list of `members`, or principals.
157
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
158
+ # @!attribute [rw] members
159
+ # @return [::Array<::String>]
160
+ # Specifies the principals requesting access for a Cloud Platform resource.
161
+ # `members` can have the following values:
162
+ #
163
+ # * `allUsers`: A special identifier that represents anyone who is
164
+ # on the internet; with or without a Google account.
165
+ #
166
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
167
+ # who is authenticated with a Google account or a service account.
168
+ #
169
+ # * `user:{emailid}`: An email address that represents a specific Google
170
+ # account. For example, `alice@example.com` .
171
+ #
172
+ #
173
+ # * `serviceAccount:{emailid}`: An email address that represents a service
174
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
175
+ #
176
+ # * `group:{emailid}`: An email address that represents a Google group.
177
+ # For example, `admins@example.com`.
178
+ #
179
+ # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
180
+ # identifier) representing a user that has been recently deleted. For
181
+ # example, `alice@example.com?uid=123456789012345678901`. If the user is
182
+ # recovered, this value reverts to `user:{emailid}` and the recovered user
183
+ # retains the role in the binding.
184
+ #
185
+ # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
186
+ # unique identifier) representing a service account that has been recently
187
+ # deleted. For example,
188
+ # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
189
+ # If the service account is undeleted, this value reverts to
190
+ # `serviceAccount:{emailid}` and the undeleted service account retains the
191
+ # role in the binding.
192
+ #
193
+ # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
194
+ # identifier) representing a Google group that has been recently
195
+ # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
196
+ # the group is recovered, this value reverts to `group:{emailid}` and the
197
+ # recovered group retains the role in the binding.
198
+ #
199
+ #
200
+ # * `domain:{domain}`: The G Suite domain (primary) that represents all the
201
+ # users of that domain. For example, `google.com` or `example.com`.
202
+ # @!attribute [rw] condition
203
+ # @return [::Google::Type::Expr]
204
+ # The condition that is associated with this binding.
205
+ #
206
+ # If the condition evaluates to `true`, then this binding applies to the
207
+ # current request.
208
+ #
209
+ # If the condition evaluates to `false`, then this binding does not apply to
210
+ # the current request. However, a different role binding might grant the same
211
+ # role to one or more of the principals in this binding.
212
+ #
213
+ # To learn which resources support conditions in their IAM policies, see the
214
+ # [IAM
215
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
216
+ class Binding
217
+ include ::Google::Protobuf::MessageExts
218
+ extend ::Google::Protobuf::MessageExts::ClassMethods
219
+ end
220
+
221
+ # Specifies the audit configuration for a service.
222
+ # The configuration determines which permission types are logged, and what
223
+ # identities, if any, are exempted from logging.
224
+ # An AuditConfig must have one or more AuditLogConfigs.
225
+ #
226
+ # If there are AuditConfigs for both `allServices` and a specific service,
227
+ # the union of the two AuditConfigs is used for that service: the log_types
228
+ # specified in each AuditConfig are enabled, and the exempted_members in each
229
+ # AuditLogConfig are exempted.
230
+ #
231
+ # Example Policy with multiple AuditConfigs:
232
+ #
233
+ # {
234
+ # "audit_configs": [
235
+ # {
236
+ # "service": "allServices",
237
+ # "audit_log_configs": [
238
+ # {
239
+ # "log_type": "DATA_READ",
240
+ # "exempted_members": [
241
+ # "user:jose@example.com"
242
+ # ]
243
+ # },
244
+ # {
245
+ # "log_type": "DATA_WRITE"
246
+ # },
247
+ # {
248
+ # "log_type": "ADMIN_READ"
249
+ # }
250
+ # ]
251
+ # },
252
+ # {
253
+ # "service": "sampleservice.googleapis.com",
254
+ # "audit_log_configs": [
255
+ # {
256
+ # "log_type": "DATA_READ"
257
+ # },
258
+ # {
259
+ # "log_type": "DATA_WRITE",
260
+ # "exempted_members": [
261
+ # "user:aliya@example.com"
262
+ # ]
263
+ # }
264
+ # ]
265
+ # }
266
+ # ]
267
+ # }
268
+ #
269
+ # 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.
272
+ # @!attribute [rw] service
273
+ # @return [::String]
274
+ # Specifies a service that will be enabled for audit logging.
275
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
276
+ # `allServices` is a special value that covers all services.
277
+ # @!attribute [rw] audit_log_configs
278
+ # @return [::Array<::Google::Iam::V1::AuditLogConfig>]
279
+ # The configuration for logging of each type of permission.
280
+ class AuditConfig
281
+ include ::Google::Protobuf::MessageExts
282
+ extend ::Google::Protobuf::MessageExts::ClassMethods
283
+ end
284
+
285
+ # Provides the configuration for logging a type of permissions.
286
+ # Example:
287
+ #
288
+ # {
289
+ # "audit_log_configs": [
290
+ # {
291
+ # "log_type": "DATA_READ",
292
+ # "exempted_members": [
293
+ # "user:jose@example.com"
294
+ # ]
295
+ # },
296
+ # {
297
+ # "log_type": "DATA_WRITE"
298
+ # }
299
+ # ]
300
+ # }
301
+ #
302
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
303
+ # jose@example.com from DATA_READ logging.
304
+ # @!attribute [rw] log_type
305
+ # @return [::Google::Iam::V1::AuditLogConfig::LogType]
306
+ # The log type that this config enables.
307
+ # @!attribute [rw] exempted_members
308
+ # @return [::Array<::String>]
309
+ # Specifies the identities that do not cause logging for this type of
310
+ # permission.
311
+ # Follows the same format of
312
+ # {::Google::Iam::V1::Binding#members Binding.members}.
313
+ class AuditLogConfig
314
+ include ::Google::Protobuf::MessageExts
315
+ extend ::Google::Protobuf::MessageExts::ClassMethods
316
+
317
+ # The list of valid permission types for which logging can be configured.
318
+ # Admin writes are always logged, and are not configurable.
319
+ module LogType
320
+ # Default case. Should never be this.
321
+ LOG_TYPE_UNSPECIFIED = 0
322
+
323
+ # Admin reads. Example: CloudIAM getIamPolicy
324
+ ADMIN_READ = 1
325
+
326
+ # Data writes. Example: CloudSQL Users create
327
+ DATA_WRITE = 2
328
+
329
+ # Data reads. Example: CloudSQL Users list
330
+ DATA_READ = 3
331
+ end
332
+ end
333
+
334
+ # The difference delta between two policies.
335
+ # @!attribute [rw] binding_deltas
336
+ # @return [::Array<::Google::Iam::V1::BindingDelta>]
337
+ # The delta for Bindings between two policies.
338
+ # @!attribute [rw] audit_config_deltas
339
+ # @return [::Array<::Google::Iam::V1::AuditConfigDelta>]
340
+ # The delta for AuditConfigs between two policies.
341
+ class PolicyDelta
342
+ include ::Google::Protobuf::MessageExts
343
+ extend ::Google::Protobuf::MessageExts::ClassMethods
344
+ end
345
+
346
+ # One delta entry for Binding. Each individual change (only one member in each
347
+ # entry) to a binding will be a separate entry.
348
+ # @!attribute [rw] action
349
+ # @return [::Google::Iam::V1::BindingDelta::Action]
350
+ # The action that was performed on a Binding.
351
+ # Required
352
+ # @!attribute [rw] role
353
+ # @return [::String]
354
+ # Role that is assigned to `members`.
355
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
356
+ # Required
357
+ # @!attribute [rw] member
358
+ # @return [::String]
359
+ # A single identity requesting access for a Cloud Platform resource.
360
+ # Follows the same format of Binding.members.
361
+ # Required
362
+ # @!attribute [rw] condition
363
+ # @return [::Google::Type::Expr]
364
+ # The condition that is associated with this binding.
365
+ class BindingDelta
366
+ include ::Google::Protobuf::MessageExts
367
+ extend ::Google::Protobuf::MessageExts::ClassMethods
368
+
369
+ # The type of action performed on a Binding in a policy.
370
+ module Action
371
+ # Unspecified.
372
+ ACTION_UNSPECIFIED = 0
373
+
374
+ # Addition of a Binding.
375
+ ADD = 1
376
+
377
+ # Removal of a Binding.
378
+ REMOVE = 2
379
+ end
380
+ end
381
+
382
+ # One delta entry for AuditConfig. Each individual change (only one
383
+ # exempted_member in each entry) to a AuditConfig will be a separate entry.
384
+ # @!attribute [rw] action
385
+ # @return [::Google::Iam::V1::AuditConfigDelta::Action]
386
+ # The action that was performed on an audit configuration in a policy.
387
+ # Required
388
+ # @!attribute [rw] service
389
+ # @return [::String]
390
+ # Specifies a service that was configured for Cloud Audit Logging.
391
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
392
+ # `allServices` is a special value that covers all services.
393
+ # Required
394
+ # @!attribute [rw] exempted_member
395
+ # @return [::String]
396
+ # A single identity that is exempted from "data access" audit
397
+ # logging for the `service` specified above.
398
+ # Follows the same format of Binding.members.
399
+ # @!attribute [rw] log_type
400
+ # @return [::String]
401
+ # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
402
+ # enabled, and cannot be configured.
403
+ # Required
404
+ class AuditConfigDelta
405
+ include ::Google::Protobuf::MessageExts
406
+ extend ::Google::Protobuf::MessageExts::ClassMethods
407
+
408
+ # The type of action performed on an audit configuration in a policy.
409
+ module Action
410
+ # Unspecified.
411
+ ACTION_UNSPECIFIED = 0
412
+
413
+ # Addition of an audit configuration.
414
+ ADD = 1
415
+
416
+ # Removal of an audit configuration.
417
+ REMOVE = 2
418
+ end
419
+ end
420
+ end
421
+ end
422
+ end
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Protobuf
22
+ # A Duration represents a signed, fixed-length span of time represented
23
+ # as a count of seconds and fractions of seconds at nanosecond
24
+ # resolution. It is independent of any calendar and concepts like "day"
25
+ # or "month". It is related to Timestamp in that the difference between
26
+ # two Timestamp values is a Duration and it can be added or subtracted
27
+ # from a Timestamp. Range is approximately +-10,000 years.
28
+ #
29
+ # # Examples
30
+ #
31
+ # Example 1: Compute Duration from two Timestamps in pseudo code.
32
+ #
33
+ # Timestamp start = ...;
34
+ # Timestamp end = ...;
35
+ # Duration duration = ...;
36
+ #
37
+ # duration.seconds = end.seconds - start.seconds;
38
+ # duration.nanos = end.nanos - start.nanos;
39
+ #
40
+ # if (duration.seconds < 0 && duration.nanos > 0) {
41
+ # duration.seconds += 1;
42
+ # duration.nanos -= 1000000000;
43
+ # } else if (duration.seconds > 0 && duration.nanos < 0) {
44
+ # duration.seconds -= 1;
45
+ # duration.nanos += 1000000000;
46
+ # }
47
+ #
48
+ # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
49
+ #
50
+ # Timestamp start = ...;
51
+ # Duration duration = ...;
52
+ # Timestamp end = ...;
53
+ #
54
+ # end.seconds = start.seconds + duration.seconds;
55
+ # end.nanos = start.nanos + duration.nanos;
56
+ #
57
+ # if (end.nanos < 0) {
58
+ # end.seconds -= 1;
59
+ # end.nanos += 1000000000;
60
+ # } else if (end.nanos >= 1000000000) {
61
+ # end.seconds += 1;
62
+ # end.nanos -= 1000000000;
63
+ # }
64
+ #
65
+ # Example 3: Compute Duration from datetime.timedelta in Python.
66
+ #
67
+ # td = datetime.timedelta(days=3, minutes=10)
68
+ # duration = Duration()
69
+ # duration.FromTimedelta(td)
70
+ #
71
+ # # JSON Mapping
72
+ #
73
+ # In JSON format, the Duration type is encoded as a string rather than an
74
+ # object, where the string ends in the suffix "s" (indicating seconds) and
75
+ # is preceded by the number of seconds, with nanoseconds expressed as
76
+ # fractional seconds. For example, 3 seconds with 0 nanoseconds should be
77
+ # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
78
+ # be expressed in JSON format as "3.000000001s", and 3 seconds and 1
79
+ # microsecond should be expressed in JSON format as "3.000001s".
80
+ # @!attribute [rw] seconds
81
+ # @return [::Integer]
82
+ # Signed seconds of the span of time. Must be from -315,576,000,000
83
+ # to +315,576,000,000 inclusive. Note: these bounds are computed from:
84
+ # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
85
+ # @!attribute [rw] nanos
86
+ # @return [::Integer]
87
+ # Signed fractions of a second at nanosecond resolution of the span
88
+ # of time. Durations less than one second are represented with a 0
89
+ # `seconds` field and a positive or negative `nanos` field. For durations
90
+ # of one second or more, a non-zero value for the `nanos` field must be
91
+ # of the same sign as the `seconds` field. Must be from -999,999,999
92
+ # to +999,999,999 inclusive.
93
+ class Duration
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Protobuf
22
+ # A generic empty message that you can re-use to avoid defining duplicated
23
+ # empty messages in your APIs. A typical example is to use it as the request
24
+ # or the response type of an API method. For instance:
25
+ #
26
+ # service Foo {
27
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
+ # }
29
+ class Empty
30
+ include ::Google::Protobuf::MessageExts
31
+ extend ::Google::Protobuf::MessageExts::ClassMethods
32
+ end
33
+ end
34
+ end