google-apis-notebooks_v1 0.47.0 → 0.48.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: 55a27fc30afb2661609ec99ebfc263edc0ec867c21a5b3d148798a655965b6e2
4
- data.tar.gz: 15630a0a72d1cee6f4c67d519d48245d51b69498f99e4f04285d70f6b5ba5291
3
+ metadata.gz: 25057885c84fb3fd4878dcbdc466ea13adc2eae1d71b6d4826c1e7c11b69e62c
4
+ data.tar.gz: 0e6b57068276b0133d1cf4890ea39a3b757447e264935122a7effd204fcb7923
5
5
  SHA512:
6
- metadata.gz: e867dcc4da9432748615dba053232a321d20914faa180bd221f09226b1320db92dc0ac3c9232df66636f36d8332b3c1ecb2397beb3ebd81d3933f34174e3307a
7
- data.tar.gz: c4c5c5182726b3b2683e70a182242d42b518c599e4af88424967d00fe6fd7d286e736d2d3be28c3de0e9c1e07182021c4a259919a4c639c8bb211f8835ec6f4e
6
+ metadata.gz: fbd3c2def406a8b14e6301df60d6b62f080ce7bfbddb1d741828b5adf96d3f3722f9827594bbdf589814c8b938127a3d90240ab3ee55001d7b48ed6a7b551a1e
7
+ data.tar.gz: 8a19cd1bc8b2f47f43236122d55f603e3a302f8beedda7dc254c7b03d1f4abe639c8f2655c07aacae186d81ed7fb6b50c14427cc022cbf2e32a6ce7ee7b2ff0a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.48.0 (2023-10-15)
4
+
5
+ * Regenerated from discovery document revision 20231003
6
+
3
7
  ### v0.47.0 (2023-09-17)
4
8
 
5
9
  * Regenerated from discovery document revision 20230906
@@ -1668,6 +1668,80 @@ module Google
1668
1668
  end
1669
1669
  end
1670
1670
 
1671
+ # Request for migrating a User-Managed Notebook to Workbench Instances.
1672
+ class MigrateInstanceRequest
1673
+ include Google::Apis::Core::Hashable
1674
+
1675
+ # Optional. Specifies the behavior of post startup script during migration.
1676
+ # Corresponds to the JSON property `postStartupScriptOption`
1677
+ # @return [String]
1678
+ attr_accessor :post_startup_script_option
1679
+
1680
+ def initialize(**args)
1681
+ update!(**args)
1682
+ end
1683
+
1684
+ # Update properties of this object
1685
+ def update!(**args)
1686
+ @post_startup_script_option = args[:post_startup_script_option] if args.key?(:post_startup_script_option)
1687
+ end
1688
+ end
1689
+
1690
+ # Request for migrating a Runtime to a Workbench Instance.
1691
+ class MigrateRuntimeRequest
1692
+ include Google::Apis::Core::Hashable
1693
+
1694
+ # Optional. Name of the VPC that the new Instance is in. This is required if the
1695
+ # Runtime uses google-managed network. If the Runtime uses customer-owned
1696
+ # network, it will reuse the same VPC, and this field must be empty. Format: `
1697
+ # projects/`project_id`/global/networks/`network_id``
1698
+ # Corresponds to the JSON property `network`
1699
+ # @return [String]
1700
+ attr_accessor :network
1701
+
1702
+ # Optional. Specifies the behavior of post startup script during migration.
1703
+ # Corresponds to the JSON property `postStartupScriptOption`
1704
+ # @return [String]
1705
+ attr_accessor :post_startup_script_option
1706
+
1707
+ # Optional. Idempotent request UUID.
1708
+ # Corresponds to the JSON property `requestId`
1709
+ # @return [String]
1710
+ attr_accessor :request_id
1711
+
1712
+ # Optional. The service account to be included in the Compute Engine instance of
1713
+ # the new Workbench Instance when the Runtime uses "single user only" mode for
1714
+ # permission. If not specified, the [Compute Engine default service account](
1715
+ # https://cloud.google.com/compute/docs/access/service-accounts#
1716
+ # default_service_account) is used. When the Runtime uses service account mode
1717
+ # for permission, it will reuse the same service account, and this field must be
1718
+ # empty.
1719
+ # Corresponds to the JSON property `serviceAccount`
1720
+ # @return [String]
1721
+ attr_accessor :service_account
1722
+
1723
+ # Optional. Name of the subnet that the new Instance is in. This is required if
1724
+ # the Runtime uses google-managed network. If the Runtime uses customer-owned
1725
+ # network, it will reuse the same subnet, and this field must be empty. Format: `
1726
+ # projects/`project_id`/regions/`region`/subnetworks/`subnetwork_id``
1727
+ # Corresponds to the JSON property `subnet`
1728
+ # @return [String]
1729
+ attr_accessor :subnet
1730
+
1731
+ def initialize(**args)
1732
+ update!(**args)
1733
+ end
1734
+
1735
+ # Update properties of this object
1736
+ def update!(**args)
1737
+ @network = args[:network] if args.key?(:network)
1738
+ @post_startup_script_option = args[:post_startup_script_option] if args.key?(:post_startup_script_option)
1739
+ @request_id = args[:request_id] if args.key?(:request_id)
1740
+ @service_account = args[:service_account] if args.key?(:service_account)
1741
+ @subnet = args[:subnet] if args.key?(:subnet)
1742
+ end
1743
+ end
1744
+
1671
1745
  # This resource represents a long-running operation that is the result of a
1672
1746
  # network API call.
1673
1747
  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.48.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 = "20231003"
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.48.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-15 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.48.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: []