google-apis-notebooks_v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,621 @@
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 NotebooksV2
24
+
25
+ # Associates `members`, or principals, with a `role`.
26
+ class Binding
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
30
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
31
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
32
+ # "Summary size limit" description: "Determines if a summary is less than 100
33
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
34
+ # Requestor is owner" description: "Determines if requestor is the document
35
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
36
+ # Logic): title: "Public documents" description: "Determine whether the document
37
+ # should be publicly visible" expression: "document.type != 'private' &&
38
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
39
+ # string" description: "Create a notification string with a timestamp."
40
+ # expression: "'New message received at ' + string(document.create_time)" The
41
+ # exact variables and functions that may be referenced within an expression are
42
+ # determined by the service that evaluates it. See the service documentation for
43
+ # additional information.
44
+ # Corresponds to the JSON property `condition`
45
+ # @return [Google::Apis::NotebooksV2::Expr]
46
+ attr_accessor :condition
47
+
48
+ # Specifies the principals requesting access for a Google Cloud resource. `
49
+ # members` can have the following values: * `allUsers`: A special identifier
50
+ # that represents anyone who is on the internet; with or without a Google
51
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
52
+ # anyone who is authenticated with a Google account or a service account. Does
53
+ # not include identities that come from external identity providers (IdPs)
54
+ # through identity federation. * `user:`emailid``: An email address that
55
+ # represents a specific Google account. For example, `alice@example.com` . * `
56
+ # serviceAccount:`emailid``: An email address that represents a Google service
57
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
58
+ # serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An
59
+ # identifier for a [Kubernetes service account](https://cloud.google.com/
60
+ # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
61
+ # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
62
+ # email address that represents a Google group. For example, `admins@example.com`
63
+ # . * `domain:`domain``: The G Suite domain (primary) that represents all the
64
+ # users of that domain. For example, `google.com` or `example.com`. * `deleted:
65
+ # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
66
+ # representing a user that has been recently deleted. For example, `alice@
67
+ # example.com?uid=123456789012345678901`. If the user is recovered, this value
68
+ # reverts to `user:`emailid`` and the recovered user retains the role in the
69
+ # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
70
+ # (plus unique identifier) representing a service account that has been recently
71
+ # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
72
+ # 123456789012345678901`. If the service account is undeleted, this value
73
+ # reverts to `serviceAccount:`emailid`` and the undeleted service account
74
+ # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
75
+ # An email address (plus unique identifier) representing a Google group that has
76
+ # been recently deleted. For example, `admins@example.com?uid=
77
+ # 123456789012345678901`. If the group is recovered, this value reverts to `
78
+ # group:`emailid`` and the recovered group retains the role in the binding.
79
+ # Corresponds to the JSON property `members`
80
+ # @return [Array<String>]
81
+ attr_accessor :members
82
+
83
+ # Role that is assigned to the list of `members`, or principals. For example, `
84
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
85
+ # Corresponds to the JSON property `role`
86
+ # @return [String]
87
+ attr_accessor :role
88
+
89
+ def initialize(**args)
90
+ update!(**args)
91
+ end
92
+
93
+ # Update properties of this object
94
+ def update!(**args)
95
+ @condition = args[:condition] if args.key?(:condition)
96
+ @members = args[:members] if args.key?(:members)
97
+ @role = args[:role] if args.key?(:role)
98
+ end
99
+ end
100
+
101
+ # The request message for Operations.CancelOperation.
102
+ class CancelOperationRequest
103
+ include Google::Apis::Core::Hashable
104
+
105
+ def initialize(**args)
106
+ update!(**args)
107
+ end
108
+
109
+ # Update properties of this object
110
+ def update!(**args)
111
+ end
112
+ end
113
+
114
+ # A generic empty message that you can re-use to avoid defining duplicated empty
115
+ # messages in your APIs. A typical example is to use it as the request or the
116
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
117
+ # protobuf.Empty) returns (google.protobuf.Empty); `
118
+ class Empty
119
+ include Google::Apis::Core::Hashable
120
+
121
+ def initialize(**args)
122
+ update!(**args)
123
+ end
124
+
125
+ # Update properties of this object
126
+ def update!(**args)
127
+ end
128
+ end
129
+
130
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
131
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
132
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
133
+ # "Summary size limit" description: "Determines if a summary is less than 100
134
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
135
+ # Requestor is owner" description: "Determines if requestor is the document
136
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
137
+ # Logic): title: "Public documents" description: "Determine whether the document
138
+ # should be publicly visible" expression: "document.type != 'private' &&
139
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
140
+ # string" description: "Create a notification string with a timestamp."
141
+ # expression: "'New message received at ' + string(document.create_time)" The
142
+ # exact variables and functions that may be referenced within an expression are
143
+ # determined by the service that evaluates it. See the service documentation for
144
+ # additional information.
145
+ class Expr
146
+ include Google::Apis::Core::Hashable
147
+
148
+ # Optional. Description of the expression. This is a longer text which describes
149
+ # the expression, e.g. when hovered over it in a UI.
150
+ # Corresponds to the JSON property `description`
151
+ # @return [String]
152
+ attr_accessor :description
153
+
154
+ # Textual representation of an expression in Common Expression Language syntax.
155
+ # Corresponds to the JSON property `expression`
156
+ # @return [String]
157
+ attr_accessor :expression
158
+
159
+ # Optional. String indicating the location of the expression for error reporting,
160
+ # e.g. a file name and a position in the file.
161
+ # Corresponds to the JSON property `location`
162
+ # @return [String]
163
+ attr_accessor :location
164
+
165
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
166
+ # This can be used e.g. in UIs which allow to enter the expression.
167
+ # Corresponds to the JSON property `title`
168
+ # @return [String]
169
+ attr_accessor :title
170
+
171
+ def initialize(**args)
172
+ update!(**args)
173
+ end
174
+
175
+ # Update properties of this object
176
+ def update!(**args)
177
+ @description = args[:description] if args.key?(:description)
178
+ @expression = args[:expression] if args.key?(:expression)
179
+ @location = args[:location] if args.key?(:location)
180
+ @title = args[:title] if args.key?(:title)
181
+ end
182
+ end
183
+
184
+ # The response message for Locations.ListLocations.
185
+ class ListLocationsResponse
186
+ include Google::Apis::Core::Hashable
187
+
188
+ # A list of locations that matches the specified filter in the request.
189
+ # Corresponds to the JSON property `locations`
190
+ # @return [Array<Google::Apis::NotebooksV2::Location>]
191
+ attr_accessor :locations
192
+
193
+ # The standard List next-page token.
194
+ # Corresponds to the JSON property `nextPageToken`
195
+ # @return [String]
196
+ attr_accessor :next_page_token
197
+
198
+ def initialize(**args)
199
+ update!(**args)
200
+ end
201
+
202
+ # Update properties of this object
203
+ def update!(**args)
204
+ @locations = args[:locations] if args.key?(:locations)
205
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
206
+ end
207
+ end
208
+
209
+ # The response message for Operations.ListOperations.
210
+ class ListOperationsResponse
211
+ include Google::Apis::Core::Hashable
212
+
213
+ # The standard List next-page token.
214
+ # Corresponds to the JSON property `nextPageToken`
215
+ # @return [String]
216
+ attr_accessor :next_page_token
217
+
218
+ # A list of operations that matches the specified filter in the request.
219
+ # Corresponds to the JSON property `operations`
220
+ # @return [Array<Google::Apis::NotebooksV2::Operation>]
221
+ attr_accessor :operations
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
230
+ @operations = args[:operations] if args.key?(:operations)
231
+ end
232
+ end
233
+
234
+ # A resource that represents Google Cloud Platform location.
235
+ class Location
236
+ include Google::Apis::Core::Hashable
237
+
238
+ # The friendly name for this location, typically a nearby city name. For example,
239
+ # "Tokyo".
240
+ # Corresponds to the JSON property `displayName`
241
+ # @return [String]
242
+ attr_accessor :display_name
243
+
244
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
245
+ # region": "us-east1"`
246
+ # Corresponds to the JSON property `labels`
247
+ # @return [Hash<String,String>]
248
+ attr_accessor :labels
249
+
250
+ # The canonical id for this location. For example: `"us-east1"`.
251
+ # Corresponds to the JSON property `locationId`
252
+ # @return [String]
253
+ attr_accessor :location_id
254
+
255
+ # Service-specific metadata. For example the available capacity at the given
256
+ # location.
257
+ # Corresponds to the JSON property `metadata`
258
+ # @return [Hash<String,Object>]
259
+ attr_accessor :metadata
260
+
261
+ # Resource name for the location, which may vary between implementations. For
262
+ # example: `"projects/example-project/locations/us-east1"`
263
+ # Corresponds to the JSON property `name`
264
+ # @return [String]
265
+ attr_accessor :name
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @display_name = args[:display_name] if args.key?(:display_name)
274
+ @labels = args[:labels] if args.key?(:labels)
275
+ @location_id = args[:location_id] if args.key?(:location_id)
276
+ @metadata = args[:metadata] if args.key?(:metadata)
277
+ @name = args[:name] if args.key?(:name)
278
+ end
279
+ end
280
+
281
+ # This resource represents a long-running operation that is the result of a
282
+ # network API call.
283
+ class Operation
284
+ include Google::Apis::Core::Hashable
285
+
286
+ # If the value is `false`, it means the operation is still in progress. If `true`
287
+ # , the operation is completed, and either `error` or `response` is available.
288
+ # Corresponds to the JSON property `done`
289
+ # @return [Boolean]
290
+ attr_accessor :done
291
+ alias_method :done?, :done
292
+
293
+ # The `Status` type defines a logical error model that is suitable for different
294
+ # programming environments, including REST APIs and RPC APIs. It is used by [
295
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
296
+ # data: error code, error message, and error details. You can find out more
297
+ # about this error model and how to work with it in the [API Design Guide](https:
298
+ # //cloud.google.com/apis/design/errors).
299
+ # Corresponds to the JSON property `error`
300
+ # @return [Google::Apis::NotebooksV2::Status]
301
+ attr_accessor :error
302
+
303
+ # Service-specific metadata associated with the operation. It typically contains
304
+ # progress information and common metadata such as create time. Some services
305
+ # might not provide such metadata. Any method that returns a long-running
306
+ # operation should document the metadata type, if any.
307
+ # Corresponds to the JSON property `metadata`
308
+ # @return [Hash<String,Object>]
309
+ attr_accessor :metadata
310
+
311
+ # The server-assigned name, which is only unique within the same service that
312
+ # originally returns it. If you use the default HTTP mapping, the `name` should
313
+ # be a resource name ending with `operations/`unique_id``.
314
+ # Corresponds to the JSON property `name`
315
+ # @return [String]
316
+ attr_accessor :name
317
+
318
+ # The normal response of the operation in case of success. If the original
319
+ # method returns no data on success, such as `Delete`, the response is `google.
320
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
321
+ # the response should be the resource. For other methods, the response should
322
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
323
+ # example, if the original method name is `TakeSnapshot()`, the inferred
324
+ # response type is `TakeSnapshotResponse`.
325
+ # Corresponds to the JSON property `response`
326
+ # @return [Hash<String,Object>]
327
+ attr_accessor :response
328
+
329
+ def initialize(**args)
330
+ update!(**args)
331
+ end
332
+
333
+ # Update properties of this object
334
+ def update!(**args)
335
+ @done = args[:done] if args.key?(:done)
336
+ @error = args[:error] if args.key?(:error)
337
+ @metadata = args[:metadata] if args.key?(:metadata)
338
+ @name = args[:name] if args.key?(:name)
339
+ @response = args[:response] if args.key?(:response)
340
+ end
341
+ end
342
+
343
+ # Represents the metadata of the long-running operation.
344
+ class OperationMetadata
345
+ include Google::Apis::Core::Hashable
346
+
347
+ # API version used to start the operation.
348
+ # Corresponds to the JSON property `apiVersion`
349
+ # @return [String]
350
+ attr_accessor :api_version
351
+
352
+ # The time the operation was created.
353
+ # Corresponds to the JSON property `createTime`
354
+ # @return [String]
355
+ attr_accessor :create_time
356
+
357
+ # The time the operation finished running.
358
+ # Corresponds to the JSON property `endTime`
359
+ # @return [String]
360
+ attr_accessor :end_time
361
+
362
+ # API endpoint name of this operation.
363
+ # Corresponds to the JSON property `endpoint`
364
+ # @return [String]
365
+ attr_accessor :endpoint
366
+
367
+ # Identifies whether the user has requested cancellation of the operation.
368
+ # Operations that have successfully been cancelled have Operation.error value
369
+ # with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
370
+ # Corresponds to the JSON property `requestedCancellation`
371
+ # @return [Boolean]
372
+ attr_accessor :requested_cancellation
373
+ alias_method :requested_cancellation?, :requested_cancellation
374
+
375
+ # Human-readable status of the operation, if any.
376
+ # Corresponds to the JSON property `statusMessage`
377
+ # @return [String]
378
+ attr_accessor :status_message
379
+
380
+ # Server-defined resource path for the target of the operation.
381
+ # Corresponds to the JSON property `target`
382
+ # @return [String]
383
+ attr_accessor :target
384
+
385
+ # Name of the verb executed by the operation.
386
+ # Corresponds to the JSON property `verb`
387
+ # @return [String]
388
+ attr_accessor :verb
389
+
390
+ def initialize(**args)
391
+ update!(**args)
392
+ end
393
+
394
+ # Update properties of this object
395
+ def update!(**args)
396
+ @api_version = args[:api_version] if args.key?(:api_version)
397
+ @create_time = args[:create_time] if args.key?(:create_time)
398
+ @end_time = args[:end_time] if args.key?(:end_time)
399
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
400
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
401
+ @status_message = args[:status_message] if args.key?(:status_message)
402
+ @target = args[:target] if args.key?(:target)
403
+ @verb = args[:verb] if args.key?(:verb)
404
+ end
405
+ end
406
+
407
+ # An Identity and Access Management (IAM) policy, which specifies access
408
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
409
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
410
+ # Principals can be user accounts, service accounts, Google groups, and domains (
411
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
412
+ # an IAM predefined role or a user-created custom role. For some types of Google
413
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
414
+ # logical expression that allows access to a resource only if the expression
415
+ # evaluates to `true`. A condition can add constraints based on attributes of
416
+ # the request, the resource, or both. To learn which resources support
417
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
418
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
419
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
420
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
421
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
422
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
423
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
424
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
425
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
426
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
427
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
428
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
429
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
430
+ # access description: Does not grant access after Sep 2020 expression: request.
431
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
432
+ # a description of IAM and its features, see the [IAM documentation](https://
433
+ # cloud.google.com/iam/docs/).
434
+ class Policy
435
+ include Google::Apis::Core::Hashable
436
+
437
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
438
+ # specify a `condition` that determines how and when the `bindings` are applied.
439
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
440
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
441
+ # can be Google groups. Each occurrence of a principal counts towards these
442
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
443
+ # example.com`, and not to any other principal, then you can add another 1,450
444
+ # principals to the `bindings` in the `Policy`.
445
+ # Corresponds to the JSON property `bindings`
446
+ # @return [Array<Google::Apis::NotebooksV2::Binding>]
447
+ attr_accessor :bindings
448
+
449
+ # `etag` is used for optimistic concurrency control as a way to help prevent
450
+ # simultaneous updates of a policy from overwriting each other. It is strongly
451
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
452
+ # to perform policy updates in order to avoid race conditions: An `etag` is
453
+ # returned in the response to `getIamPolicy`, and systems are expected to put
454
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
455
+ # applied to the same version of the policy. **Important:** If you use IAM
456
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
457
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
458
+ # with a version `1` policy, and all of the conditions in the version `3` policy
459
+ # are lost.
460
+ # Corresponds to the JSON property `etag`
461
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
462
+ # @return [String]
463
+ attr_accessor :etag
464
+
465
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
466
+ # Requests that specify an invalid value are rejected. Any operation that
467
+ # affects conditional role bindings must specify version `3`. This requirement
468
+ # applies to the following operations: * Getting a policy that includes a
469
+ # conditional role binding * Adding a conditional role binding to a policy *
470
+ # Changing a conditional role binding in a policy * Removing any role binding,
471
+ # with or without a condition, from a policy that includes conditions **
472
+ # Important:** If you use IAM Conditions, you must include the `etag` field
473
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
474
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
475
+ # conditions in the version `3` policy are lost. If a policy does not include
476
+ # any conditions, operations on that policy may specify any valid version or
477
+ # leave the field unset. To learn which resources support conditions in their
478
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
479
+ # conditions/resource-policies).
480
+ # Corresponds to the JSON property `version`
481
+ # @return [Fixnum]
482
+ attr_accessor :version
483
+
484
+ def initialize(**args)
485
+ update!(**args)
486
+ end
487
+
488
+ # Update properties of this object
489
+ def update!(**args)
490
+ @bindings = args[:bindings] if args.key?(:bindings)
491
+ @etag = args[:etag] if args.key?(:etag)
492
+ @version = args[:version] if args.key?(:version)
493
+ end
494
+ end
495
+
496
+ # Request message for `SetIamPolicy` method.
497
+ class SetIamPolicyRequest
498
+ include Google::Apis::Core::Hashable
499
+
500
+ # An Identity and Access Management (IAM) policy, which specifies access
501
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
502
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
503
+ # Principals can be user accounts, service accounts, Google groups, and domains (
504
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
505
+ # an IAM predefined role or a user-created custom role. For some types of Google
506
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
507
+ # logical expression that allows access to a resource only if the expression
508
+ # evaluates to `true`. A condition can add constraints based on attributes of
509
+ # the request, the resource, or both. To learn which resources support
510
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
511
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
512
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
513
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
514
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
515
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
516
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
517
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
518
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
519
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
520
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
521
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
522
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
523
+ # access description: Does not grant access after Sep 2020 expression: request.
524
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
525
+ # a description of IAM and its features, see the [IAM documentation](https://
526
+ # cloud.google.com/iam/docs/).
527
+ # Corresponds to the JSON property `policy`
528
+ # @return [Google::Apis::NotebooksV2::Policy]
529
+ attr_accessor :policy
530
+
531
+ def initialize(**args)
532
+ update!(**args)
533
+ end
534
+
535
+ # Update properties of this object
536
+ def update!(**args)
537
+ @policy = args[:policy] if args.key?(:policy)
538
+ end
539
+ end
540
+
541
+ # The `Status` type defines a logical error model that is suitable for different
542
+ # programming environments, including REST APIs and RPC APIs. It is used by [
543
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
544
+ # data: error code, error message, and error details. You can find out more
545
+ # about this error model and how to work with it in the [API Design Guide](https:
546
+ # //cloud.google.com/apis/design/errors).
547
+ class Status
548
+ include Google::Apis::Core::Hashable
549
+
550
+ # The status code, which should be an enum value of google.rpc.Code.
551
+ # Corresponds to the JSON property `code`
552
+ # @return [Fixnum]
553
+ attr_accessor :code
554
+
555
+ # A list of messages that carry the error details. There is a common set of
556
+ # message types for APIs to use.
557
+ # Corresponds to the JSON property `details`
558
+ # @return [Array<Hash<String,Object>>]
559
+ attr_accessor :details
560
+
561
+ # A developer-facing error message, which should be in English. Any user-facing
562
+ # error message should be localized and sent in the google.rpc.Status.details
563
+ # field, or localized by the client.
564
+ # Corresponds to the JSON property `message`
565
+ # @return [String]
566
+ attr_accessor :message
567
+
568
+ def initialize(**args)
569
+ update!(**args)
570
+ end
571
+
572
+ # Update properties of this object
573
+ def update!(**args)
574
+ @code = args[:code] if args.key?(:code)
575
+ @details = args[:details] if args.key?(:details)
576
+ @message = args[:message] if args.key?(:message)
577
+ end
578
+ end
579
+
580
+ # Request message for `TestIamPermissions` method.
581
+ class TestIamPermissionsRequest
582
+ include Google::Apis::Core::Hashable
583
+
584
+ # The set of permissions to check for the `resource`. Permissions with wildcards
585
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
586
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
587
+ # Corresponds to the JSON property `permissions`
588
+ # @return [Array<String>]
589
+ attr_accessor :permissions
590
+
591
+ def initialize(**args)
592
+ update!(**args)
593
+ end
594
+
595
+ # Update properties of this object
596
+ def update!(**args)
597
+ @permissions = args[:permissions] if args.key?(:permissions)
598
+ end
599
+ end
600
+
601
+ # Response message for `TestIamPermissions` method.
602
+ class TestIamPermissionsResponse
603
+ include Google::Apis::Core::Hashable
604
+
605
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
606
+ # Corresponds to the JSON property `permissions`
607
+ # @return [Array<String>]
608
+ attr_accessor :permissions
609
+
610
+ def initialize(**args)
611
+ update!(**args)
612
+ end
613
+
614
+ # Update properties of this object
615
+ def update!(**args)
616
+ @permissions = args[:permissions] if args.key?(:permissions)
617
+ end
618
+ end
619
+ end
620
+ end
621
+ end
@@ -0,0 +1,28 @@
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
+ module Google
16
+ module Apis
17
+ module NotebooksV2
18
+ # Version of the google-apis-notebooks_v2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.12.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20230307"
26
+ end
27
+ end
28
+ end