google-apis-notebooks_v1 0.34.0 → 0.35.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: 0e912cfc06bc37100151aa67b2a1da2dc842419bc47a55a222486bac02996fdb
4
- data.tar.gz: b37204d62a232d7a5552feb84d403031b9f0ce95c2eb3df2fa9e3d897efd91a0
3
+ metadata.gz: f9d6b6977cde2e7b0d6890b184e705f908a6be013a32de28063b60ad5d88990b
4
+ data.tar.gz: d37dae63be8b00e527dcb6cc98e52e6d09157c5118ad3a7a02ff14f64f1a09f5
5
5
  SHA512:
6
- metadata.gz: d5a2adb4d0e6caade8167cf63363d224f516a2634e10895c6f8e82709acd29d97880663188c86139ecd93ce65b87213d59eba188788bd656c9f65db58623925e
7
- data.tar.gz: 76379919efc4b4e122ba587cd4d4502c34ff63493d71fe2294da11770b4a9ad19ddd377e96175de2834ae6f4a6baa8435588277d143791828e35c2e9e755a36c
6
+ metadata.gz: 6593e5c83376675636e9d838015ef72c7e32b722506a880dfffa4dcecc4d9fb389c04a76adca0e125d20207b2d7c669d76f5d00a1880ca5b92da5201b6e378cd
7
+ data.tar.gz: e03f945c2a7568c4a98870727260567a01a4c0ce1083b4fb6c4a192fd4841b091884addb4e649ca533cfd42c3b42224ddddc4561a738668f3af508b45131444a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.35.0 (2022-10-11)
4
+
5
+ * Regenerated from discovery document revision 20220927
6
+
3
7
  ### v0.34.0 (2022-09-20)
4
8
 
5
9
  * Regenerated using generator version 0.10.0
@@ -200,6 +200,99 @@ module Google
200
200
  end
201
201
  end
202
202
 
