Class: Google::Apis::NotebooksV2::DiagnosticConfig
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::DiagnosticConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb
Overview
Defines flags that are used to run the diagnostic tool
Instance Attribute Summary collapse
-
#enable_copy_home_files_flag ⇒ Boolean
(also: #enable_copy_home_files_flag?)
Optional.
-
#enable_packet_capture_flag ⇒ Boolean
(also: #enable_packet_capture_flag?)
Optional.
-
#enable_repair_flag ⇒ Boolean
(also: #enable_repair_flag?)
Optional.
-
#gcs_bucket ⇒ String
Required.
-
#relative_path ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiagnosticConfig
constructor
A new instance of DiagnosticConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiagnosticConfig
Returns a new instance of DiagnosticConfig.
461 462 463 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 461 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_copy_home_files_flag ⇒ Boolean Also known as: enable_copy_home_files_flag?
Optional. Enables flag to copy all /home/jupyter
folder contents
Corresponds to the JSON property enableCopyHomeFilesFlag
427 428 429 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 427 def enable_copy_home_files_flag @enable_copy_home_files_flag end |
#enable_packet_capture_flag ⇒ Boolean Also known as: enable_packet_capture_flag?
Optional. Enables flag to capture packets from the instance for 30 seconds
Corresponds to the JSON property enablePacketCaptureFlag
433 434 435 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 433 def enable_packet_capture_flag @enable_packet_capture_flag end |
#enable_repair_flag ⇒ Boolean Also known as: enable_repair_flag?
Optional. Enables flag to repair service for instance
Corresponds to the JSON property enableRepairFlag
439 440 441 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 439 def enable_repair_flag @enable_repair_flag end |
#gcs_bucket ⇒ String
Required. User Cloud Storage bucket location (REQUIRED). Must be formatted
with path prefix (gs://$GCS_BUCKET
). Permissions: User Managed Notebooks: -
storage.buckets.writer: Must be given to the project's service account
attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be
given to the project's service account or user credentials attached to VM
depending on authentication mode. Cloud Storage bucket Log file will be
written to gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz
Corresponds to the JSON property gcsBucket
451 452 453 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 451 def gcs_bucket @gcs_bucket end |
#relative_path ⇒ String
Optional. Defines the relative storage path in the Cloud Storage bucket where
the diagnostic logs will be written: Default path will be the root directory
of the Cloud Storage bucket (gs://$GCS_BUCKET/$DATE_$TIME.tar.gz
) Example of
full path where Log file will be written: gs://$GCS_BUCKET/$RELATIVE_PATH/
Corresponds to the JSON property relativePath
459 460 461 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 459 def relative_path @relative_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
466 467 468 469 470 471 472 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 466 def update!(**args) @enable_copy_home_files_flag = args[:enable_copy_home_files_flag] if args.key?(:enable_copy_home_files_flag) @enable_packet_capture_flag = args[:enable_packet_capture_flag] if args.key?(:enable_packet_capture_flag) @enable_repair_flag = args[:enable_repair_flag] if args.key?(:enable_repair_flag) @gcs_bucket = args[:gcs_bucket] if args.key?(:gcs_bucket) @relative_path = args[:relative_path] if args.key?(:relative_path) end |