diff options
Diffstat (limited to 'third_party/googleapis/google/cloud/batch/v1alpha')
7 files changed, 0 insertions, 1785 deletions
diff --git a/third_party/googleapis/google/cloud/batch/v1alpha/BUILD.bazel b/third_party/googleapis/google/cloud/batch/v1alpha/BUILD.bazel deleted file mode 100644 index 42e21ab..0000000 --- a/third_party/googleapis/google/cloud/batch/v1alpha/BUILD.bazel +++ /dev/null @@ -1,397 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/rules_gapic/tree/master/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -#    * extra_protoc_parameters -#    * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - -############################################################################## -# Common -############################################################################## -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") - -proto_library( -    name = "batch_proto", -    srcs = [ -        "batch.proto", -        "job.proto", -        "task.proto", -        "volume.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/api:resource_proto", -        "//google/longrunning:operations_proto", -        "@com_google_protobuf//:duration_proto", -        "@com_google_protobuf//:timestamp_proto", -    ], -) - -proto_library_with_info( -    name = "batch_proto_with_info", -    deps = [ -        ":batch_proto", -        "//google/cloud:common_resources_proto", -        "//google/cloud/location:location_proto", -        "//google/iam/v1:iam_policy_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "batch_java_proto", -    deps = [":batch_proto"], -) - -java_grpc_library( -    name = "batch_java_grpc", -    srcs = [":batch_proto"], -    deps = [":batch_java_proto"], -) - -java_gapic_library( -    name = "batch_java_gapic", -    srcs = [":batch_proto_with_info"], -    gapic_yaml = None, -    grpc_service_config = "batch_v1alpha_grpc_service_config.json", -    service_yaml = "batch_v1alpha.yaml", -    test_deps = [ -        ":batch_java_grpc", -        "//google/cloud/location:location_java_grpc", -        "//google/iam/v1:iam_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        ":batch_java_proto", -        "//google/api:api_java_proto", -        "//google/cloud/location:location_java_proto", -        "//google/iam/v1:iam_java_proto", -    ], -) - -java_gapic_test( -    name = "batch_java_gapic_test_suite", -    test_classes = [ -        "com.google.cloud.batch.v1alpha.BatchServiceClientHttpJsonTest", -        "com.google.cloud.batch.v1alpha.BatchServiceClientTest", -    ], -    runtime_deps = [":batch_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-cloud-batch-v1alpha-java", -    include_samples = True, -    transport = "grpc+rest", -    deps = [ -        ":batch_java_gapic", -        ":batch_java_grpc", -        ":batch_java_proto", -        ":batch_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "batch_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha", -    protos = [":batch_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/longrunning:longrunning_go_proto", -    ], -) - -go_gapic_library( -    name = "batch_go_gapic", -    srcs = [":batch_proto_with_info"], -    grpc_service_config = "batch_v1alpha_grpc_service_config.json", -    importpath = "cloud.google.com/go/batch/apiv1alpha;batch", -    metadata = True, -    service_yaml = "batch_v1alpha.yaml", -    transport = "grpc+rest", -    deps = [ -        ":batch_go_proto", -        "//google/cloud/location:location_go_proto", -        "//google/iam/v1:iam_go_proto", -        "//google/longrunning:longrunning_go_proto", -        "@com_google_cloud_go//longrunning:go_default_library", -        "@com_google_cloud_go//longrunning/autogen:go_default_library", -        "@io_bazel_rules_go//proto/wkt:duration_go_proto", -    ], -) - -go_test( -    name = "batch_go_gapic_test", -    srcs = [":batch_go_gapic_srcjar_test"], -    embed = [":batch_go_gapic"], -    importpath = "cloud.google.com/go/batch/apiv1alpha", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-cloud-batch-v1alpha-go", -    deps = [ -        ":batch_go_gapic", -        ":batch_go_gapic_srcjar-metadata.srcjar", -        ":batch_go_gapic_srcjar-test.srcjar", -        ":batch_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -    "py_test", -) - -py_gapic_library( -    name = "batch_py_gapic", -    srcs = [":batch_proto"], -    grpc_service_config = "batch_v1alpha_grpc_service_config.json", -    service_yaml = "batch_v1alpha.yaml", -    transport = "grpc+rest", -    deps = [ -        "//google/iam/v1:iam_policy_py_proto", -    ], -) - -py_test( -    name = "batch_py_gapic_test", -    srcs = [ -        "batch_py_gapic_pytest.py", -        "batch_py_gapic_test.py", -    ], -    legacy_create_init = False, -    deps = [":batch_py_gapic"], -) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "batch-v1alpha-py", -    deps = [ -        ":batch_py_gapic", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "batch_php_proto", -    deps = [":batch_proto"], -) - -php_grpc_library( -    name = "batch_php_grpc", -    srcs = [":batch_proto"], -    deps = [":batch_php_proto"], -) - -php_gapic_library( -    name = "batch_php_gapic", -    srcs = [":batch_proto_with_info"], -    grpc_service_config = "batch_v1alpha_grpc_service_config.json", -    service_yaml = "batch_v1alpha.yaml", -    deps = [ -        ":batch_php_grpc", -        ":batch_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-cloud-batch-v1alpha-php", -    deps = [ -        ":batch_php_gapic", -        ":batch_php_grpc", -        ":batch_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "batch_nodejs_gapic", -    package_name = "@google-cloud/batch", -    src = ":batch_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "batch_v1alpha_grpc_service_config.json", -    package = "google.cloud.batch.v1alpha", -    service_yaml = "batch_v1alpha.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "batch-v1alpha-nodejs", -    deps = [ -        ":batch_nodejs_gapic", -        ":batch_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "batch_ruby_proto", -    deps = [":batch_proto"], -) - -ruby_grpc_library( -    name = "batch_ruby_grpc", -    srcs = [":batch_proto"], -    deps = [":batch_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "batch_ruby_gapic", -    srcs = [":batch_proto_with_info"], -    extra_protoc_parameters = [ -        "ruby-cloud-api-id=batch.googleapis.com", -        "ruby-cloud-api-shortname=batch", -        "ruby-cloud-gem-name=google-cloud-batch-v1alpha", -    ], -    grpc_service_config = "batch_v1alpha_grpc_service_config.json", -    ruby_cloud_description = "Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others.", -    ruby_cloud_title = "Batch V1alpha", -    service_yaml = "batch_v1alpha.yaml", -    deps = [ -        ":batch_ruby_grpc", -        ":batch_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-cloud-batch-v1alpha-ruby", -    deps = [ -        ":batch_ruby_gapic", -        ":batch_ruby_grpc", -        ":batch_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "batch_csharp_proto", -    deps = [":batch_proto"], -) - -csharp_grpc_library( -    name = "batch_csharp_grpc", -    srcs = [":batch_proto"], -    deps = [":batch_csharp_proto"], -) - -csharp_gapic_library( -    name = "batch_csharp_gapic", -    srcs = [":batch_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "batch_v1alpha_grpc_service_config.json", -    service_yaml = "batch_v1alpha.yaml", -    deps = [ -        ":batch_csharp_grpc", -        ":batch_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-cloud-batch-v1alpha-csharp", -    deps = [ -        ":batch_csharp_gapic", -        ":batch_csharp_grpc", -        ":batch_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "cc_grpc_library", -    "cc_proto_library", -) - -cc_proto_library( -    name = "batch_cc_proto", -    deps = [":batch_proto"], -) - -cc_grpc_library( -    name = "batch_cc_grpc", -    srcs = [":batch_proto"], -    grpc_only = True, -    deps = [":batch_cc_proto"], -) diff --git a/third_party/googleapis/google/cloud/batch/v1alpha/batch.proto b/third_party/googleapis/google/cloud/batch/v1alpha/batch.proto deleted file mode 100644 index 97b3171..0000000 --- a/third_party/googleapis/google/cloud/batch/v1alpha/batch.proto +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.batch.v1alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/batch/v1alpha/job.proto"; -import "google/cloud/batch/v1alpha/task.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.Batch.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha;batch"; -option java_multiple_files = true; -option java_outer_classname = "BatchProto"; -option java_package = "com.google.cloud.batch.v1alpha"; -option objc_class_prefix = "GCB"; -option php_namespace = "Google\\Cloud\\Batch\\V1alpha"; -option ruby_package = "Google::Cloud::Batch::V1alpha"; - -// Google Batch Service. -// The service manages user submitted batch jobs and allocates Google Compute -// Engine VM instances to run the jobs. -service BatchService { -  option (google.api.default_host) = "batch.googleapis.com"; -  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - -  // Create a Job. -  rpc CreateJob(CreateJobRequest) returns (Job) { -    option (google.api.http) = { -      post: "/v1alpha/{parent=projects/*/locations/*}/jobs" -      body: "job" -    }; -    option (google.api.method_signature) = "parent,job,job_id"; -  } - -  // Get a Job specified by its resource name. -  rpc GetJob(GetJobRequest) returns (Job) { -    option (google.api.http) = { -      get: "/v1alpha/{name=projects/*/locations/*/jobs/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Delete a Job. -  rpc DeleteJob(DeleteJobRequest) returns (google.longrunning.Operation) { -    option (google.api.http) = { -      delete: "/v1alpha/{name=projects/*/locations/*/jobs/*}" -    }; -    option (google.api.method_signature) = "name"; -    option (google.longrunning.operation_info) = { -      response_type: "google.protobuf.Empty" -      metadata_type: "google.cloud.batch.v1alpha.OperationMetadata" -    }; -  } - -  // List all Jobs for a project within a region. -  rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { -    option (google.api.http) = { -      get: "/v1alpha/{parent=projects/*/locations/*}/jobs" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Return a single Task. -  rpc GetTask(GetTaskRequest) returns (Task) { -    option (google.api.http) = { -      get: "/v1alpha/{name=projects/*/locations/*/jobs/*/taskGroups/*/tasks/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // List Tasks associated with a job. -  rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) { -    option (google.api.http) = { -      get: "/v1alpha/{parent=projects/*/locations/*/jobs/*/taskGroups/*}/tasks" -    }; -    option (google.api.method_signature) = "parent"; -  } -} - -// CreateJob Request. -message CreateJobRequest { -  // Required. The parent resource name where the Job will be created. -  // Pattern: "projects/{project}/locations/{location}" -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "batch.googleapis.com/Job" -    } -  ]; - -  // ID used to uniquely identify the Job within its parent scope. -  // This field should contain at most 63 characters. -  // Only alphanumeric characters or '-' are accepted. -  // The '-' character cannot be the first or the last one. -  // A system generated ID will be used if the field is not set. -  // -  // The job.name field in the request will be ignored and the created resource -  // name of the Job will be "{parent}/jobs/{job_id}". -  string job_id = 2; - -  // Required. The Job to create. -  Job job = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Optional. An optional request ID to identify requests. Specify a unique request ID -  // so that if you must retry your request, the server will know to ignore -  // the request if it has already been completed. The server will guarantee -  // that for at least 60 minutes since the first request. -  // -  // For example, consider a situation where you make an initial request and t -  // he request times out. If you make the request again with the same request -  // ID, the server can check if original operation with the same request ID -  // was received, and if so, will ignore the second request. This prevents -  // clients from accidentally creating duplicate commitments. -  // -  // The request ID must be a valid UUID with the exception that zero UUID is -  // not supported (00000000-0000-0000-0000-000000000000). -  string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// GetJob Request. -message GetJobRequest { -  // Required. Job name. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "batch.googleapis.com/Job" -    } -  ]; -} - -// DeleteJob Request. -message DeleteJobRequest { -  // Job name. -  string name = 1; - -  // Optional. Reason for this deletion. -  string reason = 2 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. An optional request ID to identify requests. Specify a unique request ID -  // so that if you must retry your request, the server will know to ignore -  // the request if it has already been completed. The server will guarantee -  // that for at least 60 minutes after the first request. -  // -  // For example, consider a situation where you make an initial request and t -  // he request times out. If you make the request again with the same request -  // ID, the server can check if original operation with the same request ID -  // was received, and if so, will ignore the second request. This prevents -  // clients from accidentally creating duplicate commitments. -  // -  // The request ID must be a valid UUID with the exception that zero UUID is -  // not supported (00000000-0000-0000-0000-000000000000). -  string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// ListJob Request. -message ListJobsRequest { -  // Parent path. -  string parent = 1; - -  // List filter. -  string filter = 4; - -  // Page size. -  int32 page_size = 2; - -  // Page token. -  string page_token = 3; -} - -// ListJob Response. -message ListJobsResponse { -  // Jobs. -  repeated Job jobs = 1; - -  // Next page token. -  string next_page_token = 2; - -  // Locations that could not be reached. -  repeated string unreachable = 3; -} - -// ListTasks Request. -message ListTasksRequest { -  // Required. Name of a TaskGroup from which Tasks are being requested. -  // Pattern: -  // "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}" -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "batch.googleapis.com/TaskGroup" -    } -  ]; - -  // Task filter, null filter matches all Tasks. -  // Filter string should be of the format State=TaskStatus.State e.g. -  // State=RUNNING -  string filter = 2; - -  // Page size. -  int32 page_size = 3; - -  // Page token. -  string page_token = 4; -} - -// ListTasks Response. -message ListTasksResponse { -  // Tasks. -  repeated Task tasks = 1; - -  // Next page token. -  string next_page_token = 2; - -  // Locations that could not be reached. -  repeated string unreachable = 3; -} - -// Request for a single Task by name. -message GetTaskRequest { -  // Required. Task name. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "batch.googleapis.com/Task" -    } -  ]; -} - -// Represents the metadata of the long-running operation. -message OperationMetadata { -  // Output only. The time the operation was created. -  google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The time the operation finished running. -  google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Server-defined resource path for the target of the operation. -  string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Name of the verb executed by the operation. -  string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Human-readable status of the operation, if any. -  string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Identifies whether the user has requested cancellation -  // of the operation. Operations that have successfully been cancelled -  // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, -  // corresponding to `Code.CANCELLED`. -  bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. API version used to start the operation. -  string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/cloud/batch/v1alpha/batch_v1alpha.yaml b/third_party/googleapis/google/cloud/batch/v1alpha/batch_v1alpha.yaml deleted file mode 100644 index b021fc5..0000000 --- a/third_party/googleapis/google/cloud/batch/v1alpha/batch_v1alpha.yaml +++ /dev/null @@ -1,119 +0,0 @@ -type: google.api.Service -config_version: 3 -name: batch.googleapis.com -title: Batch API - -apis: -- name: google.cloud.batch.v1alpha.BatchService -- name: google.cloud.location.Locations -- name: google.iam.v1.IAMPolicy -- name: google.longrunning.Operations - -types: -- name: google.cloud.batch.v1alpha.OperationMetadata - -documentation: -  summary: An API to manage the running of batch jobs on Google Cloud Platform. -  overview: '(== google/cloud/batch/doc/overview.md ==)' -  rules: -  - selector: google.cloud.location.Locations.GetLocation -    description: Gets information about a location. - -  - selector: google.cloud.location.Locations.ListLocations -    description: Lists information about the supported locations for this service. - -  - selector: google.iam.v1.IAMPolicy.GetIamPolicy -    description: |- -      Gets the access control policy for a resource. Returns an empty policy -      if the resource exists and does not have a policy set. - -  - selector: google.iam.v1.IAMPolicy.SetIamPolicy -    description: |- -      Sets the access control policy on the specified resource. Replaces -      any existing policy. - -      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` -      errors. - -  - selector: google.iam.v1.IAMPolicy.TestIamPermissions -    description: |- -      Returns permissions that a caller has on the specified resource. If the -      resource does not exist, this will return an empty set of -      permissions, not a `NOT_FOUND` error. - -      Note: This operation is designed to be used for building -      permission-aware UIs and command-line tools, not for authorization -      checking. This operation may "fail open" without warning. - -backend: -  rules: -  - selector: 'google.cloud.batch.v1alpha.BatchService.*' -    deadline: 60.0 -  - selector: google.cloud.location.Locations.GetLocation -    deadline: 60.0 -  - selector: google.cloud.location.Locations.ListLocations -    deadline: 60.0 -  - selector: 'google.iam.v1.IAMPolicy.*' -    deadline: 60.0 -  - selector: 'google.longrunning.Operations.*' -    deadline: 60.0 - -http: -  rules: -  - selector: google.cloud.location.Locations.GetLocation -    get: '/v1alpha/{name=projects/*/locations/*}' -  - selector: google.cloud.location.Locations.ListLocations -    get: '/v1alpha/{name=projects/*}/locations' -  - selector: google.iam.v1.IAMPolicy.GetIamPolicy -    get: '/v1alpha/{resource=projects/*/locations/*/jobs/*}:getIamPolicy' -    additional_bindings: -    - get: '/v1alpha/{resource=projects/*/locations/*/tasks/*}:getIamPolicy' -    - get: '/v1alpha/{resource=projects/*/locations/*/nodes/*}:getIamPolicy' -  - selector: google.iam.v1.IAMPolicy.SetIamPolicy -    post: '/v1alpha/{resource=projects/*/locations/*/jobs/*}:setIamPolicy' -    body: '*' -    additional_bindings: -    - post: '/v1alpha/{resource=projects/*/locations/*/tasks/*}:setIamPolicy' -      body: '*' -    - post: '/v1alpha/{resource=projects/*/locations/*/nodes/*}:setIamPolicy' -      body: '*' -  - selector: google.iam.v1.IAMPolicy.TestIamPermissions -    post: '/v1alpha/{resource=projects/*/locations/*/jobs/*}:testIamPermissions' -    body: '*' -    additional_bindings: -    - post: '/v1alpha/{resource=projects/*/locations/*/tasks/*}:testIamPermissions' -      body: '*' -    - post: '/v1alpha/{resource=projects/*/locations/*/nodes/*}:testIamPermissions' -      body: '*' -  - selector: google.longrunning.Operations.CancelOperation -    post: '/v1alpha/{name=projects/*/locations/*/operations/*}:cancel' -    body: '*' -  - selector: google.longrunning.Operations.DeleteOperation -    delete: '/v1alpha/{name=projects/*/locations/*/operations/*}' -  - selector: google.longrunning.Operations.GetOperation -    get: '/v1alpha/{name=projects/*/locations/*/operations/*}' -  - selector: google.longrunning.Operations.ListOperations -    get: '/v1alpha/{name=projects/*/locations/*}/operations' - -authentication: -  rules: -  - selector: 'google.cloud.batch.v1alpha.BatchService.*' -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: google.cloud.location.Locations.GetLocation -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: google.cloud.location.Locations.ListLocations -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: 'google.iam.v1.IAMPolicy.*' -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: 'google.longrunning.Operations.*' -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/cloud/batch/v1alpha/batch_v1alpha_grpc_service_config.json b/third_party/googleapis/google/cloud/batch/v1alpha/batch_v1alpha_grpc_service_config.json deleted file mode 100644 index 12e2097..0000000 --- a/third_party/googleapis/google/cloud/batch/v1alpha/batch_v1alpha_grpc_service_config.json +++ /dev/null @@ -1,25 +0,0 @@ -{ -  "methodConfig": [{ -    "name": [ -      { "service": "google.cloud.batch.v1alpha.BatchService", "method": "ListJobs" }, -      { "service": "google.cloud.batch.v1alpha.BatchService", "method": "ListTasks" }, -      { "service": "google.cloud.batch.v1alpha.BatchService", "method": "GetJob" }, -      { "service": "google.cloud.batch.v1alpha.BatchService", "method": "GetTask" } -    ], -    "timeout": "60s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "10s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE"] -    } -  }, -  { -    "name": [ -      { "service": "google.cloud.batch.v1alpha.BatchService", "method": "CreateJob" }, -      { "service": "google.cloud.batch.v1alpha.BatchService", "method": "DeleteJob" } -    ], -    "timeout": "60s" -  }] -} diff --git a/third_party/googleapis/google/cloud/batch/v1alpha/job.proto b/third_party/googleapis/google/cloud/batch/v1alpha/job.proto deleted file mode 100644 index b313d29..0000000 --- a/third_party/googleapis/google/cloud/batch/v1alpha/job.proto +++ /dev/null @@ -1,560 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.batch.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/batch/v1alpha/task.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.Batch.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha;batch"; -option java_multiple_files = true; -option java_outer_classname = "JobProto"; -option java_package = "com.google.cloud.batch.v1alpha"; -option objc_class_prefix = "GCB"; -option php_namespace = "Google\\Cloud\\Batch\\V1alpha"; -option ruby_package = "Google::Cloud::Batch::V1alpha"; - -// The Cloud Batch Job description. -message Job { -  option (google.api.resource) = { -    type: "batch.googleapis.com/Job" -    pattern: "projects/{project}/locations/{location}/jobs/{job}" -  }; - -  // The order that TaskGroups are scheduled relative to each other. -  // -  // Not yet implemented. -  enum SchedulingPolicy { -    // Unspecified. -    SCHEDULING_POLICY_UNSPECIFIED = 0; - -    // Run all TaskGroups as soon as possible. -    AS_SOON_AS_POSSIBLE = 1; -  } - -  // Output only. Job name. -  // For example: "projects/123456/locations/us-central1/jobs/job01". -  string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. A system generated unique ID (in UUID4 format) for the Job. -  string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Priority of the Job. -  // The valid value range is [0, 100). -  // A job with higher priority value is more likely to run earlier if all other -  // requirements are satisfied. -  int64 priority = 3; - -  // Required. TaskGroups in the Job. Only one TaskGroup is supported now. -  repeated TaskGroup task_groups = 4 [(google.api.field_behavior) = REQUIRED]; - -  // Scheduling policy for TaskGroups in the job. -  SchedulingPolicy scheduling_policy = 5; - -  // At least one of the dependencies must be satisfied before the Job is -  // scheduled to run. -  // Only one JobDependency is supported now. -  // Not yet implemented. -  repeated JobDependency dependencies = 6; - -  // Compute resource allocation for all TaskGroups in the Job. -  AllocationPolicy allocation_policy = 7; - -  // Labels for the Job. Labels could be user provided or system generated. -  // For example, -  // "labels": { -  //    "department": "finance", -  //    "environment": "test" -  //  } -  // You can assign up to 64 labels.  [Google Compute Engine label -  // restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) -  // apply. -  // Label names that start with "goog-" or "google-" are reserved. -  map<string, string> labels = 8; - -  // Output only. Job status. It is read only for users. -  JobStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Job notification. -  JobNotification notification = 10 [deprecated = true]; - -  // Output only. When the Job was created. -  google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The last time the Job was updated. -  google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Log preservation policy for the Job. -  LogsPolicy logs_policy = 13; - -  // Notification configurations. -  repeated JobNotification notifications = 14; -} - -// LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be -// preserved. -message LogsPolicy { -  // The destination (if any) for logs. -  enum Destination { -    // Logs are not preserved. -    DESTINATION_UNSPECIFIED = 0; - -    // Logs are streamed to Cloud Logging. -    CLOUD_LOGGING = 1; - -    // Logs are saved to a file path. -    PATH = 2; -  } - -  // Where logs should be saved. -  Destination destination = 1; - -  // The path to which logs are saved when the destination = PATH. This can be a -  // local file path on the VM, or under the mount point of a Persistent Disk or -  // Filestore, or a Cloud Storage path. -  string logs_path = 2; -} - -// JobDependency describes the state of other Jobs that the start of this Job -// depends on. -// All dependent Jobs must have been submitted in the same region. -message JobDependency { -  // Dependency type. -  enum Type { -    // Unspecified. -    TYPE_UNSPECIFIED = 0; - -    // The dependent Job has succeeded. -    SUCCEEDED = 1; - -    // The dependent Job has failed. -    FAILED = 2; - -    // SUCCEEDED or FAILED. -    FINISHED = 3; -  } - -  // Each item maps a Job name to a Type. -  // All items must be satisfied for the JobDependency to be satisfied (the AND -  // operation). -  // Once a condition for one item becomes true, it won't go back to false -  // even the dependent Job state changes again. -  map<string, Type> items = 1; -} - -// Job status. -message JobStatus { -  // VM instance status. -  message InstanceStatus { -    // The Compute Engine machine type. -    string machine_type = 1; - -    // The VM instance provisioning model. -    AllocationPolicy.ProvisioningModel provisioning_model = 2; - -    // The max number of tasks can be assigned to this instance type. -    int64 task_pack = 3; -  } - -  // Aggregated task status for a TaskGroup. -  message TaskGroupStatus { -    // Count of task in each state in the TaskGroup. -    // The map key is task state name. -    map<string, int64> counts = 1; - -    // Status of instances allocated for the TaskGroup. -    repeated InstanceStatus instances = 2; -  } - -  // Valid Job states. -  enum State { -    STATE_UNSPECIFIED = 0; - -    // Job is admitted (validated and persisted) and waiting for resources. -    QUEUED = 1; - -    // Job is scheduled to run as soon as resource allocation is ready. -    // The resource allocation may happen at a later time but with a high -    // chance to succeed. -    SCHEDULED = 2; - -    // Resource allocation has been successful. At least one Task in the Job is -    // RUNNING. -    RUNNING = 3; - -    // All Tasks in the Job have finished successfully. -    SUCCEEDED = 4; - -    // At least one Task in the Job has failed. -    FAILED = 5; - -    // The Job will be deleted, but has not been deleted yet. Typically this is -    // because resources used by the Job are still being cleaned up. -    DELETION_IN_PROGRESS = 6; -  } - -  // Job state -  State state = 1; - -  // Job status events -  repeated StatusEvent status_events = 2; - -  // Aggregated task status for each TaskGroup in the Job. -  // The map key is TaskGroup ID. -  map<string, TaskGroupStatus> task_groups = 4; - -  // The duration of time that the Job spent in status RUNNING. -  google.protobuf.Duration run_duration = 5; -} - -// Notification configurations. -message JobNotification { -  // Message details. -  // Describe the attribute that a message should have. -  // Without specified message attributes, no message will be sent by default. -  message Message { -    // The message type. -    Type type = 1; - -    // The new job state. -    JobStatus.State new_job_state = 2; - -    // The new task state. -    TaskStatus.State new_task_state = 3; -  } - -  // The message type. -  enum Type { -    // Unspecified. -    TYPE_UNSPECIFIED = 0; - -    // Notify users that the job state has changed. -    JOB_STATE_CHANGED = 1; - -    // Notify users that the task state has changed. -    TASK_STATE_CHANGED = 2; -  } - -  // The Pub/Sub topic where notifications like the job state changes -  // will be published. This topic exist in the same project as the job -  // and billings will be charged to this project. -  // If not specified, no Pub/Sub messages will be sent. -  // Topic format: `projects/{project}/topics/{topic}`. -  string pubsub_topic = 1; - -  // The attribute requirements of messages to be sent to this Pub/Sub topic. -  // Without this field, no message will be sent. -  Message message = 2; -} - -// A Job's resource allocation policy describes when, where, and how compute -// resources should be allocated for the Job. -message AllocationPolicy { -  message LocationPolicy { -    // A list of allowed location names represented by internal URLs. -    // Each location can be a region or a zone. -    // Only one region or multiple zones in one region is supported now. -    // For example, -    // ["regions/us-central1"] allow VMs in any zones in region us-central1. -    // ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs -    // in zones us-central1-a and us-central1-c. -    // All locations end up in different regions would cause errors. -    // For example, -    // ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", -    // "zones/us-west1-a"] contains 2 regions "us-central1" and -    // "us-west1". An error is expected in this case. -    repeated string allowed_locations = 1; - -    // A list of denied location names. -    // -    // Not yet implemented. -    repeated string denied_locations = 2; -  } - -  // A new persistent disk or a local ssd. -  // A VM can only have one local SSD setting but multiple local SSD partitions. -  // https://cloud.google.com/compute/docs/disks#pdspecs. -  // https://cloud.google.com/compute/docs/disks#localssds. -  message Disk { -    // A data source from which a PD will be created. -    oneof data_source { -      // Name of a public or custom image used as the data source. -      string image = 4; - -      // Name of a snapshot used as the data source. -      string snapshot = 5; -    } - -    // Disk type as shown in `gcloud compute disk-types list` -    // For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd". -    string type = 1; - -    // Disk size in GB. -    // This field is ignored if `data_source` is `disk` or `image`. -    // If `type` is `local-ssd`, size_gb should be a multiple of 375GB, -    // otherwise, the final size will be the next greater multiple of 375 GB. -    int64 size_gb = 2; - -    // Local SSDs are available through both "SCSI" and "NVMe" interfaces. -    // If not indicated, "NVMe" will be the default one for local ssds. -    // We only support "SCSI" for persistent disks now. -    string disk_interface = 6; -  } - -  // A new or an existing persistent disk or a local ssd attached to a VM -  // instance. -  message AttachedDisk { -    oneof attached { -      Disk new_disk = 1; - -      // Name of an existing PD. -      string existing_disk = 2; -    } - -    // Device name that the guest operating system will see. -    // If not specified, this is default to the disk name. -    string device_name = 3; -  } - -  // Accelerator describes Compute Engine accelerators to be attached to VMs. -  message Accelerator { -    // The accelerator type. For example, "nvidia-tesla-t4". -    // See `gcloud compute accelerator-types list`. -    string type = 1; - -    // The number of accelerators of this type. -    int64 count = 2; - -    bool install_gpu_drivers = 3 [deprecated = true]; -  } - -  // InstancePolicy describes an instance type and resources attached to each VM -  // created by this InstancePolicy. -  message InstancePolicy { -    repeated string allowed_machine_types = 1 [deprecated = true]; - -    // The Compute Engine machine type. -    string machine_type = 2; - -    // The minimum CPU platform. -    // See -    // `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`. -    // Not yet implemented. -    string min_cpu_platform = 3; - -    // The provisioning model. -    ProvisioningModel provisioning_model = 4; - -    // The accelerators attached to each VM instance. -    // Not yet implemented. -    repeated Accelerator accelerators = 5; - -    // Non-boot disks to be attached for each VM created by this InstancePolicy. -    // New disks will be deleted when the attached VM is deleted. -    repeated AttachedDisk disks = 6; -  } - -  // Either an InstancePolicy or an instance template. -  message InstancePolicyOrTemplate { -    oneof policy_template { -      // InstancePolicy. -      InstancePolicy policy = 1; - -      // Name of an instance template used to create VMs. -      // Named the field as 'instance_template' instead of 'template' to avoid -      // c++ keyword conflict. -      string instance_template = 2; -    } - -    bool install_gpu_drivers = 3; -  } - -  // A network interface. -  message NetworkInterface { -    // The URL of the network resource. -    string network = 1; - -    // The URL of the Subnetwork resource. -    string subnetwork = 2; - -    // Default is false (with an external IP address). Required if -    // no external public IP address is attached to the VM. If no external -    // public IP address, additional configuration is required to allow the VM -    // to access Google Services. See -    // https://cloud.google.com/vpc/docs/configure-private-google-access and -    // https://cloud.google.com/nat/docs/gce-example#create-nat for more -    // information. -    bool no_external_ip_address = 3; -  } - -  // NetworkPolicy describes VM instance network configurations. -  message NetworkPolicy { -    // Network configurations. -    repeated NetworkInterface network_interfaces = 1; -  } - -  // Compute Engine VM instance provisioning model. -  enum ProvisioningModel { -    // Unspecified. -    PROVISIONING_MODEL_UNSPECIFIED = 0; - -    // Standard VM. -    STANDARD = 1; - -    // SPOT VM. -    SPOT = 2; - -    // Preemptible VM (PVM). -    // -    // Above SPOT VM is the preferable model for preemptible VM instances: the -    // old preemptible VM model (indicated by this field) is the older model, -    // and has been migrated to use the SPOT model as the underlying technology. -    // This old model will still be supported. -    PREEMPTIBLE = 3; -  } - -  // Location where compute resources should be allocated for the Job. -  LocationPolicy location = 1; - -  // Create only instances allowed by this policy. -  InstancePolicy instance = 2 [deprecated = true]; - -  // Describe instances that can be created by this AllocationPolicy. -  // Only instances[0] is supported now. -  repeated InstancePolicyOrTemplate instances = 8; - -  // Instance templates that are used to VMs. -  // If specified, only instance_templates[0] is used. -  repeated string instance_templates = 3 [deprecated = true]; - -  // Create only instances in the listed provisiong models. -  // Default to allow all. -  // -  // Currently only the first model of the provisioning_models list will be -  // considered; specifying additional models (e.g., 2nd, 3rd, etc.) is a no-op. -  repeated ProvisioningModel provisioning_models = 4 [deprecated = true]; - -  // Email of the service account that VMs will run as. -  string service_account_email = 5 [deprecated = true]; - -  // Service account that VMs will run as. -  // Not yet implemented. -  ServiceAccount service_account = 9; - -  // Labels applied to all VM instances and other resources -  // created by AllocationPolicy. -  // Labels could be user provided or system generated. -  // You can assign up to 64 labels. [Google Compute Engine label -  // restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) -  // apply. -  // Label names that start with "goog-" or "google-" are reserved. -  map<string, string> labels = 6; - -  // The network policy. -  NetworkPolicy network = 7; -} - -// A TaskGroup contains one or multiple Tasks that share the same -// Runnable but with different runtime parameters. -message TaskGroup { -  option (google.api.resource) = { -    type: "batch.googleapis.com/TaskGroup" -    pattern: "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}" -  }; - -  // How Tasks in the TaskGroup should be scheduled relative to each other. -  enum SchedulingPolicy { -    // Unspecified. -    SCHEDULING_POLICY_UNSPECIFIED = 0; - -    // Run Tasks as soon as resources are available. -    AS_SOON_AS_POSSIBLE = 1; -  } - -  // Output only. TaskGroup name. -  // The system generates this field based on parent Job name. -  // For example: -  // "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01". -  string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Required. Tasks in the group share the same task spec. -  TaskSpec task_spec = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Number of Tasks in the TaskGroup. -  // default is 1 -  int64 task_count = 4; - -  // Max number of tasks that can run in parallel. -  // Default to min(task_count, 1000). -  int64 parallelism = 5; - -  // Scheduling policy for Tasks in the TaskGroup. -  SchedulingPolicy scheduling_policy = 6; - -  // Compute resource allocation for the TaskGroup. -  // If specified, it overrides resources in Job. -  AllocationPolicy allocation_policy = 7; - -  // Labels for the TaskGroup. -  // Labels could be user provided or system generated. -  // You can assign up to 64 labels.  [Google Compute Engine label -  // restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) -  // apply. -  // Label names that start with "goog-" or "google-" are reserved. -  map<string, string> labels = 8; - -  // An array of environment variable mappings, which are passed to Tasks with -  // matching indices. If task_environments is used then task_count should -  // not be specified in the request (and will be ignored). Task count will be -  // the length of task_environments. -  // -  // Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in -  // addition to any environment variables set in task_environments, specifying -  // the number of Tasks in the Task's parent TaskGroup, and the specific Task's -  // index in the TaskGroup (0 through BATCH_TASK_COUNT - 1). -  // -  // task_environments supports up to 200 entries. -  repeated Environment task_environments = 9; - -  // Max number of tasks that can be run on a VM at the same time. -  // If not specified, the system will decide a value based on available -  // compute resources on a VM and task requirements. -  int64 task_count_per_node = 10; - -  // When true, Batch will populate a file with a list of all VMs assigned to -  // the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path -  // of that file. Defaults to false. -  bool require_hosts_file = 11; - -  // When true, Batch will configure SSH to allow passwordless login between -  // VMs running the Batch tasks in the same TaskGroup. -  bool permissive_ssh = 12; -} - -// Carries information about a Google Cloud service account. -message ServiceAccount { -  // Email address of the service account. If not specified, the default -  // Compute Engine service account for the project will be used. -  string email = 1; - -  // List of scopes to be enabled for this service account on the VM, in -  // addition to the cloud-platform API scope that will be added by default. -  repeated string scopes = 2; -} diff --git a/third_party/googleapis/google/cloud/batch/v1alpha/task.proto b/third_party/googleapis/google/cloud/batch/v1alpha/task.proto deleted file mode 100644 index 6b69165..0000000 --- a/third_party/googleapis/google/cloud/batch/v1alpha/task.proto +++ /dev/null @@ -1,322 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.batch.v1alpha; - -import "google/api/resource.proto"; -import "google/cloud/batch/v1alpha/volume.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.Batch.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha;batch"; -option java_multiple_files = true; -option java_outer_classname = "TaskProto"; -option java_package = "com.google.cloud.batch.v1alpha"; -option objc_class_prefix = "GCB"; -option php_namespace = "Google\\Cloud\\Batch\\V1alpha"; -option ruby_package = "Google::Cloud::Batch::V1alpha"; - -// Compute resource requirements -message ComputeResource { -  // The milliCPU count. -  int64 cpu_milli = 1; - -  // Memory in MiB. -  int64 memory_mib = 2; - -  // The GPU count. -  // -  // Not yet implemented. -  int64 gpu_count = 3; - -  // Extra boot disk size in MiB for each task. -  int64 boot_disk_mib = 4; -} - -// Status event -message StatusEvent { -  // Type of the event. -  string type = 3; - -  // Description of the event. -  string description = 1; - -  // The time this event occurred. -  google.protobuf.Timestamp event_time = 2; - -  // Task Execution -  TaskExecution task_execution = 4; -} - -// This Task Execution field includes detail information for -// task execution procedures, based on StatusEvent types. -message TaskExecution { -  // When task is completed as the status of FAILED or SUCCEEDED, -  // exit code is for one task execution result, default is 0 as success. -  int32 exit_code = 1; -} - -// Status of a task -message TaskStatus { -  // Task states. -  enum State { -    // unknown state -    STATE_UNSPECIFIED = 0; - -    // The Task is created and waiting for resources. -    PENDING = 1; - -    // The Task is assigned to at least one VM. -    ASSIGNED = 2; - -    // The Task is running. -    RUNNING = 3; - -    // The Task has failed. -    FAILED = 4; - -    // The Task has succeeded. -    SUCCEEDED = 5; -  } - -  // Task state -  State state = 1; - -  // Detailed info about why the state is reached. -  repeated StatusEvent status_events = 2; -} - -// Runnable describes instructions for executing a specific script or container -// as part of a Task. -message Runnable { -  // Container runnable. -  message Container { -    // The URI to pull the container image from. -    string image_uri = 1; - -    // Overrides the `CMD` specified in the container. If there is an ENTRYPOINT -    // (either in the container image or with the entrypoint field below) then -    // commands are appended as arguments to the ENTRYPOINT. -    repeated string commands = 2; - -    // Overrides the `ENTRYPOINT` specified in the container. -    string entrypoint = 3; - -    // Volumes to mount (bind mount) from the host machine files or directories -    // into the container, formatted to match docker run's --volume option, -    // e.g. /foo:/bar, or /foo:/bar:ro -    repeated string volumes = 7; - -    // Arbitrary additional options to include in the "docker run" command when -    // running this container, e.g. "--network host". -    string options = 8; - -    // If set to true, external network access to and from container will be -    // blocked. The container will use the default internal network -    // 'goog-internal'. -    bool block_external_network = 9; - -    // Optional username for logging in to a docker registry. If username -    // matches "projects/*/secrets/*/versions/*" then Batch will read the -    // username from the Secret Manager. -    string username = 10; - -    // Optional password for logging in to a docker registry. If password -    // matches "projects/*/secrets/*/versions/*" then Batch will read the -    // password from the Secret Manager; -    string password = 11; -  } - -  // Script runnable. -  message Script { -    oneof command { -      // Script file path on the host VM. -      string path = 1; - -      // Shell script text. -      string text = 2; -    } -  } - -  // Barrier runnable blocks until all tasks in a taskgroup reach it. -  message Barrier { -    // Barriers are identified by their index in runnable list. -    // Names are not required, but if present should be an identifier. -    string name = 1; -  } - -  // The script or container to run. -  oneof executable { -    // Container runnable. -    Container container = 1; - -    // Script runnable. -    Script script = 2; - -    // Barrier runnable. -    Barrier barrier = 6; -  } - -  // Normally, a non-zero exit status causes the Task to fail. This flag allows -  // execution of other Runnables to continue instead. -  bool ignore_exit_status = 3; - -  // This flag allows a Runnable to continue running in the background while the -  // Task executes subsequent Runnables. This is useful to provide services to -  // other Runnables (or to provide debugging support tools like SSH servers). -  bool background = 4; - -  // By default, after a Runnable fails, no further Runnable are executed. This -  // flag indicates that this Runnable must be run even if the Task has already -  // failed. This is useful for Runnables that copy output files off of the VM -  // or for debugging. -  // -  // The always_run flag does not override the Task's overall max_run_duration. -  // If the max_run_duration has expired then no further Runnables will execute, -  // not even always_run Runnables. -  bool always_run = 5; - -  // Environment variables for this Runnable (overrides variables set for the -  // whole Task or TaskGroup). -  Environment environment = 7; - -  // Timeout for this Runnable. -  google.protobuf.Duration timeout = 8; - -  // Labels for this Runnable. -  map<string, string> labels = 9; -} - -// Spec of a task -message TaskSpec { -  // The sequence of scripts or containers to run for this Task. Each Task using -  // this TaskSpec executes its list of runnables in order. The Task succeeds if -  // all of its runnables either exit with a zero status or any that exit with a -  // non-zero status have the ignore_exit_status flag. -  // -  // Background runnables are killed automatically (if they have not already -  // exited) a short time after all foreground runnables have completed. Even -  // though this is likely to result in a non-zero exit status for the -  // background runnable, these automatic kills are not treated as Task -  // failures. -  repeated Runnable runnables = 8; - -  // ComputeResource requirements. -  ComputeResource compute_resource = 3; - -  // Maximum duration the task should run. -  // The task will be killed and marked as FAILED if over this limit. -  google.protobuf.Duration max_run_duration = 4; - -  // Maximum number of retries on failures. -  // The default, 0, which means never retry. -  // The valid value range is [0, 10]. -  int32 max_retry_count = 5; - -  // Lifecycle management schema when any task in a task group is failed. -  // The valid size of lifecycle policies are [0, 10]. -  // For each lifecycle policy, when the condition is met, -  // the action in that policy will execute. -  // If there are multiple policies that the task execution result matches, -  // we use the action from the first matched policy. If task execution result -  // does not meet with any of the defined lifecycle policy, we consider it as -  // the default policy. Default policy means if the exit code is 0, exit task. -  // If task ends with non-zero exit code, retry the task with max_retry_count. -  repeated LifecyclePolicy lifecycle_policies = 9; - -  // Environment variables to set before running the Task. -  // You can set up to 100 environments. -  map<string, string> environments = 6 [deprecated = true]; - -  // Volumes to mount before running Tasks using this TaskSpec. -  repeated Volume volumes = 7; - -  // Environment variables to set before running the Task. -  Environment environment = 10; -} - -// LifecyclePolicy describes how to deal with task failures -// based on different conditions. -message LifecyclePolicy { -  // Conditions for actions to deal with task failures. -  message ActionCondition { -    // Exit codes of a task execution. -    // If there are more than 1 exit codes, -    // when task executes with any of the exit code in the list, -    // the condition is met and the action will be executed. -    repeated int32 exit_codes = 1; -  } - -  // Action on task failures based on different conditions. -  enum Action { -    // Action unspecified. -    ACTION_UNSPECIFIED = 0; - -    // Action that tasks in the group will be scheduled to re-execute. -    RETRY_TASK = 1; - -    // Action that tasks in the group will be stopped immediately. -    FAIL_TASK = 2; -  } - -  // Action to execute when ActionCondition is true. -  Action action = 1; - -  // Conditions that decide why a task failure is dealt with a specific action. -  ActionCondition action_condition = 2; -} - -// A Cloud Batch task. -message Task { -  option (google.api.resource) = { -    type: "batch.googleapis.com/Task" -    pattern: "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}/tasks/{task}" -  }; - -  // Task name. -  // The name is generated from the parent TaskGroup name and 'id' field. -  // For example: -  // "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01/tasks/task01". -  string name = 1; - -  // Task Status. -  TaskStatus status = 2; -} - -// An Environment describes a collection of environment variables to set when -// executing Tasks. -message Environment { -  message KMSEnvMap { -    // The name of the KMS key that will be used to decrypt the cipher text. -    string key_name = 1; - -    // The value of the cipherText response from the `encrypt` method. -    string cipher_text = 2; -  } - -  // A map of environment variable names to values. -  map<string, string> variables = 1; - -  // A map of environment variable names to Secret Manager secret names. -  // The VM will access the named secrets to set the value of each environment -  // variable. -  map<string, string> secret_variables = 2; - -  // An encrypted JSON dictionary where the key/value pairs correspond to -  // environment variable names and their values. -  KMSEnvMap encrypted_variables = 3; -} diff --git a/third_party/googleapis/google/cloud/batch/v1alpha/volume.proto b/third_party/googleapis/google/cloud/batch/v1alpha/volume.proto deleted file mode 100644 index b71a62b..0000000 --- a/third_party/googleapis/google/cloud/batch/v1alpha/volume.proto +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.batch.v1alpha; - -option csharp_namespace = "Google.Cloud.Batch.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha;batch"; -option java_multiple_files = true; -option java_outer_classname = "VolumeProto"; -option java_package = "com.google.cloud.batch.v1alpha"; -option objc_class_prefix = "GCB"; -option php_namespace = "Google\\Cloud\\Batch\\V1alpha"; -option ruby_package = "Google::Cloud::Batch::V1alpha"; - -// Volume and mount parameters to be associated with a TaskSpec. A TaskSpec -// might describe zero, one, or multiple volumes to be mounted as part of the -// task. -message Volume { -  // The source for the volume. -  oneof source { -    // An NFS source for the volume (could be a Filestore, for example). -    NFS nfs = 1; - -    // A persistent disk source for the volume. -    PD pd = 2 [deprecated = true]; - -    // A Google Cloud Storage source for the volume. -    GCS gcs = 3; - -    // Device name of an attached disk -    string device_name = 6; -  } - -  // Mount path for the volume, e.g. /mnt/share -  string mount_path = 4; - -  // Mount options -  // For Google Cloud Storage, mount options are the global options supported by -  // gcsfuse tool. Batch will use them to mount the volume with the following -  // command: -  // "gcsfuse [global options] bucket mountpoint". -  // For PD, NFS, mount options are these supported by /etc/fstab. Batch will -  // use Fstab to mount such volumes. -  // https://help.ubuntu.com/community/Fstab -  repeated string mount_options = 5; -} - -// Represents an NFS server and remote path: <server>:<remote_path> -message NFS { -  // URI of the NFS server, e.g. an IP address. -  string server = 1; - -  // Remote source path exported from NFS, e.g., "/share". -  string remote_path = 2; -} - -// Represents a GCP persistent disk -message PD { -  // PD disk name, e.g. pd-1. -  string disk = 1; - -  // PD device name, e.g. persistent-disk-1. -  string device = 2; - -  // Whether this is an existing PD. Default is false. If false, i.e., new -  // PD, we will format it into ext4 and mount to the given path. If true, i.e., -  // existing PD, it should be in ext4 format and we will mount it to the given -  // path. -  bool existing = 3 [deprecated = true]; -} - -// Represents a Google Cloud Storage volume source config. -message GCS { -  // Remote path, either a bucket name or a subdirectory of a bucket, e.g.: -  // bucket_name, bucket_name/subdirectory/ -  string remote_path = 1; -}  | 