203
+ # Request for creating a notebook instance diagnostic file.
204
+ class DiagnoseInstanceRequest
205
+ include Google::Apis::Core::Hashable
206
+
207
+ # Defines flags that are used to run the diagnostic tool
208
+ # Corresponds to the JSON property `diagnosticConfig`
209
+ # @return [Google::Apis::NotebooksV1::DiagnosticConfig]
210
+ attr_accessor :diagnostic_config
211
+
212
+ def initialize(**args)
213
+ update!(**args)
214
+ end
215
+
216
+ # Update properties of this object
217
+ def update!(**args)
218
+ @diagnostic_config = args[:diagnostic_config] if args.key?(:diagnostic_config)
219
+ end
220
+ end
221
+
222
+ # Request for creating a notebook instance diagnostic file.
223
+ class DiagnoseRuntimeRequest
224
+ include Google::Apis::Core::Hashable
225
+
226
+ # Defines flags that are used to run the diagnostic tool
227
+ # Corresponds to the JSON property `diagnosticConfig`
228
+ # @return [Google::Apis::NotebooksV1::DiagnosticConfig]
229
+ attr_accessor :diagnostic_config
230
+
231
+ def initialize(**args)
232
+ update!(**args)
233
+ end
234
+
235
+ # Update properties of this object
236
+ def update!(**args)
237
+ @diagnostic_config = args[:diagnostic_config] if args.key?(:diagnostic_config)
238
+ end
239
+ end
240
+
241
+ # Defines flags that are used to run the diagnostic tool
242
+ class DiagnosticConfig
243
+ include Google::Apis::Core::Hashable
244
+
245
+ # Optional. Enables flag to copy all `/home/jupyter` folder contents
246
+ # Corresponds to the JSON property `copyHomeFilesFlagEnabled`
247
+ # @return [Boolean]
248
+ attr_accessor :copy_home_files_flag_enabled
249
+ alias_method :copy_home_files_flag_enabled?, :copy_home_files_flag_enabled
250
+
251
+ # Required. User Cloud Storage bucket location (REQUIRED) ## Must be formatted
252
+ # with path prefix (gs://$GCS_BUCKET) Permissions: User Managed Notebooks: -
253
+ # storage.buckets.writer: Must be given to the project's service account
254
+ # attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be
255
+ # given to the project's service account or ## user credentials attached to VM
256
+ # depending on authentication mode. Cloud Storage bucket Log file will be
257
+ # written to gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz
258
+ # Corresponds to the JSON property `gcsBucket`
259
+ # @return [String]
260
+ attr_accessor :gcs_bucket
261
+
262
+ # Optional. Enables flag to capture packets from the instance for 30 seconds
263
+ # Corresponds to the JSON property `packetCaptureFlagEnabled`
264
+ # @return [Boolean]
265
+ attr_accessor :packet_capture_flag_enabled
266
+ alias_method :packet_capture_flag_enabled?, :packet_capture_flag_enabled
267
+
268
+ # Optional. Defines the relative storage path in the Cloud Storage bucket where
269
+ # the diagnostic logs will be written: Default path will be the root directory
270
+ # of the Cloud Storage bucket (gs://$GCS_BUCKET/$DATE_$TIME.tar.gz) Example of
271
+ # full path where Log file will be written: gs://$GCS_BUCKET/$RELATIVE_PATH/
272
+ # Corresponds to the JSON property `relativePath`
273
+ # @return [String]
274
+ attr_accessor :relative_path
275
+
276
+ # Optional. Enables flag to repair service for instance
277
+ # Corresponds to the JSON property `repairFlagEnabled`
278
+ # @return [Boolean]
279
+ attr_accessor :repair_flag_enabled
280
+ alias_method :repair_flag_enabled?, :repair_flag_enabled
281
+
282
+ def initialize(**args)
283
+ update!(**args)
284
+ end
285
+
286
+ # Update properties of this object
287
+ def update!(**args)
288
+ @copy_home_files_flag_enabled = args[:copy_home_files_flag_enabled] if args.key?(:copy_home_files_flag_enabled)
289
+ @gcs_bucket = args[:gcs_bucket] if args.key?(:gcs_bucket)
290
+ @packet_capture_flag_enabled = args[:packet_capture_flag_enabled] if args.key?(:packet_capture_flag_enabled)
291
+ @relative_path = args[:relative_path] if args.key?(:relative_path)
292
+ @repair_flag_enabled = args[:repair_flag_enabled] if args.key?(:repair_flag_enabled)
293
+ end
294
+ end
295
+
203
296
  # An instance-attached disk resource.
204
297
  class Disk
205
298
  include Google::Apis::Core::Hashable
@@ -2908,6 +3001,26 @@ module Google
2908
3001
  end
2909
3002
  end
2910
3003
 
3004
+ # Request for upgrading a Managed Notebook Runtime to the latest version. option
3005
+ # (google.api.message_visibility).restriction = "TRUSTED_TESTER,SPECIAL_TESTER";
3006
+ class UpgradeRuntimeRequest
3007
+ include Google::Apis::Core::Hashable
3008
+
3009
+ # Idempotent request UUID.
3010
+ # Corresponds to the JSON property `requestId`
3011
+ # @return [String]
3012
+ attr_accessor :request_id
3013
+
3014
+ def initialize(**args)
3015
+ update!(**args)
3016
+ end
3017
+
3018
+ # Update properties of this object
3019
+ def update!(**args)
3020
+ @request_id = args[:request_id] if args.key?(:request_id)
3021
+ end
3022
+ end
3023
+
2911
3024
  # Parameters used in Vertex AI JobType executions.
2912
3025
  class VertexAiParameters
2913
3026
  include Google::Apis::Core::Hashable
@@ -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.34.0"
19
+ GEM_VERSION = "0.35.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220830"
25
+ REVISION = "20220927"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,24 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class DiagnoseInstanceRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DiagnoseRuntimeRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class DiagnosticConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
61
79
  class Disk
62
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
81
 
