google-apis-notebooks_v2 0.5.0 → 0.7.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: 2ca1c548b0e08cf5cc865d93cf0c5e5c9a17502ce7b3a8b65dc6df5729e8bc5c
4
- data.tar.gz: c49665d5bb7283a739ddae4ab71e1b1efa45664a11e590e2628093816f3d65bb
3
+ metadata.gz: d4d2407c233f45658a99a6963c7c052250ee385ae50b7bce61d9b2350289ae92
4
+ data.tar.gz: dc726a3570f57f7c85fce4352ba56a675b6d6e93b1bd4b0d9137990d25403cc6
5
5
  SHA512:
6
- metadata.gz: 663ad0c718bbde41bc51307fc228f1e333dea417546be5addbc10588a629126f8e7b0a54c107a4fefbaffd06a1ca784bd591acfcd30b48dd8085691360b528b6
7
- data.tar.gz: '0939bc8a85c34884ae1e5c3ecbd958f984c50fa87ec27cf0a305515b0cad4dd8b3dbdab893dff249b6e80ff6ab46b33a84c3bc7f66ebfa9b4ce583b1b290b979'
6
+ metadata.gz: a3778f7e68ef6e4bfc81dc0c0d9735303f8b2780e0032727c79829998ae96246790038547478dc3baad60b914cf7d7d3bc0a13dda08f3cdfc2180728f6415ead
7
+ data.tar.gz: 41911660112b4486f6183886ca93898f77bee2626bed762952bf99f6adbd610f9ef9dbce0d44cf8496aff0dbb5841df1622afaf438bae8095f28e86f40c3e851
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-notebooks_v2
2
2
 
3
+ ### v0.7.0 (2023-10-29)
4
+
5
+ * Regenerated from discovery document revision 20231019
6
+
7
+ ### v0.6.0 (2023-09-17)
8
+
9
+ * Regenerated from discovery document revision 20230906
10
+
3
11
  ### v0.5.0 (2023-08-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20230810
@@ -223,6 +223,37 @@ module Google
223
223
  end
224
224
  end
225
225
 
226
+ # Response for getting WbI configurations in a location
227
+ class Config
228
+ include Google::Apis::Core::Hashable
229
+
230
+ # Output only. The list of available images to create a WbI.
231
+ # Corresponds to the JSON property `availableImages`
232
+ # @return [Array<Google::Apis::NotebooksV2::ImageRelease>]
233
+ attr_accessor :available_images
234
+
235
+ # DefaultValues represents the default configuration values.
236
+ # Corresponds to the JSON property `defaultValues`
237
+ # @return [Google::Apis::NotebooksV2::DefaultValues]
238
+ attr_accessor :default_values
239
+
240
+ # SupportedValues represents the values supported by the configuration.
241
+ # Corresponds to the JSON property `supportedValues`
242
+ # @return [Google::Apis::NotebooksV2::SupportedValues]
243
+ attr_accessor :supported_values
244
+
245
+ def initialize(**args)
246
+ update!(**args)
247
+ end
248
+
249
+ # Update properties of this object
250
+ def update!(**args)
251
+ @available_images = args[:available_images] if args.key?(:available_images)
252
+ @default_values = args[:default_values] if args.key?(:default_values)
253
+ @supported_values = args[:supported_values] if args.key?(:supported_values)
254
+ end
255
+ end
256
+
226
257
  # Definition of a container image for starting a notebook instance with the
227
258
  # environment installed in a container.
228
259
  class ContainerImage
@@ -293,6 +324,26 @@ module Google
293
324
  end
294
325
  end
295
326
 
327
+ # DefaultValues represents the default configuration values.
328
+ class DefaultValues
329
+ include Google::Apis::Core::Hashable
330
+
331
+ # Output only. The default machine type used by the backend if not provided by
332
+ # the user.
333
+ # Corresponds to the JSON property `machineType`
334
+ # @return [String]
335
+ attr_accessor :machine_type
336
+
337
+ def initialize(**args)
338
+ update!(**args)
339
+ end
340
+
341
+ # Update properties of this object
342
+ def update!(**args)
343
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
344
+ end
345
+ end
346
+
296
347
  # Request for creating a notebook instance diagnostic file.
297
348
  class DiagnoseInstanceRequest
298
349
  include Google::Apis::Core::Hashable
@@ -616,6 +667,31 @@ module Google
616
667
  end
