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.
1731 1732 1733 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1731 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`
1700 1701 1702 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1700 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
1705 1706 1707 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1705 def post_startup_script_option @post_startup_script_option end |
#request_id ⇒ String
Optional. Idempotent request UUID.
Corresponds to the JSON property requestId
1710 1711 1712 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1710 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
1721 1722 1723 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1721 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`
1729 1730 1731 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1729 def subnet @subnet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1736 1737 1738 1739 1740 1741 1742 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1736 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 |