123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- syntax = "proto3";
- package google.cloud.dataplex.v1;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/dataplex/v1/resources.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex";
- option java_multiple_files = true;
- option java_outer_classname = "AnalyzeProto";
- option java_package = "com.google.cloud.dataplex.v1";
- message Environment {
- option (google.api.resource) = {
- type: "dataplex.googleapis.com/Environment"
- pattern: "projects/{project}/locations/{location}/lakes/{lake}/environments/{environment}"
- };
-
- message InfrastructureSpec {
-
- message ComputeResources {
-
- int32 disk_size_gb = 1 [(google.api.field_behavior) = OPTIONAL];
-
- int32 node_count = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- int32 max_node_count = 3 [(google.api.field_behavior) = OPTIONAL];
- }
-
- message OsImageRuntime {
-
- string image_version = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- repeated string java_libraries = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- repeated string python_packages = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- map<string, string> properties = 4 [(google.api.field_behavior) = OPTIONAL];
- }
-
- oneof resources {
-
- ComputeResources compute = 50 [(google.api.field_behavior) = OPTIONAL];
- }
-
- oneof runtime {
-
- OsImageRuntime os_image = 100 [(google.api.field_behavior) = REQUIRED];
- }
- }
- message SessionSpec {
-
-
- google.protobuf.Duration max_idle_duration = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
- bool enable_fast_startup = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message SessionStatus {
-
-
- bool active = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message Endpoints {
-
- string notebooks = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string sql = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
-
-
- string name = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "dataplex.googleapis.com/Environment"
- }
- ];
-
- string display_name = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- map<string, string> labels = 6 [(google.api.field_behavior) = OPTIONAL];
-
- string description = 7 [(google.api.field_behavior) = OPTIONAL];
-
- State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- InfrastructureSpec infrastructure_spec = 100 [(google.api.field_behavior) = REQUIRED];
-
- SessionSpec session_spec = 101 [(google.api.field_behavior) = OPTIONAL];
-
- SessionStatus session_status = 102 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- Endpoints endpoints = 200 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message Content {
- option (google.api.resource) = {
- type: "dataplex.googleapis.com/Content"
- pattern: "projects/{project}/locations/{location}/lakes/{lake}/content/{content}"
- };
-
- message SqlScript {
-
- enum QueryEngine {
-
- QUERY_ENGINE_UNSPECIFIED = 0;
-
- SPARK = 2;
- }
-
- QueryEngine engine = 1 [(google.api.field_behavior) = REQUIRED];
- }
-
- message Notebook {
-
- enum KernelType {
-
- KERNEL_TYPE_UNSPECIFIED = 0;
-
- PYTHON3 = 1;
- }
-
- KernelType kernel_type = 1 [(google.api.field_behavior) = REQUIRED];
- }
-
-
- string name = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "dataplex.googleapis.com/Content"
- }
- ];
-
-
- string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- string path = 3 [(google.api.field_behavior) = REQUIRED];
-
- google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- map<string, string> labels = 6 [(google.api.field_behavior) = OPTIONAL];
-
- string description = 7 [(google.api.field_behavior) = OPTIONAL];
-
- oneof data {
-
- string data_text = 9 [(google.api.field_behavior) = REQUIRED];
- }
- oneof content {
-
- SqlScript sql_script = 100;
-
- Notebook notebook = 101;
- }
- }
- message Session {
- option (google.api.resource) = {
- type: "dataplex.googleapis.com/Session"
- pattern: "projects/{project}/locations/{location}/lakes/{lake}/environments/{environment}/sessions/{session}"
- };
-
-
- string name = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "dataplex.googleapis.com/Session"
- }
- ];
-
- string user_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
|