google-apis-notebooks_v1 0.9.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: f4a6c0493a17453f6990d5e2a1b56c3f438c9eac41d33cf07f56b90256f5d82c
4
- data.tar.gz: e6a3a68bad11516de994dc5f90359bb202d80dda3f35720db857ad2ffdc2cc56
3
+ metadata.gz: 85f44028b77a698830f8e86f92972f711b052c3ab291ca45b4aba5b6c8f8e331
4
+ data.tar.gz: 40ea545c95e939e75600aae414514211710ea8ae8f71a1a0e0f17128c59bb593
5
5
  SHA512:
6
- metadata.gz: 32b8f99f63a31ba76227a0fa16ee46aecc7d092f26b65ecff694d640f9a321c2e5451c1af80e95ce1576fb730680c3c52d914a9d9cbdea50940f811dc8354736
7
- data.tar.gz: ed252fe733948882ba77af196d82664e8a0572935f1d360a779059a76416bff86283a67d916cda5fb0d70ba170b2d1bbcd5db69de795947cafa17ff89ef938e7
6
+ metadata.gz: 3ea87d07ebf180bf45369a078054d596491664fe2bdee8418236f63f2ec7197f7910f65ab1e2b47b5a328dfc763f4335ffa791ebde5cd1cb4521cab637d8d425
7
+ data.tar.gz: 3a5c00a8bcce9f88b62af6f2a7fdf4ed30f5cb0a013626bb81a1ad86981f150dde9190406155ad648535d189437405d773d3c49d8903524d75c7d9fac797e93c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.13.0 (2021-07-15)
4
+
5
+ * Regenerated from discovery document revision 20210713
6
+
7
+ ### v0.12.0 (2021-07-01)
8
+
9
+ * Regenerated from discovery document revision 20210626
10
+ * Regenerated using generator version 0.4.0
11
+
12
+ ### v0.11.0 (2021-06-24)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.10.0 (2021-06-15)
17
+
18
+ * Regenerated from discovery document revision 20210610
19
+
3
20
  ### v0.9.0 (2021-06-09)
4
21
 
5
22
  * Regenerated from discovery document revision 20210603
data/OVERVIEW.md CHANGED
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
79
79
 
80
80
  **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
81
 
