Class: Google::Apis::NotebooksV2::DiagnosticConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiagnosticConfig

Returns a new instance of DiagnosticConfig.



438
439
440
# File 'lib/google/apis/notebooks_v2/classes.rb', line 438

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_copy_home_files_flagBoolean Also known as: enable_copy_home_files_flag?

Optional. Enables flag to copy all /home/jupyter folder contents Corresponds to the JSON property enableCopyHomeFilesFlag

Returns:

  • (Boolean)


404
405
406
# File 'lib/google/apis/notebooks_v2/classes.rb', line 404

def enable_copy_home_files_flag
  @enable_copy_home_files_flag
end

#enable_packet_capture_flagBoolean 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

Returns:

  • (Boolean)


410
411
412
# File 'lib/google/apis/notebooks_v2/classes.rb', line 410

def enable_packet_capture_flag
  @enable_packet_capture_flag
end

#enable_repair_flagBoolean Also known as: enable_repair_flag?

Optional. Enables flag to repair service for instance Corresponds to the JSON property enableRepairFlag

Returns:

  • (Boolean)


416
417
418
# File 'lib/google/apis/notebooks_v2/classes.rb', line 416

def enable_repair_flag
  @enable_repair_flag
end

#gcs_bucketString

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

Returns:

  • (String)


428
429
430
# File 'lib/google/apis/notebooks_v2/classes.rb', line 428

def gcs_bucket
  @gcs_bucket
end

#relative_pathString

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

Returns:

  • (String)


436
437
438
# File 'lib/google/apis/notebooks_v2/classes.rb', line 436

def relative_path
  @relative_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



443
444
445
446
447
448
449
# File 'lib/google/apis/notebooks_v2/classes.rb', line 443

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