google-apis-notebooks_v1 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ae0e28d6a695f4e2ee606d13bb18c82f801666d2b8205e6430883844eb68592
|
4
|
+
data.tar.gz: 555e56c20131a8a8323d31c73346c9b8cf12c36d7ad468d92fd3871fb89bb24e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 865152f617f95e63810ee9915315f55434ef8d370de8a0afc9226c685707323c53c1532d1b42f9ddfc7053b26be22fe6f1378afb995614055e1e768bf0762c5c
|
7
|
+
data.tar.gz: ea790ec632e657ddc8e7feb3cb507ba03d69601257a0ca98a25f6e2f6e315627ce1af31c28d3a731f58719645100fc5b4b11897d5360687ece2c48f198a28b2d
|
data/CHANGELOG.md
CHANGED
@@ -346,6 +346,158 @@ module Google
|
|
346
346
|
end
|
347
347
|
end
|
348
348
|
|
349
|
+
# The definition of a single executed notebook.
|
350
|
+
class Execution
|
351
|
+
include Google::Apis::Core::Hashable
|
352
|
+
|
353
|
+
# Output only. Time the Execution was instantiated.
|
354
|
+
# Corresponds to the JSON property `createTime`
|
355
|
+
# @return [String]
|
356
|
+
attr_accessor :create_time
|
357
|
+
|
358
|
+
# A brief description of this execution.
|
359
|
+
# Corresponds to the JSON property `description`
|
360
|
+
# @return [String]
|
361
|
+
attr_accessor :description
|
362
|
+
|
363
|
+
# Output only. Name used for UI purposes. Name can only contain alphanumeric
|
364
|
+
# characters and underscores '_'.
|
365
|
+
# Corresponds to the JSON property `displayName`
|
366
|
+
# @return [String]
|
367
|
+
attr_accessor :display_name
|
368
|
+
|
369
|
+
# The description a notebook execution workload.
|
370
|
+
# Corresponds to the JSON property `executionTemplate`
|
371
|
+
# @return [Google::Apis::NotebooksV1::ExecutionTemplate]
|
372
|
+
attr_accessor :execution_template
|
373
|
+
|
374
|
+
# Output only. The resource name of the execute. Format: `projects/`project_id`/
|
375
|
+
# locations/`location`/execution/`execution_id`
|
376
|
+
# Corresponds to the JSON property `name`
|
377
|
+
# @return [String]
|
378
|
+
attr_accessor :name
|
379
|
+
|
380
|
+
# Output notebook file generated by this execution
|
381
|
+
# Corresponds to the JSON property `outputNotebookFile`
|
382
|
+
# @return [String]
|
383
|
+
attr_accessor :output_notebook_file
|
384
|
+
|
385
|
+
# Output only. State of the underlying AI Platform job.
|
386
|
+
# Corresponds to the JSON property `state`
|
387
|
+
# @return [String]
|
388
|
+
attr_accessor :state
|
389
|
+
|
390
|
+
# Output only. Time the Execution was last updated.
|
391
|
+
# Corresponds to the JSON property `updateTime`
|
392
|
+
# @return [String]
|
393
|
+
attr_accessor :update_time
|
394
|
+
|
395
|
+
def initialize(**args)
|
396
|
+
update!(**args)
|
397
|
+
end
|
398
|
+
|
399
|
+
# Update properties of this object
|
400
|
+
def update!(**args)
|
401
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
402
|
+
@description = args[:description] if args.key?(:description)
|
403
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
404
|
+
@execution_template = args[:execution_template] if args.key?(:execution_template)
|
405
|
+
@name = args[:name] if args.key?(:name)
|
406
|
+
@output_notebook_file = args[:output_notebook_file] if args.key?(:output_notebook_file)
|
407
|
+
@state = args[:state] if args.key?(:state)
|
408
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
409
|
+
end
|
410
|
+
end
|
411
|
+
|
412
|
+
# The description a notebook execution workload.
|
413
|
+
class ExecutionTemplate
|
414
|
+
include Google::Apis::Core::Hashable
|
415
|
+
|
416
|
+
# Definition of a hardware accelerator. Note that not all combinations of `type`
|
417
|
+
# and `core_count` are valid. Check GPUs on Compute Engine to find a valid
|
418
|
+
# combination. TPUs are not supported.
|
419
|
+
# Corresponds to the JSON property `acceleratorConfig`
|
420
|
+
# @return [Google::Apis::NotebooksV1::SchedulerAcceleratorConfig]
|
421
|
+
attr_accessor :accelerator_config
|
422
|
+
|
423
|
+
# Container Image URI to a DLVM Example: 'gcr.io/deeplearning-platform-release/
|
424
|
+
# base-cu100' More examples can be found at: https://cloud.google.com/ai-
|
425
|
+
# platform/deep-learning-containers/docs/choosing-container
|
426
|
+
# Corresponds to the JSON property `containerImageUri`
|
427
|
+
# @return [String]
|
428
|
+
attr_accessor :container_image_uri
|
429
|
+
|
430
|
+
# Path to the notebook file to execute. Must be in a Google Cloud Storage bucket.
|
431
|
+
# Format: gs://`project_id`/`folder`/`notebook_file_name` Ex: gs://
|
432
|
+
# notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
|
433
|
+
# Corresponds to the JSON property `inputNotebookFile`
|
434
|
+
# @return [String]
|
435
|
+
attr_accessor :input_notebook_file
|
436
|
+
|
437
|
+
# Labels for execution. If execution is scheduled, a field included will be 'nbs-
|
438
|
+
# scheduled'. Otherwise, it is an immediate execution, and an included field
|
439
|
+
# will be 'nbs-immediate'. Use fields to efficiently index between various types
|
440
|
+
# of executions.
|
441
|
+
# Corresponds to the JSON property `labels`
|
442
|
+
# @return [Hash<String,String>]
|
443
|
+
attr_accessor :labels
|
444
|
+
|
445
|
+
# Specifies the type of virtual machine to use for your training job's master
|
446
|
+
# worker. You must specify this field when `scaleTier` is set to `CUSTOM`. You
|
447
|
+
# can use certain Compute Engine machine types directly in this field. The
|
448
|
+
# following types are supported: - `n1-standard-4` - `n1-standard-8` - `n1-
|
449
|
+
# standard-16` - `n1-standard-32` - `n1-standard-64` - `n1-standard-96` - `n1-
|
450
|
+
# highmem-2` - `n1-highmem-4` - `n1-highmem-8` - `n1-highmem-16` - `n1-highmem-
|
451
|
+
# 32` - `n1-highmem-64` - `n1-highmem-96` - `n1-highcpu-16` - `n1-highcpu-32` - `
|
452
|
+
# n1-highcpu-64` - `n1-highcpu-96` Alternatively, you can use the following
|
453
|
+
# legacy machine types: - `standard` - `large_model` - `complex_model_s` - `
|
454
|
+
# complex_model_m` - `complex_model_l` - `standard_gpu` - `complex_model_m_gpu` -
|
455
|
+
# `complex_model_l_gpu` - `standard_p100` - `complex_model_m_p100` - `
|
456
|
+
# standard_v100` - `large_model_v100` - `complex_model_m_v100` - `
|
457
|
+
# complex_model_l_v100` Finally, if you want to use a TPU for training, specify `
|
458
|
+
# cloud_tpu` in this field. Learn more about the [special configuration options
|
459
|
+
# for training with TPU.
|
460
|
+
# Corresponds to the JSON property `masterType`
|
461
|
+
# @return [String]
|
462
|
+
attr_accessor :master_type
|
463
|
+
|
464
|
+
# Path to the notebook folder to write to. Must be in a Google Cloud Storage
|
465
|
+
# bucket path. Format: gs://`project_id`/`folder` Ex: gs://notebook_user/
|
466
|
+
# scheduled_notebooks
|
467
|
+
# Corresponds to the JSON property `outputNotebookFolder`
|
468
|
+
# @return [String]
|
469
|
+
attr_accessor :output_notebook_folder
|
470
|
+
|
471
|
+
# Parameters to be overridden in the notebook during execution. Ref https://
|
472
|
+
# papermill.readthedocs.io/en/latest/usage-parameterize.html on how to
|
473
|
+
# specifying parameters in the input notebook and pass them here in an YAML file.
|
474
|
+
# Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml
|
475
|
+
# Corresponds to the JSON property `paramsYamlFile`
|
476
|
+
# @return [String]
|
477
|
+
attr_accessor :params_yaml_file
|
478
|
+
|
479
|
+
# Required. Scale tier of the hardware used for notebook execution.
|
480
|
+
# Corresponds to the JSON property `scaleTier`
|
481
|
+
# @return [String]
|
482
|
+
attr_accessor :scale_tier
|
483
|
+
|
484
|
+
def initialize(**args)
|
485
|
+
update!(**args)
|
486
|
+
end
|
487
|
+
|
488
|
+
# Update properties of this object
|
489
|
+
def update!(**args)
|
490
|
+
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
|
491
|
+
@container_image_uri = args[:container_image_uri] if args.key?(:container_image_uri)
|
492
|
+
@input_notebook_file = args[:input_notebook_file] if args.key?(:input_notebook_file)
|
493
|
+
@labels = args[:labels] if args.key?(:labels)
|
494
|
+
@master_type = args[:master_type] if args.key?(:master_type)
|
495
|
+
@output_notebook_folder = args[:output_notebook_folder] if args.key?(:output_notebook_folder)
|
496
|
+
@params_yaml_file = args[:params_yaml_file] if args.key?(:params_yaml_file)
|
497
|
+
@scale_tier = args[:scale_tier] if args.key?(:scale_tier)
|
498
|
+
end
|
499
|
+
end
|
500
|
+
|
349
501
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
350
502
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
351
503
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -400,6 +552,34 @@ module Google
|
|
400
552
|
end
|
401
553
|
end
|
402
554
|
|
555
|
+
# Response for checking if a notebook instance is healthy.
|
556
|
+
class GetInstanceHealthResponse
|
557
|
+
include Google::Apis::Core::Hashable
|
558
|
+
|
559
|
+
# Output only. Additional information about instance health. Example: healthInfo"
|
560
|
+
# : ` "docker_proxy_agent_status": "1", "docker_status": "1", "
|
561
|
+
# jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-
|
562
|
+
# 18 09:40:03.573409" `
|
563
|
+
# Corresponds to the JSON property `healthInfo`
|
564
|
+
# @return [Hash<String,String>]
|
565
|
+
attr_accessor :health_info
|
566
|
+
|
567
|
+
# Output only. Runtime health_state.
|
568
|
+
# Corresponds to the JSON property `healthState`
|
569
|
+
# @return [String]
|
570
|
+
attr_accessor :health_state
|
571
|
+
|
572
|
+
def initialize(**args)
|
573
|
+
update!(**args)
|
574
|
+
end
|
575
|
+
|
576
|
+
# Update properties of this object
|
577
|
+
def update!(**args)
|
578
|
+
@health_info = args[:health_info] if args.key?(:health_info)
|
579
|
+
@health_state = args[:health_state] if args.key?(:health_state)
|
580
|
+
end
|
581
|
+
end
|
582
|
+
|
403
583
|
# Guest OS features for boot disk.
|
404
584
|
class GuestOsFeature
|
405
585
|
include Google::Apis::Core::Hashable
|
@@ -578,6 +758,22 @@ module Google
|
|
578
758
|
# @return [String]
|
579
759
|
attr_accessor :service_account
|
580
760
|
|
761
|
+
# Optional. The URIs of service account scopes to be included in Compute Engine
|
762
|
+
# instances. If not specified, the following [scopes](https://cloud.google.com/
|
763
|
+
# compute/docs/access/service-accounts#accesscopesiam) are defined: - https://
|
764
|
+
# www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/
|
765
|
+
# userinfo.email If not using default scopes, you need at least: https://www.
|
766
|
+
# googleapis.com/auth/compute
|
767
|
+
# Corresponds to the JSON property `serviceAccountScopes`
|
768
|
+
# @return [Array<String>]
|
769
|
+
attr_accessor :service_account_scopes
|
770
|
+
|
771
|
+
# A set of Shielded Instance options. Check [Images using supported Shielded VM
|
772
|
+
# features] Not all combinations are valid.
|
773
|
+
# Corresponds to the JSON property `shieldedInstanceConfig`
|
774
|
+
# @return [Google::Apis::NotebooksV1::ShieldedInstanceConfig]
|
775
|
+
attr_accessor :shielded_instance_config
|
776
|
+
|
581
777
|
# Output only. The state of this instance.
|
582
778
|
# Corresponds to the JSON property `state`
|
583
779
|
# @return [String]
|
@@ -589,6 +785,12 @@ module Google
|
|
589
785
|
# @return [String]
|
590
786
|
attr_accessor :subnet
|
591
787
|
|
788
|
+
# Optional. The Compute Engine tags to add to runtime (see [Tagging instances](
|
789
|
+
# https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
|
790
|
+
# Corresponds to the JSON property `tags`
|
791
|
+
# @return [Array<String>]
|
792
|
+
attr_accessor :tags
|
793
|
+
|
592
794
|
# Output only. Instance update time.
|
593
795
|
# Corresponds to the JSON property `updateTime`
|
594
796
|
# @return [String]
|
@@ -635,8 +837,11 @@ module Google
|
|
635
837
|
@post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
|
636
838
|
@proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
|
637
839
|
@service_account = args[:service_account] if args.key?(:service_account)
|
840
|
+
@service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
|
841
|
+
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
|
638
842
|
@state = args[:state] if args.key?(:state)
|
639
843
|
@subnet = args[:subnet] if args.key?(:subnet)
|
844
|
+
@tags = args[:tags] if args.key?(:tags)
|
640
845
|
@update_time = args[:update_time] if args.key?(:update_time)
|
641
846
|
@upgrade_history = args[:upgrade_history] if args.key?(:upgrade_history)
|
642
847
|
@vm_image = args[:vm_image] if args.key?(:vm_image)
|
@@ -708,6 +913,40 @@ module Google
|
|
708
913
|
end
|
709
914
|
end
|
710
915
|
|
916
|
+
# Response for listing scheduled notebook executions
|
917
|
+
class ListExecutionsResponse
|
918
|
+
include Google::Apis::Core::Hashable
|
919
|
+
|
920
|
+
# A list of returned instances.
|
921
|
+
# Corresponds to the JSON property `executions`
|
922
|
+
# @return [Array<Google::Apis::NotebooksV1::Execution>]
|
923
|
+
attr_accessor :executions
|
924
|
+
|
925
|
+
# Page token that can be used to continue listing from the last result in the
|
926
|
+
# next list call.
|
927
|
+
# Corresponds to the JSON property `nextPageToken`
|
928
|
+
# @return [String]
|
929
|
+
attr_accessor :next_page_token
|
930
|
+
|
931
|
+
# Executions IDs that could not be reached. For example, ['projects/`project_id`/
|
932
|
+
# location/`location`/executions/imagenet_test1', 'projects/`project_id`/
|
933
|
+
# location/`location`/executions/classifier_train1'].
|
934
|
+
# Corresponds to the JSON property `unreachable`
|
935
|
+
# @return [Array<String>]
|
936
|
+
attr_accessor :unreachable
|
937
|
+
|
938
|
+
def initialize(**args)
|
939
|
+
update!(**args)
|
940
|
+
end
|
941
|
+
|
942
|
+
# Update properties of this object
|
943
|
+
def update!(**args)
|
944
|
+
@executions = args[:executions] if args.key?(:executions)
|
945
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
946
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
711
950
|
# Response for listing notebook instances.
|
712
951
|
class ListInstancesResponse
|
713
952
|
include Google::Apis::Core::Hashable
|
@@ -792,6 +1031,40 @@ module Google
|
|
792
1031
|
end
|
793
1032
|
end
|
794
1033
|
|
1034
|
+
# Response for listing scheduled notebook job.
|
1035
|
+
class ListSchedulesResponse
|
1036
|
+
include Google::Apis::Core::Hashable
|
1037
|
+
|
1038
|
+
# Page token that can be used to continue listing from the last result in the
|
1039
|
+
# next list call.
|
1040
|
+
# Corresponds to the JSON property `nextPageToken`
|
1041
|
+
# @return [String]
|
1042
|
+
attr_accessor :next_page_token
|
1043
|
+
|
1044
|
+
# A list of returned instances.
|
1045
|
+
# Corresponds to the JSON property `schedules`
|
1046
|
+
# @return [Array<Google::Apis::NotebooksV1::Schedule>]
|
1047
|
+
attr_accessor :schedules
|
1048
|
+
|
1049
|
+
# Schedules that could not be reached. For example, ['projects/`project_id`/
|
1050
|
+
# location/`location`/schedules/monthly_digest', 'projects/`project_id`/location/
|
1051
|
+
# `location`/schedules/weekly_sentiment'].
|
1052
|
+
# Corresponds to the JSON property `unreachable`
|
1053
|
+
# @return [Array<String>]
|
1054
|
+
attr_accessor :unreachable
|
1055
|
+
|
1056
|
+
def initialize(**args)
|
1057
|
+
update!(**args)
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
# Update properties of this object
|
1061
|
+
def update!(**args)
|
1062
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1063
|
+
@schedules = args[:schedules] if args.key?(:schedules)
|
1064
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1065
|
+
end
|
1066
|
+
end
|
1067
|
+
|
795
1068
|
# A resource that represents Google Cloud Platform location.
|
796
1069
|
class Location
|
797
1070
|
include Google::Apis::Core::Hashable
|
@@ -1111,6 +1384,109 @@ module Google
|
|
1111
1384
|
end
|
1112
1385
|
end
|
1113
1386
|
|
1387
|
+
# The definition of a schedule.
|
1388
|
+
class Schedule
|
1389
|
+
include Google::Apis::Core::Hashable
|
1390
|
+
|
1391
|
+
# Output only. Time the schedule was created.
|
1392
|
+
# Corresponds to the JSON property `createTime`
|
1393
|
+
# @return [String]
|
1394
|
+
attr_accessor :create_time
|
1395
|
+
|
1396
|
+
# Cron-tab formatted schedule by which the job will execute Format: minute, hour,
|
1397
|
+
# day of month, month, day of week e.g. 0 0 * * WED = every Wednesday More
|
1398
|
+
# examples: https://crontab.guru/examples.html
|
1399
|
+
# Corresponds to the JSON property `cronSchedule`
|
1400
|
+
# @return [String]
|
1401
|
+
attr_accessor :cron_schedule
|
1402
|
+
|
1403
|
+
# A brief description of this environment.
|
1404
|
+
# Corresponds to the JSON property `description`
|
1405
|
+
# @return [String]
|
1406
|
+
attr_accessor :description
|
1407
|
+
|
1408
|
+
# Output only. Display name used for UI purposes. Name can only contain
|
1409
|
+
# alphanumeric characters, hyphens ‘-’, and underscores ‘_’.
|
1410
|
+
# Corresponds to the JSON property `displayName`
|
1411
|
+
# @return [String]
|
1412
|
+
attr_accessor :display_name
|
1413
|
+
|
1414
|
+
# The description a notebook execution workload.
|
1415
|
+
# Corresponds to the JSON property `executionTemplate`
|
1416
|
+
# @return [Google::Apis::NotebooksV1::ExecutionTemplate]
|
1417
|
+
attr_accessor :execution_template
|
1418
|
+
|
1419
|
+
# Output only. The name of this schedule. Format: `projects/`project_id`/
|
1420
|
+
# locations/`location`/schedules/`schedule_id``
|
1421
|
+
# Corresponds to the JSON property `name`
|
1422
|
+
# @return [String]
|
1423
|
+
attr_accessor :name
|
1424
|
+
|
1425
|
+
#
|
1426
|
+
# Corresponds to the JSON property `state`
|
1427
|
+
# @return [String]
|
1428
|
+
attr_accessor :state
|
1429
|
+
|
1430
|
+
# Timezone on which the cron_schedule. The value of this field must be a time
|
1431
|
+
# zone name from the tz database. TZ Database: https://en.wikipedia.org/wiki/
|
1432
|
+
# List_of_tz_database_time_zones Note that some time zones include a provision
|
1433
|
+
# for daylight savings time. The rules for daylight saving time are determined
|
1434
|
+
# by the chosen tz. For UTC use the string "utc". If a time zone is not
|
1435
|
+
# specified, the default will be in UTC (also known as GMT).
|
1436
|
+
# Corresponds to the JSON property `timeZone`
|
1437
|
+
# @return [String]
|
1438
|
+
attr_accessor :time_zone
|
1439
|
+
|
1440
|
+
# Output only. TIme the schedule was last updated.
|
1441
|
+
# Corresponds to the JSON property `updateTime`
|
1442
|
+
# @return [String]
|
1443
|
+
attr_accessor :update_time
|
1444
|
+
|
1445
|
+
def initialize(**args)
|
1446
|
+
update!(**args)
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
# Update properties of this object
|
1450
|
+
def update!(**args)
|
1451
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1452
|
+
@cron_schedule = args[:cron_schedule] if args.key?(:cron_schedule)
|
1453
|
+
@description = args[:description] if args.key?(:description)
|
1454
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1455
|
+
@execution_template = args[:execution_template] if args.key?(:execution_template)
|
1456
|
+
@name = args[:name] if args.key?(:name)
|
1457
|
+
@state = args[:state] if args.key?(:state)
|
1458
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
1459
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1460
|
+
end
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
# Definition of a hardware accelerator. Note that not all combinations of `type`
|
1464
|
+
# and `core_count` are valid. Check GPUs on Compute Engine to find a valid
|
1465
|
+
# combination. TPUs are not supported.
|
1466
|
+
class SchedulerAcceleratorConfig
|
1467
|
+
include Google::Apis::Core::Hashable
|
1468
|
+
|
1469
|
+
# Count of cores of this accelerator.
|
1470
|
+
# Corresponds to the JSON property `coreCount`
|
1471
|
+
# @return [Fixnum]
|
1472
|
+
attr_accessor :core_count
|
1473
|
+
|
1474
|
+
# Type of this accelerator.
|
1475
|
+
# Corresponds to the JSON property `type`
|
1476
|
+
# @return [String]
|
1477
|
+
attr_accessor :type
|
1478
|
+
|
1479
|
+
def initialize(**args)
|
1480
|
+
update!(**args)
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
# Update properties of this object
|
1484
|
+
def update!(**args)
|
1485
|
+
@core_count = args[:core_count] if args.key?(:core_count)
|
1486
|
+
@type = args[:type] if args.key?(:type)
|
1487
|
+
end
|
1488
|
+
end
|
1489
|
+
|
1114
1490
|
# Request message for `SetIamPolicy` method.
|
1115
1491
|
class SetIamPolicyRequest
|
1116
1492
|
include Google::Apis::Core::Hashable
|
@@ -1224,6 +1600,48 @@ module Google
|
|
1224
1600
|
end
|
1225
1601
|
end
|
1226
1602
|
|
1603
|
+
# A set of Shielded Instance options. Check [Images using supported Shielded VM
|
1604
|
+
# features] Not all combinations are valid.
|
1605
|
+
class ShieldedInstanceConfig
|
1606
|
+
include Google::Apis::Core::Hashable
|
1607
|
+
|
1608
|
+
# Defines whether the instance has integrity monitoring enabled. Enables
|
1609
|
+
# monitoring and attestation of the boot integrity of the instance. The
|
1610
|
+
# attestation is performed against the integrity policy baseline. This baseline
|
1611
|
+
# is initially derived from the implicitly trusted boot image when the instance
|
1612
|
+
# is created. Enabled by default.
|
1613
|
+
# Corresponds to the JSON property `enableIntegrityMonitoring`
|
1614
|
+
# @return [Boolean]
|
1615
|
+
attr_accessor :enable_integrity_monitoring
|
1616
|
+
alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring
|
1617
|
+
|
1618
|
+
# Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure
|
1619
|
+
# that the system only runs authentic software by verifying the digital
|
1620
|
+
# signature of all boot components, and halting the boot process if signature
|
1621
|
+
# verification fails. Disabled by default.
|
1622
|
+
# Corresponds to the JSON property `enableSecureBoot`
|
1623
|
+
# @return [Boolean]
|
1624
|
+
attr_accessor :enable_secure_boot
|
1625
|
+
alias_method :enable_secure_boot?, :enable_secure_boot
|
1626
|
+
|
1627
|
+
# Defines whether the instance has the vTPM enabled. Enabled by default.
|
1628
|
+
# Corresponds to the JSON property `enableVtpm`
|
1629
|
+
# @return [Boolean]
|
1630
|
+
attr_accessor :enable_vtpm
|
1631
|
+
alias_method :enable_vtpm?, :enable_vtpm
|
1632
|
+
|
1633
|
+
def initialize(**args)
|
1634
|
+
update!(**args)
|
1635
|
+
end
|
1636
|
+
|
1637
|
+
# Update properties of this object
|
1638
|
+
def update!(**args)
|
1639
|
+
@enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring)
|
1640
|
+
@enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
|
1641
|
+
@enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm)
|
1642
|
+
end
|
1643
|
+
end
|
1644
|
+
|
1227
1645
|
# Request for starting a notebook instance
|
1228
1646
|
class StartInstanceRequest
|
1229
1647
|
include Google::Apis::Core::Hashable
|
@@ -1342,10 +1760,15 @@ module Google
|
|
1342
1760
|
end
|
1343
1761
|
end
|
1344
1762
|
|
1345
|
-
#
|
1763
|
+
# The entry of VM image upgrade history.
|
1346
1764
|
class UpgradeHistoryEntry
|
1347
1765
|
include Google::Apis::Core::Hashable
|
1348
1766
|
|
1767
|
+
# Action. Rolloback or Upgrade.
|
1768
|
+
# Corresponds to the JSON property `action`
|
1769
|
+
# @return [String]
|
1770
|
+
attr_accessor :action
|
1771
|
+
|
1349
1772
|
# The container image before this instance upgrade.
|
1350
1773
|
# Corresponds to the JSON property `containerImage`
|
1351
1774
|
# @return [String]
|
@@ -1371,6 +1794,11 @@ module Google
|
|
1371
1794
|
# @return [String]
|
1372
1795
|
attr_accessor :state
|
1373
1796
|
|
1797
|
+
# Target VM Image. Format: ainotebooks-vm/project/image-name/name.
|
1798
|
+
# Corresponds to the JSON property `targetImage`
|
1799
|
+
# @return [String]
|
1800
|
+
attr_accessor :target_image
|
1801
|
+
|
1374
1802
|
# The version of the notebook instance before this upgrade.
|
1375
1803
|
# Corresponds to the JSON property `version`
|
1376
1804
|
# @return [String]
|
@@ -1387,11 +1815,13 @@ module Google
|
|
1387
1815
|
|
1388
1816
|
# Update properties of this object
|
1389
1817
|
def update!(**args)
|
1818
|
+
@action = args[:action] if args.key?(:action)
|
1390
1819
|
@container_image = args[:container_image] if args.key?(:container_image)
|
1391
1820
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1392
1821
|
@framework = args[:framework] if args.key?(:framework)
|
1393
1822
|
@snapshot = args[:snapshot] if args.key?(:snapshot)
|
1394
1823
|
@state = args[:state] if args.key?(:state)
|
1824
|
+
@target_image = args[:target_image] if args.key?(:target_image)
|
1395
1825
|
@version = args[:version] if args.key?(:version)
|
1396
1826
|
@vm_image = args[:vm_image] if args.key?(:vm_image)
|
1397
1827
|
end
|
@@ -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.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210122"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -64,12 +64,30 @@ module Google
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class Execution
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ExecutionTemplate
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
67
79
|
class Expr
|
68
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
81
|
|
70
82
|
include Google::Apis::Core::JsonObjectSupport
|
71
83
|
end
|
72
84
|
|
85
|
+
class GetInstanceHealthResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
73
91
|
class GuestOsFeature
|
74
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
93
|
|
@@ -94,6 +112,12 @@ module Google
|
|
94
112
|
include Google::Apis::Core::JsonObjectSupport
|
95
113
|
end
|
96
114
|
|
115
|
+
class ListExecutionsResponse
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
97
121
|
class ListInstancesResponse
|
98
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
123
|
|
@@ -112,6 +136,12 @@ module Google
|
|
112
136
|
include Google::Apis::Core::JsonObjectSupport
|
113
137
|
end
|
114
138
|
|
139
|
+
class ListSchedulesResponse
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
115
145
|
class Location
|
116
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
147
|
|
@@ -154,6 +184,18 @@ module Google
|
|
154
184
|
include Google::Apis::Core::JsonObjectSupport
|
155
185
|
end
|
156
186
|
|
187
|
+
class Schedule
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class SchedulerAcceleratorConfig
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
157
199
|
class SetIamPolicyRequest
|
158
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
201
|
|
@@ -178,6 +220,12 @@ module Google
|
|
178
220
|
include Google::Apis::Core::JsonObjectSupport
|
179
221
|
end
|
180
222
|
|
223
|
+
class ShieldedInstanceConfig
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
181
229
|
class StartInstanceRequest
|
182
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
231
|
|
@@ -310,6 +358,36 @@ module Google
|
|
310
358
|
end
|
311
359
|
end
|
312
360
|
|
361
|
+
class Execution
|
362
|
+
# @private
|
363
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
364
|
+
property :create_time, as: 'createTime'
|
365
|
+
property :description, as: 'description'
|
366
|
+
property :display_name, as: 'displayName'
|
367
|
+
property :execution_template, as: 'executionTemplate', class: Google::Apis::NotebooksV1::ExecutionTemplate, decorator: Google::Apis::NotebooksV1::ExecutionTemplate::Representation
|
368
|
+
|
369
|
+
property :name, as: 'name'
|
370
|
+
property :output_notebook_file, as: 'outputNotebookFile'
|
371
|
+
property :state, as: 'state'
|
372
|
+
property :update_time, as: 'updateTime'
|
373
|
+
end
|
374
|
+
end
|
375
|
+
|
376
|
+
class ExecutionTemplate
|
377
|
+
# @private
|
378
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
379
|
+
property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::SchedulerAcceleratorConfig, decorator: Google::Apis::NotebooksV1::SchedulerAcceleratorConfig::Representation
|
380
|
+
|
381
|
+
property :container_image_uri, as: 'containerImageUri'
|
382
|
+
property :input_notebook_file, as: 'inputNotebookFile'
|
383
|
+
hash :labels, as: 'labels'
|
384
|
+
property :master_type, as: 'masterType'
|
385
|
+
property :output_notebook_folder, as: 'outputNotebookFolder'
|
386
|
+
property :params_yaml_file, as: 'paramsYamlFile'
|
387
|
+
property :scale_tier, as: 'scaleTier'
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
313
391
|
class Expr
|
314
392
|
# @private
|
315
393
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -320,6 +398,14 @@ module Google
|
|
320
398
|
end
|
321
399
|
end
|
322
400
|
|
401
|
+
class GetInstanceHealthResponse
|
402
|
+
# @private
|
403
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
404
|
+
hash :health_info, as: 'healthInfo'
|
405
|
+
property :health_state, as: 'healthState'
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
323
409
|
class GuestOsFeature
|
324
410
|
# @private
|
325
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -357,8 +443,12 @@ module Google
|
|
357
443
|
property :post_startup_script, as: 'postStartupScript'
|
358
444
|
property :proxy_uri, as: 'proxyUri'
|
359
445
|
property :service_account, as: 'serviceAccount'
|
446
|
+
collection :service_account_scopes, as: 'serviceAccountScopes'
|
447
|
+
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::ShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::ShieldedInstanceConfig::Representation
|
448
|
+
|
360
449
|
property :state, as: 'state'
|
361
450
|
property :subnet, as: 'subnet'
|
451
|
+
collection :tags, as: 'tags'
|
362
452
|
property :update_time, as: 'updateTime'
|
363
453
|
collection :upgrade_history, as: 'upgradeHistory', class: Google::Apis::NotebooksV1::UpgradeHistoryEntry, decorator: Google::Apis::NotebooksV1::UpgradeHistoryEntry::Representation
|
364
454
|
|
@@ -386,6 +476,16 @@ module Google
|
|
386
476
|
end
|
387
477
|
end
|
388
478
|
|
479
|
+
class ListExecutionsResponse
|
480
|
+
# @private
|
481
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
482
|
+
collection :executions, as: 'executions', class: Google::Apis::NotebooksV1::Execution, decorator: Google::Apis::NotebooksV1::Execution::Representation
|
483
|
+
|
484
|
+
property :next_page_token, as: 'nextPageToken'
|
485
|
+
collection :unreachable, as: 'unreachable'
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
389
489
|
class ListInstancesResponse
|
390
490
|
# @private
|
391
491
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -414,6 +514,16 @@ module Google
|
|
414
514
|
end
|
415
515
|
end
|
416
516
|
|
517
|
+
class ListSchedulesResponse
|
518
|
+
# @private
|
519
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
520
|
+
property :next_page_token, as: 'nextPageToken'
|
521
|
+
collection :schedules, as: 'schedules', class: Google::Apis::NotebooksV1::Schedule, decorator: Google::Apis::NotebooksV1::Schedule::Representation
|
522
|
+
|
523
|
+
collection :unreachable, as: 'unreachable'
|
524
|
+
end
|
525
|
+
end
|
526
|
+
|
417
527
|
class Location
|
418
528
|
# @private
|
419
529
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -482,6 +592,30 @@ module Google
|
|
482
592
|
end
|
483
593
|
end
|
484
594
|
|
595
|
+
class Schedule
|
596
|
+
# @private
|
597
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
598
|
+
property :create_time, as: 'createTime'
|
599
|
+
property :cron_schedule, as: 'cronSchedule'
|
600
|
+
property :description, as: 'description'
|
601
|
+
property :display_name, as: 'displayName'
|
602
|
+
property :execution_template, as: 'executionTemplate', class: Google::Apis::NotebooksV1::ExecutionTemplate, decorator: Google::Apis::NotebooksV1::ExecutionTemplate::Representation
|
603
|
+
|
604
|
+
property :name, as: 'name'
|
605
|
+
property :state, as: 'state'
|
606
|
+
property :time_zone, as: 'timeZone'
|
607
|
+
property :update_time, as: 'updateTime'
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
611
|
+
class SchedulerAcceleratorConfig
|
612
|
+
# @private
|
613
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
614
|
+
property :core_count, :numeric_string => true, as: 'coreCount'
|
615
|
+
property :type, as: 'type'
|
616
|
+
end
|
617
|
+
end
|
618
|
+
|
485
619
|
class SetIamPolicyRequest
|
486
620
|
# @private
|
487
621
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -512,6 +646,15 @@ module Google
|
|
512
646
|
end
|
513
647
|
end
|
514
648
|
|
649
|
+
class ShieldedInstanceConfig
|
650
|
+
# @private
|
651
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
652
|
+
property :enable_integrity_monitoring, as: 'enableIntegrityMonitoring'
|
653
|
+
property :enable_secure_boot, as: 'enableSecureBoot'
|
654
|
+
property :enable_vtpm, as: 'enableVtpm'
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
515
658
|
class StartInstanceRequest
|
516
659
|
# @private
|
517
660
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -556,11 +699,13 @@ module Google
|
|
556
699
|
class UpgradeHistoryEntry
|
557
700
|
# @private
|
558
701
|
class Representation < Google::Apis::Core::JsonRepresentation
|
702
|
+
property :action, as: 'action'
|
559
703
|
property :container_image, as: 'containerImage'
|
560
704
|
property :create_time, as: 'createTime'
|
561
705
|
property :framework, as: 'framework'
|
562
706
|
property :snapshot, as: 'snapshot'
|
563
707
|
property :state, as: 'state'
|
708
|
+
property :target_image, as: 'targetImage'
|
564
709
|
property :version, as: 'version'
|
565
710
|
property :vm_image, as: 'vmImage'
|
566
711
|
end
|
@@ -256,6 +256,147 @@ module Google
|
|
256
256
|
execute_or_queue_command(command, &block)
|
257
257
|
end
|
258
258
|
|
259
|
+
# Creates a new Scheduled Notebook in a given project and location.
|
260
|
+
# @param [String] parent
|
261
|
+
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
262
|
+
# @param [Google::Apis::NotebooksV1::Execution] execution_object
|
263
|
+
# @param [String] execution_id
|
264
|
+
# Required. User-defined unique ID of this execution.
|
265
|
+
# @param [String] fields
|
266
|
+
# Selector specifying which fields to include in a partial response.
|
267
|
+
# @param [String] quota_user
|
268
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
269
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
270
|
+
# @param [Google::Apis::RequestOptions] options
|
271
|
+
# Request-specific options
|
272
|
+
#
|
273
|
+
# @yield [result, err] Result & error if block supplied
|
274
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
275
|
+
# @yieldparam err [StandardError] error object if request failed
|
276
|
+
#
|
277
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
278
|
+
#
|
279
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
280
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
281
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
282
|
+
def create_project_location_execution(parent, execution_object = nil, execution_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
283
|
+
command = make_simple_command(:post, 'v1/{+parent}/executions', options)
|
284
|
+
command.request_representation = Google::Apis::NotebooksV1::Execution::Representation
|
285
|
+
command.request_object = execution_object
|
286
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
287
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
288
|
+
command.params['parent'] = parent unless parent.nil?
|
289
|
+
command.query['executionId'] = execution_id unless execution_id.nil?
|
290
|
+
command.query['fields'] = fields unless fields.nil?
|
291
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
292
|
+
execute_or_queue_command(command, &block)
|
293
|
+
end
|
294
|
+
|
295
|
+
# Deletes execution
|
296
|
+
# @param [String] name
|
297
|
+
# Required. Format: `projects/`project_id`/locations/`location`/executions/`
|
298
|
+
# execution_id``
|
299
|
+
# @param [String] fields
|
300
|
+
# Selector specifying which fields to include in a partial response.
|
301
|
+
# @param [String] quota_user
|
302
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
303
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
304
|
+
# @param [Google::Apis::RequestOptions] options
|
305
|
+
# Request-specific options
|
306
|
+
#
|
307
|
+
# @yield [result, err] Result & error if block supplied
|
308
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
309
|
+
# @yieldparam err [StandardError] error object if request failed
|
310
|
+
#
|
311
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
312
|
+
#
|
313
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
314
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
315
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
316
|
+
def delete_project_location_execution(name, fields: nil, quota_user: nil, options: nil, &block)
|
317
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
318
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
319
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
320
|
+
command.params['name'] = name unless name.nil?
|
321
|
+
command.query['fields'] = fields unless fields.nil?
|
322
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
323
|
+
execute_or_queue_command(command, &block)
|
324
|
+
end
|
325
|
+
|
326
|
+
# Gets details of executions
|
327
|
+
# @param [String] name
|
328
|
+
# Required. Format: `projects/`project_id`/locations/`location`/schedules/`
|
329
|
+
# execution_id``
|
330
|
+
# @param [String] fields
|
331
|
+
# Selector specifying which fields to include in a partial response.
|
332
|
+
# @param [String] quota_user
|
333
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
334
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
335
|
+
# @param [Google::Apis::RequestOptions] options
|
336
|
+
# Request-specific options
|
337
|
+
#
|
338
|
+
# @yield [result, err] Result & error if block supplied
|
339
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Execution] parsed result object
|
340
|
+
# @yieldparam err [StandardError] error object if request failed
|
341
|
+
#
|
342
|
+
# @return [Google::Apis::NotebooksV1::Execution]
|
343
|
+
#
|
344
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
345
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
346
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
347
|
+
def get_project_location_execution(name, fields: nil, quota_user: nil, options: nil, &block)
|
348
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
349
|
+
command.response_representation = Google::Apis::NotebooksV1::Execution::Representation
|
350
|
+
command.response_class = Google::Apis::NotebooksV1::Execution
|
351
|
+
command.params['name'] = name unless name.nil?
|
352
|
+
command.query['fields'] = fields unless fields.nil?
|
353
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
354
|
+
execute_or_queue_command(command, &block)
|
355
|
+
end
|
356
|
+
|
357
|
+
# Lists executions in a given project and location
|
358
|
+
# @param [String] parent
|
359
|
+
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
360
|
+
# @param [String] filter
|
361
|
+
# Filter applied to resulting executions.
|
362
|
+
# @param [String] order_by
|
363
|
+
# Sort by field.
|
364
|
+
# @param [Fixnum] page_size
|
365
|
+
# Maximum return size of the list call.
|
366
|
+
# @param [String] page_token
|
367
|
+
# A previous returned page token that can be used to continue listing from the
|
368
|
+
# last result.
|
369
|
+
# @param [String] fields
|
370
|
+
# Selector specifying which fields to include in a partial response.
|
371
|
+
# @param [String] quota_user
|
372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
374
|
+
# @param [Google::Apis::RequestOptions] options
|
375
|
+
# Request-specific options
|
376
|
+
#
|
377
|
+
# @yield [result, err] Result & error if block supplied
|
378
|
+
# @yieldparam result [Google::Apis::NotebooksV1::ListExecutionsResponse] parsed result object
|
379
|
+
# @yieldparam err [StandardError] error object if request failed
|
380
|
+
#
|
381
|
+
# @return [Google::Apis::NotebooksV1::ListExecutionsResponse]
|
382
|
+
#
|
383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
386
|
+
def list_project_location_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
387
|
+
command = make_simple_command(:get, 'v1/{+parent}/executions', options)
|
388
|
+
command.response_representation = Google::Apis::NotebooksV1::ListExecutionsResponse::Representation
|
389
|
+
command.response_class = Google::Apis::NotebooksV1::ListExecutionsResponse
|
390
|
+
command.params['parent'] = parent unless parent.nil?
|
391
|
+
command.query['filter'] = filter unless filter.nil?
|
392
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
393
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
394
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
395
|
+
command.query['fields'] = fields unless fields.nil?
|
396
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
397
|
+
execute_or_queue_command(command, &block)
|
398
|
+
end
|
399
|
+
|
259
400
|
# Creates a new Instance in a given project and location.
|
260
401
|
# @param [String] parent
|
261
402
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
@@ -395,6 +536,37 @@ module Google
|
|
395
536
|
execute_or_queue_command(command, &block)
|
396
537
|
end
|
397
538
|
|
539
|
+
# Check if a notebook instance is healthy.
|
540
|
+
# @param [String] name
|
541
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
542
|
+
# instance_id``
|
543
|
+
# @param [String] fields
|
544
|
+
# Selector specifying which fields to include in a partial response.
|
545
|
+
# @param [String] quota_user
|
546
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
547
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
548
|
+
# @param [Google::Apis::RequestOptions] options
|
549
|
+
# Request-specific options
|
550
|
+
#
|
551
|
+
# @yield [result, err] Result & error if block supplied
|
552
|
+
# @yieldparam result [Google::Apis::NotebooksV1::GetInstanceHealthResponse] parsed result object
|
553
|
+
# @yieldparam err [StandardError] error object if request failed
|
554
|
+
#
|
555
|
+
# @return [Google::Apis::NotebooksV1::GetInstanceHealthResponse]
|
556
|
+
#
|
557
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
558
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
559
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
560
|
+
def get_project_location_instance_instance_health(name, fields: nil, quota_user: nil, options: nil, &block)
|
561
|
+
command = make_simple_command(:get, 'v1/{+name}:getInstanceHealth', options)
|
562
|
+
command.response_representation = Google::Apis::NotebooksV1::GetInstanceHealthResponse::Representation
|
563
|
+
command.response_class = Google::Apis::NotebooksV1::GetInstanceHealthResponse
|
564
|
+
command.params['name'] = name unless name.nil?
|
565
|
+
command.query['fields'] = fields unless fields.nil?
|
566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
567
|
+
execute_or_queue_command(command, &block)
|
568
|
+
end
|
569
|
+
|
398
570
|
# Check if a notebook instance is upgradable.
|
399
571
|
# @param [String] notebook_instance
|
400
572
|
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
@@ -1032,6 +1204,147 @@ module Google
|
|
1032
1204
|
execute_or_queue_command(command, &block)
|
1033
1205
|
end
|
1034
1206
|
|
1207
|
+
# Creates a new Scheduled Notebook in a given project and location.
|
1208
|
+
# @param [String] parent
|
1209
|
+
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
1210
|
+
# @param [Google::Apis::NotebooksV1::Schedule] schedule_object
|
1211
|
+
# @param [String] schedule_id
|
1212
|
+
# Required. User-defined unique ID of this schedule.
|
1213
|
+
# @param [String] fields
|
1214
|
+
# Selector specifying which fields to include in a partial response.
|
1215
|
+
# @param [String] quota_user
|
1216
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1217
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1218
|
+
# @param [Google::Apis::RequestOptions] options
|
1219
|
+
# Request-specific options
|
1220
|
+
#
|
1221
|
+
# @yield [result, err] Result & error if block supplied
|
1222
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1223
|
+
# @yieldparam err [StandardError] error object if request failed
|
1224
|
+
#
|
1225
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1226
|
+
#
|
1227
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1228
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1229
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1230
|
+
def create_project_location_schedule(parent, schedule_object = nil, schedule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1231
|
+
command = make_simple_command(:post, 'v1/{+parent}/schedules', options)
|
1232
|
+
command.request_representation = Google::Apis::NotebooksV1::Schedule::Representation
|
1233
|
+
command.request_object = schedule_object
|
1234
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1235
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1236
|
+
command.params['parent'] = parent unless parent.nil?
|
1237
|
+
command.query['scheduleId'] = schedule_id unless schedule_id.nil?
|
1238
|
+
command.query['fields'] = fields unless fields.nil?
|
1239
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1240
|
+
execute_or_queue_command(command, &block)
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
# Deletes schedule and all underlying jobs
|
1244
|
+
# @param [String] name
|
1245
|
+
# Required. Format: `projects/`project_id`/locations/`location`/schedules/`
|
1246
|
+
# schedule_id``
|
1247
|
+
# @param [String] fields
|
1248
|
+
# Selector specifying which fields to include in a partial response.
|
1249
|
+
# @param [String] quota_user
|
1250
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1251
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1252
|
+
# @param [Google::Apis::RequestOptions] options
|
1253
|
+
# Request-specific options
|
1254
|
+
#
|
1255
|
+
# @yield [result, err] Result & error if block supplied
|
1256
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1257
|
+
# @yieldparam err [StandardError] error object if request failed
|
1258
|
+
#
|
1259
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1260
|
+
#
|
1261
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1262
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1263
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1264
|
+
def delete_project_location_schedule(name, fields: nil, quota_user: nil, options: nil, &block)
|
1265
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1266
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1267
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1268
|
+
command.params['name'] = name unless name.nil?
|
1269
|
+
command.query['fields'] = fields unless fields.nil?
|
1270
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1271
|
+
execute_or_queue_command(command, &block)
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# Gets details of schedule
|
1275
|
+
# @param [String] name
|
1276
|
+
# Required. Format: `projects/`project_id`/locations/`location`/schedules/`
|
1277
|
+
# schedule_id``
|
1278
|
+
# @param [String] fields
|
1279
|
+
# Selector specifying which fields to include in a partial response.
|
1280
|
+
# @param [String] quota_user
|
1281
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1282
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1283
|
+
# @param [Google::Apis::RequestOptions] options
|
1284
|
+
# Request-specific options
|
1285
|
+
#
|
1286
|
+
# @yield [result, err] Result & error if block supplied
|
1287
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Schedule] parsed result object
|
1288
|
+
# @yieldparam err [StandardError] error object if request failed
|
1289
|
+
#
|
1290
|
+
# @return [Google::Apis::NotebooksV1::Schedule]
|
1291
|
+
#
|
1292
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1293
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1294
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1295
|
+
def get_project_location_schedule(name, fields: nil, quota_user: nil, options: nil, &block)
|
1296
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1297
|
+
command.response_representation = Google::Apis::NotebooksV1::Schedule::Representation
|
1298
|
+
command.response_class = Google::Apis::NotebooksV1::Schedule
|
1299
|
+
command.params['name'] = name unless name.nil?
|
1300
|
+
command.query['fields'] = fields unless fields.nil?
|
1301
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1302
|
+
execute_or_queue_command(command, &block)
|
1303
|
+
end
|
1304
|
+
|
1305
|
+
# Lists schedules in a given project and location.
|
1306
|
+
# @param [String] parent
|
1307
|
+
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
1308
|
+
# @param [String] filter
|
1309
|
+
# Filter applied to resulting schedules.
|
1310
|
+
# @param [String] order_by
|
1311
|
+
# Field to order results by.
|
1312
|
+
# @param [Fixnum] page_size
|
1313
|
+
# Maximum return size of the list call.
|
1314
|
+
# @param [String] page_token
|
1315
|
+
# A previous returned page token that can be used to continue listing from the
|
1316
|
+
# last result.
|
1317
|
+
# @param [String] fields
|
1318
|
+
# Selector specifying which fields to include in a partial response.
|
1319
|
+
# @param [String] quota_user
|
1320
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1321
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1322
|
+
# @param [Google::Apis::RequestOptions] options
|
1323
|
+
# Request-specific options
|
1324
|
+
#
|
1325
|
+
# @yield [result, err] Result & error if block supplied
|
1326
|
+
# @yieldparam result [Google::Apis::NotebooksV1::ListSchedulesResponse] parsed result object
|
1327
|
+
# @yieldparam err [StandardError] error object if request failed
|
1328
|
+
#
|
1329
|
+
# @return [Google::Apis::NotebooksV1::ListSchedulesResponse]
|
1330
|
+
#
|
1331
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1332
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1333
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1334
|
+
def list_project_location_schedules(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1335
|
+
command = make_simple_command(:get, 'v1/{+parent}/schedules', options)
|
1336
|
+
command.response_representation = Google::Apis::NotebooksV1::ListSchedulesResponse::Representation
|
1337
|
+
command.response_class = Google::Apis::NotebooksV1::ListSchedulesResponse
|
1338
|
+
command.params['parent'] = parent unless parent.nil?
|
1339
|
+
command.query['filter'] = filter unless filter.nil?
|
1340
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1341
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1342
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1343
|
+
command.query['fields'] = fields unless fields.nil?
|
1344
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1345
|
+
execute_or_queue_command(command, &block)
|
1346
|
+
end
|
1347
|
+
|
1035
1348
|
# Triggers execution of an existing schedule.
|
1036
1349
|
# @param [String] name
|
1037
1350
|
# Required. Format: `parent=projects/`project_id`/locations/`location`/schedules/
|
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.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.2.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Notebooks API V1
|