617
668
  end
618
669
 
670
+ # ConfigImage represents an image release available to create a WbI
671
+ class ImageRelease
672
+ include Google::Apis::Core::Hashable
673
+
674
+ # Output only. The name of the image of the form workbench-instances-vYYYYmmdd--
675
+ # Corresponds to the JSON property `imageName`
676
+ # @return [String]
677
+ attr_accessor :image_name
678
+
679
+ # Output only. The release of the image of the form m123
680
+ # Corresponds to the JSON property `releaseName`
681
+ # @return [String]
682
+ attr_accessor :release_name
683
+
684
+ def initialize(**args)
685
+ update!(**args)
686
+ end
687
+
688
+ # Update properties of this object
689
+ def update!(**args)
690
+ @image_name = args[:image_name] if args.key?(:image_name)
691
+ @release_name = args[:release_name] if args.key?(:release_name)
692
+ end
693
+ end
694
+
619
695
  # The definition of a notebook instance.
620
696
  class Instance
621
697
  include Google::Apis::Core::Hashable
@@ -1348,6 +1424,31 @@ module Google
1348
1424
  end
1349
1425
  end
1350
1426
 
1427
+ # SupportedValues represents the values supported by the configuration.
1428
+ class SupportedValues
1429
+ include Google::Apis::Core::Hashable
1430
+
1431
+ # Output only. The accelerator types supported by WbI.
1432
+ # Corresponds to the JSON property `acceleratorTypes`
1433
+ # @return [Array<String>]
1434
+ attr_accessor :accelerator_types
1435
+
1436
+ # Output only. The machine types supported by WbI.
1437
+ # Corresponds to the JSON property `machineTypes`
1438
+ # @return [Array<String>]
1439
+ attr_accessor :machine_types
1440
+
1441
+ def initialize(**args)
1442
+ update!(**args)
1443
+ end
1444
+
1445
+ # Update properties of this object
1446
+ def update!(**args)
1447
+ @accelerator_types = args[:accelerator_types] if args.key?(:accelerator_types)
1448
+ @machine_types = args[:machine_types] if args.key?(:machine_types)
1449
+ end
1450
+ end
1451
+
1351
1452
  # Request message for `TestIamPermissions` method.
1352
1453
  class TestIamPermissionsRequest
1353
1454
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NotebooksV2
18
18
  # Version of the google-apis-notebooks_v2 gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230810"
25
+ REVISION = "20231019"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class Config
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class ContainerImage
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -64,6 +70,12 @@ module Google
64
70
  include Google::Apis::Core::JsonObjectSupport
65
71
  end
66
72
 
73
+ class DefaultValues
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
67
79
  class DiagnoseInstanceRequest
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
@@ -106,6 +118,12 @@ module Google
106
118
  include Google::Apis::Core::JsonObjectSupport
107
119
  end
108
120
 
121
+ class ImageRelease
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
109
127
  class Instance
110
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
129
 
@@ -214,6 +232,12 @@ module Google
214
232
  include Google::Apis::Core::JsonObjectSupport
215
233
  end
216
234
 
235
+ class SupportedValues
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
217
241
  class TestIamPermissionsRequest
218
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
243
 
@@ -294,6 +318,18 @@ module Google
294
318
  end
295
319
  end
296
320
 
321
+ class Config
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ collection :available_images, as: 'availableImages', class: Google::Apis::NotebooksV2::ImageRelease, decorator: Google::Apis::NotebooksV2::ImageRelease::Representation
325
+
326
+ property :default_values, as: 'defaultValues', class: Google::Apis::NotebooksV2::DefaultValues, decorator: Google::Apis::NotebooksV2::DefaultValues::Representation
327
+
328
+ property :supported_values, as: 'supportedValues', class: Google::Apis::NotebooksV2::SupportedValues, decorator: Google::Apis::NotebooksV2::SupportedValues::Representation
329
+
330
+ end
331
+ end
332
+
297
333
  class ContainerImage
298
334
  # @private
299
335
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -312,6 +348,13 @@ module Google
312
348
  end
313
349
  end
314
350
 
351
+ class DefaultValues
352
+ # @private
353
+ class Representation < Google::Apis::Core::JsonRepresentation
354
+ property :machine_type, as: 'machineType'
355
+ end
356
+ end
357
+
315
358
  class DiagnoseInstanceRequest
316
359
  # @private
