google-apis-notebooks_v1 0.16.0 → 0.20.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 +19 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/notebooks_v1/classes.rb +213 -99
- data/lib/google/apis/notebooks_v1/gem_version.rb +3 -3
- data/lib/google/apis/notebooks_v1/representations.rb +47 -0
- data/lib/google/apis/notebooks_v1/service.rb +169 -10
- 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: 78716f41dec7011d979df7f10faa46cd70b584338bb6c72decac3d0f8ff2cd42
|
4
|
+
data.tar.gz: d4f3a38a0d61aaffbeec750d0bc0218412c1a95374ddd3e7e25678950de37d54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c03b24fb94472cb1834da8fd68f5bbca342520fcbfe50e9dd32f834dbd24689cb8a695a9b34bd9896048eaf16640f38c4f6c67bd155e0260df672fa73d71d48b
|
7
|
+
data.tar.gz: d5a1c3fe62e350a6a889f16f7f4cde6800fac50bcafd178670aa24cc140625ccc3c825efb9746c1e140748e9d7ad7cd39d17a655eeaf589ff870481344807fee
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# Release history for google-apis-notebooks_v1
|
2
2
|
|
3
|
+
### v0.20.0 (2022-01-31)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220125
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.19.0 (2022-01-09)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220104
|
11
|
+
* Unspecified changes
|
12
|
+
|
13
|
+
### v0.18.0 (2021-10-25)
|
14
|
+
|
15
|
+
* Regenerated from discovery document revision 20211019
|
16
|
+
* Unspecified changes
|
17
|
+
|
18
|
+
### v0.17.0 (2021-09-21)
|
19
|
+
|
20
|
+
* Regenerated from discovery document revision 20210916
|
21
|
+
|
3
22
|
### v0.16.0 (2021-09-01)
|
4
23
|
|
5
24
|
* Regenerated from discovery document revision 20210812
|
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
|
@@ -165,8 +165,8 @@ module Google
|
|
165
165
|
class DataprocParameters
|
166
166
|
include Google::Apis::Core::Hashable
|
167
167
|
|
168
|
-
# URI for cluster used to run Dataproc execution. Format:
|
169
|
-
# regions/`REGION`/clusters/`CLUSTER_NAME
|
168
|
+
# URI for cluster used to run Dataproc execution. Format: `projects/`PROJECT_ID`/
|
169
|
+
# regions/`REGION`/clusters/`CLUSTER_NAME``
|
170
170
|
# Corresponds to the JSON property `cluster`
|
171
171
|
# @return [String]
|
172
172
|
attr_accessor :cluster
|
@@ -233,8 +233,8 @@ module Google
|
|
233
233
|
# SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
|
234
234
|
# the request will fail if you attempt to attach a persistent disk in any other
|
235
235
|
# format than SCSI. Local SSDs can use either NVME or SCSI. For performance
|
236
|
-
# characteristics of SCSI over NVMe, see Local SSD performance. Valid values:
|
237
|
-
# NVME SCSI
|
236
|
+
# characteristics of SCSI over NVMe, see Local SSD performance. Valid values: *
|
237
|
+
# NVME * SCSI
|
238
238
|
# Corresponds to the JSON property `interface`
|
239
239
|
# @return [String]
|
240
240
|
attr_accessor :interface
|
@@ -252,7 +252,7 @@ module Google
|
|
252
252
|
|
253
253
|
# The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not
|
254
254
|
# specified, the default is to attach the disk in READ_WRITE mode. Valid values:
|
255
|
-
# READ_ONLY READ_WRITE
|
255
|
+
# * READ_ONLY * READ_WRITE
|
256
256
|
# Corresponds to the JSON property `mode`
|
257
257
|
# @return [String]
|
258
258
|
attr_accessor :mode
|
@@ -262,8 +262,8 @@ module Google
|
|
262
262
|
# @return [String]
|
263
263
|
attr_accessor :source
|
264
264
|
|
265
|
-
# Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values:
|
266
|
-
# PERSISTENT SCRATCH
|
265
|
+
# Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: *
|
266
|
+
# PERSISTENT * SCRATCH
|
267
267
|
# Corresponds to the JSON property `type`
|
268
268
|
# @return [String]
|
269
269
|
attr_accessor :type
|
@@ -444,7 +444,7 @@ module Google
|
|
444
444
|
attr_accessor :job_uri
|
445
445
|
|
446
446
|
# Output only. The resource name of the execute. Format: `projects/`project_id`/
|
447
|
-
# locations/`location`/
|
447
|
+
# locations/`location`/executions/`execution_id``
|
448
448
|
# Corresponds to the JSON property `name`
|
449
449
|
# @return [String]
|
450
450
|
attr_accessor :name
|
@@ -487,8 +487,9 @@ module Google
|
|
487
487
|
include Google::Apis::Core::Hashable
|
488
488
|
|
489
489
|
# Definition of a hardware accelerator. Note that not all combinations of `type`
|
490
|
-
# and `core_count` are valid. Check GPUs on Compute Engine
|
491
|
-
# 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.
|
492
493
|
# Corresponds to the JSON property `acceleratorConfig`
|
493
494
|
# @return [Google::Apis::NotebooksV1::SchedulerAcceleratorConfig]
|
494
495
|
attr_accessor :accelerator_config
|
@@ -506,8 +507,8 @@ module Google
|
|
506
507
|
attr_accessor :dataproc_parameters
|
507
508
|
|
508
509
|
# Path to the notebook file to execute. Must be in a Google Cloud Storage bucket.
|
509
|
-
# Format: gs://`
|
510
|
-
# 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`
|
511
512
|
# Corresponds to the JSON property `inputNotebookFile`
|
512
513
|
# @return [String]
|
513
514
|
attr_accessor :input_notebook_file
|
@@ -517,6 +518,12 @@ module Google
|
|
517
518
|
# @return [String]
|
518
519
|
attr_accessor :job_type
|
519
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
|
+
|
520
527
|
# Labels for execution. If execution is scheduled, a field included will be 'nbs-
|
521
528
|
# scheduled'. Otherwise, it is an immediate execution, and an included field
|
522
529
|
# will be 'nbs-immediate'. Use fields to efficiently index between various types
|
@@ -539,14 +546,15 @@ module Google
|
|
539
546
|
# standard_v100` - `large_model_v100` - `complex_model_m_v100` - `
|
540
547
|
# complex_model_l_v100` Finally, if you want to use a TPU for training, specify `
|
541
548
|
# cloud_tpu` in this field. Learn more about the [special configuration options
|
542
|
-
# 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).
|
543
551
|
# Corresponds to the JSON property `masterType`
|
544
552
|
# @return [String]
|
545
553
|
attr_accessor :master_type
|
546
554
|
|
547
555
|
# Path to the notebook folder to write to. Must be in a Google Cloud Storage
|
548
|
-
# bucket path. Format: gs://`
|
549
|
-
# scheduled_notebooks
|
556
|
+
# bucket path. Format: `gs://`bucket_name`/`folder`` Ex: `gs://notebook_user/
|
557
|
+
# scheduled_notebooks`
|
550
558
|
# Corresponds to the JSON property `outputNotebookFolder`
|
551
559
|
# @return [String]
|
552
560
|
attr_accessor :output_notebook_folder
|
@@ -559,7 +567,7 @@ module Google
|
|
559
567
|
# Parameters to be overridden in the notebook during execution. Ref https://
|
560
568
|
# papermill.readthedocs.io/en/latest/usage-parameterize.html on how to
|
561
569
|
# specifying parameters in the input notebook and pass them here in an YAML file.
|
562
|
-
# Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml
|
570
|
+
# Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml`
|
563
571
|
# Corresponds to the JSON property `paramsYamlFile`
|
564
572
|
# @return [String]
|
565
573
|
attr_accessor :params_yaml_file
|
@@ -577,6 +585,11 @@ module Google
|
|
577
585
|
# @return [String]
|
578
586
|
attr_accessor :service_account
|
579
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
|
+
|
580
593
|
def initialize(**args)
|
581
594
|
update!(**args)
|
582
595
|
end
|
@@ -588,6 +601,7 @@ module Google
|
|
588
601
|
@dataproc_parameters = args[:dataproc_parameters] if args.key?(:dataproc_parameters)
|
589
602
|
@input_notebook_file = args[:input_notebook_file] if args.key?(:input_notebook_file)
|
590
603
|
@job_type = args[:job_type] if args.key?(:job_type)
|
604
|
+
@kernel_spec = args[:kernel_spec] if args.key?(:kernel_spec)
|
591
605
|
@labels = args[:labels] if args.key?(:labels)
|
592
606
|
@master_type = args[:master_type] if args.key?(:master_type)
|
593
607
|
@output_notebook_folder = args[:output_notebook_folder] if args.key?(:output_notebook_folder)
|
@@ -595,6 +609,7 @@ module Google
|
|
595
609
|
@params_yaml_file = args[:params_yaml_file] if args.key?(:params_yaml_file)
|
596
610
|
@scale_tier = args[:scale_tier] if args.key?(:scale_tier)
|
597
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)
|
598
613
|
end
|
599
614
|
end
|
600
615
|
|
@@ -685,8 +700,9 @@ module Google
|
|
685
700
|
include Google::Apis::Core::Hashable
|
686
701
|
|
687
702
|
# The ID of a supported feature. Read Enabling guest operating system features
|
688
|
-
# to see a list of available options. Valid values: FEATURE_TYPE_UNSPECIFIED
|
689
|
-
# 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
|
690
706
|
# Corresponds to the JSON property `type`
|
691
707
|
# @return [String]
|
692
708
|
attr_accessor :type
|
@@ -844,8 +860,8 @@ module Google
|
|
844
860
|
alias_method :no_remove_data_disk?, :no_remove_data_disk
|
845
861
|
|
846
862
|
# Path to a Bash script that automatically runs after a notebook instance fully
|
847
|
-
# boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/
|
848
|
-
# name).
|
863
|
+
# boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/
|
864
|
+
# file-name`).
|
849
865
|
# Corresponds to the JSON property `postStartupScript`
|
850
866
|
# @return [String]
|
851
867
|
attr_accessor :post_startup_script
|
@@ -965,7 +981,7 @@ module Google
|
|
965
981
|
class InstanceConfig
|
966
982
|
include Google::Apis::Core::Hashable
|
967
983
|
|
968
|
-
# Verifies core internal services are running.
|
984
|
+
# Verifies core internal services are running.
|
969
985
|
# Corresponds to the JSON property `enableHealthMonitoring`
|
970
986
|
# @return [Boolean]
|
971
987
|
attr_accessor :enable_health_monitoring
|
@@ -1076,9 +1092,9 @@ module Google
|
|
1076
1092
|
# @return [String]
|
1077
1093
|
attr_accessor :next_page_token
|
1078
1094
|
|
1079
|
-
# Executions IDs that could not be reached. For example
|
1095
|
+
# Executions IDs that could not be reached. For example: ['projects/`project_id`/
|
1080
1096
|
# location/`location`/executions/imagenet_test1', 'projects/`project_id`/
|
1081
|
-
# location/`location`/executions/classifier_train1']
|
1097
|
+
# location/`location`/executions/classifier_train1']
|
1082
1098
|
# Corresponds to the JSON property `unreachable`
|
1083
1099
|
# @return [Array<String>]
|
1084
1100
|
attr_accessor :unreachable
|
@@ -1227,9 +1243,9 @@ module Google
|
|
1227
1243
|
# @return [Array<Google::Apis::NotebooksV1::Schedule>]
|
1228
1244
|
attr_accessor :schedules
|
1229
1245
|
|
1230
|
-
# Schedules that could not be reached. For example
|
1246
|
+
# Schedules that could not be reached. For example: ['projects/`project_id`/
|
1231
1247
|
# location/`location`/schedules/monthly_digest', 'projects/`project_id`/location/
|
1232
|
-
# `location`/schedules/weekly_sentiment']
|
1248
|
+
# `location`/schedules/weekly_sentiment']
|
1233
1249
|
# Corresponds to the JSON property `unreachable`
|
1234
1250
|
# @return [Array<String>]
|
1235
1251
|
attr_accessor :unreachable
|
@@ -1246,7 +1262,7 @@ module Google
|
|
1246
1262
|
end
|
1247
1263
|
end
|
1248
1264
|
|
1249
|
-
#
|
1265
|
+
# A Local attached disk resource.
|
1250
1266
|
class LocalDisk
|
1251
1267
|
include Google::Apis::Core::Hashable
|
1252
1268
|
|
@@ -1301,8 +1317,8 @@ module Google
|
|
1301
1317
|
# SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
|
1302
1318
|
# the request will fail if you attempt to attach a persistent disk in any other
|
1303
1319
|
# format than SCSI. Local SSDs can use either NVME or SCSI. For performance
|
1304
|
-
# characteristics of SCSI over NVMe, see Local SSD performance. Valid values:
|
1305
|
-
# NVME SCSI
|
1320
|
+
# characteristics of SCSI over NVMe, see Local SSD performance. Valid values: *
|
1321
|
+
# NVME * SCSI
|
1306
1322
|
# Corresponds to the JSON property `interface`
|
1307
1323
|
# @return [String]
|
1308
1324
|
attr_accessor :interface
|
@@ -1320,7 +1336,7 @@ module Google
|
|
1320
1336
|
|
1321
1337
|
# The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not
|
1322
1338
|
# specified, the default is to attach the disk in READ_WRITE mode. Valid values:
|
1323
|
-
# READ_ONLY READ_WRITE
|
1339
|
+
# * READ_ONLY * READ_WRITE
|
1324
1340
|
# Corresponds to the JSON property `mode`
|
1325
1341
|
# @return [String]
|
1326
1342
|
attr_accessor :mode
|
@@ -1331,7 +1347,7 @@ module Google
|
|
1331
1347
|
attr_accessor :source
|
1332
1348
|
|
1333
1349
|
# Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
|
1334
|
-
# the default is PERSISTENT. Valid values: PERSISTENT SCRATCH
|
1350
|
+
# the default is PERSISTENT. Valid values: * PERSISTENT * SCRATCH
|
1335
1351
|
# Corresponds to the JSON property `type`
|
1336
1352
|
# @return [String]
|
1337
1353
|
attr_accessor :type
|
@@ -1584,37 +1600,42 @@ module Google
|
|
1584
1600
|
|
1585
1601
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1586
1602
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1587
|
-
# A `binding` binds one or more `members
|
1588
|
-
# user accounts, service accounts, Google groups, and domains (
|
1589
|
-
# A `role` is a named list of permissions; each `role` can be
|
1590
|
-
# role or a user-created custom role. For some types of Google
|
1591
|
-
# a `binding` can also specify a `condition`, which is a
|
1592
|
-
# allows access to a resource only if the expression
|
1593
|
-
# condition can add constraints based on attributes of
|
1594
|
-
# or both. To learn which resources support
|
1595
|
-
# see the [IAM documentation](https://cloud.
|
1596
|
-
# resource-policies). **JSON example:** ` "
|
1597
|
-
# resourcemanager.organizationAdmin", "members": [
|
1598
|
-
# group:admins@example.com", "domain:google.com", "
|
1599
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
1600
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
1601
|
-
# title": "expirable access", "description": "Does not grant
|
1602
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1603
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1604
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
1605
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1606
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
1607
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
1608
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
1609
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1610
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
1611
|
-
# 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/).
|
1612
1628
|
class Policy
|
1613
1629
|
include Google::Apis::Core::Hashable
|
1614
1630
|
|
1615
|
-
# Associates a list of `members
|
1616
|
-
# condition` that determines how and when the `bindings` are applied.
|
1617
|
-
# 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`.
|
1618
1639
|
# Corresponds to the JSON property `bindings`
|
1619
1640
|
# @return [Array<Google::Apis::NotebooksV1::Binding>]
|
1620
1641
|
attr_accessor :bindings
|
@@ -1851,7 +1872,7 @@ module Google
|
|
1851
1872
|
# Specifies the selection and configuration of software inside the runtime. The
|
1852
1873
|
# properties to set on runtime. Properties keys are specified in `key:value`
|
1853
1874
|
# format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
|
1854
|
-
#
|
1875
|
+
# enable_health_monitoring: true`
|
1855
1876
|
# Corresponds to the JSON property `softwareConfig`
|
1856
1877
|
# @return [Google::Apis::NotebooksV1::RuntimeSoftwareConfig]
|
1857
1878
|
attr_accessor :software_config
|
@@ -2043,7 +2064,7 @@ module Google
|
|
2043
2064
|
# Specifies the selection and configuration of software inside the runtime. The
|
2044
2065
|
# properties to set on runtime. Properties keys are specified in `key:value`
|
2045
2066
|
# format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
|
2046
|
-
#
|
2067
|
+
# enable_health_monitoring: true`
|
2047
2068
|
class RuntimeSoftwareConfig
|
2048
2069
|
include Google::Apis::Core::Hashable
|
2049
2070
|
|
@@ -2065,7 +2086,7 @@ module Google
|
|
2065
2086
|
attr_accessor :idle_shutdown
|
2066
2087
|
alias_method :idle_shutdown?, :idle_shutdown
|
2067
2088
|
|
2068
|
-
# Time in minutes to wait before
|
2089
|
+
# Time in minutes to wait before shutting down runtime. Default: 180 minutes
|
2069
2090
|
# Corresponds to the JSON property `idleShutdownTimeout`
|
2070
2091
|
# @return [Fixnum]
|
2071
2092
|
attr_accessor :idle_shutdown_timeout
|
@@ -2076,6 +2097,12 @@ module Google
|
|
2076
2097
|
attr_accessor :install_gpu_driver
|
2077
2098
|
alias_method :install_gpu_driver?, :install_gpu_driver
|
2078
2099
|
|
2100
|
+
# Optional. Use a list of container images to use as Kernels in the notebook
|
2101
|
+
# instance.
|
2102
|
+
# Corresponds to the JSON property `kernels`
|
2103
|
+
# @return [Array<Google::Apis::NotebooksV1::ContainerImage>]
|
2104
|
+
attr_accessor :kernels
|
2105
|
+
|
2079
2106
|
# Cron expression in UTC timezone, used to schedule instance auto upgrade.
|
2080
2107
|
# Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
|
2081
2108
|
# Corresponds to the JSON property `notebookUpgradeSchedule`
|
@@ -2083,8 +2110,8 @@ module Google
|
|
2083
2110
|
attr_accessor :notebook_upgrade_schedule
|
2084
2111
|
|
2085
2112
|
# Path to a Bash script that automatically runs after a notebook instance fully
|
2086
|
-
# boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/
|
2087
|
-
# name).
|
2113
|
+
# boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/
|
2114
|
+
# file-name`).
|
2088
2115
|
# Corresponds to the JSON property `postStartupScript`
|
2089
2116
|
# @return [String]
|
2090
2117
|
attr_accessor :post_startup_script
|
@@ -2100,6 +2127,7 @@ module Google
|
|
2100
2127
|
@idle_shutdown = args[:idle_shutdown] if args.key?(:idle_shutdown)
|
2101
2128
|
@idle_shutdown_timeout = args[:idle_shutdown_timeout] if args.key?(:idle_shutdown_timeout)
|
2102
2129
|
@install_gpu_driver = args[:install_gpu_driver] if args.key?(:install_gpu_driver)
|
2130
|
+
@kernels = args[:kernels] if args.key?(:kernels)
|
2103
2131
|
@notebook_upgrade_schedule = args[:notebook_upgrade_schedule] if args.key?(:notebook_upgrade_schedule)
|
2104
2132
|
@post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
|
2105
2133
|
end
|
@@ -2114,9 +2142,9 @@ module Google
|
|
2114
2142
|
# @return [String]
|
2115
2143
|
attr_accessor :create_time
|
2116
2144
|
|
2117
|
-
# Cron-tab formatted schedule by which the job will execute Format: minute,
|
2118
|
-
# day of month, month, day of week e.g. 0 0 * * WED = every Wednesday
|
2119
|
-
# examples: https://crontab.guru/examples.html
|
2145
|
+
# Cron-tab formatted schedule by which the job will execute. Format: minute,
|
2146
|
+
# hour, day of month, month, day of week, e.g. 0 0 * * WED = every Wednesday
|
2147
|
+
# More examples: https://crontab.guru/examples.html
|
2120
2148
|
# Corresponds to the JSON property `cronSchedule`
|
2121
2149
|
# @return [String]
|
2122
2150
|
attr_accessor :cron_schedule
|
@@ -2189,8 +2217,9 @@ module Google
|
|
2189
2217
|
end
|
2190
2218
|
|
2191
2219
|
# Definition of a hardware accelerator. Note that not all combinations of `type`
|
2192
|
-
# and `core_count` are valid. Check GPUs on Compute Engine
|
2193
|
-
# combination. TPUs are not
|
2220
|
+
# and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.
|
2221
|
+
# google.com/compute/docs/gpus) to find a valid combination. TPUs are not
|
2222
|
+
# supported.
|
2194
2223
|
class SchedulerAcceleratorConfig
|
2195
2224
|
include Google::Apis::Core::Hashable
|
2196
2225
|
|
@@ -2221,31 +2250,31 @@ module Google
|
|
2221
2250
|
|
2222
2251
|
# An Identity and Access Management (IAM) policy, which specifies access
|
2223
2252
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
2224
|
-
# A `binding` binds one or more `members
|
2225
|
-
# user accounts, service accounts, Google groups, and domains (
|
2226
|
-
# A `role` is a named list of permissions; each `role` can be
|
2227
|
-
# role or a user-created custom role. For some types of Google
|
2228
|
-
# a `binding` can also specify a `condition`, which is a
|
2229
|
-
# allows access to a resource only if the expression
|
2230
|
-
# condition can add constraints based on attributes of
|
2231
|
-
# or both. To learn which resources support
|
2232
|
-
# see the [IAM documentation](https://cloud.
|
2233
|
-
# resource-policies). **JSON example:** ` "
|
2234
|
-
# resourcemanager.organizationAdmin", "members": [
|
2235
|
-
# group:admins@example.com", "domain:google.com", "
|
2236
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
2237
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
2238
|
-
# title": "expirable access", "description": "Does not grant
|
2239
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2240
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2241
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
2242
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2243
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
2244
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
2245
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
2246
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
2247
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
2248
|
-
# google.com/iam/docs/).
|
2253
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
2254
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
2255
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
2256
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
2257
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
2258
|
+
# logical expression that allows access to a resource only if the expression
|
2259
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
2260
|
+
# the request, the resource, or both. To learn which resources support
|
2261
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2262
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
2263
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
2264
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
2265
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
2266
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
2267
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
2268
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2269
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2270
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
2271
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2272
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
2273
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
2274
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
2275
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
2276
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
2277
|
+
# cloud.google.com/iam/docs/).
|
2249
2278
|
# Corresponds to the JSON property `policy`
|
2250
2279
|
# @return [Google::Apis::NotebooksV1::Policy]
|
2251
2280
|
attr_accessor :policy
|
@@ -2563,6 +2592,44 @@ module Google
|
|
2563
2592
|
end
|
2564
2593
|
end
|
2565
2594
|
|
2595
|
+
# Request for adding/changing metadata items for an instance.
|
2596
|
+
class UpdateInstanceMetadataItemsRequest
|
2597
|
+
include Google::Apis::Core::Hashable
|
2598
|
+
|
2599
|
+
# Metadata items to add/update for the instance.
|
2600
|
+
# Corresponds to the JSON property `items`
|
2601
|
+
# @return [Hash<String,String>]
|
2602
|
+
attr_accessor :items
|
2603
|
+
|
2604
|
+
def initialize(**args)
|
2605
|
+
update!(**args)
|
2606
|
+
end
|
2607
|
+
|
2608
|
+
# Update properties of this object
|
2609
|
+
def update!(**args)
|
2610
|
+
@items = args[:items] if args.key?(:items)
|
2611
|
+
end
|
2612
|
+
end
|
2613
|
+
|
2614
|
+
# Response for adding/changing metadata items for an instance.
|
2615
|
+
class UpdateInstanceMetadataItemsResponse
|
2616
|
+
include Google::Apis::Core::Hashable
|
2617
|
+
|
2618
|
+
# Map of items that were added/updated to/in the metadata.
|
2619
|
+
# Corresponds to the JSON property `items`
|
2620
|
+
# @return [Hash<String,String>]
|
2621
|
+
attr_accessor :items
|
2622
|
+
|
2623
|
+
def initialize(**args)
|
2624
|
+
update!(**args)
|
2625
|
+
end
|
2626
|
+
|
2627
|
+
# Update properties of this object
|
2628
|
+
def update!(**args)
|
2629
|
+
@items = args[:items] if args.key?(:items)
|
2630
|
+
end
|
2631
|
+
end
|
2632
|
+
|
2566
2633
|
# Request for updating the Shielded Instance config for a notebook instance. You
|
2567
2634
|
# can only use this method on a stopped instance
|
2568
2635
|
class UpdateShieldedInstanceConfigRequest
|
@@ -2661,6 +2728,12 @@ module Google
|
|
2661
2728
|
class UpgradeInstanceInternalRequest
|
2662
2729
|
include Google::Apis::Core::Hashable
|
2663
2730
|
|
2731
|
+
# Optional. The optional UpgradeType. Setting this field will search for
|
2732
|
+
# additional compute images to upgrade this instance.
|
2733
|
+
# Corresponds to the JSON property `type`
|
2734
|
+
# @return [String]
|
2735
|
+
attr_accessor :type
|
2736
|
+
|
2664
2737
|
# Required. The VM hardware token for authenticating the VM. https://cloud.
|
2665
2738
|
# google.com/compute/docs/instances/verifying-instance-identity
|
2666
2739
|
# Corresponds to the JSON property `vmId`
|
@@ -2673,6 +2746,7 @@ module Google
|
|
2673
2746
|
|
2674
2747
|
# Update properties of this object
|
2675
2748
|
def update!(**args)
|
2749
|
+
@type = args[:type] if args.key?(:type)
|
2676
2750
|
@vm_id = args[:vm_id] if args.key?(:vm_id)
|
2677
2751
|
end
|
2678
2752
|
end
|
@@ -2681,12 +2755,51 @@ module Google
|
|
2681
2755
|
class UpgradeInstanceRequest
|
2682
2756
|
include Google::Apis::Core::Hashable
|
2683
2757
|
|
2758
|
+
# Optional. The optional UpgradeType. Setting this field will search for
|
2759
|
+
# additional compute images to upgrade this instance.
|
2760
|
+
# Corresponds to the JSON property `type`
|
2761
|
+
# @return [String]
|
2762
|
+
attr_accessor :type
|
2763
|
+
|
2764
|
+
def initialize(**args)
|
2765
|
+
update!(**args)
|
2766
|
+
end
|
2767
|
+
|
2768
|
+
# Update properties of this object
|
2769
|
+
def update!(**args)
|
2770
|
+
@type = args[:type] if args.key?(:type)
|
2771
|
+
end
|
2772
|
+
end
|
2773
|
+
|
2774
|
+
# Parameters used in Vertex AI JobType executions.
|
2775
|
+
class VertexAiParameters
|
2776
|
+
include Google::Apis::Core::Hashable
|
2777
|
+
|
2778
|
+
# Environment variables. At most 100 environment variables can be specified and
|
2779
|
+
# unique. Example: GCP_BUCKET=gs://my-bucket/samples/
|
2780
|
+
# Corresponds to the JSON property `env`
|
2781
|
+
# @return [Hash<String,String>]
|
2782
|
+
attr_accessor :env
|
2783
|
+
|
2784
|
+
# The full name of the Compute Engine [network](/compute/docs/networks-and-
|
2785
|
+
# firewalls#networks) to which the Job should be peered. For example, `projects/
|
2786
|
+
# 12345/global/networks/myVPC`. [Format](https://cloud.google.com/compute/docs/
|
2787
|
+
# reference/rest/v1/networks/insert) is of the form `projects/`project`/global/
|
2788
|
+
# networks/`network``. Where `project` is a project number, as in `12345`, and `
|
2789
|
+
# network` is a network name. Private services access must already be configured
|
2790
|
+
# for the network. If left unspecified, the job is not peered with any network.
|
2791
|
+
# Corresponds to the JSON property `network`
|
2792
|
+
# @return [String]
|
2793
|
+
attr_accessor :network
|
2794
|
+
|
2684
2795
|
def initialize(**args)
|
2685
2796
|
update!(**args)
|
2686
2797
|
end
|
2687
2798
|
|
2688
2799
|
# Update properties of this object
|
2689
2800
|
def update!(**args)
|
2801
|
+
@env = args[:env] if args.key?(:env)
|
2802
|
+
@network = args[:network] if args.key?(:network)
|
2690
2803
|
end
|
2691
2804
|
end
|
2692
2805
|
|
@@ -2735,12 +2848,13 @@ module Google
|
|
2735
2848
|
# @return [Google::Apis::NotebooksV1::RuntimeAcceleratorConfig]
|
2736
2849
|
attr_accessor :accelerator_config
|
2737
2850
|
|
2738
|
-
# Optional. Use a list of container images to
|
2851
|
+
# Optional. Use a list of container images to use as Kernels in the notebook
|
2852
|
+
# instance.
|
2739
2853
|
# Corresponds to the JSON property `containerImages`
|
2740
2854
|
# @return [Array<Google::Apis::NotebooksV1::ContainerImage>]
|
2741
2855
|
attr_accessor :container_images
|
2742
2856
|
|
2743
|
-
#
|
2857
|
+
# A Local attached disk resource.
|
2744
2858
|
# Corresponds to the JSON property `dataDisk`
|
2745
2859
|
# @return [Google::Apis::NotebooksV1::LocalDisk]
|
2746
2860
|
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.20.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220125"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -394,6 +394,18 @@ module Google
|
|
394
394
|
include Google::Apis::Core::JsonObjectSupport
|
395
395
|
end
|
396
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
|
+
|
397
409
|
class UpdateShieldedInstanceConfigRequest
|
398
410
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
411
|
|
@@ -418,6 +430,12 @@ module Google
|
|
418
430
|
include Google::Apis::Core::JsonObjectSupport
|
419
431
|
end
|
420
432
|
|
433
|
+
class VertexAiParameters
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
421
439
|
class VirtualMachine
|
422
440
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
441
|
|
@@ -556,6 +574,7 @@ module Google
|
|
556
574
|
|
557
575
|
property :input_notebook_file, as: 'inputNotebookFile'
|
558
576
|
property :job_type, as: 'jobType'
|
577
|
+
property :kernel_spec, as: 'kernelSpec'
|
559
578
|
hash :labels, as: 'labels'
|
560
579
|
property :master_type, as: 'masterType'
|
561
580
|
property :output_notebook_folder, as: 'outputNotebookFolder'
|
@@ -563,6 +582,8 @@ module Google
|
|
563
582
|
property :params_yaml_file, as: 'paramsYamlFile'
|
564
583
|
property :scale_tier, as: 'scaleTier'
|
565
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
|
+
|
566
587
|
end
|
567
588
|
end
|
568
589
|
|
@@ -921,6 +942,8 @@ module Google
|
|
921
942
|
property :idle_shutdown, as: 'idleShutdown'
|
922
943
|
property :idle_shutdown_timeout, as: 'idleShutdownTimeout'
|
923
944
|
property :install_gpu_driver, as: 'installGpuDriver'
|
945
|
+
collection :kernels, as: 'kernels', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
|
946
|
+
|
924
947
|
property :notebook_upgrade_schedule, as: 'notebookUpgradeSchedule'
|
925
948
|
property :post_startup_script, as: 'postStartupScript'
|
926
949
|
end
|
@@ -1061,6 +1084,20 @@ module Google
|
|
1061
1084
|
end
|
1062
1085
|
end
|
1063
1086
|
|
1087
|
+
class UpdateInstanceMetadataItemsRequest
|
1088
|
+
# @private
|
1089
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1090
|
+
hash :items, as: 'items'
|
1091
|
+
end
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
class UpdateInstanceMetadataItemsResponse
|
1095
|
+
# @private
|
1096
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1097
|
+
hash :items, as: 'items'
|
1098
|
+
end
|
1099
|
+
end
|
1100
|
+
|
1064
1101
|
class UpdateShieldedInstanceConfigRequest
|
1065
1102
|
# @private
|
1066
1103
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1088,6 +1125,7 @@ module Google
|
|
1088
1125
|
class UpgradeInstanceInternalRequest
|
1089
1126
|
# @private
|
1090
1127
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1128
|
+
property :type, as: 'type'
|
1091
1129
|
property :vm_id, as: 'vmId'
|
1092
1130
|
end
|
1093
1131
|
end
|
@@ -1095,6 +1133,15 @@ module Google
|
|
1095
1133
|
class UpgradeInstanceRequest
|
1096
1134
|
# @private
|
1097
1135
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1136
|
+
property :type, as: 'type'
|
1137
|
+
end
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
class VertexAiParameters
|
1141
|
+
# @private
|
1142
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1143
|
+
hash :env, as: 'env'
|
1144
|
+
property :network, as: 'network'
|
1098
1145
|
end
|
1099
1146
|
end
|
1100
1147
|
|
@@ -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``
|
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.20.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-02-07 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.20.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.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Notebooks API V1
|