@@ -448,6 +466,12 @@ module Google
448
466
  include Google::Apis::Core::JsonObjectSupport
449
467
  end
450
468
 
469
+ class UpgradeRuntimeRequest
470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
471
+
472
+ include Google::Apis::Core::JsonObjectSupport
473
+ end
474
+
451
475
  class VertexAiParameters
452
476
  class Representation < Google::Apis::Core::JsonRepresentation; end
453
477
 
@@ -517,6 +541,33 @@ module Google
517
541
  end
518
542
  end
519
543
 
544
+ class DiagnoseInstanceRequest
545
+ # @private
546
+ class Representation < Google::Apis::Core::JsonRepresentation
547
+ property :diagnostic_config, as: 'diagnosticConfig', class: Google::Apis::NotebooksV1::DiagnosticConfig, decorator: Google::Apis::NotebooksV1::DiagnosticConfig::Representation
548
+
549
+ end
550
+ end
551
+
552
+ class DiagnoseRuntimeRequest
553
+ # @private
554
+ class Representation < Google::Apis::Core::JsonRepresentation
555
+ property :diagnostic_config, as: 'diagnosticConfig', class: Google::Apis::NotebooksV1::DiagnosticConfig, decorator: Google::Apis::NotebooksV1::DiagnosticConfig::Representation
556
+
557
+ end
558
+ end
559
+
560
+ class DiagnosticConfig
561
+ # @private
562
+ class Representation < Google::Apis::Core::JsonRepresentation
563
+ property :copy_home_files_flag_enabled, as: 'copyHomeFilesFlagEnabled'
564
+ property :gcs_bucket, as: 'gcsBucket'
565
+ property :packet_capture_flag_enabled, as: 'packetCaptureFlagEnabled'
566
+ property :relative_path, as: 'relativePath'
567
+ property :repair_flag_enabled, as: 'repairFlagEnabled'
568
+ end
569
+ end
570
+
520
571
  class Disk
521
572
  # @private
522
573
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1187,6 +1238,13 @@ module Google
1187
1238
  end
1188
1239
  end
1189
1240
 
1241
+ class UpgradeRuntimeRequest
1242
+ # @private
1243
+ class Representation < Google::Apis::Core::JsonRepresentation
1244
+ property :request_id, as: 'requestId'
1245
+ end
1246
+ end
1247
+
1190
1248
  class VertexAiParameters
1191
1249
  # @private
1192
1250
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -469,6 +469,40 @@ module Google
469
469
  execute_or_queue_command(command, &block)
470
470
  end
471
471
 
