google-apis-notebooks_v1 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85f44028b77a698830f8e86f92972f711b052c3ab291ca45b4aba5b6c8f8e331
|
4
|
+
data.tar.gz: 40ea545c95e939e75600aae414514211710ea8ae8f71a1a0e0f17128c59bb593
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ea87d07ebf180bf45369a078054d596491664fe2bdee8418236f63f2ec7197f7910f65ab1e2b47b5a328dfc763f4335ffa791ebde5cd1cb4521cab637d8d425
|
7
|
+
data.tar.gz: 3a5c00a8bcce9f88b62af6f2a7fdf4ed30f5cb0a013626bb81a1ad86981f150dde9190406155ad648535d189437405d773d3c49d8903524d75c7d9fac797e93c
|
data/CHANGELOG.md
CHANGED
@@ -368,6 +368,31 @@ module Google
|
|
368
368
|
end
|
369
369
|
end
|
370
370
|
|
371
|
+
# The definition of an Event for a managed / semi-managed notebook instance.
|
372
|
+
class Event
|
373
|
+
include Google::Apis::Core::Hashable
|
374
|
+
|
375
|
+
# Event report time.
|
376
|
+
# Corresponds to the JSON property `reportTime`
|
377
|
+
# @return [String]
|
378
|
+
attr_accessor :report_time
|
379
|
+
|
380
|
+
# Event type.
|
381
|
+
# Corresponds to the JSON property `type`
|
382
|
+
# @return [String]
|
383
|
+
attr_accessor :type
|
384
|
+
|
385
|
+
def initialize(**args)
|
386
|
+
update!(**args)
|
387
|
+
end
|
388
|
+
|
389
|
+
# Update properties of this object
|
390
|
+
def update!(**args)
|
391
|
+
@report_time = args[:report_time] if args.key?(:report_time)
|
392
|
+
@type = args[:type] if args.key?(:type)
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
371
396
|
# The definition of a single executed notebook.
|
372
397
|
class Execution
|
373
398
|
include Google::Apis::Core::Hashable
|
@@ -509,7 +534,8 @@ module Google
|
|
509
534
|
# @return [String]
|
510
535
|
attr_accessor :params_yaml_file
|
511
536
|
|
512
|
-
# Required. Scale tier of the hardware used for notebook execution.
|
537
|
+
# Required. Scale tier of the hardware used for notebook execution. DEPRECATED
|
538
|
+
# Will be discontinued. As right now only CUSTOM is supported.
|
513
539
|
# Corresponds to the JSON property `scaleTier`
|
514
540
|
# @return [String]
|
515
541
|
attr_accessor :scale_tier
|
@@ -797,6 +823,11 @@ module Google
|
|
797
823
|
# @return [String]
|
798
824
|
attr_accessor :proxy_uri
|
799
825
|
|
826
|
+
# Reservation Affinity for consuming Zonal reservation.
|
827
|
+
# Corresponds to the JSON property `reservationAffinity`
|
828
|
+
# @return [Google::Apis::NotebooksV1::ReservationAffinity]
|
829
|
+
attr_accessor :reservation_affinity
|
830
|
+
|
800
831
|
# The service account on this instance, giving access to other Google Cloud
|
801
832
|
# services. You can use any service account within the same project, but you
|
802
833
|
# must have the service account user permission to use the instance. If not
|
@@ -885,6 +916,7 @@ module Google
|
|
885
916
|
@no_remove_data_disk = args[:no_remove_data_disk] if args.key?(:no_remove_data_disk)
|
886
917
|
@post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
|
887
918
|
@proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
|
919
|
+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
888
920
|
@service_account = args[:service_account] if args.key?(:service_account)
|
889
921
|
@service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
|
890
922
|
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
|
@@ -1651,6 +1683,63 @@ module Google
|
|
1651
1683
|
end
|
1652
1684
|
end
|
1653
1685
|
|
1686
|
+
# Request for reporting a Managed Notebook Event.
|
1687
|
+
class ReportRuntimeEventRequest
|
1688
|
+
include Google::Apis::Core::Hashable
|
1689
|
+
|
1690
|
+
# The definition of an Event for a managed / semi-managed notebook instance.
|
1691
|
+
# Corresponds to the JSON property `event`
|
1692
|
+
# @return [Google::Apis::NotebooksV1::Event]
|
1693
|
+
attr_accessor :event
|
1694
|
+
|
1695
|
+
# Required. The VM hardware token for authenticating the VM. https://cloud.
|
1696
|
+
# google.com/compute/docs/instances/verifying-instance-identity
|
1697
|
+
# Corresponds to the JSON property `vmId`
|
1698
|
+
# @return [String]
|
1699
|
+
attr_accessor :vm_id
|
1700
|
+
|
1701
|
+
def initialize(**args)
|
1702
|
+
update!(**args)
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
# Update properties of this object
|
1706
|
+
def update!(**args)
|
1707
|
+
@event = args[:event] if args.key?(:event)
|
1708
|
+
@vm_id = args[:vm_id] if args.key?(:vm_id)
|
1709
|
+
end
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
# Reservation Affinity for consuming Zonal reservation.
|
1713
|
+
class ReservationAffinity
|
1714
|
+
include Google::Apis::Core::Hashable
|
1715
|
+
|
1716
|
+
# Optional. Type of reservation to consume
|
1717
|
+
# Corresponds to the JSON property `consumeReservationType`
|
1718
|
+
# @return [String]
|
1719
|
+
attr_accessor :consume_reservation_type
|
1720
|
+
|
1721
|
+
# Optional. Corresponds to the label key of reservation resource.
|
1722
|
+
# Corresponds to the JSON property `key`
|
1723
|
+
# @return [String]
|
1724
|
+
attr_accessor :key
|
1725
|
+
|
1726
|
+
# Optional. Corresponds to the label values of reservation resource.
|
1727
|
+
# Corresponds to the JSON property `values`
|
1728
|
+
# @return [Array<String>]
|
1729
|
+
attr_accessor :values
|
1730
|
+
|
1731
|
+
def initialize(**args)
|
1732
|
+
update!(**args)
|
1733
|
+
end
|
1734
|
+
|
1735
|
+
# Update properties of this object
|
1736
|
+
def update!(**args)
|
1737
|
+
@consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
|
1738
|
+
@key = args[:key] if args.key?(:key)
|
1739
|
+
@values = args[:values] if args.key?(:values)
|
1740
|
+
end
|
1741
|
+
end
|
1742
|
+
|
1654
1743
|
# Request for reseting a notebook instance
|
1655
1744
|
class ResetInstanceRequest
|
1656
1745
|
include Google::Apis::Core::Hashable
|
@@ -1935,13 +2024,13 @@ module Google
|
|
1935
2024
|
attr_accessor :enable_health_monitoring
|
1936
2025
|
alias_method :enable_health_monitoring?, :enable_health_monitoring
|
1937
2026
|
|
1938
|
-
# Runtime will automatically shutdown after idle_shutdown_time. Default:
|
2027
|
+
# Runtime will automatically shutdown after idle_shutdown_time. Default: True
|
1939
2028
|
# Corresponds to the JSON property `idleShutdown`
|
1940
2029
|
# @return [Boolean]
|
1941
2030
|
attr_accessor :idle_shutdown
|
1942
2031
|
alias_method :idle_shutdown?, :idle_shutdown
|
1943
2032
|
|
1944
|
-
# Time in minutes to wait before shuting down runtime. Default:
|
2033
|
+
# Time in minutes to wait before shuting down runtime. Default: 180 minutes
|
1945
2034
|
# Corresponds to the JSON property `idleShutdownTimeout`
|
1946
2035
|
# @return [Fixnum]
|
1947
2036
|
attr_accessor :idle_shutdown_timeout
|
@@ -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.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210713"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -70,6 +70,12 @@ module Google
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
+
class Event
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
73
79
|
class Execution
|
74
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
81
|
|
@@ -208,6 +214,18 @@ module Google
|
|
208
214
|
include Google::Apis::Core::JsonObjectSupport
|
209
215
|
end
|
210
216
|
|
217
|
+
class ReportRuntimeEventRequest
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class ReservationAffinity
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
211
229
|
class ResetInstanceRequest
|
212
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
231
|
|
@@ -491,6 +509,14 @@ module Google
|
|
491
509
|
end
|
492
510
|
end
|
493
511
|
|
512
|
+
class Event
|
513
|
+
# @private
|
514
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
515
|
+
property :report_time, as: 'reportTime'
|
516
|
+
property :type, as: 'type'
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
494
520
|
class Execution
|
495
521
|
# @private
|
496
522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -579,6 +605,8 @@ module Google
|
|
579
605
|
property :no_remove_data_disk, as: 'noRemoveDataDisk'
|
580
606
|
property :post_startup_script, as: 'postStartupScript'
|
581
607
|
property :proxy_uri, as: 'proxyUri'
|
608
|
+
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::NotebooksV1::ReservationAffinity, decorator: Google::Apis::NotebooksV1::ReservationAffinity::Representation
|
609
|
+
|
582
610
|
property :service_account, as: 'serviceAccount'
|
583
611
|
collection :service_account_scopes, as: 'serviceAccountScopes'
|
584
612
|
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::ShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::ShieldedInstanceConfig::Representation
|
@@ -773,6 +801,24 @@ module Google
|
|
773
801
|
end
|
774
802
|
end
|
775
803
|
|
804
|
+
class ReportRuntimeEventRequest
|
805
|
+
# @private
|
806
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
807
|
+
property :event, as: 'event', class: Google::Apis::NotebooksV1::Event, decorator: Google::Apis::NotebooksV1::Event::Representation
|
808
|
+
|
809
|
+
property :vm_id, as: 'vmId'
|
810
|
+
end
|
811
|
+
end
|
812
|
+
|
813
|
+
class ReservationAffinity
|
814
|
+
# @private
|
815
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
816
|
+
property :consume_reservation_type, as: 'consumeReservationType'
|
817
|
+
property :key, as: 'key'
|
818
|
+
collection :values, as: 'values'
|
819
|
+
end
|
820
|
+
end
|
821
|
+
|
776
822
|
class ResetInstanceRequest
|
777
823
|
# @private
|
778
824
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1447,6 +1447,40 @@ module Google
|
|
1447
1447
|
execute_or_queue_command(command, &block)
|
1448
1448
|
end
|
1449
1449
|
|
1450
|
+
# Report and process a runtime event.
|
1451
|
+
# @param [String] name
|
1452
|
+
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
1453
|
+
# runtime_id``
|
1454
|
+
# @param [Google::Apis::NotebooksV1::ReportRuntimeEventRequest] report_runtime_event_request_object
|
1455
|
+
# @param [String] fields
|
1456
|
+
# Selector specifying which fields to include in a partial response.
|
1457
|
+
# @param [String] quota_user
|
1458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1460
|
+
# @param [Google::Apis::RequestOptions] options
|
1461
|
+
# Request-specific options
|
1462
|
+
#
|
1463
|
+
# @yield [result, err] Result & error if block supplied
|
1464
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1465
|
+
# @yieldparam err [StandardError] error object if request failed
|
1466
|
+
#
|
1467
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1468
|
+
#
|
1469
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1470
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1471
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1472
|
+
def report_project_location_runtime_event(name, report_runtime_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1473
|
+
command = make_simple_command(:post, 'v1/{+name}:reportEvent', options)
|
1474
|
+
command.request_representation = Google::Apis::NotebooksV1::ReportRuntimeEventRequest::Representation
|
1475
|
+
command.request_object = report_runtime_event_request_object
|
1476
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1477
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1478
|
+
command.params['name'] = name unless name.nil?
|
1479
|
+
command.query['fields'] = fields unless fields.nil?
|
1480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1481
|
+
execute_or_queue_command(command, &block)
|
1482
|
+
end
|
1483
|
+
|
1450
1484
|
# Resets a Managed Notebook Runtime.
|
1451
1485
|
# @param [String] name
|
1452
1486
|
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
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.13.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-07-
|
11
|
+
date: 2021-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.13.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|