diff --git a/Dataproc/metadata/V1/Batches.php b/Dataproc/metadata/V1/Batches.php index 3e7ae031bf3..3c1eb611bbd 100644 --- a/Dataproc/metadata/V1/Batches.php +++ b/Dataproc/metadata/V1/Batches.php @@ -23,7 +23,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xAB\x1E\x0A&google/cloud/dataproc/v1/batches.proto\x12\x18google.cloud.dataproc.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A%google/cloud/dataproc/v1/shared.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB0\x01\x0A\x12CreateBatchRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddataproc.googleapis.com/Batch\x123\x0A\x05batch\x18\x02 \x01(\x0B2\x1F.google.cloud.dataproc.v1.BatchB\x03\xE0A\x02\x12\x15\x0A\x08batch_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x03\xE0A\x01\"F\x0A\x0FGetBatchRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataproc.googleapis.com/Batch\"\xA8\x01\x0A\x12ListBatchesRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddataproc.googleapis.com/Batch\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"z\x0A\x13ListBatchesResponse\x120\x0A\x07batches\x18\x01 \x03(\x0B2\x1F.google.cloud.dataproc.v1.Batch\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x03\"I\x0A\x12DeleteBatchRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataproc.googleapis.com/Batch\"\xC8\x0A\x0A\x05Batch\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04uuid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12D\x0A\x0Dpyspark_batch\x18\x04 \x01(\x0B2&.google.cloud.dataproc.v1.PySparkBatchB\x03\xE0A\x01H\x00\x12@\x0A\x0Bspark_batch\x18\x05 \x01(\x0B2\$.google.cloud.dataproc.v1.SparkBatchB\x03\xE0A\x01H\x00\x12C\x0A\x0Dspark_r_batch\x18\x06 \x01(\x0B2%.google.cloud.dataproc.v1.SparkRBatchB\x03\xE0A\x01H\x00\x12G\x0A\x0Fspark_sql_batch\x18\x07 \x01(\x0B2'.google.cloud.dataproc.v1.SparkSqlBatchB\x03\xE0A\x01H\x00\x12@\x0A\x0Cruntime_info\x18\x08 \x01(\x0B2%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xE0A\x03\x129\x0A\x05state\x18\x09 \x01(\x0E2%.google.cloud.dataproc.v1.Batch.StateB\x03\xE0A\x03\x12\x1A\x0A\x0Dstate_message\x18\x0A \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x14\x0A\x07creator\x18\x0C \x01(\x09B\x03\xE0A\x03\x12@\x0A\x06labels\x18\x0D \x03(\x0B2+.google.cloud.dataproc.v1.Batch.LabelsEntryB\x03\xE0A\x01\x12D\x0A\x0Eruntime_config\x18\x0E \x01(\x0B2'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xE0A\x01\x12L\x0A\x12environment_config\x18\x0F \x01(\x0B2+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xE0A\x01\x12\x16\x0A\x09operation\x18\x10 \x01(\x09B\x03\xE0A\x03\x12H\x0A\x0Dstate_history\x18\x11 \x03(\x0B2,.google.cloud.dataproc.v1.Batch.StateHistoryB\x03\xE0A\x03\x1A\xA0\x01\x0A\x0CStateHistory\x129\x0A\x05state\x18\x01 \x01(\x0E2%.google.cloud.dataproc.v1.Batch.StateB\x03\xE0A\x03\x12\x1A\x0A\x0Dstate_message\x18\x02 \x01(\x09B\x03\xE0A\x03\x129\x0A\x10state_start_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"r\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0E\x0A\x0ACANCELLING\x10\x03\x12\x0D\x0A\x09CANCELLED\x10\x04\x12\x0D\x0A\x09SUCCEEDED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06:[\xEAAX\x0A\x1Ddataproc.googleapis.com/Batch\x127projects/{project}/locations/{location}/batches/{batch}B\x0E\x0A\x0Cbatch_config\"\xB2\x01\x0A\x0CPySparkBatch\x12!\x0A\x14main_python_file_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04args\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10python_file_uris\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Djar_file_uris\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x16\x0A\x09file_uris\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x06 \x03(\x09B\x03\xE0A\x01\"\xB5\x01\x0A\x0ASparkBatch\x12 \x0A\x11main_jar_file_uri\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Amain_class\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x12\x11\x0A\x04args\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Djar_file_uris\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x16\x0A\x09file_uris\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x06 \x03(\x09B\x03\xE0A\x01B\x08\x0A\x06driver\"q\x0A\x0BSparkRBatch\x12\x1C\x0A\x0Fmain_r_file_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04args\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x16\x0A\x09file_uris\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x04 \x03(\x09B\x03\xE0A\x01\"\xDA\x01\x0A\x0DSparkSqlBatch\x12\x1B\x0A\x0Equery_file_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12Y\x0A\x0Fquery_variables\x18\x02 \x03(\x0B2;.google.cloud.dataproc.v1.SparkSqlBatch.QueryVariablesEntryB\x03\xE0A\x01\x12\x1A\x0A\x0Djar_file_uris\x18\x03 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x13QueryVariablesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x012\x9D\x06\x0A\x0FBatchController\x12\xEA\x01\x0A\x0BCreateBatch\x12,.google.cloud.dataproc.v1.CreateBatchRequest\x1A\x1D.google.longrunning.Operation\"\x8D\x01\xCAA8\x0A\x05Batch\x12/google.cloud.dataproc.v1.BatchOperationMetadata\xDAA\x15parent,batch,batch_id\x82\xD3\xE4\x93\x024\"+/v1/{parent=projects/*/locations/*}/batches:\x05batch\x12\x92\x01\x0A\x08GetBatch\x12).google.cloud.dataproc.v1.GetBatchRequest\x1A\x1F.google.cloud.dataproc.v1.Batch\":\xDAA\x04name\x82\xD3\xE4\x93\x02-\x12+/v1/{name=projects/*/locations/*/batches/*}\x12\xA8\x01\x0A\x0BListBatches\x12,.google.cloud.dataproc.v1.ListBatchesRequest\x1A-.google.cloud.dataproc.v1.ListBatchesResponse\"<\xDAA\x06parent\x82\xD3\xE4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/batches\x12\x8F\x01\x0A\x0BDeleteBatch\x12,.google.cloud.dataproc.v1.DeleteBatchRequest\x1A\x16.google.protobuf.Empty\":\xDAA\x04name\x82\xD3\xE4\x93\x02-*+/v1/{name=projects/*/locations/*/batches/*}\x1AK\xCAA\x17dataproc.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBk\x0A\x1Ccom.google.cloud.dataproc.v1B\x0CBatchesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3" + "\x0A\x8C\"\x0A&google/cloud/dataproc/v1/batches.proto\x12\x18google.cloud.dataproc.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A%google/cloud/dataproc/v1/shared.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB0\x01\x0A\x12CreateBatchRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddataproc.googleapis.com/Batch\x123\x0A\x05batch\x18\x02 \x01(\x0B2\x1F.google.cloud.dataproc.v1.BatchB\x03\xE0A\x02\x12\x15\x0A\x08batch_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x03\xE0A\x01\"F\x0A\x0FGetBatchRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataproc.googleapis.com/Batch\"\xA8\x01\x0A\x12ListBatchesRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddataproc.googleapis.com/Batch\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x13ListBatchesResponse\x125\x0A\x07batches\x18\x01 \x03(\x0B2\x1F.google.cloud.dataproc.v1.BatchB\x03\xE0A\x03\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x03\"I\x0A\x12DeleteBatchRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataproc.googleapis.com/Batch\"\x9F\x0B\x0A\x05Batch\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04uuid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12D\x0A\x0Dpyspark_batch\x18\x04 \x01(\x0B2&.google.cloud.dataproc.v1.PySparkBatchB\x03\xE0A\x01H\x00\x12@\x0A\x0Bspark_batch\x18\x05 \x01(\x0B2\$.google.cloud.dataproc.v1.SparkBatchB\x03\xE0A\x01H\x00\x12C\x0A\x0Dspark_r_batch\x18\x06 \x01(\x0B2%.google.cloud.dataproc.v1.SparkRBatchB\x03\xE0A\x01H\x00\x12G\x0A\x0Fspark_sql_batch\x18\x07 \x01(\x0B2'.google.cloud.dataproc.v1.SparkSqlBatchB\x03\xE0A\x01H\x00\x12U\x0A\x16pyspark_notebook_batch\x18\x13 \x01(\x0B2..google.cloud.dataproc.v1.PySparkNotebookBatchB\x03\xE0A\x01H\x00\x12@\x0A\x0Cruntime_info\x18\x08 \x01(\x0B2%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xE0A\x03\x129\x0A\x05state\x18\x09 \x01(\x0E2%.google.cloud.dataproc.v1.Batch.StateB\x03\xE0A\x03\x12\x1A\x0A\x0Dstate_message\x18\x0A \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x14\x0A\x07creator\x18\x0C \x01(\x09B\x03\xE0A\x03\x12@\x0A\x06labels\x18\x0D \x03(\x0B2+.google.cloud.dataproc.v1.Batch.LabelsEntryB\x03\xE0A\x01\x12D\x0A\x0Eruntime_config\x18\x0E \x01(\x0B2'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xE0A\x01\x12L\x0A\x12environment_config\x18\x0F \x01(\x0B2+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xE0A\x01\x12\x16\x0A\x09operation\x18\x10 \x01(\x09B\x03\xE0A\x03\x12H\x0A\x0Dstate_history\x18\x11 \x03(\x0B2,.google.cloud.dataproc.v1.Batch.StateHistoryB\x03\xE0A\x03\x1A\xA0\x01\x0A\x0CStateHistory\x129\x0A\x05state\x18\x01 \x01(\x0E2%.google.cloud.dataproc.v1.Batch.StateB\x03\xE0A\x03\x12\x1A\x0A\x0Dstate_message\x18\x02 \x01(\x09B\x03\xE0A\x03\x129\x0A\x10state_start_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"r\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0E\x0A\x0ACANCELLING\x10\x03\x12\x0D\x0A\x09CANCELLED\x10\x04\x12\x0D\x0A\x09SUCCEEDED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06:[\xEAAX\x0A\x1Ddataproc.googleapis.com/Batch\x127projects/{project}/locations/{location}/batches/{batch}B\x0E\x0A\x0Cbatch_config\"\xB2\x01\x0A\x0CPySparkBatch\x12!\x0A\x14main_python_file_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04args\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10python_file_uris\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Djar_file_uris\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x16\x0A\x09file_uris\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x06 \x03(\x09B\x03\xE0A\x01\"\xB5\x01\x0A\x0ASparkBatch\x12 \x0A\x11main_jar_file_uri\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Amain_class\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x12\x11\x0A\x04args\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Djar_file_uris\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x16\x0A\x09file_uris\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x06 \x03(\x09B\x03\xE0A\x01B\x08\x0A\x06driver\"q\x0A\x0BSparkRBatch\x12\x1C\x0A\x0Fmain_r_file_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04args\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x16\x0A\x09file_uris\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x04 \x03(\x09B\x03\xE0A\x01\"\xDA\x01\x0A\x0DSparkSqlBatch\x12\x1B\x0A\x0Equery_file_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12Y\x0A\x0Fquery_variables\x18\x02 \x03(\x0B2;.google.cloud.dataproc.v1.SparkSqlBatch.QueryVariablesEntryB\x03\xE0A\x01\x12\x1A\x0A\x0Djar_file_uris\x18\x03 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x13QueryVariablesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xA4\x02\x0A\x14PySparkNotebookBatch\x12\x1E\x0A\x11notebook_file_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12O\x0A\x06params\x18\x02 \x03(\x0B2:.google.cloud.dataproc.v1.PySparkNotebookBatch.ParamsEntryB\x03\xE0A\x01\x12\x1D\x0A\x10python_file_uris\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Djar_file_uris\x18\x04 \x03(\x09B\x03\xE0A\x01\x12\x16\x0A\x09file_uris\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x06 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BParamsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x012\xFB\x06\x0A\x0FBatchController\x12\xEA\x01\x0A\x0BCreateBatch\x12,.google.cloud.dataproc.v1.CreateBatchRequest\x1A\x1D.google.longrunning.Operation\"\x8D\x01\xCAA8\x0A\x05Batch\x12/google.cloud.dataproc.v1.BatchOperationMetadata\xDAA\x15parent,batch,batch_id\x82\xD3\xE4\x93\x024\"+/v1/{parent=projects/*/locations/*}/batches:\x05batch\x12\x92\x01\x0A\x08GetBatch\x12).google.cloud.dataproc.v1.GetBatchRequest\x1A\x1F.google.cloud.dataproc.v1.Batch\":\xDAA\x04name\x82\xD3\xE4\x93\x02-\x12+/v1/{name=projects/*/locations/*/batches/*}\x12\xA8\x01\x0A\x0BListBatches\x12,.google.cloud.dataproc.v1.ListBatchesRequest\x1A-.google.cloud.dataproc.v1.ListBatchesResponse\"<\xDAA\x06parent\x82\xD3\xE4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/batches\x12\x8F\x01\x0A\x0BDeleteBatch\x12,.google.cloud.dataproc.v1.DeleteBatchRequest\x1A\x16.google.protobuf.Empty\":\xDAA\x04name\x82\xD3\xE4\x93\x02-*+/v1/{name=projects/*/locations/*/batches/*}\x1A\xA8\x01\xCAA\x17dataproc.googleapis.com\xD2A\x8A\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataproc,https://www.googleapis.com/auth/dataproc.read-onlyBk\x0A\x1Ccom.google.cloud.dataproc.v1B\x0CBatchesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataproc/metadata/V1/SessionTemplates.php b/Dataproc/metadata/V1/SessionTemplates.php index 8b243bbc4c8..1ac610783d5 100644 --- a/Dataproc/metadata/V1/SessionTemplates.php +++ b/Dataproc/metadata/V1/SessionTemplates.php @@ -23,7 +23,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xAE\x18\x0A0google/cloud/dataproc/v1/session_templates.proto\x12\x18google.cloud.dataproc.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A'google/cloud/dataproc/v1/sessions.proto\x1A%google/cloud/dataproc/v1/shared.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA9\x01\x0A\x1CCreateSessionTemplateRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'dataproc.googleapis.com/SessionTemplate\x12H\x0A\x10session_template\x18\x03 \x01(\x0B2).google.cloud.dataproc.v1.SessionTemplateB\x03\xE0A\x02\"h\x0A\x1CUpdateSessionTemplateRequest\x12H\x0A\x10session_template\x18\x01 \x01(\x0B2).google.cloud.dataproc.v1.SessionTemplateB\x03\xE0A\x02\"Z\x0A\x19GetSessionTemplateRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'dataproc.googleapis.com/SessionTemplate\"\xA4\x01\x0A\x1BListSessionTemplatesRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'dataproc.googleapis.com/SessionTemplate\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x82\x01\x0A\x1CListSessionTemplatesResponse\x12I\x0A\x11session_templates\x18\x01 \x03(\x0B2).google.cloud.dataproc.v1.SessionTemplateB\x03\xE0A\x03\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"]\x0A\x1CDeleteSessionTemplateRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'dataproc.googleapis.com/SessionTemplate\"\x84\x06\x0A\x0FSessionTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x09 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x0Fjupyter_session\x18\x03 \x01(\x0B2'.google.cloud.dataproc.v1.JupyterConfigB\x03\xE0A\x01H\x00\x12R\x0A\x15spark_connect_session\x18\x0B \x01(\x0B2,.google.cloud.dataproc.v1.SparkConnectConfigB\x03\xE0A\x01H\x00\x12\x14\x0A\x07creator\x18\x05 \x01(\x09B\x03\xE0A\x03\x12J\x0A\x06labels\x18\x06 \x03(\x0B25.google.cloud.dataproc.v1.SessionTemplate.LabelsEntryB\x03\xE0A\x01\x12D\x0A\x0Eruntime_config\x18\x07 \x01(\x0B2'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xE0A\x01\x12L\x0A\x12environment_config\x18\x08 \x01(\x0B2+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04uuid\x18\x0C \x01(\x09B\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:q\xEAAn\x0A'dataproc.googleapis.com/SessionTemplate\x12Cprojects/{project}/locations/{location}/sessionTemplates/{template}B\x10\x0A\x0Esession_config2\xFA\x08\x0A\x19SessionTemplateController\x12\xE4\x01\x0A\x15CreateSessionTemplate\x126.google.cloud.dataproc.v1.CreateSessionTemplateRequest\x1A).google.cloud.dataproc.v1.SessionTemplate\"h\xDAA\x17parent,session_template\x82\xD3\xE4\x93\x02H\"4/v1/{parent=projects/*/locations/*}/sessionTemplates:\x10session_template\x12\xEE\x01\x0A\x15UpdateSessionTemplate\x126.google.cloud.dataproc.v1.UpdateSessionTemplateRequest\x1A).google.cloud.dataproc.v1.SessionTemplate\"r\xDAA\x10session_template\x82\xD3\xE4\x93\x02Y2E/v1/{session_template.name=projects/*/locations/*/sessionTemplates/*}:\x10session_template\x12\xB9\x01\x0A\x12GetSessionTemplate\x123.google.cloud.dataproc.v1.GetSessionTemplateRequest\x1A).google.cloud.dataproc.v1.SessionTemplate\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1/{name=projects/*/locations/*/sessionTemplates/*}\x12\xCC\x01\x0A\x14ListSessionTemplates\x125.google.cloud.dataproc.v1.ListSessionTemplatesRequest\x1A6.google.cloud.dataproc.v1.ListSessionTemplatesResponse\"E\xDAA\x06parent\x82\xD3\xE4\x93\x026\x124/v1/{parent=projects/*/locations/*}/sessionTemplates\x12\xAC\x01\x0A\x15DeleteSessionTemplate\x126.google.cloud.dataproc.v1.DeleteSessionTemplateRequest\x1A\x16.google.protobuf.Empty\"C\xDAA\x04name\x82\xD3\xE4\x93\x026*4/v1/{name=projects/*/locations/*/sessionTemplates/*}\x1AK\xCAA\x17dataproc.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBt\x0A\x1Ccom.google.cloud.dataproc.v1B\x15SessionTemplatesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3" + "\x0A\x8F\x19\x0A0google/cloud/dataproc/v1/session_templates.proto\x12\x18google.cloud.dataproc.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A'google/cloud/dataproc/v1/sessions.proto\x1A%google/cloud/dataproc/v1/shared.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA9\x01\x0A\x1CCreateSessionTemplateRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'dataproc.googleapis.com/SessionTemplate\x12H\x0A\x10session_template\x18\x03 \x01(\x0B2).google.cloud.dataproc.v1.SessionTemplateB\x03\xE0A\x02\"h\x0A\x1CUpdateSessionTemplateRequest\x12H\x0A\x10session_template\x18\x01 \x01(\x0B2).google.cloud.dataproc.v1.SessionTemplateB\x03\xE0A\x02\"Z\x0A\x19GetSessionTemplateRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'dataproc.googleapis.com/SessionTemplate\"\xA4\x01\x0A\x1BListSessionTemplatesRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'dataproc.googleapis.com/SessionTemplate\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x82\x01\x0A\x1CListSessionTemplatesResponse\x12I\x0A\x11session_templates\x18\x01 \x03(\x0B2).google.cloud.dataproc.v1.SessionTemplateB\x03\xE0A\x03\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"]\x0A\x1CDeleteSessionTemplateRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'dataproc.googleapis.com/SessionTemplate\"\x87\x06\x0A\x0FSessionTemplate\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x08\x12\x18\x0A\x0Bdescription\x18\x09 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x0Fjupyter_session\x18\x03 \x01(\x0B2'.google.cloud.dataproc.v1.JupyterConfigB\x03\xE0A\x01H\x00\x12R\x0A\x15spark_connect_session\x18\x0B \x01(\x0B2,.google.cloud.dataproc.v1.SparkConnectConfigB\x03\xE0A\x01H\x00\x12\x14\x0A\x07creator\x18\x05 \x01(\x09B\x03\xE0A\x03\x12J\x0A\x06labels\x18\x06 \x03(\x0B25.google.cloud.dataproc.v1.SessionTemplate.LabelsEntryB\x03\xE0A\x01\x12D\x0A\x0Eruntime_config\x18\x07 \x01(\x0B2'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xE0A\x01\x12L\x0A\x12environment_config\x18\x08 \x01(\x0B2+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04uuid\x18\x0C \x01(\x09B\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:q\xEAAn\x0A'dataproc.googleapis.com/SessionTemplate\x12Cprojects/{project}/locations/{location}/sessionTemplates/{template}B\x10\x0A\x0Esession_config2\xD8\x09\x0A\x19SessionTemplateController\x12\xE4\x01\x0A\x15CreateSessionTemplate\x126.google.cloud.dataproc.v1.CreateSessionTemplateRequest\x1A).google.cloud.dataproc.v1.SessionTemplate\"h\xDAA\x17parent,session_template\x82\xD3\xE4\x93\x02H\"4/v1/{parent=projects/*/locations/*}/sessionTemplates:\x10session_template\x12\xEE\x01\x0A\x15UpdateSessionTemplate\x126.google.cloud.dataproc.v1.UpdateSessionTemplateRequest\x1A).google.cloud.dataproc.v1.SessionTemplate\"r\xDAA\x10session_template\x82\xD3\xE4\x93\x02Y2E/v1/{session_template.name=projects/*/locations/*/sessionTemplates/*}:\x10session_template\x12\xB9\x01\x0A\x12GetSessionTemplate\x123.google.cloud.dataproc.v1.GetSessionTemplateRequest\x1A).google.cloud.dataproc.v1.SessionTemplate\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1/{name=projects/*/locations/*/sessionTemplates/*}\x12\xCC\x01\x0A\x14ListSessionTemplates\x125.google.cloud.dataproc.v1.ListSessionTemplatesRequest\x1A6.google.cloud.dataproc.v1.ListSessionTemplatesResponse\"E\xDAA\x06parent\x82\xD3\xE4\x93\x026\x124/v1/{parent=projects/*/locations/*}/sessionTemplates\x12\xAC\x01\x0A\x15DeleteSessionTemplate\x126.google.cloud.dataproc.v1.DeleteSessionTemplateRequest\x1A\x16.google.protobuf.Empty\"C\xDAA\x04name\x82\xD3\xE4\x93\x026*4/v1/{name=projects/*/locations/*/sessionTemplates/*}\x1A\xA8\x01\xCAA\x17dataproc.googleapis.com\xD2A\x8A\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataproc,https://www.googleapis.com/auth/dataproc.read-onlyBt\x0A\x1Ccom.google.cloud.dataproc.v1B\x15SessionTemplatesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataproc/metadata/V1/Sessions.php b/Dataproc/metadata/V1/Sessions.php index 859127078df..4553f7f2080 100644 --- a/Dataproc/metadata/V1/Sessions.php +++ b/Dataproc/metadata/V1/Sessions.php @@ -22,7 +22,7 @@ public static function initOnce() { \GPBMetadata\Google\Longrunning\Operations::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xBC\x1D\x0A'google/cloud/dataproc/v1/sessions.proto\x12\x18google.cloud.dataproc.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A%google/cloud/dataproc/v1/shared.proto\x1A#google/longrunning/operations.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xBA\x01\x0A\x14CreateSessionRequest\x127\x0A\x06parent\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x12\x1Fdataproc.googleapis.com/Session\x127\x0A\x07session\x18\x02 \x01(\x0B2!.google.cloud.dataproc.v1.SessionB\x03\xE0A\x02\x12\x17\x0A\x0Asession_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x03\xE0A\x01\"J\x0A\x11GetSessionRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fdataproc.googleapis.com/Session\"\x94\x01\x0A\x13ListSessionsRequest\x127\x0A\x06parent\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x12\x1Fdataproc.googleapis.com/Session\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"i\x0A\x14ListSessionsResponse\x128\x0A\x08sessions\x18\x01 \x03(\x0B2!.google.cloud.dataproc.v1.SessionB\x03\xE0A\x03\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"i\x0A\x17TerminateSessionRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fdataproc.googleapis.com/Session\x12\x17\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x03\xE0A\x01\"f\x0A\x14DeleteSessionRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fdataproc.googleapis.com/Session\x12\x17\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xA7\x0A\x0A\x07Session\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04uuid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x0Fjupyter_session\x18\x04 \x01(\x0B2'.google.cloud.dataproc.v1.JupyterConfigB\x03\xE0A\x01H\x00\x12R\x0A\x15spark_connect_session\x18\x11 \x01(\x0B2,.google.cloud.dataproc.v1.SparkConnectConfigB\x03\xE0A\x01H\x00\x12@\x0A\x0Cruntime_info\x18\x06 \x01(\x0B2%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xE0A\x03\x12;\x0A\x05state\x18\x07 \x01(\x0E2'.google.cloud.dataproc.v1.Session.StateB\x03\xE0A\x03\x12\x1A\x0A\x0Dstate_message\x18\x08 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x14\x0A\x07creator\x18\x0A \x01(\x09B\x03\xE0A\x03\x12B\x0A\x06labels\x18\x0B \x03(\x0B2-.google.cloud.dataproc.v1.Session.LabelsEntryB\x03\xE0A\x01\x12D\x0A\x0Eruntime_config\x18\x0C \x01(\x0B2'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xE0A\x01\x12L\x0A\x12environment_config\x18\x0D \x01(\x0B2+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xE0A\x01\x12\x11\x0A\x04user\x18\x0E \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x0Dstate_history\x18\x0F \x03(\x0B25.google.cloud.dataproc.v1.Session.SessionStateHistoryB\x03\xE0A\x03\x12I\x0A\x10session_template\x18\x10 \x01(\x09B/\xE0A\x01\xFAA)\x0A'dataproc.googleapis.com/SessionTemplate\x1A\xA9\x01\x0A\x13SessionStateHistory\x12;\x0A\x05state\x18\x01 \x01(\x0E2'.google.cloud.dataproc.v1.Session.StateB\x03\xE0A\x03\x12\x1A\x0A\x0Dstate_message\x18\x02 \x01(\x09B\x03\xE0A\x03\x129\x0A\x10state_start_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"e\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CREATING\x10\x01\x12\x0A\x0A\x06ACTIVE\x10\x02\x12\x0F\x0A\x0BTERMINATING\x10\x03\x12\x0E\x0A\x0ATERMINATED\x10\x04\x12\x0A\x0A\x06FAILED\x10\x05:`\xEAA]\x0A\x1Fdataproc.googleapis.com/Session\x12:projects/{project}/locations/{location}/sessions/{session}B\x10\x0A\x0Esession_config\"\xA8\x01\x0A\x0DJupyterConfig\x12C\x0A\x06kernel\x18\x01 \x01(\x0E2..google.cloud.dataproc.v1.JupyterConfig.KernelB\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\"7\x0A\x06Kernel\x12\x16\x0A\x12KERNEL_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PYTHON\x10\x01\x12\x09\x0A\x05SCALA\x10\x02\"\x14\x0A\x12SparkConnectConfig2\xF5\x08\x0A\x11SessionController\x12\xF9\x01\x0A\x0DCreateSession\x12..google.cloud.dataproc.v1.CreateSessionRequest\x1A\x1D.google.longrunning.Operation\"\x98\x01\xCAA<\x0A\x07Session\x121google.cloud.dataproc.v1.SessionOperationMetadata\xDAA\x19parent,session,session_id\x82\xD3\xE4\x93\x027\",/v1/{parent=projects/*/locations/*}/sessions:\x07session\x12\x99\x01\x0A\x0AGetSession\x12+.google.cloud.dataproc.v1.GetSessionRequest\x1A!.google.cloud.dataproc.v1.Session\";\xDAA\x04name\x82\xD3\xE4\x93\x02.\x12,/v1/{name=projects/*/locations/*/sessions/*}\x12\xAC\x01\x0A\x0CListSessions\x12-.google.cloud.dataproc.v1.ListSessionsRequest\x1A..google.cloud.dataproc.v1.ListSessionsResponse\"=\xDAA\x06parent\x82\xD3\xE4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/sessions\x12\xEE\x01\x0A\x10TerminateSession\x121.google.cloud.dataproc.v1.TerminateSessionRequest\x1A\x1D.google.longrunning.Operation\"\x87\x01\xCAA<\x0A\x07Session\x121google.cloud.dataproc.v1.SessionOperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02;\"6/v1/{name=projects/*/locations/*/sessions/*}:terminate:\x01*\x12\xDA\x01\x0A\x0DDeleteSession\x12..google.cloud.dataproc.v1.DeleteSessionRequest\x1A\x1D.google.longrunning.Operation\"z\xCAA<\x0A\x07Session\x121google.cloud.dataproc.v1.SessionOperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02.*,/v1/{name=projects/*/locations/*/sessions/*}\x1AK\xCAA\x17dataproc.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBl\x0A\x1Ccom.google.cloud.dataproc.v1B\x0DSessionsProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3" + "\x0A\x9A\x1E\x0A'google/cloud/dataproc/v1/sessions.proto\x12\x18google.cloud.dataproc.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A%google/cloud/dataproc/v1/shared.proto\x1A#google/longrunning/operations.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xBA\x01\x0A\x14CreateSessionRequest\x127\x0A\x06parent\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x12\x1Fdataproc.googleapis.com/Session\x127\x0A\x07session\x18\x02 \x01(\x0B2!.google.cloud.dataproc.v1.SessionB\x03\xE0A\x02\x12\x17\x0A\x0Asession_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x03\xE0A\x01\"J\x0A\x11GetSessionRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fdataproc.googleapis.com/Session\"\x94\x01\x0A\x13ListSessionsRequest\x127\x0A\x06parent\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x12\x1Fdataproc.googleapis.com/Session\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"i\x0A\x14ListSessionsResponse\x128\x0A\x08sessions\x18\x01 \x03(\x0B2!.google.cloud.dataproc.v1.SessionB\x03\xE0A\x03\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"i\x0A\x17TerminateSessionRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fdataproc.googleapis.com/Session\x12\x17\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x03\xE0A\x01\"f\x0A\x14DeleteSessionRequest\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x02\xFAA!\x0A\x1Fdataproc.googleapis.com/Session\x12\x17\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xA7\x0A\x0A\x07Session\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x11\x0A\x04uuid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x0Fjupyter_session\x18\x04 \x01(\x0B2'.google.cloud.dataproc.v1.JupyterConfigB\x03\xE0A\x01H\x00\x12R\x0A\x15spark_connect_session\x18\x11 \x01(\x0B2,.google.cloud.dataproc.v1.SparkConnectConfigB\x03\xE0A\x01H\x00\x12@\x0A\x0Cruntime_info\x18\x06 \x01(\x0B2%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xE0A\x03\x12;\x0A\x05state\x18\x07 \x01(\x0E2'.google.cloud.dataproc.v1.Session.StateB\x03\xE0A\x03\x12\x1A\x0A\x0Dstate_message\x18\x08 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x14\x0A\x07creator\x18\x0A \x01(\x09B\x03\xE0A\x03\x12B\x0A\x06labels\x18\x0B \x03(\x0B2-.google.cloud.dataproc.v1.Session.LabelsEntryB\x03\xE0A\x01\x12D\x0A\x0Eruntime_config\x18\x0C \x01(\x0B2'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xE0A\x01\x12L\x0A\x12environment_config\x18\x0D \x01(\x0B2+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xE0A\x01\x12\x11\x0A\x04user\x18\x0E \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x0Dstate_history\x18\x0F \x03(\x0B25.google.cloud.dataproc.v1.Session.SessionStateHistoryB\x03\xE0A\x03\x12I\x0A\x10session_template\x18\x10 \x01(\x09B/\xE0A\x01\xFAA)\x0A'dataproc.googleapis.com/SessionTemplate\x1A\xA9\x01\x0A\x13SessionStateHistory\x12;\x0A\x05state\x18\x01 \x01(\x0E2'.google.cloud.dataproc.v1.Session.StateB\x03\xE0A\x03\x12\x1A\x0A\x0Dstate_message\x18\x02 \x01(\x09B\x03\xE0A\x03\x129\x0A\x10state_start_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"e\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CREATING\x10\x01\x12\x0A\x0A\x06ACTIVE\x10\x02\x12\x0F\x0A\x0BTERMINATING\x10\x03\x12\x0E\x0A\x0ATERMINATED\x10\x04\x12\x0A\x0A\x06FAILED\x10\x05:`\xEAA]\x0A\x1Fdataproc.googleapis.com/Session\x12:projects/{project}/locations/{location}/sessions/{session}B\x10\x0A\x0Esession_config\"\xA8\x01\x0A\x0DJupyterConfig\x12C\x0A\x06kernel\x18\x01 \x01(\x0E2..google.cloud.dataproc.v1.JupyterConfig.KernelB\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\"7\x0A\x06Kernel\x12\x16\x0A\x12KERNEL_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PYTHON\x10\x01\x12\x09\x0A\x05SCALA\x10\x02\"\x14\x0A\x12SparkConnectConfig2\xD3\x09\x0A\x11SessionController\x12\xF9\x01\x0A\x0DCreateSession\x12..google.cloud.dataproc.v1.CreateSessionRequest\x1A\x1D.google.longrunning.Operation\"\x98\x01\xCAA<\x0A\x07Session\x121google.cloud.dataproc.v1.SessionOperationMetadata\xDAA\x19parent,session,session_id\x82\xD3\xE4\x93\x027\",/v1/{parent=projects/*/locations/*}/sessions:\x07session\x12\x99\x01\x0A\x0AGetSession\x12+.google.cloud.dataproc.v1.GetSessionRequest\x1A!.google.cloud.dataproc.v1.Session\";\xDAA\x04name\x82\xD3\xE4\x93\x02.\x12,/v1/{name=projects/*/locations/*/sessions/*}\x12\xAC\x01\x0A\x0CListSessions\x12-.google.cloud.dataproc.v1.ListSessionsRequest\x1A..google.cloud.dataproc.v1.ListSessionsResponse\"=\xDAA\x06parent\x82\xD3\xE4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/sessions\x12\xEE\x01\x0A\x10TerminateSession\x121.google.cloud.dataproc.v1.TerminateSessionRequest\x1A\x1D.google.longrunning.Operation\"\x87\x01\xCAA<\x0A\x07Session\x121google.cloud.dataproc.v1.SessionOperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02;\"6/v1/{name=projects/*/locations/*/sessions/*}:terminate:\x01*\x12\xDA\x01\x0A\x0DDeleteSession\x12..google.cloud.dataproc.v1.DeleteSessionRequest\x1A\x1D.google.longrunning.Operation\"z\xCAA<\x0A\x07Session\x121google.cloud.dataproc.v1.SessionOperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02.*,/v1/{name=projects/*/locations/*/sessions/*}\x1A\xA8\x01\xCAA\x17dataproc.googleapis.com\xD2A\x8A\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataproc,https://www.googleapis.com/auth/dataproc.read-onlyBl\x0A\x1Ccom.google.cloud.dataproc.v1B\x0DSessionsProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataproc/metadata/V1/Shared.php b/Dataproc/metadata/V1/Shared.php index 0b9159ce4ea..2003e57dd2a 100644 --- a/Dataproc/metadata/V1/Shared.php +++ b/Dataproc/metadata/V1/Shared.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Duration::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xED(\x0A%google/cloud/dataproc/v1/shared.proto\x12\x18google.cloud.dataproc.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xF5\x02\x0A\x0DRuntimeConfig\x12\x14\x0A\x07version\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fcontainer_image\x18\x02 \x01(\x09B\x03\xE0A\x01\x12P\x0A\x0Aproperties\x18\x03 \x03(\x0B27.google.cloud.dataproc.v1.RuntimeConfig.PropertiesEntryB\x03\xE0A\x01\x12J\x0A\x11repository_config\x18\x05 \x01(\x0B2*.google.cloud.dataproc.v1.RepositoryConfigB\x03\xE0A\x01\x12J\x0A\x11autotuning_config\x18\x06 \x01(\x0B2*.google.cloud.dataproc.v1.AutotuningConfigB\x03\xE0A\x01\x12\x13\x0A\x06cohort\x18\x07 \x01(\x09B\x03\xE0A\x01\x1A1\x0A\x0FPropertiesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xAB\x01\x0A\x11EnvironmentConfig\x12H\x0A\x10execution_config\x18\x01 \x01(\x0B2).google.cloud.dataproc.v1.ExecutionConfigB\x03\xE0A\x01\x12L\x0A\x12peripherals_config\x18\x02 \x01(\x0B2+.google.cloud.dataproc.v1.PeripheralsConfigB\x03\xE0A\x01\"\xF6\x02\x0A\x0FExecutionConfig\x12\x1C\x0A\x0Fservice_account\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Bnetwork_uri\x18\x04 \x01(\x09B\x03\xE0A\x01H\x00\x12\x1D\x0A\x0Esubnetwork_uri\x18\x05 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Cnetwork_tags\x18\x06 \x03(\x09B\x03\xE0A\x01\x12\x14\x0A\x07kms_key\x18\x07 \x01(\x09B\x03\xE0A\x01\x120\x0A\x08idle_ttl\x18\x08 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12+\x0A\x03ttl\x18\x09 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12\x1B\x0A\x0Estaging_bucket\x18\x0A \x01(\x09B\x03\xE0A\x01\x12R\x0A\x15authentication_config\x18\x0B \x01(\x0B2..google.cloud.dataproc.v1.AuthenticationConfigB\x03\xE0A\x01B\x09\x0A\x07network\"9\x0A\x18SparkHistoryServerConfig\x12\x1D\x0A\x10dataproc_cluster\x18\x01 \x01(\x09B\x03\xE0A\x01\"\xB6\x01\x0A\x11PeripheralsConfig\x12C\x0A\x11metastore_service\x18\x01 \x01(\x09B(\xE0A\x01\xFAA\"\x0A metastore.googleapis.com/Service\x12\\\x0A\x1Bspark_history_server_config\x18\x02 \x01(\x0B22.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xE0A\x01\"\xD7\x02\x0A\x0BRuntimeInfo\x12L\x0A\x09endpoints\x18\x01 \x03(\x0B24.google.cloud.dataproc.v1.RuntimeInfo.EndpointsEntryB\x03\xE0A\x03\x12\x17\x0A\x0Aoutput_uri\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\"\x0A\x15diagnostic_output_uri\x18\x03 \x01(\x09B\x03\xE0A\x03\x12F\x0A\x11approximate_usage\x18\x06 \x01(\x0B2&.google.cloud.dataproc.v1.UsageMetricsB\x03\xE0A\x03\x12C\x0A\x0Dcurrent_usage\x18\x07 \x01(\x0B2'.google.cloud.dataproc.v1.UsageSnapshotB\x03\xE0A\x03\x1A0\x0A\x0EEndpointsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x9E\x01\x0A\x0CUsageMetrics\x12\x1E\x0A\x11milli_dcu_seconds\x18\x01 \x01(\x03B\x03\xE0A\x01\x12'\x0A\x1Ashuffle_storage_gb_seconds\x18\x02 \x01(\x03B\x03\xE0A\x01\x12&\x0A\x19milli_accelerator_seconds\x18\x03 \x01(\x03B\x03\xE0A\x01\x12\x1D\x0A\x10accelerator_type\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x88\x02\x0A\x0DUsageSnapshot\x12\x16\x0A\x09milli_dcu\x18\x01 \x01(\x03B\x03\xE0A\x01\x12\x1F\x0A\x12shuffle_storage_gb\x18\x02 \x01(\x03B\x03\xE0A\x01\x12\x1E\x0A\x11milli_dcu_premium\x18\x04 \x01(\x03B\x03\xE0A\x01\x12'\x0A\x1Ashuffle_storage_gb_premium\x18\x05 \x01(\x03B\x03\xE0A\x01\x12\x1E\x0A\x11milli_accelerator\x18\x06 \x01(\x03B\x03\xE0A\x01\x12\x1D\x0A\x10accelerator_type\x18\x07 \x01(\x09B\x03\xE0A\x01\x126\x0A\x0Dsnapshot_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\"\xA4\x01\x0A\x10GkeClusterConfig\x12D\x0A\x12gke_cluster_target\x18\x02 \x01(\x09B(\xE0A\x01\xFAA\"\x0A container.googleapis.com/Cluster\x12J\x0A\x10node_pool_target\x18\x03 \x03(\x0B2+.google.cloud.dataproc.v1.GkeNodePoolTargetB\x03\xE0A\x01\"\xF2\x01\x0A\x17KubernetesClusterConfig\x12!\x0A\x14kubernetes_namespace\x18\x01 \x01(\x09B\x03\xE0A\x01\x12M\x0A\x12gke_cluster_config\x18\x02 \x01(\x0B2*.google.cloud.dataproc.v1.GkeClusterConfigB\x03\xE0A\x02H\x00\x12[\x0A\x1Akubernetes_software_config\x18\x03 \x01(\x0B22.google.cloud.dataproc.v1.KubernetesSoftwareConfigB\x03\xE0A\x01B\x08\x0A\x06config\"\xC3\x02\x0A\x18KubernetesSoftwareConfig\x12c\x0A\x11component_version\x18\x01 \x03(\x0B2H.google.cloud.dataproc.v1.KubernetesSoftwareConfig.ComponentVersionEntry\x12V\x0A\x0Aproperties\x18\x02 \x03(\x0B2B.google.cloud.dataproc.v1.KubernetesSoftwareConfig.PropertiesEntry\x1A7\x0A\x15ComponentVersionEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A1\x0A\x0FPropertiesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x9E\x02\x0A\x11GkeNodePoolTarget\x12\x16\x0A\x09node_pool\x18\x01 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x05roles\x18\x02 \x03(\x0E20.google.cloud.dataproc.v1.GkeNodePoolTarget.RoleB\x03\xE0A\x02\x12J\x0A\x10node_pool_config\x18\x03 \x01(\x0B2+.google.cloud.dataproc.v1.GkeNodePoolConfigB\x03\xE0A\x04\"_\x0A\x04Role\x12\x14\x0A\x10ROLE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07DEFAULT\x10\x01\x12\x0E\x0A\x0ACONTROLLER\x10\x02\x12\x10\x0A\x0CSPARK_DRIVER\x10\x03\x12\x12\x0A\x0ESPARK_EXECUTOR\x10\x04\"\xBC\x05\x0A\x11GkeNodePoolConfig\x12N\x0A\x06config\x18\x02 \x01(\x0B29.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigB\x03\xE0A\x01\x12\x16\x0A\x09locations\x18\x0D \x03(\x09B\x03\xE0A\x01\x12b\x0A\x0Bautoscaling\x18\x04 \x01(\x0B2H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigB\x03\xE0A\x01\x1A\x99\x02\x0A\x0DGkeNodeConfig\x12\x19\x0A\x0Cmachine_type\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Flocal_ssd_count\x18\x07 \x01(\x05B\x03\xE0A\x01\x12\x18\x0A\x0Bpreemptible\x18\x0A \x01(\x08B\x03\xE0A\x01\x12c\x0A\x0Caccelerators\x18\x0B \x03(\x0B2H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigB\x03\xE0A\x01\x12\x1D\x0A\x10min_cpu_platform\x18\x0D \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11boot_disk_kms_key\x18\x17 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04spot\x18 \x01(\x08B\x03\xE0A\x01\x1Ao\x0A\x1CGkeNodePoolAcceleratorConfig\x12\x19\x0A\x11accelerator_count\x18\x01 \x01(\x03\x12\x18\x0A\x10accelerator_type\x18\x02 \x01(\x09\x12\x1A\x0A\x12gpu_partition_size\x18\x03 \x01(\x09\x1AN\x0A\x1CGkeNodePoolAutoscalingConfig\x12\x16\x0A\x0Emin_node_count\x18\x02 \x01(\x05\x12\x16\x0A\x0Emax_node_count\x18\x03 \x01(\x05\"\xF3\x01\x0A\x14AuthenticationConfig\x12q\x0A!user_workload_authentication_type\x18\x01 \x01(\x0E2A.google.cloud.dataproc.v1.AuthenticationConfig.AuthenticationTypeB\x03\xE0A\x01\"h\x0A\x12AuthenticationType\x12#\x0A\x1FAUTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSERVICE_ACCOUNT\x10\x01\x12\x18\x0A\x14END_USER_CREDENTIALS\x10\x02\"\xCB\x01\x0A\x10AutotuningConfig\x12K\x0A\x09scenarios\x18\x02 \x03(\x0E23.google.cloud.dataproc.v1.AutotuningConfig.ScenarioB\x03\xE0A\x01\"j\x0A\x08Scenario\x12\x18\x0A\x14SCENARIO_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07SCALING\x10\x02\x12\x17\x0A\x13BROADCAST_HASH_JOIN\x10\x03\x12\x0A\x0A\x06MEMORY\x10\x04\x12\x08\x0A\x04NONE\x10\x05\x12\x08\x0A\x04AUTO\x10\x06\"g\x0A\x10RepositoryConfig\x12S\x0A\x16pypi_repository_config\x18\x01 \x01(\x0B2..google.cloud.dataproc.v1.PyPiRepositoryConfigB\x03\xE0A\x01\"4\x0A\x14PyPiRepositoryConfig\x12\x1C\x0A\x0Fpypi_repository\x18\x01 \x01(\x09B\x03\xE0A\x01*\x91\x02\x0A\x09Component\x12\x19\x0A\x15COMPONENT_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08ANACONDA\x10\x05\x12\x09\x0A\x05DELTA\x10\x14\x12\x0A\x0A\x06DOCKER\x10\x0D\x12\x09\x0A\x05DRUID\x10\x09\x12\x09\x0A\x05FLINK\x10\x0E\x12\x09\x0A\x05HBASE\x10\x0B\x12\x10\x0A\x0CHIVE_WEBHCAT\x10\x03\x12\x08\x0A\x04HUDI\x10\x12\x12\x0B\x0A\x07ICEBERG\x10\x13\x12\x0B\x0A\x07JUPYTER\x10\x01\x12\x1A\x0A\x16JUPYTER_KERNEL_GATEWAY\x10\x16\x12\x07\x0A\x03PIG\x10\x15\x12\x0A\x0A\x06PRESTO\x10\x06\x12\x09\x0A\x05TRINO\x10\x11\x12\x0A\x0A\x06RANGER\x10\x0C\x12\x08\x0A\x04SOLR\x10\x0A\x12\x0C\x0A\x08ZEPPELIN\x10\x04\x12\x0D\x0A\x09ZOOKEEPER\x10\x08*J\x0A\x0DFailureAction\x12\x1E\x0A\x1AFAILURE_ACTION_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NO_ACTION\x10\x01\x12\x0A\x0A\x06DELETE\x10\x02B\xA7\x03\x0A\x1Ccom.google.cloud.dataproc.v1B\x0BSharedProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xEAA^\x0A container.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\xEAA^\x0A metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}\xEAAx\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" + "\x0A\x93+\x0A%google/cloud/dataproc/v1/shared.proto\x12\x18google.cloud.dataproc.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xF5\x02\x0A\x0DRuntimeConfig\x12\x14\x0A\x07version\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fcontainer_image\x18\x02 \x01(\x09B\x03\xE0A\x01\x12P\x0A\x0Aproperties\x18\x03 \x03(\x0B27.google.cloud.dataproc.v1.RuntimeConfig.PropertiesEntryB\x03\xE0A\x01\x12J\x0A\x11repository_config\x18\x05 \x01(\x0B2*.google.cloud.dataproc.v1.RepositoryConfigB\x03\xE0A\x01\x12J\x0A\x11autotuning_config\x18\x06 \x01(\x0B2*.google.cloud.dataproc.v1.AutotuningConfigB\x03\xE0A\x01\x12\x13\x0A\x06cohort\x18\x07 \x01(\x09B\x03\xE0A\x01\x1A1\x0A\x0FPropertiesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xAB\x01\x0A\x11EnvironmentConfig\x12H\x0A\x10execution_config\x18\x01 \x01(\x0B2).google.cloud.dataproc.v1.ExecutionConfigB\x03\xE0A\x01\x12L\x0A\x12peripherals_config\x18\x02 \x01(\x0B2+.google.cloud.dataproc.v1.PeripheralsConfigB\x03\xE0A\x01\"\xC0\x04\x0A\x0FExecutionConfig\x12\x1C\x0A\x0Fservice_account\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Bnetwork_uri\x18\x04 \x01(\x09B\x03\xE0A\x01H\x00\x12\x1D\x0A\x0Esubnetwork_uri\x18\x05 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Cnetwork_tags\x18\x06 \x03(\x09B\x03\xE0A\x01\x12:\x0A\x07kms_key\x18\x07 \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x120\x0A\x08idle_ttl\x18\x08 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12+\x0A\x03ttl\x18\x09 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12\x1B\x0A\x0Estaging_bucket\x18\x0A \x01(\x09B\x03\xE0A\x01\x12R\x0A\x15authentication_config\x18\x0B \x01(\x0B2..google.cloud.dataproc.v1.AuthenticationConfigB\x03\xE0A\x01\x12f\x0A\x15resource_manager_tags\x18\x0C \x03(\x0B2B.google.cloud.dataproc.v1.ExecutionConfig.ResourceManagerTagsEntryB\x03\xE0A\x01\x1A:\x0A\x18ResourceManagerTagsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x09\x0A\x07network\"9\x0A\x18SparkHistoryServerConfig\x12\x1D\x0A\x10dataproc_cluster\x18\x01 \x01(\x09B\x03\xE0A\x01\"\xB6\x01\x0A\x11PeripheralsConfig\x12C\x0A\x11metastore_service\x18\x01 \x01(\x09B(\xE0A\x01\xFAA\"\x0A metastore.googleapis.com/Service\x12\\\x0A\x1Bspark_history_server_config\x18\x02 \x01(\x0B22.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xE0A\x01\"\xD7\x02\x0A\x0BRuntimeInfo\x12L\x0A\x09endpoints\x18\x01 \x03(\x0B24.google.cloud.dataproc.v1.RuntimeInfo.EndpointsEntryB\x03\xE0A\x03\x12\x17\x0A\x0Aoutput_uri\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\"\x0A\x15diagnostic_output_uri\x18\x03 \x01(\x09B\x03\xE0A\x03\x12F\x0A\x11approximate_usage\x18\x06 \x01(\x0B2&.google.cloud.dataproc.v1.UsageMetricsB\x03\xE0A\x03\x12C\x0A\x0Dcurrent_usage\x18\x07 \x01(\x0B2'.google.cloud.dataproc.v1.UsageSnapshotB\x03\xE0A\x03\x1A0\x0A\x0EEndpointsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xD4\x01\x0A\x0CUsageMetrics\x12\x1E\x0A\x11milli_dcu_seconds\x18\x01 \x01(\x03B\x03\xE0A\x01\x12'\x0A\x1Ashuffle_storage_gb_seconds\x18\x02 \x01(\x03B\x03\xE0A\x01\x12&\x0A\x19milli_accelerator_seconds\x18\x03 \x01(\x03B\x03\xE0A\x01\x12\x1D\x0A\x10accelerator_type\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\"\x88\x02\x0A\x0DUsageSnapshot\x12\x16\x0A\x09milli_dcu\x18\x01 \x01(\x03B\x03\xE0A\x01\x12\x1F\x0A\x12shuffle_storage_gb\x18\x02 \x01(\x03B\x03\xE0A\x01\x12\x1E\x0A\x11milli_dcu_premium\x18\x04 \x01(\x03B\x03\xE0A\x01\x12'\x0A\x1Ashuffle_storage_gb_premium\x18\x05 \x01(\x03B\x03\xE0A\x01\x12\x1E\x0A\x11milli_accelerator\x18\x06 \x01(\x03B\x03\xE0A\x01\x12\x1D\x0A\x10accelerator_type\x18\x07 \x01(\x09B\x03\xE0A\x01\x126\x0A\x0Dsnapshot_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\"\xA4\x01\x0A\x10GkeClusterConfig\x12D\x0A\x12gke_cluster_target\x18\x02 \x01(\x09B(\xE0A\x01\xFAA\"\x0A container.googleapis.com/Cluster\x12J\x0A\x10node_pool_target\x18\x03 \x03(\x0B2+.google.cloud.dataproc.v1.GkeNodePoolTargetB\x03\xE0A\x01\"\xF2\x01\x0A\x17KubernetesClusterConfig\x12!\x0A\x14kubernetes_namespace\x18\x01 \x01(\x09B\x03\xE0A\x01\x12M\x0A\x12gke_cluster_config\x18\x02 \x01(\x0B2*.google.cloud.dataproc.v1.GkeClusterConfigB\x03\xE0A\x02H\x00\x12[\x0A\x1Akubernetes_software_config\x18\x03 \x01(\x0B22.google.cloud.dataproc.v1.KubernetesSoftwareConfigB\x03\xE0A\x01B\x08\x0A\x06config\"\xC3\x02\x0A\x18KubernetesSoftwareConfig\x12c\x0A\x11component_version\x18\x01 \x03(\x0B2H.google.cloud.dataproc.v1.KubernetesSoftwareConfig.ComponentVersionEntry\x12V\x0A\x0Aproperties\x18\x02 \x03(\x0B2B.google.cloud.dataproc.v1.KubernetesSoftwareConfig.PropertiesEntry\x1A7\x0A\x15ComponentVersionEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A1\x0A\x0FPropertiesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x9E\x02\x0A\x11GkeNodePoolTarget\x12\x16\x0A\x09node_pool\x18\x01 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x05roles\x18\x02 \x03(\x0E20.google.cloud.dataproc.v1.GkeNodePoolTarget.RoleB\x03\xE0A\x02\x12J\x0A\x10node_pool_config\x18\x03 \x01(\x0B2+.google.cloud.dataproc.v1.GkeNodePoolConfigB\x03\xE0A\x04\"_\x0A\x04Role\x12\x14\x0A\x10ROLE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07DEFAULT\x10\x01\x12\x0E\x0A\x0ACONTROLLER\x10\x02\x12\x10\x0A\x0CSPARK_DRIVER\x10\x03\x12\x12\x0A\x0ESPARK_EXECUTOR\x10\x04\"\xE2\x05\x0A\x11GkeNodePoolConfig\x12N\x0A\x06config\x18\x02 \x01(\x0B29.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigB\x03\xE0A\x01\x12\x16\x0A\x09locations\x18\x0D \x03(\x09B\x03\xE0A\x01\x12b\x0A\x0Bautoscaling\x18\x04 \x01(\x0B2H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigB\x03\xE0A\x01\x1A\xBF\x02\x0A\x0DGkeNodeConfig\x12\x19\x0A\x0Cmachine_type\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Flocal_ssd_count\x18\x07 \x01(\x05B\x03\xE0A\x01\x12\x18\x0A\x0Bpreemptible\x18\x0A \x01(\x08B\x03\xE0A\x01\x12c\x0A\x0Caccelerators\x18\x0B \x03(\x0B2H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigB\x03\xE0A\x01\x12\x1D\x0A\x10min_cpu_platform\x18\x0D \x01(\x09B\x03\xE0A\x01\x12D\x0A\x11boot_disk_kms_key\x18\x17 \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12\x11\x0A\x04spot\x18 \x01(\x08B\x03\xE0A\x01\x1Ao\x0A\x1CGkeNodePoolAcceleratorConfig\x12\x19\x0A\x11accelerator_count\x18\x01 \x01(\x03\x12\x18\x0A\x10accelerator_type\x18\x02 \x01(\x09\x12\x1A\x0A\x12gpu_partition_size\x18\x03 \x01(\x09\x1AN\x0A\x1CGkeNodePoolAutoscalingConfig\x12\x16\x0A\x0Emin_node_count\x18\x02 \x01(\x05\x12\x16\x0A\x0Emax_node_count\x18\x03 \x01(\x05\"\xF3\x01\x0A\x14AuthenticationConfig\x12q\x0A!user_workload_authentication_type\x18\x01 \x01(\x0E2A.google.cloud.dataproc.v1.AuthenticationConfig.AuthenticationTypeB\x03\xE0A\x01\"h\x0A\x12AuthenticationType\x12#\x0A\x1FAUTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSERVICE_ACCOUNT\x10\x01\x12\x18\x0A\x14END_USER_CREDENTIALS\x10\x02\"\xCB\x01\x0A\x10AutotuningConfig\x12K\x0A\x09scenarios\x18\x02 \x03(\x0E23.google.cloud.dataproc.v1.AutotuningConfig.ScenarioB\x03\xE0A\x01\"j\x0A\x08Scenario\x12\x18\x0A\x14SCENARIO_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07SCALING\x10\x02\x12\x17\x0A\x13BROADCAST_HASH_JOIN\x10\x03\x12\x0A\x0A\x06MEMORY\x10\x04\x12\x08\x0A\x04NONE\x10\x05\x12\x08\x0A\x04AUTO\x10\x06\"g\x0A\x10RepositoryConfig\x12S\x0A\x16pypi_repository_config\x18\x01 \x01(\x0B2..google.cloud.dataproc.v1.PyPiRepositoryConfigB\x03\xE0A\x01\"4\x0A\x14PyPiRepositoryConfig\x12\x1C\x0A\x0Fpypi_repository\x18\x01 \x01(\x09B\x03\xE0A\x01*\x91\x02\x0A\x09Component\x12\x19\x0A\x15COMPONENT_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08ANACONDA\x10\x05\x12\x09\x0A\x05DELTA\x10\x14\x12\x0A\x0A\x06DOCKER\x10\x0D\x12\x09\x0A\x05DRUID\x10\x09\x12\x09\x0A\x05FLINK\x10\x0E\x12\x09\x0A\x05HBASE\x10\x0B\x12\x10\x0A\x0CHIVE_WEBHCAT\x10\x03\x12\x08\x0A\x04HUDI\x10\x12\x12\x0B\x0A\x07ICEBERG\x10\x13\x12\x0B\x0A\x07JUPYTER\x10\x01\x12\x07\x0A\x03PIG\x10\x15\x12\x0A\x0A\x06PRESTO\x10\x06\x12\x09\x0A\x05TRINO\x10\x11\x12\x0A\x0A\x06RANGER\x10\x0C\x12\x08\x0A\x04SOLR\x10\x0A\x12\x0C\x0A\x08ZEPPELIN\x10\x04\x12\x0D\x0A\x09ZOOKEEPER\x10\x08\x12\x1A\x0A\x16JUPYTER_KERNEL_GATEWAY\x10\x16*J\x0A\x0DFailureAction\x12\x1E\x0A\x1AFAILURE_ACTION_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NO_ACTION\x10\x01\x12\x0A\x0A\x06DELETE\x10\x02B\xA7\x03\x0A\x1Ccom.google.cloud.dataproc.v1B\x0BSharedProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xEAA^\x0A container.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\xEAA^\x0A metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}\xEAAx\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataproc/samples/V1/BatchControllerClient/delete_batch.php b/Dataproc/samples/V1/BatchControllerClient/delete_batch.php index cc8383037a4..8e156369f93 100644 --- a/Dataproc/samples/V1/BatchControllerClient/delete_batch.php +++ b/Dataproc/samples/V1/BatchControllerClient/delete_batch.php @@ -28,8 +28,10 @@ use Google\Cloud\Dataproc\V1\DeleteBatchRequest; /** - * Deletes the batch workload resource. If the batch is not in terminal state, - * the delete fails and the response returns `FAILED_PRECONDITION`. + * Deletes the batch workload resource. If the batch is not in a + * `CANCELLED`, `SUCCEEDED` or `FAILED` + * [`State`][google.cloud.dataproc.v1.Batch.State], the delete operation fails + * and the response returns `FAILED_PRECONDITION`. * * @param string $formattedName The fully qualified name of the batch to retrieve * in the format diff --git a/Dataproc/samples/V1/SessionControllerClient/create_session.php b/Dataproc/samples/V1/SessionControllerClient/create_session.php index af43f2d4cf5..14a15a043e4 100644 --- a/Dataproc/samples/V1/SessionControllerClient/create_session.php +++ b/Dataproc/samples/V1/SessionControllerClient/create_session.php @@ -35,24 +35,19 @@ * * @param string $formattedParent The parent resource where this session will be created. Please see * {@see SessionControllerClient::locationName()} for help formatting this field. - * @param string $sessionName The resource name of the session. * @param string $sessionId The ID to use for the session, which becomes the final component * of the session's resource name. * * This value must be 4-63 characters. Valid characters * are /[a-z][0-9]-/. */ -function create_session_sample( - string $formattedParent, - string $sessionName, - string $sessionId -): void { +function create_session_sample(string $formattedParent, string $sessionId): void +{ // Create a client. $sessionControllerClient = new SessionControllerClient(); // Prepare the request message. - $session = (new Session()) - ->setName($sessionName); + $session = new Session(); $request = (new CreateSessionRequest()) ->setParent($formattedParent) ->setSession($session) @@ -90,9 +85,8 @@ function create_session_sample( function callSample(): void { $formattedParent = SessionControllerClient::locationName('[PROJECT]', '[LOCATION]'); - $sessionName = '[NAME]'; $sessionId = '[SESSION_ID]'; - create_session_sample($formattedParent, $sessionName, $sessionId); + create_session_sample($formattedParent, $sessionId); } // [END dataproc_v1_generated_SessionController_CreateSession_sync] diff --git a/Dataproc/samples/V1/SessionTemplateControllerClient/create_session_template.php b/Dataproc/samples/V1/SessionTemplateControllerClient/create_session_template.php index 86b276bc9c9..9dc9e621b60 100644 --- a/Dataproc/samples/V1/SessionTemplateControllerClient/create_session_template.php +++ b/Dataproc/samples/V1/SessionTemplateControllerClient/create_session_template.php @@ -33,7 +33,7 @@ * * @param string $formattedParent The parent resource where this session template will be created. Please see * {@see SessionTemplateControllerClient::locationName()} for help formatting this field. - * @param string $sessionTemplateName The resource name of the session template. + * @param string $sessionTemplateName Identifier. The resource name of the session template. */ function create_session_template_sample( string $formattedParent, diff --git a/Dataproc/samples/V1/SessionTemplateControllerClient/update_session_template.php b/Dataproc/samples/V1/SessionTemplateControllerClient/update_session_template.php index 541516e5afc..190ea22dd7b 100644 --- a/Dataproc/samples/V1/SessionTemplateControllerClient/update_session_template.php +++ b/Dataproc/samples/V1/SessionTemplateControllerClient/update_session_template.php @@ -31,7 +31,7 @@ /** * Updates the session template synchronously. * - * @param string $sessionTemplateName The resource name of the session template. + * @param string $sessionTemplateName Identifier. The resource name of the session template. */ function update_session_template_sample(string $sessionTemplateName): void { diff --git a/Dataproc/src/V1/Batch.php b/Dataproc/src/V1/Batch.php index 50167ad9f40..d899dff24e7 100644 --- a/Dataproc/src/V1/Batch.php +++ b/Dataproc/src/V1/Batch.php @@ -124,6 +124,8 @@ class Batch extends \Google\Protobuf\Internal\Message * Optional. SparkR batch config. * @type \Google\Cloud\Dataproc\V1\SparkSqlBatch $spark_sql_batch * Optional. SparkSql batch config. + * @type \Google\Cloud\Dataproc\V1\PySparkNotebookBatch $pyspark_notebook_batch + * Optional. PySpark notebook batch config. * @type \Google\Cloud\Dataproc\V1\RuntimeInfo $runtime_info * Output only. Runtime information about batch execution. * @type int $state @@ -372,6 +374,37 @@ public function setSparkSqlBatch($var) return $this; } + /** + * Optional. PySpark notebook batch config. + * + * Generated from protobuf field .google.cloud.dataproc.v1.PySparkNotebookBatch pyspark_notebook_batch = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataproc\V1\PySparkNotebookBatch|null + */ + public function getPysparkNotebookBatch() + { + return $this->readOneof(19); + } + + public function hasPysparkNotebookBatch() + { + return $this->hasOneof(19); + } + + /** + * Optional. PySpark notebook batch config. + * + * Generated from protobuf field .google.cloud.dataproc.v1.PySparkNotebookBatch pyspark_notebook_batch = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataproc\V1\PySparkNotebookBatch $var + * @return $this + */ + public function setPysparkNotebookBatch($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1\PySparkNotebookBatch::class); + $this->writeOneof(19, $var); + + return $this; + } + /** * Output only. Runtime information about batch execution. * diff --git a/Dataproc/src/V1/Client/BatchControllerClient.php b/Dataproc/src/V1/Client/BatchControllerClient.php index 05f36c5377b..4951a626c34 100644 --- a/Dataproc/src/V1/Client/BatchControllerClient.php +++ b/Dataproc/src/V1/Client/BatchControllerClient.php @@ -94,7 +94,11 @@ final class BatchControllerClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dataproc', + 'https://www.googleapis.com/auth/dataproc.read-only', + ]; private $operationsClient; @@ -184,6 +188,27 @@ public static function batchName(string $project, string $location, string $batc ]); } + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -225,6 +250,7 @@ public static function serviceName(string $project, string $location, string $se * The following name formats are supported: * Template: Pattern * - batch: projects/{project}/locations/{location}/batches/{batch} + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} * - location: projects/{project}/locations/{location} * - service: projects/{project}/locations/{location}/services/{service} * @@ -359,8 +385,10 @@ public function createBatch(CreateBatchRequest $request, array $callOptions = [] } /** - * Deletes the batch workload resource. If the batch is not in terminal state, - * the delete fails and the response returns `FAILED_PRECONDITION`. + * Deletes the batch workload resource. If the batch is not in a + * `CANCELLED`, `SUCCEEDED` or `FAILED` + * [`State`][google.cloud.dataproc.v1.Batch.State], the delete operation fails + * and the response returns `FAILED_PRECONDITION`. * * The async variant is {@see BatchControllerClient::deleteBatchAsync()} . * diff --git a/Dataproc/src/V1/Client/SessionControllerClient.php b/Dataproc/src/V1/Client/SessionControllerClient.php index 7dfe4f0a988..6227e5ed062 100644 --- a/Dataproc/src/V1/Client/SessionControllerClient.php +++ b/Dataproc/src/V1/Client/SessionControllerClient.php @@ -96,7 +96,11 @@ final class SessionControllerClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dataproc', + 'https://www.googleapis.com/auth/dataproc.read-only', + ]; private $operationsClient; @@ -167,6 +171,27 @@ private function createOperationsClient(array $options) return new OperationsClient($options); } + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -245,6 +270,7 @@ public static function sessionTemplateName(string $project, string $location, st * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} * - location: projects/{project}/locations/{location} * - service: projects/{project}/locations/{location}/services/{service} * - session: projects/{project}/locations/{location}/sessions/{session} diff --git a/Dataproc/src/V1/Client/SessionTemplateControllerClient.php b/Dataproc/src/V1/Client/SessionTemplateControllerClient.php index d6d6dfad2fa..f3a1e6ceac7 100644 --- a/Dataproc/src/V1/Client/SessionTemplateControllerClient.php +++ b/Dataproc/src/V1/Client/SessionTemplateControllerClient.php @@ -93,7 +93,11 @@ final class SessionTemplateControllerClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dataproc', + 'https://www.googleapis.com/auth/dataproc.read-only', + ]; private static function getClientDefaults() { @@ -115,6 +119,27 @@ private static function getClientDefaults() ]; } + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -174,6 +199,7 @@ public static function sessionTemplateName(string $project, string $location, st * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} * - location: projects/{project}/locations/{location} * - service: projects/{project}/locations/{location}/services/{service} * - sessionTemplate: projects/{project}/locations/{location}/sessionTemplates/{template} diff --git a/Dataproc/src/V1/Component.php b/Dataproc/src/V1/Component.php index 13c60950e48..a8617a733b3 100644 --- a/Dataproc/src/V1/Component.php +++ b/Dataproc/src/V1/Component.php @@ -83,12 +83,6 @@ class Component * Generated from protobuf enum JUPYTER = 1; */ const JUPYTER = 1; - /** - * The Jupyter Kernel Gateway. - * - * Generated from protobuf enum JUPYTER_KERNEL_GATEWAY = 22; - */ - const JUPYTER_KERNEL_GATEWAY = 22; /** * The Pig component. * @@ -131,6 +125,12 @@ class Component * Generated from protobuf enum ZOOKEEPER = 8; */ const ZOOKEEPER = 8; + /** + * The Jupyter Kernel Gateway. + * + * Generated from protobuf enum JUPYTER_KERNEL_GATEWAY = 22; + */ + const JUPYTER_KERNEL_GATEWAY = 22; private static $valueToName = [ self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', @@ -144,7 +144,6 @@ class Component self::HUDI => 'HUDI', self::ICEBERG => 'ICEBERG', self::JUPYTER => 'JUPYTER', - self::JUPYTER_KERNEL_GATEWAY => 'JUPYTER_KERNEL_GATEWAY', self::PIG => 'PIG', self::PRESTO => 'PRESTO', self::TRINO => 'TRINO', @@ -152,6 +151,7 @@ class Component self::SOLR => 'SOLR', self::ZEPPELIN => 'ZEPPELIN', self::ZOOKEEPER => 'ZOOKEEPER', + self::JUPYTER_KERNEL_GATEWAY => 'JUPYTER_KERNEL_GATEWAY', ]; public static function name($value) diff --git a/Dataproc/src/V1/CreateBatchRequest.php b/Dataproc/src/V1/CreateBatchRequest.php index 6217d94b819..76aaa29f499 100644 --- a/Dataproc/src/V1/CreateBatchRequest.php +++ b/Dataproc/src/V1/CreateBatchRequest.php @@ -38,10 +38,9 @@ class CreateBatchRequest extends \Google\Protobuf\Internal\Message /** * Optional. A unique ID used to identify the request. If the service * receives two - * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s - * with the same request_id, the second request is ignored and the - * Operation that corresponds to the first Batch created and stored - * in the backend is returned. + * `CreateBatchRequests` with the same `request_id`, the second request is + * ignored and the operation that corresponds to the first Batch created and + * stored in the backend is returned. * Recommendation: Set this value to a * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). * The value must contain only letters (a-z, A-Z), numbers (0-9), @@ -89,10 +88,9 @@ public static function build(string $parent, \Google\Cloud\Dataproc\V1\Batch $ba * @type string $request_id * Optional. A unique ID used to identify the request. If the service * receives two - * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s - * with the same request_id, the second request is ignored and the - * Operation that corresponds to the first Batch created and stored - * in the backend is returned. + * `CreateBatchRequests` with the same `request_id`, the second request is + * ignored and the operation that corresponds to the first Batch created and + * stored in the backend is returned. * Recommendation: Set this value to a * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). * The value must contain only letters (a-z, A-Z), numbers (0-9), @@ -199,10 +197,9 @@ public function setBatchId($var) /** * Optional. A unique ID used to identify the request. If the service * receives two - * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s - * with the same request_id, the second request is ignored and the - * Operation that corresponds to the first Batch created and stored - * in the backend is returned. + * `CreateBatchRequests` with the same `request_id`, the second request is + * ignored and the operation that corresponds to the first Batch created and + * stored in the backend is returned. * Recommendation: Set this value to a * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). * The value must contain only letters (a-z, A-Z), numbers (0-9), @@ -219,10 +216,9 @@ public function getRequestId() /** * Optional. A unique ID used to identify the request. If the service * receives two - * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s - * with the same request_id, the second request is ignored and the - * Operation that corresponds to the first Batch created and stored - * in the backend is returned. + * `CreateBatchRequests` with the same `request_id`, the second request is + * ignored and the operation that corresponds to the first Batch created and + * stored in the backend is returned. * Recommendation: Set this value to a * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). * The value must contain only letters (a-z, A-Z), numbers (0-9), diff --git a/Dataproc/src/V1/ExecutionConfig.php b/Dataproc/src/V1/ExecutionConfig.php index bc9f5dd77ee..28ca6580439 100644 --- a/Dataproc/src/V1/ExecutionConfig.php +++ b/Dataproc/src/V1/ExecutionConfig.php @@ -30,7 +30,7 @@ class ExecutionConfig extends \Google\Protobuf\Internal\Message /** * Optional. The Cloud KMS key to use for encryption. * - * Generated from protobuf field string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { */ protected $kms_key = ''; /** @@ -89,6 +89,17 @@ class ExecutionConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.dataproc.v1.AuthenticationConfig authentication_config = 11 [(.google.api.field_behavior) = OPTIONAL]; */ protected $authentication_config = null; + /** + * Optional. Associates Resource Manager tags with the workload nodes. + * There is a max limit of 30 tags. + * Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}`, or in namespaced + * format, such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. + * + * Generated from protobuf field map resource_manager_tags = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $resource_manager_tags; protected $network; /** @@ -147,6 +158,13 @@ class ExecutionConfig extends \Google\Protobuf\Internal\Message * the workload execution. The config specifies the type of identity * (service account or user) that will be used by workloads to access * resources on the project(s). + * @type array|\Google\Protobuf\Internal\MapField $resource_manager_tags + * Optional. Associates Resource Manager tags with the workload nodes. + * There is a max limit of 30 tags. + * Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}`, or in namespaced + * format, such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. * } */ public function __construct($data = NULL) { @@ -271,7 +289,7 @@ public function setNetworkTags($var) /** * Optional. The Cloud KMS key to use for encryption. * - * Generated from protobuf field string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { * @return string */ public function getKmsKey() @@ -282,7 +300,7 @@ public function getKmsKey() /** * Optional. The Cloud KMS key to use for encryption. * - * Generated from protobuf field string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { * @param string $var * @return $this */ @@ -492,6 +510,42 @@ public function setAuthenticationConfig($var) return $this; } + /** + * Optional. Associates Resource Manager tags with the workload nodes. + * There is a max limit of 30 tags. + * Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}`, or in namespaced + * format, such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. + * + * Generated from protobuf field map resource_manager_tags = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceManagerTags() + { + return $this->resource_manager_tags; + } + + /** + * Optional. Associates Resource Manager tags with the workload nodes. + * There is a max limit of 30 tags. + * Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}`, or in namespaced + * format, such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. + * + * Generated from protobuf field map resource_manager_tags = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceManagerTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_manager_tags = $arr; + + return $this; + } + /** * @return string */ diff --git a/Dataproc/src/V1/GkeNodePoolConfig/GkeNodeConfig.php b/Dataproc/src/V1/GkeNodePoolConfig/GkeNodeConfig.php index 7acb1ac383a..321222b8aab 100644 --- a/Dataproc/src/V1/GkeNodePoolConfig/GkeNodeConfig.php +++ b/Dataproc/src/V1/GkeNodePoolConfig/GkeNodeConfig.php @@ -68,9 +68,9 @@ class GkeNodeConfig extends \Google\Protobuf\Internal\Message * (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) * used to encrypt the boot disk attached to each node in the node pool. * Specify the key using the following format: - * projects/KEY_PROJECT_ID/locations/LOCATION/keyRings/RING_NAME/cryptoKeys/KEY_NAME. + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` * - * Generated from protobuf field string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { */ protected $boot_disk_kms_key = ''; /** @@ -128,7 +128,7 @@ class GkeNodeConfig extends \Google\Protobuf\Internal\Message * (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) * used to encrypt the boot disk attached to each node in the node pool. * Specify the key using the following format: - * projects/KEY_PROJECT_ID/locations/LOCATION/keyRings/RING_NAME/cryptoKeys/KEY_NAME. + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` * @type bool $spot * Optional. Whether the nodes are created as [Spot VM instances] * (https://cloud.google.com/compute/docs/instances/spot). @@ -318,9 +318,9 @@ public function setMinCpuPlatform($var) * (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) * used to encrypt the boot disk attached to each node in the node pool. * Specify the key using the following format: - * projects/KEY_PROJECT_ID/locations/LOCATION/keyRings/RING_NAME/cryptoKeys/KEY_NAME. + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` * - * Generated from protobuf field string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { * @return string */ public function getBootDiskKmsKey() @@ -333,9 +333,9 @@ public function getBootDiskKmsKey() * (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) * used to encrypt the boot disk attached to each node in the node pool. * Specify the key using the following format: - * projects/KEY_PROJECT_ID/locations/LOCATION/keyRings/RING_NAME/cryptoKeys/KEY_NAME. + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` * - * Generated from protobuf field string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/Dataproc/src/V1/ListBatchesRequest.php b/Dataproc/src/V1/ListBatchesRequest.php index cb21cb21ba6..4853ca09e73 100644 --- a/Dataproc/src/V1/ListBatchesRequest.php +++ b/Dataproc/src/V1/ListBatchesRequest.php @@ -41,9 +41,12 @@ class ListBatchesRequest extends \Google\Protobuf\Internal\Message * A filter is a logical expression constraining the values of various fields * in each batch resource. Filters are case sensitive, and may contain * multiple clauses combined with logical operators (AND/OR). - * Supported fields are `batch_id`, `batch_uuid`, `state`, and `create_time`. + * Supported fields are `batch_id`, `batch_uuid`, `state`, `create_time`, and + * `labels`. * e.g. `state = RUNNING and create_time < "2023-01-01T00:00:00Z"` - * filters for batches in state RUNNING that were created before 2023-01-01 + * filters for batches in state RUNNING that were created before 2023-01-01. + * `state = RUNNING and labels.environment=production` filters for batches in + * state in a RUNNING state that have a production environment label. * See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed * description of the filter syntax and a list of supported comparisons. * @@ -94,9 +97,12 @@ public static function build(string $parent): self * A filter is a logical expression constraining the values of various fields * in each batch resource. Filters are case sensitive, and may contain * multiple clauses combined with logical operators (AND/OR). - * Supported fields are `batch_id`, `batch_uuid`, `state`, and `create_time`. + * Supported fields are `batch_id`, `batch_uuid`, `state`, `create_time`, and + * `labels`. * e.g. `state = RUNNING and create_time < "2023-01-01T00:00:00Z"` - * filters for batches in state RUNNING that were created before 2023-01-01 + * filters for batches in state RUNNING that were created before 2023-01-01. + * `state = RUNNING and labels.environment=production` filters for batches in + * state in a RUNNING state that have a production environment label. * See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed * description of the filter syntax and a list of supported comparisons. * @type string $order_by @@ -200,9 +206,12 @@ public function setPageToken($var) * A filter is a logical expression constraining the values of various fields * in each batch resource. Filters are case sensitive, and may contain * multiple clauses combined with logical operators (AND/OR). - * Supported fields are `batch_id`, `batch_uuid`, `state`, and `create_time`. + * Supported fields are `batch_id`, `batch_uuid`, `state`, `create_time`, and + * `labels`. * e.g. `state = RUNNING and create_time < "2023-01-01T00:00:00Z"` - * filters for batches in state RUNNING that were created before 2023-01-01 + * filters for batches in state RUNNING that were created before 2023-01-01. + * `state = RUNNING and labels.environment=production` filters for batches in + * state in a RUNNING state that have a production environment label. * See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed * description of the filter syntax and a list of supported comparisons. * @@ -219,9 +228,12 @@ public function getFilter() * A filter is a logical expression constraining the values of various fields * in each batch resource. Filters are case sensitive, and may contain * multiple clauses combined with logical operators (AND/OR). - * Supported fields are `batch_id`, `batch_uuid`, `state`, and `create_time`. + * Supported fields are `batch_id`, `batch_uuid`, `state`, `create_time`, and + * `labels`. * e.g. `state = RUNNING and create_time < "2023-01-01T00:00:00Z"` - * filters for batches in state RUNNING that were created before 2023-01-01 + * filters for batches in state RUNNING that were created before 2023-01-01. + * `state = RUNNING and labels.environment=production` filters for batches in + * state in a RUNNING state that have a production environment label. * See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed * description of the filter syntax and a list of supported comparisons. * diff --git a/Dataproc/src/V1/ListBatchesResponse.php b/Dataproc/src/V1/ListBatchesResponse.php index 6d54fbc2137..2145cb91de8 100644 --- a/Dataproc/src/V1/ListBatchesResponse.php +++ b/Dataproc/src/V1/ListBatchesResponse.php @@ -16,9 +16,9 @@ class ListBatchesResponse extends \Google\Protobuf\Internal\Message { /** - * The batches from the specified collection. + * Output only. The batches from the specified collection. * - * Generated from protobuf field repeated .google.cloud.dataproc.v1.Batch batches = 1; + * Generated from protobuf field repeated .google.cloud.dataproc.v1.Batch batches = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $batches; /** @@ -44,7 +44,7 @@ class ListBatchesResponse extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Cloud\Dataproc\V1\Batch[] $batches - * The batches from the specified collection. + * Output only. The batches from the specified collection. * @type string $next_page_token * A token, which can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. @@ -60,9 +60,9 @@ public function __construct($data = NULL) { } /** - * The batches from the specified collection. + * Output only. The batches from the specified collection. * - * Generated from protobuf field repeated .google.cloud.dataproc.v1.Batch batches = 1; + * Generated from protobuf field repeated .google.cloud.dataproc.v1.Batch batches = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return RepeatedField<\Google\Cloud\Dataproc\V1\Batch> */ public function getBatches() @@ -71,9 +71,9 @@ public function getBatches() } /** - * The batches from the specified collection. + * Output only. The batches from the specified collection. * - * Generated from protobuf field repeated .google.cloud.dataproc.v1.Batch batches = 1; + * Generated from protobuf field repeated .google.cloud.dataproc.v1.Batch batches = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Cloud\Dataproc\V1\Batch[] $var * @return $this */ diff --git a/Dataproc/src/V1/PyPiRepositoryConfig.php b/Dataproc/src/V1/PyPiRepositoryConfig.php index 8eee4c0aa02..7330b4f7a9d 100644 --- a/Dataproc/src/V1/PyPiRepositoryConfig.php +++ b/Dataproc/src/V1/PyPiRepositoryConfig.php @@ -16,7 +16,8 @@ class PyPiRepositoryConfig extends \Google\Protobuf\Internal\Message { /** - * Optional. PyPi repository address + * Optional. The PyPi repository address. **Note: This field is not available + * for batch workloads.** * * Generated from protobuf field string pypi_repository = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -29,7 +30,8 @@ class PyPiRepositoryConfig extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $pypi_repository - * Optional. PyPi repository address + * Optional. The PyPi repository address. **Note: This field is not available + * for batch workloads.** * } */ public function __construct($data = NULL) { @@ -38,7 +40,8 @@ public function __construct($data = NULL) { } /** - * Optional. PyPi repository address + * Optional. The PyPi repository address. **Note: This field is not available + * for batch workloads.** * * Generated from protobuf field string pypi_repository = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -49,7 +52,8 @@ public function getPypiRepository() } /** - * Optional. PyPi repository address + * Optional. The PyPi repository address. **Note: This field is not available + * for batch workloads.** * * Generated from protobuf field string pypi_repository = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/Dataproc/src/V1/PySparkNotebookBatch.php b/Dataproc/src/V1/PySparkNotebookBatch.php new file mode 100644 index 00000000000..c35d06ba58b --- /dev/null +++ b/Dataproc/src/V1/PySparkNotebookBatch.php @@ -0,0 +1,249 @@ +google.cloud.dataproc.v1.PySparkNotebookBatch + */ +class PySparkNotebookBatch extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The HCFS URI of the notebook file to execute. + * + * Generated from protobuf field string notebook_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $notebook_file_uri = ''; + /** + * Optional. The parameters to pass to the notebook. + * + * Generated from protobuf field map params = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $params; + /** + * Optional. HCFS URIs of Python files to pass to the PySpark framework. + * + * Generated from protobuf field repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $python_file_uris; + /** + * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. + * + * Generated from protobuf field repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $jar_file_uris; + /** + * Optional. HCFS URIs of files to be placed in the working directory of + * each executor + * + * Generated from protobuf field repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $file_uris; + /** + * Optional. HCFS URIs of archives to be extracted into the working directory + * of each executor. Supported file types: + * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. + * + * Generated from protobuf field repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $archive_uris; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $notebook_file_uri + * Required. The HCFS URI of the notebook file to execute. + * @type array|\Google\Protobuf\Internal\MapField $params + * Optional. The parameters to pass to the notebook. + * @type string[] $python_file_uris + * Optional. HCFS URIs of Python files to pass to the PySpark framework. + * @type string[] $jar_file_uris + * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. + * @type string[] $file_uris + * Optional. HCFS URIs of files to be placed in the working directory of + * each executor + * @type string[] $archive_uris + * Optional. HCFS URIs of archives to be extracted into the working directory + * of each executor. Supported file types: + * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataproc\V1\Batches::initOnce(); + parent::__construct($data); + } + + /** + * Required. The HCFS URI of the notebook file to execute. + * + * Generated from protobuf field string notebook_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNotebookFileUri() + { + return $this->notebook_file_uri; + } + + /** + * Required. The HCFS URI of the notebook file to execute. + * + * Generated from protobuf field string notebook_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNotebookFileUri($var) + { + GPBUtil::checkString($var, True); + $this->notebook_file_uri = $var; + + return $this; + } + + /** + * Optional. The parameters to pass to the notebook. + * + * Generated from protobuf field map params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getParams() + { + return $this->params; + } + + /** + * Optional. The parameters to pass to the notebook. + * + * Generated from protobuf field map params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setParams($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->params = $arr; + + return $this; + } + + /** + * Optional. HCFS URIs of Python files to pass to the PySpark framework. + * + * Generated from protobuf field repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getPythonFileUris() + { + return $this->python_file_uris; + } + + /** + * Optional. HCFS URIs of Python files to pass to the PySpark framework. + * + * Generated from protobuf field repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setPythonFileUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->python_file_uris = $arr; + + return $this; + } + + /** + * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. + * + * Generated from protobuf field repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getJarFileUris() + { + return $this->jar_file_uris; + } + + /** + * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. + * + * Generated from protobuf field repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setJarFileUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->jar_file_uris = $arr; + + return $this; + } + + /** + * Optional. HCFS URIs of files to be placed in the working directory of + * each executor + * + * Generated from protobuf field repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getFileUris() + { + return $this->file_uris; + } + + /** + * Optional. HCFS URIs of files to be placed in the working directory of + * each executor + * + * Generated from protobuf field repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setFileUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->file_uris = $arr; + + return $this; + } + + /** + * Optional. HCFS URIs of archives to be extracted into the working directory + * of each executor. Supported file types: + * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. + * + * Generated from protobuf field repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getArchiveUris() + { + return $this->archive_uris; + } + + /** + * Optional. HCFS URIs of archives to be extracted into the working directory + * of each executor. Supported file types: + * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. + * + * Generated from protobuf field repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setArchiveUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->archive_uris = $arr; + + return $this; + } + +} + diff --git a/Dataproc/src/V1/RuntimeConfig.php b/Dataproc/src/V1/RuntimeConfig.php index f6b1448c6b7..8bc3b78f2b7 100644 --- a/Dataproc/src/V1/RuntimeConfig.php +++ b/Dataproc/src/V1/RuntimeConfig.php @@ -48,8 +48,8 @@ class RuntimeConfig extends \Google\Protobuf\Internal\Message */ protected $autotuning_config = null; /** - * Optional. Cohort identifier. Identifies families of the workloads having - * the same shape, e.g. daily ETL jobs. + * Optional. Cohort identifier. Identifies families of the workloads that have + * the same shape, for example, daily ETL jobs. * * Generated from protobuf field string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -74,8 +74,8 @@ class RuntimeConfig extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Dataproc\V1\AutotuningConfig $autotuning_config * Optional. Autotuning configuration of the workload. * @type string $cohort - * Optional. Cohort identifier. Identifies families of the workloads having - * the same shape, e.g. daily ETL jobs. + * Optional. Cohort identifier. Identifies families of the workloads that have + * the same shape, for example, daily ETL jobs. * } */ public function __construct($data = NULL) { @@ -238,8 +238,8 @@ public function setAutotuningConfig($var) } /** - * Optional. Cohort identifier. Identifies families of the workloads having - * the same shape, e.g. daily ETL jobs. + * Optional. Cohort identifier. Identifies families of the workloads that have + * the same shape, for example, daily ETL jobs. * * Generated from protobuf field string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -250,8 +250,8 @@ public function getCohort() } /** - * Optional. Cohort identifier. Identifies families of the workloads having - * the same shape, e.g. daily ETL jobs. + * Optional. Cohort identifier. Identifies families of the workloads that have + * the same shape, for example, daily ETL jobs. * * Generated from protobuf field string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/Dataproc/src/V1/Session.php b/Dataproc/src/V1/Session.php index 5022f87f0a2..7db46834125 100644 --- a/Dataproc/src/V1/Session.php +++ b/Dataproc/src/V1/Session.php @@ -16,9 +16,9 @@ class Session extends \Google\Protobuf\Internal\Message { /** - * Required. The resource name of the session. + * Identifier. The resource name of the session. * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; */ protected $name = ''; /** @@ -122,7 +122,7 @@ class Session extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The resource name of the session. + * Identifier. The resource name of the session. * @type string $uuid * Output only. A session UUID (Unique Universal Identifier). The service * generates this value when it creates the session. @@ -131,7 +131,7 @@ class Session extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Dataproc\V1\JupyterConfig $jupyter_session * Optional. Jupyter session config. * @type \Google\Cloud\Dataproc\V1\SparkConnectConfig $spark_connect_session - * Optional. Spark Connect session config. + * Optional. Spark connect session config. * @type \Google\Cloud\Dataproc\V1\RuntimeInfo $runtime_info * Output only. Runtime information about session execution. * @type int $state @@ -175,9 +175,9 @@ public function __construct($data = NULL) { } /** - * Required. The resource name of the session. + * Identifier. The resource name of the session. * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return string */ public function getName() @@ -186,9 +186,9 @@ public function getName() } /** - * Required. The resource name of the session. + * Identifier. The resource name of the session. * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @param string $var * @return $this */ @@ -296,7 +296,7 @@ public function setJupyterSession($var) } /** - * Optional. Spark Connect session config. + * Optional. Spark connect session config. * * Generated from protobuf field .google.cloud.dataproc.v1.SparkConnectConfig spark_connect_session = 17 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dataproc\V1\SparkConnectConfig|null @@ -312,7 +312,7 @@ public function hasSparkConnectSession() } /** - * Optional. Spark Connect session config. + * Optional. Spark connect session config. * * Generated from protobuf field .google.cloud.dataproc.v1.SparkConnectConfig spark_connect_session = 17 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dataproc\V1\SparkConnectConfig $var diff --git a/Dataproc/src/V1/SessionTemplate.php b/Dataproc/src/V1/SessionTemplate.php index dcad85ff2f5..ec9599fc3f2 100644 --- a/Dataproc/src/V1/SessionTemplate.php +++ b/Dataproc/src/V1/SessionTemplate.php @@ -16,9 +16,9 @@ class SessionTemplate extends \Google\Protobuf\Internal\Message { /** - * Required. The resource name of the session template. + * Required. Identifier. The resource name of the session template. * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; */ protected $name = ''; /** @@ -85,7 +85,7 @@ class SessionTemplate extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Required. The resource name of the session template. + * Required. Identifier. The resource name of the session template. * @type string $description * Optional. Brief description of the template. * @type \Google\Protobuf\Timestamp $create_time @@ -93,7 +93,7 @@ class SessionTemplate extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Dataproc\V1\JupyterConfig $jupyter_session * Optional. Jupyter session config. * @type \Google\Cloud\Dataproc\V1\SparkConnectConfig $spark_connect_session - * Optional. Spark Connect session config. + * Optional. Spark connect session config. * @type string $creator * Output only. The email address of the user who created the template. * @type array|\Google\Protobuf\Internal\MapField $labels @@ -121,9 +121,9 @@ public function __construct($data = NULL) { } /** - * Required. The resource name of the session template. + * Required. Identifier. The resource name of the session template. * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; * @return string */ public function getName() @@ -132,9 +132,9 @@ public function getName() } /** - * Required. The resource name of the session template. + * Required. Identifier. The resource name of the session template. * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; * @param string $var * @return $this */ @@ -240,7 +240,7 @@ public function setJupyterSession($var) } /** - * Optional. Spark Connect session config. + * Optional. Spark connect session config. * * Generated from protobuf field .google.cloud.dataproc.v1.SparkConnectConfig spark_connect_session = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dataproc\V1\SparkConnectConfig|null @@ -256,7 +256,7 @@ public function hasSparkConnectSession() } /** - * Optional. Spark Connect session config. + * Optional. Spark connect session config. * * Generated from protobuf field .google.cloud.dataproc.v1.SparkConnectConfig spark_connect_session = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dataproc\V1\SparkConnectConfig $var diff --git a/Dataproc/src/V1/SparkConnectConfig.php b/Dataproc/src/V1/SparkConnectConfig.php index aea69e01c6a..5dbce844095 100644 --- a/Dataproc/src/V1/SparkConnectConfig.php +++ b/Dataproc/src/V1/SparkConnectConfig.php @@ -9,7 +9,7 @@ use Google\Protobuf\RepeatedField; /** - * Spark Connect configuration for an interactive session. + * Spark connect configuration for an interactive session. * * Generated from protobuf message google.cloud.dataproc.v1.SparkConnectConfig */ diff --git a/Dataproc/src/V1/UsageMetrics.php b/Dataproc/src/V1/UsageMetrics.php index 0022580bc14..b7ddbe367c4 100644 --- a/Dataproc/src/V1/UsageMetrics.php +++ b/Dataproc/src/V1/UsageMetrics.php @@ -32,19 +32,25 @@ class UsageMetrics extends \Google\Protobuf\Internal\Message */ protected $shuffle_storage_gb_seconds = 0; /** - * Optional. Accelerator usage in (`milliAccelerator` x `seconds`) (see - * [Dataproc Serverless pricing] + * Optional. [DEPRECATED] Accelerator usage in (`milliAccelerator` x + * `seconds`) (see [Dataproc Serverless pricing] * (https://cloud.google.com/dataproc-serverless/pricing)). * * Generated from protobuf field int64 milli_accelerator_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; */ protected $milli_accelerator_seconds = 0; /** - * Optional. Accelerator type being used, if any + * Optional. [DEPRECATED] Accelerator type being used, if any * * Generated from protobuf field string accelerator_type = 4 [(.google.api.field_behavior) = OPTIONAL]; */ protected $accelerator_type = ''; + /** + * Optional. The timestamp of the usage metrics. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_time = null; /** * Constructor. @@ -61,11 +67,13 @@ class UsageMetrics extends \Google\Protobuf\Internal\Message * [Dataproc Serverless pricing] * (https://cloud.google.com/dataproc-serverless/pricing)). * @type int|string $milli_accelerator_seconds - * Optional. Accelerator usage in (`milliAccelerator` x `seconds`) (see - * [Dataproc Serverless pricing] + * Optional. [DEPRECATED] Accelerator usage in (`milliAccelerator` x + * `seconds`) (see [Dataproc Serverless pricing] * (https://cloud.google.com/dataproc-serverless/pricing)). * @type string $accelerator_type - * Optional. Accelerator type being used, if any + * Optional. [DEPRECATED] Accelerator type being used, if any + * @type \Google\Protobuf\Timestamp $update_time + * Optional. The timestamp of the usage metrics. * } */ public function __construct($data = NULL) { @@ -134,8 +142,8 @@ public function setShuffleStorageGbSeconds($var) } /** - * Optional. Accelerator usage in (`milliAccelerator` x `seconds`) (see - * [Dataproc Serverless pricing] + * Optional. [DEPRECATED] Accelerator usage in (`milliAccelerator` x + * `seconds`) (see [Dataproc Serverless pricing] * (https://cloud.google.com/dataproc-serverless/pricing)). * * Generated from protobuf field int64 milli_accelerator_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -147,8 +155,8 @@ public function getMilliAcceleratorSeconds() } /** - * Optional. Accelerator usage in (`milliAccelerator` x `seconds`) (see - * [Dataproc Serverless pricing] + * Optional. [DEPRECATED] Accelerator usage in (`milliAccelerator` x + * `seconds`) (see [Dataproc Serverless pricing] * (https://cloud.google.com/dataproc-serverless/pricing)). * * Generated from protobuf field int64 milli_accelerator_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -164,7 +172,7 @@ public function setMilliAcceleratorSeconds($var) } /** - * Optional. Accelerator type being used, if any + * Optional. [DEPRECATED] Accelerator type being used, if any * * Generated from protobuf field string accelerator_type = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -175,7 +183,7 @@ public function getAcceleratorType() } /** - * Optional. Accelerator type being used, if any + * Optional. [DEPRECATED] Accelerator type being used, if any * * Generated from protobuf field string accelerator_type = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var @@ -189,5 +197,41 @@ public function setAcceleratorType($var) return $this; } + /** + * Optional. The timestamp of the usage metrics. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Optional. The timestamp of the usage metrics. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + } diff --git a/Dataproc/src/V1/resources/batch_controller_descriptor_config.php b/Dataproc/src/V1/resources/batch_controller_descriptor_config.php index 19bfb52172a..e508deb8398 100644 --- a/Dataproc/src/V1/resources/batch_controller_descriptor_config.php +++ b/Dataproc/src/V1/resources/batch_controller_descriptor_config.php @@ -127,6 +127,7 @@ ], 'templateMap' => [ 'batch' => 'projects/{project}/locations/{location}/batches/{batch}', + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', 'location' => 'projects/{project}/locations/{location}', 'service' => 'projects/{project}/locations/{location}/services/{service}', ], diff --git a/Dataproc/src/V1/resources/session_controller_descriptor_config.php b/Dataproc/src/V1/resources/session_controller_descriptor_config.php index 8be59bd1856..72dc43510f5 100644 --- a/Dataproc/src/V1/resources/session_controller_descriptor_config.php +++ b/Dataproc/src/V1/resources/session_controller_descriptor_config.php @@ -152,6 +152,7 @@ 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], 'templateMap' => [ + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', 'location' => 'projects/{project}/locations/{location}', 'service' => 'projects/{project}/locations/{location}/services/{service}', 'session' => 'projects/{project}/locations/{location}/sessions/{session}', diff --git a/Dataproc/src/V1/resources/session_template_controller_descriptor_config.php b/Dataproc/src/V1/resources/session_template_controller_descriptor_config.php index 7f0e4054e33..208f3bd86e3 100644 --- a/Dataproc/src/V1/resources/session_template_controller_descriptor_config.php +++ b/Dataproc/src/V1/resources/session_template_controller_descriptor_config.php @@ -132,6 +132,7 @@ 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], 'templateMap' => [ + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', 'location' => 'projects/{project}/locations/{location}', 'service' => 'projects/{project}/locations/{location}/services/{service}', 'sessionTemplate' => 'projects/{project}/locations/{location}/sessionTemplates/{template}', diff --git a/Dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php b/Dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php index 2e91211e8de..11195599708 100644 --- a/Dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php +++ b/Dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php @@ -120,8 +120,6 @@ public function createSessionTest() // Mock request $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $session = new Session(); - $sessionName = 'sessionName-22661567'; - $session->setName($sessionName); $sessionId = 'sessionId1661853540'; $request = (new CreateSessionRequest()) ->setParent($formattedParent) @@ -199,8 +197,6 @@ public function createSessionExceptionTest() // Mock request $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $session = new Session(); - $sessionName = 'sessionName-22661567'; - $session->setName($sessionName); $sessionId = 'sessionId1661853540'; $request = (new CreateSessionRequest()) ->setParent($formattedParent) @@ -891,8 +887,6 @@ public function createSessionAsyncTest() // Mock request $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $session = new Session(); - $sessionName = 'sessionName-22661567'; - $session->setName($sessionName); $sessionId = 'sessionId1661853540'; $request = (new CreateSessionRequest()) ->setParent($formattedParent)