472
+ # Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
473
+ # @param [String] name
474
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
475
+ # instance_id``
476
+ # @param [Google::Apis::NotebooksV1::DiagnoseInstanceRequest] diagnose_instance_request_object
477
+ # @param [String] fields
478
+ # Selector specifying which fields to include in a partial response.
479
+ # @param [String] quota_user
480
+ # Available to use for quota purposes for server-side applications. Can be any
481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
482
+ # @param [Google::Apis::RequestOptions] options
483
+ # Request-specific options
484
+ #
485
+ # @yield [result, err] Result & error if block supplied
486
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
487
+ # @yieldparam err [StandardError] error object if request failed
488
+ #
489
+ # @return [Google::Apis::NotebooksV1::Operation]
490
+ #
491
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
492
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
493
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
494
+ def diagnose_instance(name, diagnose_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
495
+ command = make_simple_command(:post, 'v1/{+name}:diagnose', options)
496
+ command.request_representation = Google::Apis::NotebooksV1::DiagnoseInstanceRequest::Representation
497
+ command.request_object = diagnose_instance_request_object
498
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
499
+ command.response_class = Google::Apis::NotebooksV1::Operation
500
+ command.params['name'] = name unless name.nil?
501
+ command.query['fields'] = fields unless fields.nil?
502
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
503
+ execute_or_queue_command(command, &block)
504
+ end
505
+
472
506
  # Gets details of a single Instance.
473
507
  # @param [String] name
474
508
  # Required. Format: `projects/`project_id`/locations/`location`/instances/`
@@ -1428,6 +1462,40 @@ module Google
1428
1462
  execute_or_queue_command(command, &block)
1429
1463
  end
1430
1464
 
1465
+ # Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
1466
+ # @param [String] name
1467
+ # Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
1468
+ # runtimes_id``
1469
+ # @param [Google::Apis::NotebooksV1::DiagnoseRuntimeRequest] diagnose_runtime_request_object
1470
+ # @param [String] fields
1471
+ # Selector specifying which fields to include in a partial response.
1472
+ # @param [String] quota_user
1473
+ # Available to use for quota purposes for server-side applications. Can be any
1474
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1475
+ # @param [Google::Apis::RequestOptions] options
1476
+ # Request-specific options
1477
+ #
1478
+ # @yield [result, err] Result & error if block supplied
1479
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
1480
+ # @yieldparam err [StandardError] error object if request failed
1481
+ #
1482
+ # @return [Google::Apis::NotebooksV1::Operation]
1483
+ #
1484
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1485
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1486
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1487
+ def diagnose_runtime(name, diagnose_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1488
+ command = make_simple_command(:post, 'v1/{+name}:diagnose', options)
1489
+ command.request_representation = Google::Apis::NotebooksV1::DiagnoseRuntimeRequest::Representation
1490
+ command.request_object = diagnose_runtime_request_object
1491
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
1492
+ command.response_class = Google::Apis::NotebooksV1::Operation
1493
+ command.params['name'] = name unless name.nil?
1494
+ command.query['fields'] = fields unless fields.nil?
1495
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1496
+ execute_or_queue_command(command, &block)
1497
+ end
1498
+
1431
1499
  # Gets details of a single Runtime. The location must be a regional endpoint
1432
1500
  # rather than zonal.
1433
1501
  # @param [String] name
@@ -1877,6 +1945,40 @@ module Google
1877
1945
  execute_or_queue_command(command, &block)
1878
1946
  end
1879
1947
 
1948
+ # Upgrades a Managed Notebook Runtime to the latest version.
1949
+ # @param [String] name
1950
+ # Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
1951
+ # runtime_id``
1952
+ # @param [Google::Apis::NotebooksV1::UpgradeRuntimeRequest] upgrade_runtime_request_object
1953
+ # @param [String] fields
1954
+ # Selector specifying which fields to include in a partial response.
1955
+ # @param [String] quota_user
1956
+ # Available to use for quota purposes for server-side applications. Can be any
1957
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1958
+ # @param [Google::Apis::RequestOptions] options
1959
+ # Request-specific options
1960
+ #
1961
+ # @yield [result, err] Result & error if block supplied
1962
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
1963
+ # @yieldparam err [StandardError] error object if request failed
1964
+ #
1965
+ # @return [Google::Apis::NotebooksV1::Operation]
1966
+ #
1967
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1968
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1969
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1970
+ def upgrade_runtime(name, upgrade_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1971
+ command = make_simple_command(:post, 'v1/{+name}:upgrade', options)
1972
+ command.request_representation = Google::Apis::NotebooksV1::UpgradeRuntimeRequest::Representation
1973
+ command.request_object = upgrade_runtime_request_object
1974
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
1975
+ command.response_class = Google::Apis::NotebooksV1::Operation
1976
+ command.params['name'] = name unless name.nil?
1977
+ command.query['fields'] = fields unless fields.nil?
1978
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1979
+ execute_or_queue_command(command, &block)
1980
+ end
1981
+
1880
1982
  # Creates a new Scheduled Notebook in a given project and location.
1881
1983
  # @param [String] parent
1882
1984
  # Required. Format: `parent=projects/`project_id`/locations/`location``
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-notebooks_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.35.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: 2022-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-17 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/main/generated/google-apis-notebooks_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.35.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v1
63
63
  post_install_message:
64
64
  rdoc_options: []