google-apis-notebooks_v1 0.15.0 → 0.19.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 +18 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/notebooks_v1/classes.rb +232 -94
- data/lib/google/apis/notebooks_v1/gem_version.rb +2 -2
- data/lib/google/apis/notebooks_v1/representations.rb +61 -0
- data/lib/google/apis/notebooks_v1/service.rb +169 -10
- data/lib/google/apis/notebooks_v1.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2564fe0ba2be0b1e5b0fde75c78ec90186ab50e17f5c43e8510c24816976b4de
|
4
|
+
data.tar.gz: a3442d864320d3345bca3a95cd9a8db39d6d5ca730a75f035052a17be58aa9c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3067d3b60aaf3bd26851b0b479ea971809b69a4b649b072e500e0a4b4ec680d8e5159c6e45c4228df40780c5a88549a2d89c73fcd3b17103984100f1e1130b81
|
7
|
+
data.tar.gz: 5cd71540e35daf387111b843dd76fa9de0299b8824f4d1b5e9d40a1a37dfbf96683567b69bd14c3f723a2ef54a3a32de80f209e485f32f7d1370be462c85a180
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-notebooks_v1
|
2
2
|
|
3
|
+
### v0.19.0 (2022-01-09)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220104
|
6
|
+
* Unspecified changes
|
7
|
+
|
8
|
+
### v0.18.0 (2021-10-25)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20211019
|
11
|
+
* Unspecified changes
|
12
|
+
|
13
|
+
### v0.17.0 (2021-09-21)
|
14
|
+
|
15
|
+
* Regenerated from discovery document revision 20210916
|
16
|
+
|
17
|
+
### v0.16.0 (2021-09-01)
|
18
|
+
|
19
|
+
* Regenerated from discovery document revision 20210812
|
20
|
+
|
3
21
|
### v0.15.0 (2021-07-28)
|
4
22
|
|
5
23
|
* Regenerated from discovery document revision 20210722
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/notebooks_v1"
|
|
51
51
|
client = Google::Apis::NotebooksV1::AIPlatformNotebooksService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -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
|
@@ -2531,6 +2585,44 @@ module Google
|
|
2531
2585
|
end
|
2532
2586
|
end
|
2533
2587
|
|
2588
|
+
# Request for adding/changing metadata items for an instance.
|
2589
|
+
class UpdateInstanceMetadataItemsRequest
|
2590
|
+
include Google::Apis::Core::Hashable
|
2591
|
+
|
2592
|
+
# Metadata items to add/update for the instance.
|
2593
|
+
# Corresponds to the JSON property `items`
|
2594
|
+
# @return [Hash<String,String>]
|
2595
|
+
attr_accessor :items
|
2596
|
+
|
2597
|
+
def initialize(**args)
|
2598
|
+
update!(**args)
|
2599
|
+
end
|
2600
|
+
|
2601
|
+
# Update properties of this object
|
2602
|
+
def update!(**args)
|
2603
|
+
@items = args[:items] if args.key?(:items)
|
2604
|
+
end
|
2605
|
+
end
|
2606
|
+
|
2607
|
+
# Response for adding/changing metadata items for an instance.
|
2608
|
+
class UpdateInstanceMetadataItemsResponse
|
2609
|
+
include Google::Apis::Core::Hashable
|
2610
|
+
|
2611
|
+
# Map of items that were added/updated to/in the metadata.
|
2612
|
+
# Corresponds to the JSON property `items`
|
2613
|
+
# @return [Hash<String,String>]
|
2614
|
+
attr_accessor :items
|
2615
|
+
|
2616
|
+
def initialize(**args)
|
2617
|
+
update!(**args)
|
2618
|
+
end
|
2619
|
+
|
2620
|
+
# Update properties of this object
|
2621
|
+
def update!(**args)
|
2622
|
+
@items = args[:items] if args.key?(:items)
|
2623
|
+
end
|
2624
|
+
end
|
2625
|
+
|
2534
2626
|
# Request for updating the Shielded Instance config for a notebook instance. You
|
2535
2627
|
# can only use this method on a stopped instance
|
2536
2628
|
class UpdateShieldedInstanceConfigRequest
|
@@ -2629,6 +2721,12 @@ module Google
|
|
2629
2721
|
class UpgradeInstanceInternalRequest
|
2630
2722
|
include Google::Apis::Core::Hashable
|
2631
2723
|
|
2724
|
+
# Optional. The optional UpgradeType. Setting this field will search for
|
2725
|
+
# additional compute images to upgrade this instance.
|
2726
|
+
# Corresponds to the JSON property `type`
|
2727
|
+
# @return [String]
|
2728
|
+
attr_accessor :type
|
2729
|
+
|
2632
2730
|
# Required. The VM hardware token for authenticating the VM. https://cloud.
|
2633
2731
|
# google.com/compute/docs/instances/verifying-instance-identity
|
2634
2732
|
# Corresponds to the JSON property `vmId`
|
@@ -2641,6 +2739,7 @@ module Google
|
|
2641
2739
|
|
2642
2740
|
# Update properties of this object
|
2643
2741
|
def update!(**args)
|
2742
|
+
@type = args[:type] if args.key?(:type)
|
2644
2743
|
@vm_id = args[:vm_id] if args.key?(:vm_id)
|
2645
2744
|
end
|
2646
2745
|
end
|
@@ -2649,12 +2748,51 @@ module Google
|
|
2649
2748
|
class UpgradeInstanceRequest
|
2650
2749
|
include Google::Apis::Core::Hashable
|
2651
2750
|
|
2751
|
+
# Optional. The optional UpgradeType. Setting this field will search for
|
2752
|
+
# additional compute images to upgrade this instance.
|
2753
|
+
# Corresponds to the JSON property `type`
|
2754
|
+
# @return [String]
|
2755
|
+
attr_accessor :type
|
2756
|
+
|
2757
|
+
def initialize(**args)
|
2758
|
+
update!(**args)
|
2759
|
+
end
|
2760
|
+
|
2761
|
+
# Update properties of this object
|
2762
|
+
def update!(**args)
|
2763
|
+
@type = args[:type] if args.key?(:type)
|
2764
|
+
end
|
2765
|
+
end
|
2766
|
+
|
2767
|
+
# Parameters used in Vertex AI JobType executions.
|
2768
|
+
class VertexAiParameters
|
2769
|
+
include Google::Apis::Core::Hashable
|
2770
|
+
|
2771
|
+
# Environment variables. At most 100 environment variables can be specified and
|
2772
|
+
# unique. Example: GCP_BUCKET=gs://my-bucket/samples/
|
2773
|
+
# Corresponds to the JSON property `env`
|
2774
|
+
# @return [Hash<String,String>]
|
2775
|
+
attr_accessor :env
|
2776
|
+
|
2777
|
+
# The full name of the Compute Engine [network](/compute/docs/networks-and-
|
2778
|
+
# firewalls#networks) to which the Job should be peered. For example, `projects/
|
2779
|
+
# 12345/global/networks/myVPC`. [Format](https://cloud.google.com/compute/docs/
|
2780
|
+
# reference/rest/v1/networks/insert) is of the form `projects/`project`/global/
|
2781
|
+
# networks/`network``. Where `project` is a project number, as in `12345`, and `
|
2782
|
+
# network` is a network name. Private services access must already be configured
|
2783
|
+
# for the network. If left unspecified, the job is not peered with any network.
|
2784
|
+
# Corresponds to the JSON property `network`
|
2785
|
+
# @return [String]
|
2786
|
+
attr_accessor :network
|
2787
|
+
|
2652
2788
|
def initialize(**args)
|
2653
2789
|
update!(**args)
|
2654
2790
|
end
|
2655
2791
|
|
2656
2792
|
# Update properties of this object
|
2657
2793
|
def update!(**args)
|
2794
|
+
@env = args[:env] if args.key?(:env)
|
2795
|
+
@network = args[:network] if args.key?(:network)
|
2658
2796
|
end
|
2659
2797
|
end
|
2660
2798
|
|
@@ -2708,7 +2846,7 @@ module Google
|
|
2708
2846
|
# @return [Array<Google::Apis::NotebooksV1::ContainerImage>]
|
2709
2847
|
attr_accessor :container_images
|
2710
2848
|
|
2711
|
-
#
|
2849
|
+
# A Local attached disk resource.
|
2712
2850
|
# Corresponds to the JSON property `dataDisk`
|
2713
2851
|
# @return [Google::Apis::NotebooksV1::LocalDisk]
|
2714
2852
|
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.19.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 = "20220104"
|
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
|
|
@@ -388,6 +394,18 @@ module Google
|
|
388
394
|
include Google::Apis::Core::JsonObjectSupport
|
389
395
|
end
|
390
396
|
|
397
|
+
class UpdateInstanceMetadataItemsRequest
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
403
|
+
class UpdateInstanceMetadataItemsResponse
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
|
+
|
406
|
+
include Google::Apis::Core::JsonObjectSupport
|
407
|
+
end
|
408
|
+
|
391
409
|
class UpdateShieldedInstanceConfigRequest
|
392
410
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
411
|
|
@@ -412,6 +430,12 @@ module Google
|
|
412
430
|
include Google::Apis::Core::JsonObjectSupport
|
413
431
|
end
|
414
432
|
|
433
|
+
class VertexAiParameters
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
415
439
|
class VirtualMachine
|
416
440
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
441
|
|
@@ -462,6 +486,13 @@ module Google
|
|
462
486
|
end
|
463
487
|
end
|
464
488
|
|
489
|
+
class DataprocParameters
|
490
|
+
# @private
|
491
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
492
|
+
property :cluster, as: 'cluster'
|
493
|
+
end
|
494
|
+
end
|
495
|
+
|
465
496
|
class Disk
|
466
497
|
# @private
|
467
498
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -539,7 +570,11 @@ module Google
|
|
539
570
|
property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::SchedulerAcceleratorConfig, decorator: Google::Apis::NotebooksV1::SchedulerAcceleratorConfig::Representation
|
540
571
|
|
541
572
|
property :container_image_uri, as: 'containerImageUri'
|
573
|
+
property :dataproc_parameters, as: 'dataprocParameters', class: Google::Apis::NotebooksV1::DataprocParameters, decorator: Google::Apis::NotebooksV1::DataprocParameters::Representation
|
574
|
+
|
542
575
|
property :input_notebook_file, as: 'inputNotebookFile'
|
576
|
+
property :job_type, as: 'jobType'
|
577
|
+
property :kernel_spec, as: 'kernelSpec'
|
543
578
|
hash :labels, as: 'labels'
|
544
579
|
property :master_type, as: 'masterType'
|
545
580
|
property :output_notebook_folder, as: 'outputNotebookFolder'
|
@@ -547,6 +582,8 @@ module Google
|
|
547
582
|
property :params_yaml_file, as: 'paramsYamlFile'
|
548
583
|
property :scale_tier, as: 'scaleTier'
|
549
584
|
property :service_account, as: 'serviceAccount'
|
585
|
+
property :vertex_ai_parameters, as: 'vertexAiParameters', class: Google::Apis::NotebooksV1::VertexAiParameters, decorator: Google::Apis::NotebooksV1::VertexAiParameters::Representation
|
586
|
+
|
550
587
|
end
|
551
588
|
end
|
552
589
|
|
@@ -1045,6 +1082,20 @@ module Google
|
|
1045
1082
|
end
|
1046
1083
|
end
|
1047
1084
|
|
1085
|
+
class UpdateInstanceMetadataItemsRequest
|
1086
|
+
# @private
|
1087
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1088
|
+
hash :items, as: 'items'
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
class UpdateInstanceMetadataItemsResponse
|
1093
|
+
# @private
|
1094
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1095
|
+
hash :items, as: 'items'
|
1096
|
+
end
|
1097
|
+
end
|
1098
|
+
|
1048
1099
|
class UpdateShieldedInstanceConfigRequest
|
1049
1100
|
# @private
|
1050
1101
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1072,6 +1123,7 @@ module Google
|
|
1072
1123
|
class UpgradeInstanceInternalRequest
|
1073
1124
|
# @private
|
1074
1125
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1126
|
+
property :type, as: 'type'
|
1075
1127
|
property :vm_id, as: 'vmId'
|
1076
1128
|
end
|
1077
1129
|
end
|
@@ -1079,6 +1131,15 @@ module Google
|
|
1079
1131
|
class UpgradeInstanceRequest
|
1080
1132
|
# @private
|
1081
1133
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1134
|
+
property :type, as: 'type'
|
1135
|
+
end
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
class VertexAiParameters
|
1139
|
+
# @private
|
1140
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1141
|
+
hash :env, as: 'env'
|
1142
|
+
property :network, as: 'network'
|
1082
1143
|
end
|
1083
1144
|
end
|
1084
1145
|
|
@@ -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
|
@@ -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
|
@@ -506,13 +506,16 @@ module Google
|
|
506
506
|
# REQUIRED: The resource for which the policy is being requested. See the
|
507
507
|
# operation documentation for the appropriate value for this field.
|
508
508
|
# @param [Fixnum] options_requested_policy_version
|
509
|
-
# Optional. The policy
|
510
|
-
# 3. Requests specifying an invalid value will be
|
511
|
-
# policies with any conditional bindings must
|
512
|
-
#
|
513
|
-
# field unset.
|
514
|
-
#
|
515
|
-
#
|
509
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
510
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
511
|
+
# rejected. Requests for policies with any conditional role bindings must
|
512
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
513
|
+
# valid value or leave the field unset. The policy in the response might use the
|
514
|
+
# policy version that you specified, or it might use a lower policy version. For
|
515
|
+
# example, if you specify version 3, but the policy has no conditional role
|
516
|
+
# bindings, the response uses version 1. To learn which resources support
|
517
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
518
|
+
# google.com/iam/help/conditions/resource-policies).
|
516
519
|
# @param [String] fields
|
517
520
|
# Selector specifying which fields to include in a partial response.
|
518
521
|
# @param [String] quota_user
|
@@ -576,6 +579,9 @@ module Google
|
|
576
579
|
# @param [String] notebook_instance
|
577
580
|
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
578
581
|
# instance_id``
|
582
|
+
# @param [String] type
|
583
|
+
# Optional. The optional UpgradeType. Setting this field will search for
|
584
|
+
# additional compute images to upgrade this instance.
|
579
585
|
# @param [String] fields
|
580
586
|
# Selector specifying which fields to include in a partial response.
|
581
587
|
# @param [String] quota_user
|
@@ -593,11 +599,12 @@ module Google
|
|
593
599
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
594
600
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
595
601
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
596
|
-
def is_project_location_instance_upgradeable(notebook_instance, fields: nil, quota_user: nil, options: nil, &block)
|
602
|
+
def is_project_location_instance_upgradeable(notebook_instance, type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
597
603
|
command = make_simple_command(:get, 'v1/{+notebookInstance}:isUpgradeable', options)
|
598
604
|
command.response_representation = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse::Representation
|
599
605
|
command.response_class = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse
|
600
606
|
command.params['notebookInstance'] = notebook_instance unless notebook_instance.nil?
|
607
|
+
command.query['type'] = type unless type.nil?
|
601
608
|
command.query['fields'] = fields unless fields.nil?
|
602
609
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
603
610
|
execute_or_queue_command(command, &block)
|
@@ -1058,6 +1065,40 @@ module Google
|
|
1058
1065
|
execute_or_queue_command(command, &block)
|
1059
1066
|
end
|
1060
1067
|
|
1068
|
+
# Add/update metadata items for an instance.
|
1069
|
+
# @param [String] name
|
1070
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
1071
|
+
# instance_id``
|
1072
|
+
# @param [Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsRequest] update_instance_metadata_items_request_object
|
1073
|
+
# @param [String] fields
|
1074
|
+
# Selector specifying which fields to include in a partial response.
|
1075
|
+
# @param [String] quota_user
|
1076
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1077
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1078
|
+
# @param [Google::Apis::RequestOptions] options
|
1079
|
+
# Request-specific options
|
1080
|
+
#
|
1081
|
+
# @yield [result, err] Result & error if block supplied
|
1082
|
+
# @yieldparam result [Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse] parsed result object
|
1083
|
+
# @yieldparam err [StandardError] error object if request failed
|
1084
|
+
#
|
1085
|
+
# @return [Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse]
|
1086
|
+
#
|
1087
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1088
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1089
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1090
|
+
def update_project_location_instance_metadata_items(name, update_instance_metadata_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1091
|
+
command = make_simple_command(:patch, 'v1/{+name}:updateMetadataItems', options)
|
1092
|
+
command.request_representation = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsRequest::Representation
|
1093
|
+
command.request_object = update_instance_metadata_items_request_object
|
1094
|
+
command.response_representation = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse::Representation
|
1095
|
+
command.response_class = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse
|
1096
|
+
command.params['name'] = name unless name.nil?
|
1097
|
+
command.query['fields'] = fields unless fields.nil?
|
1098
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1099
|
+
execute_or_queue_command(command, &block)
|
1100
|
+
end
|
1101
|
+
|
1061
1102
|
# Updates the Shielded instance configuration of a single Instance.
|
1062
1103
|
# @param [String] name
|
1063
1104
|
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
@@ -1410,6 +1451,50 @@ module Google
|
|
1410
1451
|
execute_or_queue_command(command, &block)
|
1411
1452
|
end
|
1412
1453
|
|
1454
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1455
|
+
# resource exists and does not have a policy set.
|
1456
|
+
# @param [String] resource
|
1457
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1458
|
+
# operation documentation for the appropriate value for this field.
|
1459
|
+
# @param [Fixnum] options_requested_policy_version
|
1460
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1461
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1462
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1463
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1464
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1465
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1466
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1467
|
+
# bindings, the response uses version 1. To learn which resources support
|
1468
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1469
|
+
# google.com/iam/help/conditions/resource-policies).
|
1470
|
+
# @param [String] fields
|
1471
|
+
# Selector specifying which fields to include in a partial response.
|
1472
|
+
# @param [String] quota_user
|
1473
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1474
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1475
|
+
# @param [Google::Apis::RequestOptions] options
|
1476
|
+
# Request-specific options
|
1477
|
+
#
|
1478
|
+
# @yield [result, err] Result & error if block supplied
|
1479
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
|
1480
|
+
# @yieldparam err [StandardError] error object if request failed
|
1481
|
+
#
|
1482
|
+
# @return [Google::Apis::NotebooksV1::Policy]
|
1483
|
+
#
|
1484
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1485
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1486
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1487
|
+
def get_project_location_runtime_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1488
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1489
|
+
command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
|
1490
|
+
command.response_class = Google::Apis::NotebooksV1::Policy
|
1491
|
+
command.params['resource'] = resource unless resource.nil?
|
1492
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1493
|
+
command.query['fields'] = fields unless fields.nil?
|
1494
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1495
|
+
execute_or_queue_command(command, &block)
|
1496
|
+
end
|
1497
|
+
|
1413
1498
|
# Lists Runtimes in a given project and location.
|
1414
1499
|
# @param [String] parent
|
1415
1500
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
@@ -1515,6 +1600,42 @@ module Google
|
|
1515
1600
|
execute_or_queue_command(command, &block)
|
1516
1601
|
end
|
1517
1602
|
|
1603
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1604
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1605
|
+
# PERMISSION_DENIED` errors.
|
1606
|
+
# @param [String] resource
|
1607
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1608
|
+
# operation documentation for the appropriate value for this field.
|
1609
|
+
# @param [Google::Apis::NotebooksV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1610
|
+
# @param [String] fields
|
1611
|
+
# Selector specifying which fields to include in a partial response.
|
1612
|
+
# @param [String] quota_user
|
1613
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1614
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1615
|
+
# @param [Google::Apis::RequestOptions] options
|
1616
|
+
# Request-specific options
|
1617
|
+
#
|
1618
|
+
# @yield [result, err] Result & error if block supplied
|
1619
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
|
1620
|
+
# @yieldparam err [StandardError] error object if request failed
|
1621
|
+
#
|
1622
|
+
# @return [Google::Apis::NotebooksV1::Policy]
|
1623
|
+
#
|
1624
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1625
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1626
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1627
|
+
def set_runtime_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1628
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1629
|
+
command.request_representation = Google::Apis::NotebooksV1::SetIamPolicyRequest::Representation
|
1630
|
+
command.request_object = set_iam_policy_request_object
|
1631
|
+
command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
|
1632
|
+
command.response_class = Google::Apis::NotebooksV1::Policy
|
1633
|
+
command.params['resource'] = resource unless resource.nil?
|
1634
|
+
command.query['fields'] = fields unless fields.nil?
|
1635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1636
|
+
execute_or_queue_command(command, &block)
|
1637
|
+
end
|
1638
|
+
|
1518
1639
|
# Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume"
|
1519
1640
|
# on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-
|
1520
1641
|
# start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-
|
@@ -1623,6 +1744,44 @@ module Google
|
|
1623
1744
|
execute_or_queue_command(command, &block)
|
1624
1745
|
end
|
1625
1746
|
|
1747
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1748
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1749
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1750
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1751
|
+
# This operation may "fail open" without warning.
|
1752
|
+
# @param [String] resource
|
1753
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1754
|
+
# operation documentation for the appropriate value for this field.
|
1755
|
+
# @param [Google::Apis::NotebooksV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1756
|
+
# @param [String] fields
|
1757
|
+
# Selector specifying which fields to include in a partial response.
|
1758
|
+
# @param [String] quota_user
|
1759
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1760
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1761
|
+
# @param [Google::Apis::RequestOptions] options
|
1762
|
+
# Request-specific options
|
1763
|
+
#
|
1764
|
+
# @yield [result, err] Result & error if block supplied
|
1765
|
+
# @yieldparam result [Google::Apis::NotebooksV1::TestIamPermissionsResponse] parsed result object
|
1766
|
+
# @yieldparam err [StandardError] error object if request failed
|
1767
|
+
#
|
1768
|
+
# @return [Google::Apis::NotebooksV1::TestIamPermissionsResponse]
|
1769
|
+
#
|
1770
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1771
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1772
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1773
|
+
def test_runtime_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1774
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1775
|
+
command.request_representation = Google::Apis::NotebooksV1::TestIamPermissionsRequest::Representation
|
1776
|
+
command.request_object = test_iam_permissions_request_object
|
1777
|
+
command.response_representation = Google::Apis::NotebooksV1::TestIamPermissionsResponse::Representation
|
1778
|
+
command.response_class = Google::Apis::NotebooksV1::TestIamPermissionsResponse
|
1779
|
+
command.params['resource'] = resource unless resource.nil?
|
1780
|
+
command.query['fields'] = fields unless fields.nil?
|
1781
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1782
|
+
execute_or_queue_command(command, &block)
|
1783
|
+
end
|
1784
|
+
|
1626
1785
|
# Creates a new Scheduled Notebook in a given project and location.
|
1627
1786
|
# @param [String] parent
|
1628
1787
|
# 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.19.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:
|
11
|
+
date: 2022-01-10 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.19.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:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Notebooks API V1
|