google-apis-notebooks_v1 0.47.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55a27fc30afb2661609ec99ebfc263edc0ec867c21a5b3d148798a655965b6e2
4
- data.tar.gz: 15630a0a72d1cee6f4c67d519d48245d51b69498f99e4f04285d70f6b5ba5291
3
+ metadata.gz: e3b38d2a7cb18aef831ea2942be626be6f778425cd48a5e3bc9b33eba8a4df41
4
+ data.tar.gz: f12ff7df56282b1c893c913f50848b9627ac202104e2af7fcb830be532503fdf
5
5
  SHA512:
6
- metadata.gz: e867dcc4da9432748615dba053232a321d20914faa180bd221f09226b1320db92dc0ac3c9232df66636f36d8332b3c1ecb2397beb3ebd81d3933f34174e3307a
7
- data.tar.gz: c4c5c5182726b3b2683e70a182242d42b518c599e4af88424967d00fe6fd7d286e736d2d3be28c3de0e9c1e07182021c4a259919a4c639c8bb211f8835ec6f4e
6
+ metadata.gz: e72f4138405355e6714fb53a272658c194c3bedf61f99d2bc0a5750139ec3ac24a5fc08e53656add560a104e401d90dfe1a77f718d800abbbf7dc75df0826113
7
+ data.tar.gz: c7f8dbcdb7ccccd1f7e76ef2178bdf4f66c999ff10abf0ec3f371673d0b067a484217680de1e0b4c2971144555184af950b3e6e293778c38cc738ba8603b0a81
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.49.0 (2023-10-29)
4
+
5
+ * Regenerated from discovery document revision 20231019
6
+
7
+ ### v0.48.0 (2023-10-15)
8
+
9
+ * Regenerated from discovery document revision 20231003
10
+
3
11
  ### v0.47.0 (2023-09-17)
4
12
 
5
13
  * Regenerated from discovery document revision 20230906
@@ -973,7 +973,9 @@ module Google
973
973
  # @return [String]
974
974
  attr_accessor :machine_type
975
975
 
976
- # Custom metadata to apply to this instance.
976
+ # Custom metadata to apply to this instance. For example, to specify a Cloud
977
+ # Storage bucket for automatic backup, you can use the `gcs-data-bucket`
978
+ # metadata tag. Format: `"--metadata=gcs-data-bucket=``BUCKET''"`.
977
979
  # Corresponds to the JSON property `metadata`
978
980
  # @return [Hash<String,String>]
979
981
  attr_accessor :metadata
@@ -1668,6 +1670,80 @@ module Google
1668
1670
  end
1669
1671
  end
1670
1672
 
1673
+ # Request for migrating a User-Managed Notebook to Workbench Instances.
1674
+ class MigrateInstanceRequest
1675
+ include Google::Apis::Core::Hashable
1676
+
1677
+ # Optional. Specifies the behavior of post startup script during migration.
1678
+ # Corresponds to the JSON property `postStartupScriptOption`
1679
+ # @return [String]
1680
+ attr_accessor :post_startup_script_option
1681
+
1682
+ def initialize(**args)
1683
+ update!(**args)
1684
+ end
1685
+
1686
+ # Update properties of this object
1687
+ def update!(**args)
1688
+ @post_startup_script_option = args[:post_startup_script_option] if args.key?(:post_startup_script_option)
1689
+ end
1690
+ end
1691
+
1692
+ # Request for migrating a Runtime to a Workbench Instance.
1693
+ class MigrateRuntimeRequest
1694
+ include Google::Apis::Core::Hashable
1695
+
1696
+ # Optional. Name of the VPC that the new Instance is in. This is required if the
1697
+ # Runtime uses google-managed network. If the Runtime uses customer-owned
1698
+ # network, it will reuse the same VPC, and this field must be empty. Format: `
1699
+ # projects/`project_id`/global/networks/`network_id``
1700
+ # Corresponds to the JSON property `network`
1701
+ # @return [String]
1702
+ attr_accessor :network
1703
+
1704
+ # Optional. Specifies the behavior of post startup script during migration.
1705
+ # Corresponds to the JSON property `postStartupScriptOption`
1706
+ # @return [String]
1707
+ attr_accessor :post_startup_script_option
1708
+
1709
+ # Optional. Idempotent request UUID.
1710
+ # Corresponds to the JSON property `requestId`
1711
+ # @return [String]
1712
+ attr_accessor :request_id
1713
+
1714
+ # Optional. The service account to be included in the Compute Engine instance of
1715
+ # the new Workbench Instance when the Runtime uses "single user only" mode for
1716
+ # permission. If not specified, the [Compute Engine default service account](
1717
+ # https://cloud.google.com/compute/docs/access/service-accounts#
1718
+ # default_service_account) is used. When the Runtime uses service account mode
1719
+ # for permission, it will reuse the same service account, and this field must be
1720
+ # empty.
1721
+ # Corresponds to the JSON property `serviceAccount`
1722
+ # @return [String]
1723
+ attr_accessor :service_account
1724
+
1725
+ # Optional. Name of the subnet that the new Instance is in. This is required if
1726
+ # the Runtime uses google-managed network. If the Runtime uses customer-owned
1727
+ # network, it will reuse the same subnet, and this field must be empty. Format: `
1728
+ # projects/`project_id`/regions/`region`/subnetworks/`subnetwork_id``
1729
+ # Corresponds to the JSON property `subnet`
1730
+ # @return [String]
1731
+ attr_accessor :subnet
1732
+
1733
+ def initialize(**args)
1734
+ update!(**args)
1735
+ end
1736
+
1737
+ # Update properties of this object
1738
+ def update!(**args)
1739
+ @network = args[:network] if args.key?(:network)
1740
+ @post_startup_script_option = args[:post_startup_script_option] if args.key?(:post_startup_script_option)
1741
+ @request_id = args[:request_id] if args.key?(:request_id)
1742
+ @service_account = args[:service_account] if args.key?(:service_account)
1743
+ @subnet = args[:subnet] if args.key?(:subnet)
1744
+ end
1745
+ end
1746
+
1671
1747
  # This resource represents a long-running operation that is the result of a
