google-apis-notebooks_v1 0.9.0 → 0.10.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: d96a16be4cd2fa58a43ccb0b8d8ebc74b6e2243cc73cdbd113e9c1e8a606c0ef
4
+ data.tar.gz: 4181fc9077806c0f1195a3870ef044011cb806a7b05c622b8b2ebfb8e0475d13
5
5
  SHA512:
6
- metadata.gz: 32b8f99f63a31ba76227a0fa16ee46aecc7d092f26b65ecff694d640f9a321c2e5451c1af80e95ce1576fb730680c3c52d914a9d9cbdea50940f811dc8354736
7
- data.tar.gz: ed252fe733948882ba77af196d82664e8a0572935f1d360a779059a76416bff86283a67d916cda5fb0d70ba170b2d1bbcd5db69de795947cafa17ff89ef938e7
6
+ metadata.gz: 0abb51c3b743d5e5d2ae642ebe8c92b8c8830e40845dffa27ec766d2fb64d9f90cbfcb5cc3d17d4319b155e158a8c4dcf83ddabb8e2755da5a9e43488b63c8d1
7
+ data.tar.gz: a292966ce400054f1fa09b6e7729db0f95a0ec9937efac912bd09476d152e88323adc53d2057f42673abcfa3b300a9a38c8cdbcf5a6f3bc35068eab571ba5ce7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.10.0 (2021-06-15)
4
+
5
+ * Regenerated from discovery document revision 20210610
6
+
3
7
  ### v0.9.0 (2021-06-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20210603
@@ -891,6 +891,33 @@ module Google
891
891
  end
892
892
  end
893
893
 
894
+ # Notebook instance configurations that can be updated.
895
+ class InstanceConfig
896
+ include Google::Apis::Core::Hashable
897
+
898
+ # Verifies core internal services are running. More info: go/notebooks-health
899
+ # Corresponds to the JSON property `enableHealthMonitoring`
900
+ # @return [Boolean]
901
+ attr_accessor :enable_health_monitoring
902
+ alias_method :enable_health_monitoring?, :enable_health_monitoring
903
+
904
+ # Cron expression in UTC timezone, used to schedule instance auto upgrade.
905
+ # Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
906
+ # Corresponds to the JSON property `notebookUpgradeSchedule`
907
+ # @return [String]
908
+ attr_accessor :notebook_upgrade_schedule
909
+
910
+ def initialize(**args)
911
+ update!(**args)
912
+ end
913
+
914
+ # Update properties of this object
915
+ def update!(**args)
916
+ @enable_health_monitoring = args[:enable_health_monitoring] if args.key?(:enable_health_monitoring)
917
+ @notebook_upgrade_schedule = args[:notebook_upgrade_schedule] if args.key?(:notebook_upgrade_schedule)
918
+ end
919
+ end
920
+
894
921
  # Response for checking if a notebook instance is upgradeable.
895
922
  class IsInstanceUpgradeableResponse
896
923
  include Google::Apis::Core::Hashable
@@ -2387,6 +2414,25 @@ module Google
2387
2414
  end
2388
2415
  end
2389
2416
 
2417
+ # Request for updating instance configurations.
2418
+ class UpdateInstanceConfigRequest
2419
+ include Google::Apis::Core::Hashable
2420
+
2421
+ # Notebook instance configurations that can be updated.
2422
+ # Corresponds to the JSON property `config`
2423
+ # @return [Google::Apis::NotebooksV1::InstanceConfig]
2424
+ attr_accessor :config
2425
+
2426
+ def initialize(**args)
2427
+ update!(**args)
2428
+ end
2429
+
2430
+ # Update properties of this object
2431
+ def update!(**args)
2432
+ @config = args[:config] if args.key?(:config)
2433
+ end
2434
+ end
2435
+
2390
2436
  # Request for updating the Shielded Instance config for a notebook instance. You
2391
2437
  # can only use this method on a stopped instance
2392
2438
  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.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210603"
25
+ REVISION = "20210610"
26
26
  end
27
27
  end
28
28
  end
@@ -106,6 +106,12 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class InstanceConfig
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
109
115
  class IsInstanceUpgradeableResponse
110
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
117
 
@@ -358,6 +364,12 @@ module Google
358
364
  include Google::Apis::Core::JsonObjectSupport
359
365
  end
360
366
 
367
+ class UpdateInstanceConfigRequest
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
361
373
  class UpdateShieldedInstanceConfigRequest
362
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
375
 
@@ -581,6 +593,14 @@ module Google
581
593
  end
582
594
  end
583
595
 
596
+ class InstanceConfig
597
+ # @private
598
+ class Representation < Google::Apis::Core::JsonRepresentation
599
+ property :enable_health_monitoring, as: 'enableHealthMonitoring'
600
+ property :notebook_upgrade_schedule, as: 'notebookUpgradeSchedule'
601
+ end
602
+ end
603
+
584
604
  class IsInstanceUpgradeableResponse
585
605
  # @private
586
606
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -970,6 +990,14 @@ module Google
970
990
  end
971
991
  end
972
992
 
993
+ class UpdateInstanceConfigRequest
994
+ # @private
995
+ class Representation < Google::Apis::Core::JsonRepresentation
996
+ property :config, as: 'config', class: Google::Apis::NotebooksV1::InstanceConfig, decorator: Google::Apis::NotebooksV1::InstanceConfig::Representation
997
+
998
+ end
999
+ end
1000
+
973
1001
  class UpdateShieldedInstanceConfigRequest
974
1002
  # @private
975
1003
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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/`
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.9.0
4
+ version: 0.10.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-06-21 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.9.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.10.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: []