google-cloud-policy_simulator-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) 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/policy_simulator/v1/rest.rb +37 -0
  6. data/lib/google/cloud/policy_simulator/v1/simulator/client.rb +660 -0
  7. data/lib/google/cloud/policy_simulator/v1/simulator/credentials.rb +47 -0
  8. data/lib/google/cloud/policy_simulator/v1/simulator/operations.rb +770 -0
  9. data/lib/google/cloud/policy_simulator/v1/simulator/paths.rb +91 -0
  10. data/lib/google/cloud/policy_simulator/v1/simulator/rest/client.rb +560 -0
  11. data/lib/google/cloud/policy_simulator/v1/simulator/rest/operations.rb +837 -0
  12. data/lib/google/cloud/policy_simulator/v1/simulator/rest/service_stub.rb +270 -0
  13. data/lib/google/cloud/policy_simulator/v1/simulator/rest.rb +64 -0
  14. data/lib/google/cloud/policy_simulator/v1/simulator.rb +67 -0
  15. data/lib/google/cloud/policy_simulator/v1/version.rb +7 -2
  16. data/lib/google/cloud/policy_simulator/v1.rb +45 -0
  17. data/lib/google/cloud/policysimulator/v1/explanations_pb.rb +55 -0
  18. data/lib/google/cloud/policysimulator/v1/simulator_pb.rb +72 -0
  19. data/lib/google/cloud/policysimulator/v1/simulator_services_pb.rb +63 -0
  20. data/lib/google-cloud-policy_simulator-v1.rb +21 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/client.rb +381 -0
  23. data/proto_docs/google/api/field_behavior.rb +71 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/api/resource.rb +222 -0
  26. data/proto_docs/google/cloud/policysimulator/v1/explanations.rb +277 -0
  27. data/proto_docs/google/cloud/policysimulator/v1/simulator.rb +396 -0
  28. data/proto_docs/google/iam/v1/policy.rb +422 -0
  29. data/proto_docs/google/longrunning/operations.rb +164 -0
  30. data/proto_docs/google/protobuf/any.rb +144 -0
  31. data/proto_docs/google/protobuf/duration.rb +98 -0
  32. data/proto_docs/google/protobuf/empty.rb +34 -0
  33. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  34. data/proto_docs/google/rpc/status.rb +48 -0
  35. data/proto_docs/google/type/date.rb +53 -0
  36. data/proto_docs/google/type/expr.rb +75 -0
  37. metadata +215 -12
@@ -0,0 +1,422 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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,164 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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 Longrunning
22
+ # This resource represents a long-running operation that is the result of a
23
+ # network API call.
24
+ # @!attribute [rw] name
25
+ # @return [::String]
26
+ # The server-assigned name, which is only unique within the same service that
27
+ # originally returns it. If you use the default HTTP mapping, the
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
+ # @!attribute [rw] metadata
30
+ # @return [::Google::Protobuf::Any]
31
+ # Service-specific metadata associated with the operation. It typically
32
+ # contains progress information and common metadata such as create time.
33
+ # Some services might not provide such metadata. Any method that returns a
34
+ # long-running operation should document the metadata type, if any.
35
+ # @!attribute [rw] done
36
+ # @return [::Boolean]
37
+ # If the value is `false`, it means the operation is still in progress.
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
+ # available.
40
+ # @!attribute [rw] error
41
+ # @return [::Google::Rpc::Status]
42
+ # The error result of the operation in case of failure or cancellation.
43
+ # @!attribute [rw] response
44
+ # @return [::Google::Protobuf::Any]
45
+ # The normal response of the operation in case of success. If the original
46
+ # method returns no data on success, such as `Delete`, the response is
47
+ # `google.protobuf.Empty`. If the original method is standard
48
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
49
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
50
+ # is the original method name. For example, if the original method name
51
+ # is `TakeSnapshot()`, the inferred response type is
52
+ # `TakeSnapshotResponse`.
53
+ class Operation
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
+ end
57
+
58
+ # The request message for Operations.GetOperation.
59
+ # @!attribute [rw] name
60
+ # @return [::String]
61
+ # The name of the operation resource.
62
+ class GetOperationRequest
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+
67
+ # The request message for Operations.ListOperations.
68
+ # @!attribute [rw] name
69
+ # @return [::String]
70
+ # The name of the operation's parent resource.
71
+ # @!attribute [rw] filter
72
+ # @return [::String]
73
+ # The standard list filter.
74
+ # @!attribute [rw] page_size
75
+ # @return [::Integer]
76
+ # The standard list page size.
77
+ # @!attribute [rw] page_token
78
+ # @return [::String]
79
+ # The standard list page token.
80
+ class ListOperationsRequest
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
+ end
84
+
85
+ # The response message for Operations.ListOperations.
86
+ # @!attribute [rw] operations
87
+ # @return [::Array<::Google::Longrunning::Operation>]
88
+ # A list of operations that matches the specified filter in the request.
89
+ # @!attribute [rw] next_page_token
90
+ # @return [::String]
91
+ # The standard List next-page token.
92
+ class ListOperationsResponse
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+
97
+ # The request message for Operations.CancelOperation.
98
+ # @!attribute [rw] name
99
+ # @return [::String]
100
+ # The name of the operation resource to be cancelled.
101
+ class CancelOperationRequest
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
106
+ # The request message for Operations.DeleteOperation.
107
+ # @!attribute [rw] name
108
+ # @return [::String]
109
+ # The name of the operation resource to be deleted.
110
+ class DeleteOperationRequest
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+ end
114
+
115
+ # The request message for Operations.WaitOperation.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # The name of the operation resource to wait on.
119
+ # @!attribute [rw] timeout
120
+ # @return [::Google::Protobuf::Duration]
121
+ # The maximum duration to wait before timing out. If left blank, the wait
122
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
123
+ # If RPC context deadline is also specified, the shorter one will be used.
124
+ class WaitOperationRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
129
+ # A message representing the message types used by a long-running operation.
130
+ #
131
+ # Example:
132
+ #
133
+ # rpc LongRunningRecognize(LongRunningRecognizeRequest)
134
+ # returns (google.longrunning.Operation) {
135
+ # option (google.longrunning.operation_info) = {
136
+ # response_type: "LongRunningRecognizeResponse"
137
+ # metadata_type: "LongRunningRecognizeMetadata"
138
+ # };
139
+ # }
140
+ # @!attribute [rw] response_type
141
+ # @return [::String]
142
+ # Required. The message name of the primary return type for this
143
+ # long-running operation.
144
+ # This type will be used to deserialize the LRO's response.
145
+ #
146
+ # If the response is in a different package from the rpc, a fully-qualified
147
+ # message name must be used (e.g. `google.protobuf.Struct`).
148
+ #
149
+ # Note: Altering this value constitutes a breaking change.
150
+ # @!attribute [rw] metadata_type
151
+ # @return [::String]
152
+ # Required. The message name of the metadata type for this long-running
153
+ # operation.
154
+ #
155
+ # If the response is in a different package from the rpc, a fully-qualified
156
+ # message name must be used (e.g. `google.protobuf.Struct`).
157
+ #
158
+ # Note: Altering this value constitutes a breaking change.
159
+ class OperationInfo
160
+ include ::Google::Protobuf::MessageExts
161
+ extend ::Google::Protobuf::MessageExts::ClassMethods
162
+ end
163
+ end
164
+ end