diagnostic_config.proto 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.notebooks.v1;
  16. import "google/api/field_behavior.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "DiagnosticConfigProto";
  20. option java_package = "com.google.cloud.notebooks.v1";
  21. // Defines flags that are used to run the diagnostic tool
  22. message DiagnosticConfig {
  23. // Required. User Cloud Storage bucket location (REQUIRED).
  24. // Must be formatted with path prefix (`gs://$GCS_BUCKET`).
  25. //
  26. // Permissions:
  27. // User Managed Notebooks:
  28. // - storage.buckets.writer: Must be given to the project's service account
  29. // attached to VM.
  30. // Google Managed Notebooks:
  31. // - storage.buckets.writer: Must be given to the project's service account or
  32. // user credentials attached to VM depending on authentication mode.
  33. //
  34. // Cloud Storage bucket Log file will be written to
  35. // `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`
  36. string gcs_bucket = 1 [(google.api.field_behavior) = REQUIRED];
  37. // Optional. Defines the relative storage path in the Cloud Storage bucket
  38. // where the diagnostic logs will be written: Default path will be the root
  39. // directory of the Cloud Storage bucket
  40. // (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`)
  41. // Example of full path where Log file will be written:
  42. // `gs://$GCS_BUCKET/$RELATIVE_PATH/`
  43. string relative_path = 2 [(google.api.field_behavior) = OPTIONAL];
  44. // Optional. Enables flag to repair service for instance
  45. bool repair_flag_enabled = 3 [(google.api.field_behavior) = OPTIONAL];
  46. // Optional. Enables flag to capture packets from the instance for 30 seconds
  47. bool packet_capture_flag_enabled = 4 [(google.api.field_behavior) = OPTIONAL];
  48. // Optional. Enables flag to copy all `/home/jupyter` folder contents
  49. bool copy_home_files_flag_enabled = 5
  50. [(google.api.field_behavior) = OPTIONAL];
  51. }