1672
1748
  # network API call.
1673
1749
  class Operation
@@ -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.47.0"
19
+ GEM_VERSION = "0.49.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 = "20230906"
25
+ REVISION = "20231019"
26
26
  end
27
27
  end
28
28
  end
@@ -220,6 +220,18 @@ module Google
220
220
  include Google::Apis::Core::JsonObjectSupport
221
221
  end
222
222
 
223
+ class MigrateInstanceRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class MigrateRuntimeRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
223
235
  class Operation
224
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
237
 
@@ -897,6 +909,24 @@ module Google
897
909
  end
898
910
  end
899
911
 
912
+ class MigrateInstanceRequest
913
+ # @private
914
+ class Representation < Google::Apis::Core::JsonRepresentation
915
+ property :post_startup_script_option, as: 'postStartupScriptOption'
916
+ end
917
+ end
918
+
919
+ class MigrateRuntimeRequest
920
+ # @private
921
+ class Representation < Google::Apis::Core::JsonRepresentation
922
+ property :network, as: 'network'
923
+ property :post_startup_script_option, as: 'postStartupScriptOption'
924
+ property :request_id, as: 'requestId'
925
+ property :service_account, as: 'serviceAccount'
926
+ property :subnet, as: 'subnet'
927
+ end
928
+ end
929
+
900
930
  class Operation
901
931
  # @private
902
932
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -689,6 +689,40 @@ module Google
689
689
  execute_or_queue_command(command, &block)
690
690
  end
691
691
 
692
+ # Migrates an existing User-Managed Notebook to Workbench Instances.
693
+ # @param [String] name
694
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
695
+ # instance_id``
696
+ # @param [Google::Apis::NotebooksV1::MigrateInstanceRequest] migrate_instance_request_object
697
+ # @param [String] fields
698
+ # Selector specifying which fields to include in a partial response.
699
+ # @param [String] quota_user
700
+ # Available to use for quota purposes for server-side applications. Can be any
701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
702
+ # @param [Google::Apis::RequestOptions] options
703
+ # Request-specific options
704
+ #
705
+ # @yield [result, err] Result & error if block supplied
706
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
707
+ # @yieldparam err [StandardError] error object if request failed
708
+ #
709
+ # @return [Google::Apis::NotebooksV1::Operation]
710
+ #
711
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
712
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
713
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
714
+ def migrate_instance(name, migrate_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
715
+ command = make_simple_command(:post, 'v1/{+name}:migrate', options)
716
+ command.request_representation = Google::Apis::NotebooksV1::MigrateInstanceRequest::Representation
717
+ command.request_object = migrate_instance_request_object
718
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
719
+ command.response_class = Google::Apis::NotebooksV1::Operation
720
+ command.params['name'] = name unless name.nil?
721
+ command.query['fields'] = fields unless fields.nil?
722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
723
+ execute_or_queue_command(command, &block)
724
+ end
725
+
692
726
  # Registers an existing legacy notebook instance to the Notebooks API server.
693
727
  # Legacy instances are instances created with the legacy Compute Engine calls.
694
728
  # They are not manageable by the Notebooks API out of the box. This call makes
@@ -1652,6 +1686,40 @@ module Google
1652
1686
  execute_or_queue_command(command, &block)
1653
1687
  end
1654
1688
 
1689
+ # Migrate an existing Runtime to a new Workbench Instance.
1690
+ # @param [String] name
1691
+ # Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
1692
+ # runtime_id``
1693
+ # @param [Google::Apis::NotebooksV1::MigrateRuntimeRequest] migrate_runtime_request_object
1694
+ # @param [String] fields
1695
+ # Selector specifying which fields to include in a partial response.
1696
+ # @param [String] quota_user
1697
+ # Available to use for quota purposes for server-side applications. Can be any
1698
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1699
+ # @param [Google::Apis::RequestOptions] options
1700
+ # Request-specific options
1701
+ #
1702
+ # @yield [result, err] Result & error if block supplied
1703
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
1704
+ # @yieldparam err [StandardError] error object if request failed
1705
+ #
1706
+ # @return [Google::Apis::NotebooksV1::Operation]
1707
+ #
1708
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1709
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1710
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1711
+ def migrate_runtime(name, migrate_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1712
+ command = make_simple_command(:post, 'v1/{+name}:migrate', options)
1713
+ command.request_representation = Google::Apis::NotebooksV1::MigrateRuntimeRequest::Representation
1714
+ command.request_object = migrate_runtime_request_object
1715
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
1716
+ command.response_class = Google::Apis::NotebooksV1::Operation
1717
+ command.params['name'] = name unless name.nil?
1718
+ command.query['fields'] = fields unless fields.nil?
1719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1720
+ execute_or_queue_command(command, &block)
1721
+ end
1722
+
1655
1723
  # Update Notebook Runtime configuration.
1656
1724
  # @param [String] name
1657
1725
  # Output only. The resource name of the runtime. Format: `projects/`project`/
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.47.0
4
+ version: 0.49.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-09-17 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.49.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: []