82
- The [product documentation](https://cloud.google.com/ai-platform/notebooks/docs/) may provide guidance regarding the preferred client library to use.
82
+ The [product documentation](https://cloud.google.com/notebooks/docs/) may provide guidance regarding the preferred client library to use.
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
@@ -21,9 +21,9 @@ module Google
21
21
  module Apis
22
22
  # Notebooks API
23
23
  #
24
- # AI Platform Notebooks API is used to manage notebook resources in Google Cloud.
24
+ # Notebooks API is used to manage notebook resources in Google Cloud.
25
25
  #
26
- # @see https://cloud.google.com/ai-platform/notebooks/docs/
26
+ # @see https://cloud.google.com/notebooks/docs/
27
27
  module NotebooksV1
28
28
  # Version of the Notebooks API this client connects to.
29
29
  # This is NOT the gem version.
@@ -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
@@ -393,6 +418,11 @@ module Google
393
418
  # @return [Google::Apis::NotebooksV1::ExecutionTemplate]
394
419
  attr_accessor :execution_template
395
420
 
421
+ # Output only. The URI of the external job used to execute the notebook.
422
+ # Corresponds to the JSON property `jobUri`
423
+ # @return [String]
424
+ attr_accessor :job_uri
425
+
396
426
  # Output only. The resource name of the execute. Format: `projects/`project_id`/
397
427
  # locations/`location`/execution/`execution_id`
398
428
  # Corresponds to the JSON property `name`
@@ -424,6 +454,7 @@ module Google
424
454
  @description = args[:description] if args.key?(:description)
425
455
  @display_name = args[:display_name] if args.key?(:display_name)
426
456
  @execution_template = args[:execution_template] if args.key?(:execution_template)
457
+ @job_uri = args[:job_uri] if args.key?(:job_uri)
427
458
  @name = args[:name] if args.key?(:name)
428
459
  @output_notebook_file = args[:output_notebook_file] if args.key?(:output_notebook_file)
429
460
  @state = args[:state] if args.key?(:state)
@@ -503,7 +534,8 @@ module Google
503
534
  # @return [String]
504
535
  attr_accessor :params_yaml_file
505
536
 
506
- # 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.
507
539
  # Corresponds to the JSON property `scaleTier`
508
540
  # @return [String]
509
541
  attr_accessor :scale_tier
@@ -791,6 +823,11 @@ module Google
791
823
  # @return [String]
792
824
  attr_accessor :proxy_uri
793
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
+
794
831
  # The service account on this instance, giving access to other Google Cloud
795
832
  # services. You can use any service account within the same project, but you
796
833
  # must have the service account user permission to use the instance. If not
@@ -879,6 +916,7 @@ module Google
879
916
  @no_remove_data_disk = args[:no_remove_data_disk] if args.key?(:no_remove_data_disk)
880
917
  @post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
881
918
  @proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
919
+ @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
882
920
  @service_account = args[:service_account] if args.key?(:service_account)
883
921
  @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
884
922
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
@@ -891,6 +929,33 @@ module Google
891
929
  end
892
930
  end
893
931
 
932
+ # Notebook instance configurations that can be updated.
933
+ class InstanceConfig
934
+ include Google::Apis::Core::Hashable
935
+
936
+ # Verifies core internal services are running. More info: go/notebooks-health
937
+ # Corresponds to the JSON property `enableHealthMonitoring`
938
+ # @return [Boolean]
939
+ attr_accessor :enable_health_monitoring
940
+ alias_method :enable_health_monitoring?, :enable_health_monitoring
941
+
942
+ # Cron expression in UTC timezone, used to schedule instance auto upgrade.
943
+ # Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
944
+ # Corresponds to the JSON property `notebookUpgradeSchedule`
945
+ # @return [String]
946
+ attr_accessor :notebook_upgrade_schedule
947
+
948
+ def initialize(**args)
949
+ update!(**args)
950
+ end
951
+
952
+ # Update properties of this object
953
+ def update!(**args)
954
+ @enable_health_monitoring = args[:enable_health_monitoring] if args.key?(:enable_health_monitoring)
955
+ @notebook_upgrade_schedule = args[:notebook_upgrade_schedule] if args.key?(:notebook_upgrade_schedule)
956
+ end
957
+ end
958
+
894
959
  # Response for checking if a notebook instance is upgradeable.
895
960
  class IsInstanceUpgradeableResponse
896
961
  include Google::Apis::Core::Hashable
@@ -1618,6 +1683,63 @@ module Google
1618
1683
  end
1619
1684
  end
1620
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
+
1621
1743
  # Request for reseting a notebook instance
1622
1744
  class ResetInstanceRequest
1623
1745
  include Google::Apis::Core::Hashable
@@ -1902,13 +2024,13 @@ module Google
1902
2024
  attr_accessor :enable_health_monitoring
1903
2025
  alias_method :enable_health_monitoring?, :enable_health_monitoring
1904
2026
 
1905
- # Runtime will automatically shutdown after idle_shutdown_time. Default: False
2027
+ # Runtime will automatically shutdown after idle_shutdown_time. Default: True
1906
2028
  # Corresponds to the JSON property `idleShutdown`
1907
2029
  # @return [Boolean]
1908
2030
  attr_accessor :idle_shutdown
1909
2031
  alias_method :idle_shutdown?, :idle_shutdown
1910
2032
 
1911
- # Time in minutes to wait before shuting down runtime. Default: 90 minutes
2033
+ # Time in minutes to wait before shuting down runtime. Default: 180 minutes
1912
2034
  # Corresponds to the JSON property `idleShutdownTimeout`
1913
2035
  # @return [Fixnum]
1914
2036
  attr_accessor :idle_shutdown_timeout
@@ -2387,6 +2509,25 @@ module Google
2387
2509
  end
2388
2510
  end
2389
2511
 
2512
+ # Request for updating instance configurations.
2513
+ class UpdateInstanceConfigRequest
2514
+ include Google::Apis::Core::Hashable
2515
+
2516
+ # Notebook instance configurations that can be updated.
2517
+ # Corresponds to the JSON property `config`
2518
+ # @return [Google::Apis::NotebooksV1::InstanceConfig]
2519
+ attr_accessor :config
2520
+
2521
+ def initialize(**args)
2522
+ update!(**args)
2523
+ end
2524
+
2525
+ # Update properties of this object
2526
+ def update!(**args)
2527
+ @config = args[:config] if args.key?(:config)
2528
+ end
2529
+ end
2530
+
2390
2531
  # Request for updating the Shielded Instance config for a notebook instance. You
2391
2532
  # can only use this method on a stopped instance
2392
2533
  class UpdateShieldedInstanceConfigRequest
@@ -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.9.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210603"
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
 
@@ -106,6 +112,12 @@ module Google
106
112
  include Google::Apis::Core::JsonObjectSupport
107
113
  end
108
114
 
115
+ class InstanceConfig
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
109
121
  class IsInstanceUpgradeableResponse
110
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
123
 
@@ -202,6 +214,18 @@ module Google
202
214
  include Google::Apis::Core::JsonObjectSupport
203
215
  end
204
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
+
205
229
  class ResetInstanceRequest
206
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
231
 
@@ -358,6 +382,12 @@ module Google
358
382
  include Google::Apis::Core::JsonObjectSupport
359
383
  end
360
384
 
385
+ class UpdateInstanceConfigRequest
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
361
391
  class UpdateShieldedInstanceConfigRequest
362
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
393
 
@@ -479,6 +509,14 @@ module Google
479
509
  end
480
510
  end
481
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
+
482
520
  class Execution
483
521
  # @private
484
522
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -487,6 +525,7 @@ module Google
487
525
  property :display_name, as: 'displayName'
488
526
  property :execution_template, as: 'executionTemplate', class: Google::Apis::NotebooksV1::ExecutionTemplate, decorator: Google::Apis::NotebooksV1::ExecutionTemplate::Representation
489
527
 
528
+ property :job_uri, as: 'jobUri'
490
529
  property :name, as: 'name'
491
530
  property :output_notebook_file, as: 'outputNotebookFile'
492
531
  property :state, as: 'state'
@@ -566,6 +605,8 @@ module Google
566
605
  property :no_remove_data_disk, as: 'noRemoveDataDisk'
567
606
  property :post_startup_script, as: 'postStartupScript'
568
607
  property :proxy_uri, as: 'proxyUri'
608
+ property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::NotebooksV1::ReservationAffinity, decorator: Google::Apis::NotebooksV1::ReservationAffinity::Representation
609
+
569
610
  property :service_account, as: 'serviceAccount'
570
611
  collection :service_account_scopes, as: 'serviceAccountScopes'
571
612
  property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::ShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::ShieldedInstanceConfig::Representation
@@ -581,6 +622,14 @@ module Google
581
622
  end
582
623
  end
583
624
 
625
+ class InstanceConfig
626
+ # @private
627
+ class Representation < Google::Apis::Core::JsonRepresentation
628
+ property :enable_health_monitoring, as: 'enableHealthMonitoring'
629
+ property :notebook_upgrade_schedule, as: 'notebookUpgradeSchedule'
630
+ end
631
+ end
632
+
584
633
  class IsInstanceUpgradeableResponse
585
634
  # @private
586
635
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -752,6 +801,24 @@ module Google
752
801
  end
753
802
  end
754
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
+
755
822
  class ResetInstanceRequest
756
823
  # @private
757
824
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -970,6 +1037,14 @@ module Google
970
1037
  end
971
1038
  end
972
1039
 
1040
+ class UpdateInstanceConfigRequest
1041
+ # @private
1042
+ class Representation < Google::Apis::Core::JsonRepresentation
1043
+ property :config, as: 'config', class: Google::Apis::NotebooksV1::InstanceConfig, decorator: Google::Apis::NotebooksV1::InstanceConfig::Representation
1044
+
1045
+ end
1046
+ end
1047
+
973
1048
  class UpdateShieldedInstanceConfigRequest
974
1049
  # @private
975
1050
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -22,7 +22,7 @@ module Google
22
22
  module NotebooksV1
23
23
  # Notebooks API
24
24
  #
25
- # AI Platform Notebooks API is used to manage notebook resources in Google Cloud.
25
+ # Notebooks API is used to manage notebook resources in Google Cloud.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/notebooks_v1'
@@ -30,7 +30,7 @@ module Google
30
30
  # Notebooks = Google::Apis::NotebooksV1 # Alias the module
31
31
  # service = Notebooks::AIPlatformNotebooksService.new
32
32
  #
33
- # @see https://cloud.google.com/ai-platform/notebooks/docs/
33
+ # @see https://cloud.google.com/notebooks/docs/
34
34
  class AIPlatformNotebooksService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -1024,6 +1024,40 @@ module Google
1024
1024
  execute_or_queue_command(command, &block)
1025
1025
  end
1026
1026
 
1027
+ # Update Notebook Instance configurations.
1028
+ # @param [String] name
1029
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
1030
+ # instance_id``
1031
+ # @param [Google::Apis::NotebooksV1::UpdateInstanceConfigRequest] update_instance_config_request_object
1032
+ # @param [String] fields
1033
+ # Selector specifying which fields to include in a partial response.
1034
+ # @param [String] quota_user
1035
+ # Available to use for quota purposes for server-side applications. Can be any
1036
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1037
+ # @param [Google::Apis::RequestOptions] options
1038
+ # Request-specific options
1039
+ #
1040
+ # @yield [result, err] Result & error if block supplied
1041
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
1042
+ # @yieldparam err [StandardError] error object if request failed
1043
+ #
1044
+ # @return [Google::Apis::NotebooksV1::Operation]
1045
+ #
1046
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1047
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1048
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1049
+ def update_project_location_instance_config(name, update_instance_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1050
+ command = make_simple_command(:patch, 'v1/{+name}:updateConfig', options)
1051
+ command.request_representation = Google::Apis::NotebooksV1::UpdateInstanceConfigRequest::Representation
1052
+ command.request_object = update_instance_config_request_object
1053
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
1054
+ command.response_class = Google::Apis::NotebooksV1::Operation
1055
+ command.params['name'] = name unless name.nil?
1056
+ command.query['fields'] = fields unless fields.nil?
1057
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1058
+ execute_or_queue_command(command, &block)
1059
+ end
1060
+
1027
1061
  # Updates the Shielded instance configuration of a single Instance.
1028
1062
  # @param [String] name
1029
1063
  # Required. Format: `projects/`project_id`/locations/`location`/instances/`
@@ -1413,6 +1447,40 @@ module Google
1413
1447
  execute_or_queue_command(command, &block)
1414
1448
  end
1415
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
+
1416
1484
  # Resets a Managed Notebook Runtime.
1417
1485
  # @param [String] name
1418
1486
  # Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-notebooks_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.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-06-14 00:00:00.000000000 Z
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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Notebooks API V1. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.13.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1
57
63
  post_install_message:
58
64
  rdoc_options: []