google-apis-notebooks_v1 0.14.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/notebooks_v1/classes.rb +180 -94
- data/lib/google/apis/notebooks_v1/gem_version.rb +2 -2
- data/lib/google/apis/notebooks_v1/representations.rb +33 -0
- data/lib/google/apis/notebooks_v1/service.rb +118 -3
- data/lib/google/apis/notebooks_v1.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 894ad2b301172e56625b457029b94b638cb4dcebf4589b9ffcb5d17881be95e6
|
4
|
+
data.tar.gz: c2b407e798448b13376c6cbfe3ff7ae912fe897baabeaee956580d333e27d4cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a90564f02432e1eb82516ff2d2cfd14c78fe5fb0d858e7c85a68ac5df95ceb65e550ddc7e75436b2f2b70412ac855971f6176a5d2466112c1841425dbba35f
|
7
|
+
data.tar.gz: ef3ae4427e602705cdafc94471a87bc3471599caf57076460c32c75e9d2dc209139041bb26d94e7a70f292ed7fcedab681cc1012c948c356f76ed432a716cc94
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-notebooks_v1
|
2
2
|
|
3
|
+
### v0.18.0 (2021-10-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211019
|
6
|
+
* Unspecified changes
|
7
|
+
|
8
|
+
### v0.17.0 (2021-09-21)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20210916
|
11
|
+
|
12
|
+
### v0.16.0 (2021-09-01)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210812
|
15
|
+
|
16
|
+
### v0.15.0 (2021-07-28)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210722
|
19
|
+
|
3
20
|
### v0.14.0 (2021-07-21)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210715
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Notebooks service in particular.)
|
67
67
|
|
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
# Associates `members
|
52
|
+
# Associates `members`, or principals, with a `role`.
|
53
53
|
class Binding
|
54
54
|
include Google::Apis::Core::Hashable
|
55
55
|
|
@@ -72,7 +72,7 @@ module Google
|
|
72
72
|
# @return [Google::Apis::NotebooksV1::Expr]
|
73
73
|
attr_accessor :condition
|
74
74
|
|
75
|
-
# Specifies the
|
75
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
76
76
|
# members` can have the following values: * `allUsers`: A special identifier
|
77
77
|
# that represents anyone who is on the internet; with or without a Google
|
78
78
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -102,8 +102,8 @@ module Google
|
|
102
102
|
# @return [Array<String>]
|
103
103
|
attr_accessor :members
|
104
104
|
|
105
|
-
# Role that is assigned to `members
|
106
|
-
#
|
105
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
106
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
107
107
|
# Corresponds to the JSON property `role`
|
108
108
|
# @return [String]
|
109
109
|
attr_accessor :role
|
@@ -161,6 +161,26 @@ module Google
|
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
164
|
+
# Parameters used in Dataproc JobType executions.
|
165
|
+
class DataprocParameters
|
166
|
+
include Google::Apis::Core::Hashable
|
167
|
+
|
168
|
+
# URI for cluster used to run Dataproc execution. Format: `projects/`PROJECT_ID`/
|
169
|
+
# regions/`REGION`/clusters/`CLUSTER_NAME``
|
170
|
+
# Corresponds to the JSON property `cluster`
|
171
|
+
# @return [String]
|
172
|
+
attr_accessor :cluster
|
173
|
+
|
174
|
+
def initialize(**args)
|
175
|
+
update!(**args)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Update properties of this object
|
179
|
+
def update!(**args)
|
180
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
164
184
|
# An instance-attached disk resource.
|
165
185
|
class Disk
|
166
186
|
include Google::Apis::Core::Hashable
|
@@ -213,8 +233,8 @@ module Google
|
|
213
233
|
# SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
|
214
234
|
# the request will fail if you attempt to attach a persistent disk in any other
|
215
235
|
# format than SCSI. Local SSDs can use either NVME or SCSI. For performance
|
216
|
-
# characteristics of SCSI over NVMe, see Local SSD performance. Valid values:
|
217
|
-
# NVME SCSI
|
236
|
+
# characteristics of SCSI over NVMe, see Local SSD performance. Valid values: *
|
237
|
+
# NVME * SCSI
|
218
238
|
# Corresponds to the JSON property `interface`
|
219
239
|
# @return [String]
|
220
240
|
attr_accessor :interface
|
@@ -232,7 +252,7 @@ module Google
|
|
232
252
|
|
233
253
|
# The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not
|
234
254
|
# specified, the default is to attach the disk in READ_WRITE mode. Valid values:
|
235
|
-
# READ_ONLY READ_WRITE
|
255
|
+
# * READ_ONLY * READ_WRITE
|
236
256
|
# Corresponds to the JSON property `mode`
|
237
257
|
# @return [String]
|
238
258
|
attr_accessor :mode
|
@@ -242,8 +262,8 @@ module Google
|
|
242
262
|
# @return [String]
|
243
263
|
attr_accessor :source
|
244
264
|
|
245
|
-
# Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values:
|
246
|
-
# PERSISTENT SCRATCH
|
265
|
+
# Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: *
|
266
|
+
# PERSISTENT * SCRATCH
|
247
267
|
# Corresponds to the JSON property `type`
|
248
268
|
# @return [String]
|
249
269
|
attr_accessor :type
|
@@ -424,7 +444,7 @@ module Google
|
|
424
444
|
attr_accessor :job_uri
|
425
445
|
|
426
446
|
# Output only. The resource name of the execute. Format: `projects/`project_id`/
|
427
|
-
# locations/`location`/
|
447
|
+
# locations/`location`/executions/`execution_id``
|
428
448
|
# Corresponds to the JSON property `name`
|
429
449
|
# @return [String]
|
430
450
|
attr_accessor :name
|
@@ -467,8 +487,9 @@ module Google
|
|
467
487
|
include Google::Apis::Core::Hashable
|
468
488
|
|
469
489
|
# Definition of a hardware accelerator. Note that not all combinations of `type`
|
470
|
-
# and `core_count` are valid. Check GPUs on Compute Engine
|
471
|
-
# combination. TPUs are not
|
490
|
+
# and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.
|
491
|
+
# google.com/compute/docs/gpus) to find a valid combination. TPUs are not
|
492
|
+
# supported.
|
472
493
|
# Corresponds to the JSON property `acceleratorConfig`
|
473
494
|
# @return [Google::Apis::NotebooksV1::SchedulerAcceleratorConfig]
|
474
495
|
attr_accessor :accelerator_config
|
@@ -480,13 +501,29 @@ module Google
|
|
480
501
|
# @return [String]
|
481
502
|
attr_accessor :container_image_uri
|
482
503
|
|
504
|
+
# Parameters used in Dataproc JobType executions.
|
505
|
+
# Corresponds to the JSON property `dataprocParameters`
|
506
|
+
# @return [Google::Apis::NotebooksV1::DataprocParameters]
|
507
|
+
attr_accessor :dataproc_parameters
|
508
|
+
|
483
509
|
# Path to the notebook file to execute. Must be in a Google Cloud Storage bucket.
|
484
|
-
# Format: gs://`
|
485
|
-
# notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
|
510
|
+
# Format: `gs://`bucket_name`/`folder`/`notebook_file_name`` Ex: `gs://
|
511
|
+
# notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
|
486
512
|
# Corresponds to the JSON property `inputNotebookFile`
|
487
513
|
# @return [String]
|
488
514
|
attr_accessor :input_notebook_file
|
489
515
|
|
516
|
+
# The type of Job to be used on this execution.
|
517
|
+
# Corresponds to the JSON property `jobType`
|
518
|
+
# @return [String]
|
519
|
+
attr_accessor :job_type
|
520
|
+
|
521
|
+
# Name of the kernel spec to use. This must be specified if the kernel spec name
|
522
|
+
# on the execution target does not match the name in the input notebook file.
|
523
|
+
# Corresponds to the JSON property `kernelSpec`
|
524
|
+
# @return [String]
|
525
|
+
attr_accessor :kernel_spec
|
526
|
+
|
490
527
|
# Labels for execution. If execution is scheduled, a field included will be 'nbs-
|
491
528
|
# scheduled'. Otherwise, it is an immediate execution, and an included field
|
492
529
|
# will be 'nbs-immediate'. Use fields to efficiently index between various types
|
@@ -509,14 +546,15 @@ module Google
|
|
509
546
|
# standard_v100` - `large_model_v100` - `complex_model_m_v100` - `
|
510
547
|
# complex_model_l_v100` Finally, if you want to use a TPU for training, specify `
|
511
548
|
# cloud_tpu` in this field. Learn more about the [special configuration options
|
512
|
-
# for training with TPU.
|
549
|
+
# for training with TPU](https://cloud.google.com/ai-platform/training/docs/
|
550
|
+
# using-tpus#configuring_a_custom_tpu_machine).
|
513
551
|
# Corresponds to the JSON property `masterType`
|
514
552
|
# @return [String]
|
515
553
|
attr_accessor :master_type
|
516
554
|
|
517
555
|
# Path to the notebook folder to write to. Must be in a Google Cloud Storage
|
518
|
-
# bucket path. Format: gs://`
|
519
|
-
# scheduled_notebooks
|
556
|
+
# bucket path. Format: `gs://`bucket_name`/`folder`` Ex: `gs://notebook_user/
|
557
|
+
# scheduled_notebooks`
|
520
558
|
# Corresponds to the JSON property `outputNotebookFolder`
|
521
559
|
# @return [String]
|
522
560
|
attr_accessor :output_notebook_folder
|
@@ -529,7 +567,7 @@ module Google
|
|
529
567
|
# Parameters to be overridden in the notebook during execution. Ref https://
|
530
568
|
# papermill.readthedocs.io/en/latest/usage-parameterize.html on how to
|
531
569
|
# specifying parameters in the input notebook and pass them here in an YAML file.
|
532
|
-
# Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml
|
570
|
+
# Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml`
|
533
571
|
# Corresponds to the JSON property `paramsYamlFile`
|
534
572
|
# @return [String]
|
535
573
|
attr_accessor :params_yaml_file
|
@@ -547,6 +585,11 @@ module Google
|
|
547
585
|
# @return [String]
|
548
586
|
attr_accessor :service_account
|
549
587
|
|
588
|
+
# Parameters used in Vertex AI JobType executions.
|
589
|
+
# Corresponds to the JSON property `vertexAiParameters`
|
590
|
+
# @return [Google::Apis::NotebooksV1::VertexAiParameters]
|
591
|
+
attr_accessor :vertex_ai_parameters
|
592
|
+
|
550
593
|
def initialize(**args)
|
551
594
|
update!(**args)
|
552
595
|
end
|
@@ -555,7 +598,10 @@ module Google
|
|
555
598
|
def update!(**args)
|
556
599
|
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
|
557
600
|
@container_image_uri = args[:container_image_uri] if args.key?(:container_image_uri)
|
601
|
+
@dataproc_parameters = args[:dataproc_parameters] if args.key?(:dataproc_parameters)
|
558
602
|
@input_notebook_file = args[:input_notebook_file] if args.key?(:input_notebook_file)
|
603
|
+
@job_type = args[:job_type] if args.key?(:job_type)
|
604
|
+
@kernel_spec = args[:kernel_spec] if args.key?(:kernel_spec)
|
559
605
|
@labels = args[:labels] if args.key?(:labels)
|
560
606
|
@master_type = args[:master_type] if args.key?(:master_type)
|
561
607
|
@output_notebook_folder = args[:output_notebook_folder] if args.key?(:output_notebook_folder)
|
@@ -563,6 +609,7 @@ module Google
|
|
563
609
|
@params_yaml_file = args[:params_yaml_file] if args.key?(:params_yaml_file)
|
564
610
|
@scale_tier = args[:scale_tier] if args.key?(:scale_tier)
|
565
611
|
@service_account = args[:service_account] if args.key?(:service_account)
|
612
|
+
@vertex_ai_parameters = args[:vertex_ai_parameters] if args.key?(:vertex_ai_parameters)
|
566
613
|
end
|
567
614
|
end
|
568
615
|
|
@@ -653,8 +700,9 @@ module Google
|
|
653
700
|
include Google::Apis::Core::Hashable
|
654
701
|
|
655
702
|
# The ID of a supported feature. Read Enabling guest operating system features
|
656
|
-
# to see a list of available options. Valid values: FEATURE_TYPE_UNSPECIFIED
|
657
|
-
# MULTI_IP_SUBNET SECURE_BOOT UEFI_COMPATIBLE VIRTIO_SCSI_MULTIQUEUE
|
703
|
+
# to see a list of available options. Valid values: * FEATURE_TYPE_UNSPECIFIED *
|
704
|
+
# MULTI_IP_SUBNET * SECURE_BOOT * UEFI_COMPATIBLE * VIRTIO_SCSI_MULTIQUEUE *
|
705
|
+
# WINDOWS
|
658
706
|
# Corresponds to the JSON property `type`
|
659
707
|
# @return [String]
|
660
708
|
attr_accessor :type
|
@@ -812,8 +860,8 @@ module Google
|
|
812
860
|
alias_method :no_remove_data_disk?, :no_remove_data_disk
|
813
861
|
|
814
862
|
# Path to a Bash script that automatically runs after a notebook instance fully
|
815
|
-
# boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/
|
816
|
-
# name).
|
863
|
+
# boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/
|
864
|
+
# file-name`).
|
817
865
|
# Corresponds to the JSON property `postStartupScript`
|
818
866
|
# @return [String]
|
819
867
|
attr_accessor :post_startup_script
|
@@ -933,7 +981,7 @@ module Google
|
|
933
981
|
class InstanceConfig
|
934
982
|
include Google::Apis::Core::Hashable
|
935
983
|
|
936
|
-
# Verifies core internal services are running.
|
984
|
+
# Verifies core internal services are running.
|
937
985
|
# Corresponds to the JSON property `enableHealthMonitoring`
|
938
986
|
# @return [Boolean]
|
939
987
|
attr_accessor :enable_health_monitoring
|
@@ -1044,9 +1092,9 @@ module Google
|
|
1044
1092
|
# @return [String]
|
1045
1093
|
attr_accessor :next_page_token
|
1046
1094
|
|
1047
|
-
# Executions IDs that could not be reached. For example
|
1095
|
+
# Executions IDs that could not be reached. For example: ['projects/`project_id`/
|
1048
1096
|
# location/`location`/executions/imagenet_test1', 'projects/`project_id`/
|
1049
|
-
# location/`location`/executions/classifier_train1']
|
1097
|
+
# location/`location`/executions/classifier_train1']
|
1050
1098
|
# Corresponds to the JSON property `unreachable`
|
1051
1099
|
# @return [Array<String>]
|
1052
1100
|
attr_accessor :unreachable
|
@@ -1195,9 +1243,9 @@ module Google
|
|
1195
1243
|
# @return [Array<Google::Apis::NotebooksV1::Schedule>]
|
1196
1244
|
attr_accessor :schedules
|
1197
1245
|
|
1198
|
-
# Schedules that could not be reached. For example
|
1246
|
+
# Schedules that could not be reached. For example: ['projects/`project_id`/
|
1199
1247
|
# location/`location`/schedules/monthly_digest', 'projects/`project_id`/location/
|
1200
|
-
# `location`/schedules/weekly_sentiment']
|
1248
|
+
# `location`/schedules/weekly_sentiment']
|
1201
1249
|
# Corresponds to the JSON property `unreachable`
|
1202
1250
|
# @return [Array<String>]
|
1203
1251
|
attr_accessor :unreachable
|
@@ -1214,7 +1262,7 @@ module Google
|
|
1214
1262
|
end
|
1215
1263
|
end
|
1216
1264
|
|
1217
|
-
#
|
1265
|
+
# A Local attached disk resource.
|
1218
1266
|
class LocalDisk
|
1219
1267
|
include Google::Apis::Core::Hashable
|
1220
1268
|
|
@@ -1269,8 +1317,8 @@ module Google
|
|
1269
1317
|
# SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
|
1270
1318
|
# the request will fail if you attempt to attach a persistent disk in any other
|
1271
1319
|
# format than SCSI. Local SSDs can use either NVME or SCSI. For performance
|
1272
|
-
# characteristics of SCSI over NVMe, see Local SSD performance. Valid values:
|
1273
|
-
# NVME SCSI
|
1320
|
+
# characteristics of SCSI over NVMe, see Local SSD performance. Valid values: *
|
1321
|
+
# NVME * SCSI
|
1274
1322
|
# Corresponds to the JSON property `interface`
|
1275
1323
|
# @return [String]
|
1276
1324
|
attr_accessor :interface
|
@@ -1288,7 +1336,7 @@ module Google
|
|
1288
1336
|
|
1289
1337
|
# The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not
|
1290
1338
|
# specified, the default is to attach the disk in READ_WRITE mode. Valid values:
|
1291
|
-
# READ_ONLY READ_WRITE
|
1339
|
+
# * READ_ONLY * READ_WRITE
|
1292
1340
|
# Corresponds to the JSON property `mode`
|
1293
1341
|
# @return [String]
|
1294
1342
|
attr_accessor :mode
|
@@ -1299,7 +1347,7 @@ module Google
|
|
1299
1347
|
attr_accessor :source
|
1300
1348
|
|
1301
1349
|
# Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
|
1302
|
-
# the default is PERSISTENT. Valid values: PERSISTENT SCRATCH
|
1350
|
+
# the default is PERSISTENT. Valid values: * PERSISTENT * SCRATCH
|
1303
1351
|
# Corresponds to the JSON property `type`
|
1304
1352
|
# @return [String]
|
1305
1353
|
attr_accessor :type
|
@@ -1552,37 +1600,42 @@ module Google
|
|
1552
1600
|
|
1553
1601
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1554
1602
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1555
|
-
# A `binding` binds one or more `members
|
1556
|
-
# user accounts, service accounts, Google groups, and domains (
|
1557
|
-
# A `role` is a named list of permissions; each `role` can be
|
1558
|
-
# role or a user-created custom role. For some types of Google
|
1559
|
-
# a `binding` can also specify a `condition`, which is a
|
1560
|
-
# allows access to a resource only if the expression
|
1561
|
-
# condition can add constraints based on attributes of
|
1562
|
-
# or both. To learn which resources support
|
1563
|
-
# see the [IAM documentation](https://cloud.
|
1564
|
-
# resource-policies). **JSON example:** ` "
|
1565
|
-
# resourcemanager.organizationAdmin", "members": [
|
1566
|
-
# group:admins@example.com", "domain:google.com", "
|
1567
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
1568
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
1569
|
-
# title": "expirable access", "description": "Does not grant
|
1570
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1571
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1572
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
1573
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1574
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
1575
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
1576
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
1577
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
1578
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
1579
|
-
# google.com/iam/docs/).
|
1603
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1604
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1605
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1606
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1607
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1608
|
+
# logical expression that allows access to a resource only if the expression
|
1609
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1610
|
+
# the request, the resource, or both. To learn which resources support
|
1611
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1612
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1613
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1614
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1615
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1616
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1617
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1618
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1619
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1620
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
1621
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1622
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
1623
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1624
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1625
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1626
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1627
|
+
# cloud.google.com/iam/docs/).
|
1580
1628
|
class Policy
|
1581
1629
|
include Google::Apis::Core::Hashable
|
1582
1630
|
|
1583
|
-
# Associates a list of `members
|
1584
|
-
# condition` that determines how and when the `bindings` are applied.
|
1585
|
-
# the `bindings` must contain at least one
|
1631
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
1632
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
1633
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
1634
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
1635
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
1636
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
1637
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
1638
|
+
# principals to the `bindings` in the `Policy`.
|
1586
1639
|
# Corresponds to the JSON property `bindings`
|
1587
1640
|
# @return [Array<Google::Apis::NotebooksV1::Binding>]
|
1588
1641
|
attr_accessor :bindings
|
@@ -2033,7 +2086,7 @@ module Google
|
|
2033
2086
|
attr_accessor :idle_shutdown
|
2034
2087
|
alias_method :idle_shutdown?, :idle_shutdown
|
2035
2088
|
|
2036
|
-
# Time in minutes to wait before
|
2089
|
+
# Time in minutes to wait before shutting down runtime. Default: 180 minutes
|
2037
2090
|
# Corresponds to the JSON property `idleShutdownTimeout`
|
2038
2091
|
# @return [Fixnum]
|
2039
2092
|
attr_accessor :idle_shutdown_timeout
|
@@ -2051,8 +2104,8 @@ module Google
|
|
2051
2104
|
attr_accessor :notebook_upgrade_schedule
|
2052
2105
|
|
2053
2106
|
# Path to a Bash script that automatically runs after a notebook instance fully
|
2054
|
-
# boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/
|
2055
|
-
# name).
|
2107
|
+
# boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/
|
2108
|
+
# file-name`).
|
2056
2109
|
# Corresponds to the JSON property `postStartupScript`
|
2057
2110
|
# @return [String]
|
2058
2111
|
attr_accessor :post_startup_script
|
@@ -2082,9 +2135,9 @@ module Google
|
|
2082
2135
|
# @return [String]
|
2083
2136
|
attr_accessor :create_time
|
2084
2137
|
|
2085
|
-
# Cron-tab formatted schedule by which the job will execute Format: minute,
|
2086
|
-
# day of month, month, day of week e.g. 0 0 * * WED = every Wednesday
|
2087
|
-
# examples: https://crontab.guru/examples.html
|
2138
|
+
# Cron-tab formatted schedule by which the job will execute. Format: minute,
|
2139
|
+
# hour, day of month, month, day of week, e.g. 0 0 * * WED = every Wednesday
|
2140
|
+
# More examples: https://crontab.guru/examples.html
|
2088
2141
|
# Corresponds to the JSON property `cronSchedule`
|
2089
2142
|
# @return [String]
|
2090
2143
|
attr_accessor :cron_schedule
|
@@ -2157,8 +2210,9 @@ module Google
|
|
2157
2210
|
end
|
2158
2211
|
|
2159
2212
|
# Definition of a hardware accelerator. Note that not all combinations of `type`
|
2160
|
-
# and `core_count` are valid. Check GPUs on Compute Engine
|
2161
|
-
# combination. TPUs are not
|
2213
|
+
# and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.
|
2214
|
+
# google.com/compute/docs/gpus) to find a valid combination. TPUs are not
|
2215
|
+
# supported.
|
2162
2216
|
class SchedulerAcceleratorConfig
|
2163
2217
|
include Google::Apis::Core::Hashable
|
2164
2218
|
|
@@ -2189,31 +2243,31 @@ module Google
|
|
2189
2243
|
|
2190
2244
|
# An Identity and Access Management (IAM) policy, which specifies access
|
2191
2245
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
2192
|
-
# A `binding` binds one or more `members
|
2193
|
-
# user accounts, service accounts, Google groups, and domains (
|
2194
|
-
# A `role` is a named list of permissions; each `role` can be
|
2195
|
-
# role or a user-created custom role. For some types of Google
|
2196
|
-
# a `binding` can also specify a `condition`, which is a
|
2197
|
-
# allows access to a resource only if the expression
|
2198
|
-
# condition can add constraints based on attributes of
|
2199
|
-
# or both. To learn which resources support
|
2200
|
-
# see the [IAM documentation](https://cloud.
|
2201
|
-
# resource-policies). **JSON example:** ` "
|
2202
|
-
# resourcemanager.organizationAdmin", "members": [
|
2203
|
-
# group:admins@example.com", "domain:google.com", "
|
2204
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
2205
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
2206
|
-
# title": "expirable access", "description": "Does not grant
|
2207
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2208
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2209
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
2210
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2211
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
2212
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
2213
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
2214
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
2215
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
2216
|
-
# google.com/iam/docs/).
|
2246
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
2247
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
2248
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
2249
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
2250
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
2251
|
+
# logical expression that allows access to a resource only if the expression
|
2252
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
2253
|
+
# the request, the resource, or both. To learn which resources support
|
2254
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2255
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
2256
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
2257
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
2258
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
2259
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
2260
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
2261
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2262
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2263
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
2264
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2265
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
2266
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
2267
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
2268
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
2269
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
2270
|
+
# cloud.google.com/iam/docs/).
|
2217
2271
|
# Corresponds to the JSON property `policy`
|
2218
2272
|
# @return [Google::Apis::NotebooksV1::Policy]
|
2219
2273
|
attr_accessor :policy
|
@@ -2658,6 +2712,38 @@ module Google
|
|
2658
2712
|
end
|
2659
2713
|
end
|
2660
2714
|
|
2715
|
+
# Parameters used in Vertex AI JobType executions.
|
2716
|
+
class VertexAiParameters
|
2717
|
+
include Google::Apis::Core::Hashable
|
2718
|
+
|
2719
|
+
# Environment variables. At most 100 environment variables can be specified and
|
2720
|
+
# unique. Example: GCP_BUCKET=gs://my-bucket/samples/
|
2721
|
+
# Corresponds to the JSON property `env`
|
2722
|
+
# @return [Hash<String,String>]
|
2723
|
+
attr_accessor :env
|
2724
|
+
|
2725
|
+
# The full name of the Compute Engine [network](/compute/docs/networks-and-
|
2726
|
+
# firewalls#networks) to which the Job should be peered. For example, `projects/
|
2727
|
+
# 12345/global/networks/myVPC`. [Format](https://cloud.google.com/compute/docs/
|
2728
|
+
# reference/rest/v1/networks/insert) is of the form `projects/`project`/global/
|
2729
|
+
# networks/`network``. Where `project` is a project number, as in `12345`, and `
|
2730
|
+
# network` is a network name. Private services access must already be configured
|
2731
|
+
# for the network. If left unspecified, the job is not peered with any network.
|
2732
|
+
# Corresponds to the JSON property `network`
|
2733
|
+
# @return [String]
|
2734
|
+
attr_accessor :network
|
2735
|
+
|
2736
|
+
def initialize(**args)
|
2737
|
+
update!(**args)
|
2738
|
+
end
|
2739
|
+
|
2740
|
+
# Update properties of this object
|
2741
|
+
def update!(**args)
|
2742
|
+
@env = args[:env] if args.key?(:env)
|
2743
|
+
@network = args[:network] if args.key?(:network)
|
2744
|
+
end
|
2745
|
+
end
|
2746
|
+
|
2661
2747
|
# Runtime using Virtual Machine for computing.
|
2662
2748
|
class VirtualMachine
|
2663
2749
|
include Google::Apis::Core::Hashable
|
@@ -2708,7 +2794,7 @@ module Google
|
|
2708
2794
|
# @return [Array<Google::Apis::NotebooksV1::ContainerImage>]
|
2709
2795
|
attr_accessor :container_images
|
2710
2796
|
|
2711
|
-
#
|
2797
|
+
# A Local attached disk resource.
|
2712
2798
|
# Corresponds to the JSON property `dataDisk`
|
2713
2799
|
# @return [Google::Apis::NotebooksV1::LocalDisk]
|
2714
2800
|
attr_accessor :data_disk
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NotebooksV1
|
18
18
|
# Version of the google-apis-notebooks_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211019"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class DataprocParameters
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class Disk
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -412,6 +418,12 @@ module Google
|
|
412
418
|
include Google::Apis::Core::JsonObjectSupport
|
413
419
|
end
|
414
420
|
|
421
|
+
class VertexAiParameters
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
+
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
425
|
+
end
|
426
|
+
|
415
427
|
class VirtualMachine
|
416
428
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
429
|
|
@@ -462,6 +474,13 @@ module Google
|
|
462
474
|
end
|
463
475
|
end
|
464
476
|
|
477
|
+
class DataprocParameters
|
478
|
+
# @private
|
479
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
480
|
+
property :cluster, as: 'cluster'
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
465
484
|
class Disk
|
466
485
|
# @private
|
467
486
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -539,7 +558,11 @@ module Google
|
|
539
558
|
property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::SchedulerAcceleratorConfig, decorator: Google::Apis::NotebooksV1::SchedulerAcceleratorConfig::Representation
|
540
559
|
|
541
560
|
property :container_image_uri, as: 'containerImageUri'
|
561
|
+
property :dataproc_parameters, as: 'dataprocParameters', class: Google::Apis::NotebooksV1::DataprocParameters, decorator: Google::Apis::NotebooksV1::DataprocParameters::Representation
|
562
|
+
|
542
563
|
property :input_notebook_file, as: 'inputNotebookFile'
|
564
|
+
property :job_type, as: 'jobType'
|
565
|
+
property :kernel_spec, as: 'kernelSpec'
|
543
566
|
hash :labels, as: 'labels'
|
544
567
|
property :master_type, as: 'masterType'
|
545
568
|
property :output_notebook_folder, as: 'outputNotebookFolder'
|
@@ -547,6 +570,8 @@ module Google
|
|
547
570
|
property :params_yaml_file, as: 'paramsYamlFile'
|
548
571
|
property :scale_tier, as: 'scaleTier'
|
549
572
|
property :service_account, as: 'serviceAccount'
|
573
|
+
property :vertex_ai_parameters, as: 'vertexAiParameters', class: Google::Apis::NotebooksV1::VertexAiParameters, decorator: Google::Apis::NotebooksV1::VertexAiParameters::Representation
|
574
|
+
|
550
575
|
end
|
551
576
|
end
|
552
577
|
|
@@ -1082,6 +1107,14 @@ module Google
|
|
1082
1107
|
end
|
1083
1108
|
end
|
1084
1109
|
|
1110
|
+
class VertexAiParameters
|
1111
|
+
# @private
|
1112
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1113
|
+
hash :env, as: 'env'
|
1114
|
+
property :network, as: 'network'
|
1115
|
+
end
|
1116
|
+
end
|
1117
|
+
|
1085
1118
|
class VirtualMachine
|
1086
1119
|
# @private
|
1087
1120
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -260,7 +260,7 @@ module Google
|
|
260
260
|
execute_or_queue_command(command, &block)
|
261
261
|
end
|
262
262
|
|
263
|
-
# Creates a new
|
263
|
+
# Creates a new Execution in a given project and location.
|
264
264
|
# @param [String] parent
|
265
265
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
266
266
|
# @param [Google::Apis::NotebooksV1::Execution] execution_object
|
@@ -329,7 +329,7 @@ module Google
|
|
329
329
|
|
330
330
|
# Gets details of executions
|
331
331
|
# @param [String] name
|
332
|
-
# Required. Format: `projects/`project_id`/locations/`location`/
|
332
|
+
# Required. Format: `projects/`project_id`/locations/`location`/executions/`
|
333
333
|
# execution_id``
|
334
334
|
# @param [String] fields
|
335
335
|
# Selector specifying which fields to include in a partial response.
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
364
364
|
# @param [String] filter
|
365
365
|
# Filter applied to resulting executions. Currently only supports filtering
|
366
|
-
# executions by a specified schedule_id. Format:
|
366
|
+
# executions by a specified schedule_id. Format: `schedule_id=`
|
367
367
|
# @param [String] order_by
|
368
368
|
# Sort by field.
|
369
369
|
# @param [Fixnum] page_size
|
@@ -1410,6 +1410,47 @@ module Google
|
|
1410
1410
|
execute_or_queue_command(command, &block)
|
1411
1411
|
end
|
1412
1412
|
|
1413
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1414
|
+
# resource exists and does not have a policy set.
|
1415
|
+
# @param [String] resource
|
1416
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1417
|
+
# operation documentation for the appropriate value for this field.
|
1418
|
+
# @param [Fixnum] options_requested_policy_version
|
1419
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
1420
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
1421
|
+
# policies with any conditional bindings must specify version 3. Policies
|
1422
|
+
# without any conditional bindings may specify any valid value or leave the
|
1423
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
1424
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
1425
|
+
# resource-policies).
|
1426
|
+
# @param [String] fields
|
1427
|
+
# Selector specifying which fields to include in a partial response.
|
1428
|
+
# @param [String] quota_user
|
1429
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1430
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1431
|
+
# @param [Google::Apis::RequestOptions] options
|
1432
|
+
# Request-specific options
|
1433
|
+
#
|
1434
|
+
# @yield [result, err] Result & error if block supplied
|
1435
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
|
1436
|
+
# @yieldparam err [StandardError] error object if request failed
|
1437
|
+
#
|
1438
|
+
# @return [Google::Apis::NotebooksV1::Policy]
|
1439
|
+
#
|
1440
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1441
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1442
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1443
|
+
def get_project_location_runtime_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1444
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1445
|
+
command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
|
1446
|
+
command.response_class = Google::Apis::NotebooksV1::Policy
|
1447
|
+
command.params['resource'] = resource unless resource.nil?
|
1448
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1449
|
+
command.query['fields'] = fields unless fields.nil?
|
1450
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1451
|
+
execute_or_queue_command(command, &block)
|
1452
|
+
end
|
1453
|
+
|
1413
1454
|
# Lists Runtimes in a given project and location.
|
1414
1455
|
# @param [String] parent
|
1415
1456
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
@@ -1515,6 +1556,42 @@ module Google
|
|
1515
1556
|
execute_or_queue_command(command, &block)
|
1516
1557
|
end
|
1517
1558
|
|
1559
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1560
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1561
|
+
# PERMISSION_DENIED` errors.
|
1562
|
+
# @param [String] resource
|
1563
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1564
|
+
# operation documentation for the appropriate value for this field.
|
1565
|
+
# @param [Google::Apis::NotebooksV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1566
|
+
# @param [String] fields
|
1567
|
+
# Selector specifying which fields to include in a partial response.
|
1568
|
+
# @param [String] quota_user
|
1569
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1570
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1571
|
+
# @param [Google::Apis::RequestOptions] options
|
1572
|
+
# Request-specific options
|
1573
|
+
#
|
1574
|
+
# @yield [result, err] Result & error if block supplied
|
1575
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
|
1576
|
+
# @yieldparam err [StandardError] error object if request failed
|
1577
|
+
#
|
1578
|
+
# @return [Google::Apis::NotebooksV1::Policy]
|
1579
|
+
#
|
1580
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1581
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1582
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1583
|
+
def set_runtime_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1584
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1585
|
+
command.request_representation = Google::Apis::NotebooksV1::SetIamPolicyRequest::Representation
|
1586
|
+
command.request_object = set_iam_policy_request_object
|
1587
|
+
command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
|
1588
|
+
command.response_class = Google::Apis::NotebooksV1::Policy
|
1589
|
+
command.params['resource'] = resource unless resource.nil?
|
1590
|
+
command.query['fields'] = fields unless fields.nil?
|
1591
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1592
|
+
execute_or_queue_command(command, &block)
|
1593
|
+
end
|
1594
|
+
|
1518
1595
|
# Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume"
|
1519
1596
|
# on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-
|
1520
1597
|
# start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-
|
@@ -1623,6 +1700,44 @@ module Google
|
|
1623
1700
|
execute_or_queue_command(command, &block)
|
1624
1701
|
end
|
1625
1702
|
|
1703
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1704
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1705
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1706
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1707
|
+
# This operation may "fail open" without warning.
|
1708
|
+
# @param [String] resource
|
1709
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1710
|
+
# operation documentation for the appropriate value for this field.
|
1711
|
+
# @param [Google::Apis::NotebooksV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1712
|
+
# @param [String] fields
|
1713
|
+
# Selector specifying which fields to include in a partial response.
|
1714
|
+
# @param [String] quota_user
|
1715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1717
|
+
# @param [Google::Apis::RequestOptions] options
|
1718
|
+
# Request-specific options
|
1719
|
+
#
|
1720
|
+
# @yield [result, err] Result & error if block supplied
|
1721
|
+
# @yieldparam result [Google::Apis::NotebooksV1::TestIamPermissionsResponse] parsed result object
|
1722
|
+
# @yieldparam err [StandardError] error object if request failed
|
1723
|
+
#
|
1724
|
+
# @return [Google::Apis::NotebooksV1::TestIamPermissionsResponse]
|
1725
|
+
#
|
1726
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1727
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1728
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1729
|
+
def test_runtime_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1730
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1731
|
+
command.request_representation = Google::Apis::NotebooksV1::TestIamPermissionsRequest::Representation
|
1732
|
+
command.request_object = test_iam_permissions_request_object
|
1733
|
+
command.response_representation = Google::Apis::NotebooksV1::TestIamPermissionsResponse::Representation
|
1734
|
+
command.response_class = Google::Apis::NotebooksV1::TestIamPermissionsResponse
|
1735
|
+
command.params['resource'] = resource unless resource.nil?
|
1736
|
+
command.query['fields'] = fields unless fields.nil?
|
1737
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1738
|
+
execute_or_queue_command(command, &block)
|
1739
|
+
end
|
1740
|
+
|
1626
1741
|
# Creates a new Scheduled Notebook in a given project and location.
|
1627
1742
|
# @param [String] parent
|
1628
1743
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-notebooks_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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: 2021-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.18.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|