317
360
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -394,6 +437,14 @@ module Google
394
437
  end
395
438
  end
396
439
 
440
+ class ImageRelease
441
+ # @private
442
+ class Representation < Google::Apis::Core::JsonRepresentation
443
+ property :image_name, as: 'imageName'
444
+ property :release_name, as: 'releaseName'
445
+ end
446
+ end
447
+
397
448
  class Instance
398
449
  # @private
399
450
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -569,6 +620,14 @@ module Google
569
620
  end
570
621
  end
571
622
 
623
+ class SupportedValues
624
+ # @private
625
+ class Representation < Google::Apis::Core::JsonRepresentation
626
+ collection :accelerator_types, as: 'acceleratorTypes'
627
+ collection :machine_types, as: 'machineTypes'
628
+ end
629
+ end
630
+
572
631
  class TestIamPermissionsRequest
573
632
  # @private
574
633
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -291,6 +291,39 @@ module Google
291
291
  execute_or_queue_command(command, &block)
292
292
  end
293
293
 
294
+ # Gets general backend configurations that might also affect the frontend.
295
+ # Location is required by CCFE. Although we could bypass it to send location-
296
+ # less request directly to the backend job, we would need CPE (go/cloud-cpe).
297
+ # Having the location might also be useful depending on the query.
298
+ # @param [String] name
299
+ # Required. Format: `projects/`project_id`/locations/`location``
300
+ # @param [String] fields
301
+ # Selector specifying which fields to include in a partial response.
302
+ # @param [String] quota_user
303
+ # Available to use for quota purposes for server-side applications. Can be any
304
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
305
+ # @param [Google::Apis::RequestOptions] options
306
+ # Request-specific options
307
+ #
308
+ # @yield [result, err] Result & error if block supplied
309
+ # @yieldparam result [Google::Apis::NotebooksV2::Config] parsed result object
310
+ # @yieldparam err [StandardError] error object if request failed
311
+ #
312
+ # @return [Google::Apis::NotebooksV2::Config]
313
+ #
314
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
317
+ def get_project_location_instance_config(name, fields: nil, quota_user: nil, options: nil, &block)
318
+ command = make_simple_command(:get, 'v2/{+name}/instances:getConfig', options)
319
+ command.response_representation = Google::Apis::NotebooksV2::Config::Representation
320
+ command.response_class = Google::Apis::NotebooksV2::Config
321
+ command.params['name'] = name unless name.nil?
322
+ command.query['fields'] = fields unless fields.nil?
323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
324
+ execute_or_queue_command(command, &block)
325
+ end
326
+
294
327
  # Gets the access control policy for a resource. Returns an empty policy if the
295
328
  # resource exists and does not have a policy set.
296
329
  # @param [String] resource
@@ -339,6 +372,11 @@ module Google
339
372
  # Lists instances in a given project and location.
340
373
  # @param [String] parent
341
374
  # Required. Format: `parent=projects/`project_id`/locations/`location``
375
+ # @param [String] filter
376
+ # Optional. List filter.
377
+ # @param [String] order_by
378
+ # Optional. Sort results. Supported values are "name", "name desc" or "" (
379
+ # unsorted).
342
380
  # @param [Fixnum] page_size
343
381
  # Optional. Maximum return size of the list call.
344
382
  # @param [String] page_token
@@ -361,11 +399,13 @@ module Google
361
399
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
400
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
401
  # @raise [Google::Apis::AuthorizationError] Authorization is required
364
- def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
402
+ def list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
365
403
  command = make_simple_command(:get, 'v2/{+parent}/instances', options)
366
404
  command.response_representation = Google::Apis::NotebooksV2::ListInstancesResponse::Representation
367
405
  command.response_class = Google::Apis::NotebooksV2::ListInstancesResponse
368
406
  command.params['parent'] = parent unless parent.nil?
407
+ command.query['filter'] = filter unless filter.nil?
408
+ command.query['orderBy'] = order_by unless order_by.nil?
369
409
  command.query['pageSize'] = page_size unless page_size.nil?
370
410
  command.query['pageToken'] = page_token unless page_token.nil?
371
411
  command.query['fields'] = fields unless fields.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-notebooks_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.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: 2023-08-27 00:00:00.000000000 Z
11
+ date: 2023-10-29 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.5.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.7.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v2
63
63
  post_install_message:
64
64
  rdoc_options: []