Class: Google::Apis::NotebooksV1::MigrateRuntimeRequest
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::MigrateRuntimeRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v1/classes.rb,
lib/google/apis/notebooks_v1/representations.rb,
lib/google/apis/notebooks_v1/representations.rb
Overview
Request for migrating a Runtime to a Workbench Instance.
Instance Attribute Summary collapse
-
#network ⇒ String
Optional.
-
#post_startup_script_option ⇒ String
Optional.
-
#request_id ⇒ String
Optional.
-
#service_account ⇒ String
Optional.
-
#subnet ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MigrateRuntimeRequest
constructor
A new instance of MigrateRuntimeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MigrateRuntimeRequest
Returns a new instance of MigrateRuntimeRequest.
1733 1734 1735 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1733 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ String
Optional. Name of the VPC that the new Instance is in. This is required if the
Runtime uses google-managed network. If the Runtime uses customer-owned
network, it will reuse the same VPC, and this field must be empty. Format:
projects/project_id/global/networks/network_id`
Corresponds to the JSON propertynetwork`
1702 1703 1704 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1702 def network @network end |
#post_startup_script_option ⇒ String
Optional. Specifies the behavior of post startup script during migration.
Corresponds to the JSON property postStartupScriptOption
1707 1708 1709 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1707 def post_startup_script_option @post_startup_script_option end |
#request_id ⇒ String
Optional. Idempotent request UUID.
Corresponds to the JSON property requestId
1712 1713 1714 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1712 def request_id @request_id end |
#service_account ⇒ String
Optional. The service account to be included in the Compute Engine instance of
the new Workbench Instance when the Runtime uses "single user only" mode for
permission. If not specified, the Compute Engine default service account is used. When the Runtime uses service account mode
for permission, it will reuse the same service account, and this field must be
empty.
Corresponds to the JSON property serviceAccount
1723 1724 1725 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1723 def service_account @service_account end |
#subnet ⇒ String
Optional. Name of the subnet that the new Instance is in. This is required if
the Runtime uses google-managed network. If the Runtime uses customer-owned
network, it will reuse the same subnet, and this field must be empty. Format:
projects/project_id/regions/region/subnetworks/subnetwork_id`
Corresponds to the JSON propertysubnet`
1731 1732 1733 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1731 def subnet @subnet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1738 1739 1740 1741 1742 1743 1744 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1738 def update!(**args) @network = args[:network] if args.key?(:network) @post_startup_script_option = args[:post_startup_script_option] if args.key?(:post_startup_script_option) @request_id = args[:request_id] if args.key?(:request_id) @service_account = args[:service_account] if args.key?(:service_account) @subnet = args[:subnet] if args.key?(:subnet) end |