1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC 2*d5c09012SAndroid Build Coastguard Worker// 3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*d5c09012SAndroid Build Coastguard Worker// 7*d5c09012SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*d5c09012SAndroid Build Coastguard Worker// 9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*d5c09012SAndroid Build Coastguard Worker// limitations under the License. 14*d5c09012SAndroid Build Coastguard Worker 15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3"; 16*d5c09012SAndroid Build Coastguard Worker 17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.run.v2; 18*d5c09012SAndroid Build Coastguard Worker 19*d5c09012SAndroid Build Coastguard Workerimport "google/api/annotations.proto"; 20*d5c09012SAndroid Build Coastguard Workerimport "google/api/client.proto"; 21*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto"; 22*d5c09012SAndroid Build Coastguard Workerimport "google/api/launch_stage.proto"; 23*d5c09012SAndroid Build Coastguard Workerimport "google/api/resource.proto"; 24*d5c09012SAndroid Build Coastguard Workerimport "google/api/routing.proto"; 25*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/run/v2/condition.proto"; 26*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/run/v2/revision_template.proto"; 27*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/run/v2/traffic_target.proto"; 28*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/run/v2/vendor_settings.proto"; 29*d5c09012SAndroid Build Coastguard Workerimport "google/iam/v1/iam_policy.proto"; 30*d5c09012SAndroid Build Coastguard Workerimport "google/iam/v1/policy.proto"; 31*d5c09012SAndroid Build Coastguard Workerimport "google/longrunning/operations.proto"; 32*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto"; 33*d5c09012SAndroid Build Coastguard Worker 34*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; 35*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true; 36*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "ServiceProto"; 37*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.run.v2"; 38*d5c09012SAndroid Build Coastguard Worker 39*d5c09012SAndroid Build Coastguard Worker// Cloud Run Service Control Plane API 40*d5c09012SAndroid Build Coastguard Workerservice Services { 41*d5c09012SAndroid Build Coastguard Worker option (google.api.default_host) = "run.googleapis.com"; 42*d5c09012SAndroid Build Coastguard Worker option (google.api.oauth_scopes) = 43*d5c09012SAndroid Build Coastguard Worker "https://www.googleapis.com/auth/cloud-platform"; 44*d5c09012SAndroid Build Coastguard Worker 45*d5c09012SAndroid Build Coastguard Worker // Creates a new Service in a given project and location. 46*d5c09012SAndroid Build Coastguard Worker rpc CreateService(CreateServiceRequest) 47*d5c09012SAndroid Build Coastguard Worker returns (google.longrunning.Operation) { 48*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 49*d5c09012SAndroid Build Coastguard Worker post: "/v2/{parent=projects/*/locations/*}/services" 50*d5c09012SAndroid Build Coastguard Worker body: "service" 51*d5c09012SAndroid Build Coastguard Worker }; 52*d5c09012SAndroid Build Coastguard Worker option (google.api.routing) = { 53*d5c09012SAndroid Build Coastguard Worker routing_parameters { 54*d5c09012SAndroid Build Coastguard Worker field: "parent" 55*d5c09012SAndroid Build Coastguard Worker path_template: "projects/*/locations/{location=*}" 56*d5c09012SAndroid Build Coastguard Worker } 57*d5c09012SAndroid Build Coastguard Worker }; 58*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "parent,service,service_id"; 59*d5c09012SAndroid Build Coastguard Worker option (google.longrunning.operation_info) = { 60*d5c09012SAndroid Build Coastguard Worker response_type: "Service" 61*d5c09012SAndroid Build Coastguard Worker metadata_type: "Service" 62*d5c09012SAndroid Build Coastguard Worker }; 63*d5c09012SAndroid Build Coastguard Worker } 64*d5c09012SAndroid Build Coastguard Worker 65*d5c09012SAndroid Build Coastguard Worker // Gets information about a Service. 66*d5c09012SAndroid Build Coastguard Worker rpc GetService(GetServiceRequest) returns (Service) { 67*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 68*d5c09012SAndroid Build Coastguard Worker get: "/v2/{name=projects/*/locations/*/services/*}" 69*d5c09012SAndroid Build Coastguard Worker }; 70*d5c09012SAndroid Build Coastguard Worker option (google.api.routing) = { 71*d5c09012SAndroid Build Coastguard Worker routing_parameters { 72*d5c09012SAndroid Build Coastguard Worker field: "name" 73*d5c09012SAndroid Build Coastguard Worker path_template: "projects/*/locations/{location=*}/**" 74*d5c09012SAndroid Build Coastguard Worker } 75*d5c09012SAndroid Build Coastguard Worker }; 76*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "name"; 77*d5c09012SAndroid Build Coastguard Worker } 78*d5c09012SAndroid Build Coastguard Worker 79*d5c09012SAndroid Build Coastguard Worker // Lists Services. 80*d5c09012SAndroid Build Coastguard Worker rpc ListServices(ListServicesRequest) returns (ListServicesResponse) { 81*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 82*d5c09012SAndroid Build Coastguard Worker get: "/v2/{parent=projects/*/locations/*}/services" 83*d5c09012SAndroid Build Coastguard Worker }; 84*d5c09012SAndroid Build Coastguard Worker option (google.api.routing) = { 85*d5c09012SAndroid Build Coastguard Worker routing_parameters { 86*d5c09012SAndroid Build Coastguard Worker field: "parent" 87*d5c09012SAndroid Build Coastguard Worker path_template: "projects/*/locations/{location=*}" 88*d5c09012SAndroid Build Coastguard Worker } 89*d5c09012SAndroid Build Coastguard Worker }; 90*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "parent"; 91*d5c09012SAndroid Build Coastguard Worker } 92*d5c09012SAndroid Build Coastguard Worker 93*d5c09012SAndroid Build Coastguard Worker // Updates a Service. 94*d5c09012SAndroid Build Coastguard Worker rpc UpdateService(UpdateServiceRequest) 95*d5c09012SAndroid Build Coastguard Worker returns (google.longrunning.Operation) { 96*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 97*d5c09012SAndroid Build Coastguard Worker patch: "/v2/{service.name=projects/*/locations/*/services/*}" 98*d5c09012SAndroid Build Coastguard Worker body: "service" 99*d5c09012SAndroid Build Coastguard Worker }; 100*d5c09012SAndroid Build Coastguard Worker option (google.api.routing) = { 101*d5c09012SAndroid Build Coastguard Worker routing_parameters { 102*d5c09012SAndroid Build Coastguard Worker field: "service.name" 103*d5c09012SAndroid Build Coastguard Worker path_template: "projects/*/locations/{location=*}/**" 104*d5c09012SAndroid Build Coastguard Worker } 105*d5c09012SAndroid Build Coastguard Worker }; 106*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "service"; 107*d5c09012SAndroid Build Coastguard Worker option (google.longrunning.operation_info) = { 108*d5c09012SAndroid Build Coastguard Worker response_type: "Service" 109*d5c09012SAndroid Build Coastguard Worker metadata_type: "Service" 110*d5c09012SAndroid Build Coastguard Worker }; 111*d5c09012SAndroid Build Coastguard Worker } 112*d5c09012SAndroid Build Coastguard Worker 113*d5c09012SAndroid Build Coastguard Worker // Deletes a Service. 114*d5c09012SAndroid Build Coastguard Worker // This will cause the Service to stop serving traffic and will delete all 115*d5c09012SAndroid Build Coastguard Worker // revisions. 116*d5c09012SAndroid Build Coastguard Worker rpc DeleteService(DeleteServiceRequest) 117*d5c09012SAndroid Build Coastguard Worker returns (google.longrunning.Operation) { 118*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 119*d5c09012SAndroid Build Coastguard Worker delete: "/v2/{name=projects/*/locations/*/services/*}" 120*d5c09012SAndroid Build Coastguard Worker }; 121*d5c09012SAndroid Build Coastguard Worker option (google.api.routing) = { 122*d5c09012SAndroid Build Coastguard Worker routing_parameters { 123*d5c09012SAndroid Build Coastguard Worker field: "name" 124*d5c09012SAndroid Build Coastguard Worker path_template: "projects/*/locations/{location=*}/**" 125*d5c09012SAndroid Build Coastguard Worker } 126*d5c09012SAndroid Build Coastguard Worker }; 127*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "name"; 128*d5c09012SAndroid Build Coastguard Worker option (google.longrunning.operation_info) = { 129*d5c09012SAndroid Build Coastguard Worker response_type: "Service" 130*d5c09012SAndroid Build Coastguard Worker metadata_type: "Service" 131*d5c09012SAndroid Build Coastguard Worker }; 132*d5c09012SAndroid Build Coastguard Worker } 133*d5c09012SAndroid Build Coastguard Worker 134*d5c09012SAndroid Build Coastguard Worker // Gets the IAM Access Control policy currently in effect for the given 135*d5c09012SAndroid Build Coastguard Worker // Cloud Run Service. This result does not include any inherited policies. 136*d5c09012SAndroid Build Coastguard Worker rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) 137*d5c09012SAndroid Build Coastguard Worker returns (google.iam.v1.Policy) { 138*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 139*d5c09012SAndroid Build Coastguard Worker get: "/v2/{resource=projects/*/locations/*/services/*}:getIamPolicy" 140*d5c09012SAndroid Build Coastguard Worker }; 141*d5c09012SAndroid Build Coastguard Worker } 142*d5c09012SAndroid Build Coastguard Worker 143*d5c09012SAndroid Build Coastguard Worker // Sets the IAM Access control policy for the specified Service. Overwrites 144*d5c09012SAndroid Build Coastguard Worker // any existing policy. 145*d5c09012SAndroid Build Coastguard Worker rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) 146*d5c09012SAndroid Build Coastguard Worker returns (google.iam.v1.Policy) { 147*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 148*d5c09012SAndroid Build Coastguard Worker post: "/v2/{resource=projects/*/locations/*/services/*}:setIamPolicy" 149*d5c09012SAndroid Build Coastguard Worker body: "*" 150*d5c09012SAndroid Build Coastguard Worker }; 151*d5c09012SAndroid Build Coastguard Worker } 152*d5c09012SAndroid Build Coastguard Worker 153*d5c09012SAndroid Build Coastguard Worker // Returns permissions that a caller has on the specified Project. 154*d5c09012SAndroid Build Coastguard Worker // 155*d5c09012SAndroid Build Coastguard Worker // There are no permissions required for making this API call. 156*d5c09012SAndroid Build Coastguard Worker rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) 157*d5c09012SAndroid Build Coastguard Worker returns (google.iam.v1.TestIamPermissionsResponse) { 158*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 159*d5c09012SAndroid Build Coastguard Worker post: "/v2/{resource=projects/*/locations/*/services/*}:testIamPermissions" 160*d5c09012SAndroid Build Coastguard Worker body: "*" 161*d5c09012SAndroid Build Coastguard Worker }; 162*d5c09012SAndroid Build Coastguard Worker } 163*d5c09012SAndroid Build Coastguard Worker} 164*d5c09012SAndroid Build Coastguard Worker 165*d5c09012SAndroid Build Coastguard Worker// Request message for creating a Service. 166*d5c09012SAndroid Build Coastguard Workermessage CreateServiceRequest { 167*d5c09012SAndroid Build Coastguard Worker // Required. The location and project in which this service should be created. 168*d5c09012SAndroid Build Coastguard Worker // Format: projects/{project}/locations/{location}, where {project} can be 169*d5c09012SAndroid Build Coastguard Worker // project id or number. Only lowercase characters, digits, and hyphens. 170*d5c09012SAndroid Build Coastguard Worker string parent = 1 [ 171*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 172*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { 173*d5c09012SAndroid Build Coastguard Worker child_type: "run.googleapis.com/Service" 174*d5c09012SAndroid Build Coastguard Worker } 175*d5c09012SAndroid Build Coastguard Worker ]; 176*d5c09012SAndroid Build Coastguard Worker 177*d5c09012SAndroid Build Coastguard Worker // Required. The Service instance to create. 178*d5c09012SAndroid Build Coastguard Worker Service service = 2 [(google.api.field_behavior) = REQUIRED]; 179*d5c09012SAndroid Build Coastguard Worker 180*d5c09012SAndroid Build Coastguard Worker // Required. The unique identifier for the Service. It must begin with letter, 181*d5c09012SAndroid Build Coastguard Worker // and cannot end with hyphen; must contain fewer than 50 characters. 182*d5c09012SAndroid Build Coastguard Worker // The name of the service becomes {parent}/services/{service_id}. 183*d5c09012SAndroid Build Coastguard Worker string service_id = 3 [(google.api.field_behavior) = REQUIRED]; 184*d5c09012SAndroid Build Coastguard Worker 185*d5c09012SAndroid Build Coastguard Worker // Indicates that the request should be validated and default values 186*d5c09012SAndroid Build Coastguard Worker // populated, without persisting the request or creating any resources. 187*d5c09012SAndroid Build Coastguard Worker bool validate_only = 4; 188*d5c09012SAndroid Build Coastguard Worker} 189*d5c09012SAndroid Build Coastguard Worker 190*d5c09012SAndroid Build Coastguard Worker// Request message for updating a service. 191*d5c09012SAndroid Build Coastguard Workermessage UpdateServiceRequest { 192*d5c09012SAndroid Build Coastguard Worker // Required. The Service to be updated. 193*d5c09012SAndroid Build Coastguard Worker Service service = 1 [(google.api.field_behavior) = REQUIRED]; 194*d5c09012SAndroid Build Coastguard Worker 195*d5c09012SAndroid Build Coastguard Worker // Indicates that the request should be validated and default values 196*d5c09012SAndroid Build Coastguard Worker // populated, without persisting the request or updating any resources. 197*d5c09012SAndroid Build Coastguard Worker bool validate_only = 3; 198*d5c09012SAndroid Build Coastguard Worker 199*d5c09012SAndroid Build Coastguard Worker // If set to true, and if the Service does not exist, it will create a new 200*d5c09012SAndroid Build Coastguard Worker // one. The caller must have 'run.services.create' permissions if this is set 201*d5c09012SAndroid Build Coastguard Worker // to true and the Service does not exist. 202*d5c09012SAndroid Build Coastguard Worker bool allow_missing = 4; 203*d5c09012SAndroid Build Coastguard Worker} 204*d5c09012SAndroid Build Coastguard Worker 205*d5c09012SAndroid Build Coastguard Worker// Request message for retrieving a list of Services. 206*d5c09012SAndroid Build Coastguard Workermessage ListServicesRequest { 207*d5c09012SAndroid Build Coastguard Worker // Required. The location and project to list resources on. 208*d5c09012SAndroid Build Coastguard Worker // Location must be a valid Google Cloud region, and cannot be the "-" 209*d5c09012SAndroid Build Coastguard Worker // wildcard. Format: projects/{project}/locations/{location}, where {project} 210*d5c09012SAndroid Build Coastguard Worker // can be project id or number. 211*d5c09012SAndroid Build Coastguard Worker string parent = 1 [ 212*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 213*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { 214*d5c09012SAndroid Build Coastguard Worker child_type: "run.googleapis.com/Service" 215*d5c09012SAndroid Build Coastguard Worker } 216*d5c09012SAndroid Build Coastguard Worker ]; 217*d5c09012SAndroid Build Coastguard Worker 218*d5c09012SAndroid Build Coastguard Worker // Maximum number of Services to return in this call. 219*d5c09012SAndroid Build Coastguard Worker int32 page_size = 2; 220*d5c09012SAndroid Build Coastguard Worker 221*d5c09012SAndroid Build Coastguard Worker // A page token received from a previous call to ListServices. 222*d5c09012SAndroid Build Coastguard Worker // All other parameters must match. 223*d5c09012SAndroid Build Coastguard Worker string page_token = 3; 224*d5c09012SAndroid Build Coastguard Worker 225*d5c09012SAndroid Build Coastguard Worker // If true, returns deleted (but unexpired) resources along with active ones. 226*d5c09012SAndroid Build Coastguard Worker bool show_deleted = 4; 227*d5c09012SAndroid Build Coastguard Worker} 228*d5c09012SAndroid Build Coastguard Worker 229*d5c09012SAndroid Build Coastguard Worker// Response message containing a list of Services. 230*d5c09012SAndroid Build Coastguard Workermessage ListServicesResponse { 231*d5c09012SAndroid Build Coastguard Worker // The resulting list of Services. 232*d5c09012SAndroid Build Coastguard Worker repeated Service services = 1; 233*d5c09012SAndroid Build Coastguard Worker 234*d5c09012SAndroid Build Coastguard Worker // A token indicating there are more items than page_size. Use it in the next 235*d5c09012SAndroid Build Coastguard Worker // ListServices request to continue. 236*d5c09012SAndroid Build Coastguard Worker string next_page_token = 2; 237*d5c09012SAndroid Build Coastguard Worker} 238*d5c09012SAndroid Build Coastguard Worker 239*d5c09012SAndroid Build Coastguard Worker// Request message for obtaining a Service by its full name. 240*d5c09012SAndroid Build Coastguard Workermessage GetServiceRequest { 241*d5c09012SAndroid Build Coastguard Worker // Required. The full name of the Service. 242*d5c09012SAndroid Build Coastguard Worker // Format: projects/{project}/locations/{location}/services/{service}, where 243*d5c09012SAndroid Build Coastguard Worker // {project} can be project id or number. 244*d5c09012SAndroid Build Coastguard Worker string name = 1 [ 245*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 246*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { type: "run.googleapis.com/Service" } 247*d5c09012SAndroid Build Coastguard Worker ]; 248*d5c09012SAndroid Build Coastguard Worker} 249*d5c09012SAndroid Build Coastguard Worker 250*d5c09012SAndroid Build Coastguard Worker// Request message to delete a Service by its full name. 251*d5c09012SAndroid Build Coastguard Workermessage DeleteServiceRequest { 252*d5c09012SAndroid Build Coastguard Worker // Required. The full name of the Service. 253*d5c09012SAndroid Build Coastguard Worker // Format: projects/{project}/locations/{location}/services/{service}, where 254*d5c09012SAndroid Build Coastguard Worker // {project} can be project id or number. 255*d5c09012SAndroid Build Coastguard Worker string name = 1 [ 256*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 257*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { type: "run.googleapis.com/Service" } 258*d5c09012SAndroid Build Coastguard Worker ]; 259*d5c09012SAndroid Build Coastguard Worker 260*d5c09012SAndroid Build Coastguard Worker // Indicates that the request should be validated without actually 261*d5c09012SAndroid Build Coastguard Worker // deleting any resources. 262*d5c09012SAndroid Build Coastguard Worker bool validate_only = 2; 263*d5c09012SAndroid Build Coastguard Worker 264*d5c09012SAndroid Build Coastguard Worker // A system-generated fingerprint for this version of the 265*d5c09012SAndroid Build Coastguard Worker // resource. May be used to detect modification conflict during updates. 266*d5c09012SAndroid Build Coastguard Worker string etag = 3; 267*d5c09012SAndroid Build Coastguard Worker} 268*d5c09012SAndroid Build Coastguard Worker 269*d5c09012SAndroid Build Coastguard Worker// Service acts as a top-level container that manages a set of 270*d5c09012SAndroid Build Coastguard Worker// configurations and revision templates which implement a network service. 271*d5c09012SAndroid Build Coastguard Worker// Service exists to provide a singular abstraction which can be access 272*d5c09012SAndroid Build Coastguard Worker// controlled, reasoned about, and which encapsulates software lifecycle 273*d5c09012SAndroid Build Coastguard Worker// decisions such as rollout policy and team resource ownership. 274*d5c09012SAndroid Build Coastguard Workermessage Service { 275*d5c09012SAndroid Build Coastguard Worker option (google.api.resource) = { 276*d5c09012SAndroid Build Coastguard Worker type: "run.googleapis.com/Service" 277*d5c09012SAndroid Build Coastguard Worker pattern: "projects/{project}/locations/{location}/services/{service}" 278*d5c09012SAndroid Build Coastguard Worker style: DECLARATIVE_FRIENDLY 279*d5c09012SAndroid Build Coastguard Worker }; 280*d5c09012SAndroid Build Coastguard Worker 281*d5c09012SAndroid Build Coastguard Worker // The fully qualified name of this Service. In CreateServiceRequest, this 282*d5c09012SAndroid Build Coastguard Worker // field is ignored, and instead composed from CreateServiceRequest.parent and 283*d5c09012SAndroid Build Coastguard Worker // CreateServiceRequest.service_id. 284*d5c09012SAndroid Build Coastguard Worker // 285*d5c09012SAndroid Build Coastguard Worker // Format: 286*d5c09012SAndroid Build Coastguard Worker // projects/{project}/locations/{location}/services/{service_id} 287*d5c09012SAndroid Build Coastguard Worker string name = 1; 288*d5c09012SAndroid Build Coastguard Worker 289*d5c09012SAndroid Build Coastguard Worker // User-provided description of the Service. This field currently has a 290*d5c09012SAndroid Build Coastguard Worker // 512-character limit. 291*d5c09012SAndroid Build Coastguard Worker string description = 2; 292*d5c09012SAndroid Build Coastguard Worker 293*d5c09012SAndroid Build Coastguard Worker // Output only. Server assigned unique identifier for the trigger. The value 294*d5c09012SAndroid Build Coastguard Worker // is a UUID4 string and guaranteed to remain unchanged until the resource is 295*d5c09012SAndroid Build Coastguard Worker // deleted. 296*d5c09012SAndroid Build Coastguard Worker string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; 297*d5c09012SAndroid Build Coastguard Worker 298*d5c09012SAndroid Build Coastguard Worker // Output only. A number that monotonically increases every time the user 299*d5c09012SAndroid Build Coastguard Worker // modifies the desired state. 300*d5c09012SAndroid Build Coastguard Worker // Please note that unlike v1, this is an int64 value. As with most Google 301*d5c09012SAndroid Build Coastguard Worker // APIs, its JSON representation will be a `string` instead of an `integer`. 302*d5c09012SAndroid Build Coastguard Worker int64 generation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; 303*d5c09012SAndroid Build Coastguard Worker 304*d5c09012SAndroid Build Coastguard Worker // Optional. Unstructured key value map that can be used to organize and 305*d5c09012SAndroid Build Coastguard Worker // categorize objects. User-provided labels are shared with Google's billing 306*d5c09012SAndroid Build Coastguard Worker // system, so they can be used to filter, or break down billing charges by 307*d5c09012SAndroid Build Coastguard Worker // team, component, environment, state, etc. For more information, visit 308*d5c09012SAndroid Build Coastguard Worker // https://cloud.google.com/resource-manager/docs/creating-managing-labels or 309*d5c09012SAndroid Build Coastguard Worker // https://cloud.google.com/run/docs/configuring/labels. 310*d5c09012SAndroid Build Coastguard Worker // 311*d5c09012SAndroid Build Coastguard Worker // <p>Cloud Run API v2 does not support labels with `run.googleapis.com`, 312*d5c09012SAndroid Build Coastguard Worker // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` 313*d5c09012SAndroid Build Coastguard Worker // namespaces, and they will be rejected. All system labels in v1 now have a 314*d5c09012SAndroid Build Coastguard Worker // corresponding field in v2 Service. 315*d5c09012SAndroid Build Coastguard Worker map<string, string> labels = 5 [(google.api.field_behavior) = OPTIONAL]; 316*d5c09012SAndroid Build Coastguard Worker 317*d5c09012SAndroid Build Coastguard Worker // Optional. Unstructured key value map that may be set by external tools to 318*d5c09012SAndroid Build Coastguard Worker // store and arbitrary metadata. They are not queryable and should be 319*d5c09012SAndroid Build Coastguard Worker // preserved when modifying objects. 320*d5c09012SAndroid Build Coastguard Worker // 321*d5c09012SAndroid Build Coastguard Worker // <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, 322*d5c09012SAndroid Build Coastguard Worker // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` 323*d5c09012SAndroid Build Coastguard Worker // namespaces, and they will be rejected in new resources. All system 324*d5c09012SAndroid Build Coastguard Worker // annotations in v1 now have a corresponding field in v2 Service. 325*d5c09012SAndroid Build Coastguard Worker // 326*d5c09012SAndroid Build Coastguard Worker // <p>This field follows Kubernetes 327*d5c09012SAndroid Build Coastguard Worker // annotations' namespacing, limits, and rules. 328*d5c09012SAndroid Build Coastguard Worker map<string, string> annotations = 6 [(google.api.field_behavior) = OPTIONAL]; 329*d5c09012SAndroid Build Coastguard Worker 330*d5c09012SAndroid Build Coastguard Worker // Output only. The creation time. 331*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp create_time = 7 332*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 333*d5c09012SAndroid Build Coastguard Worker 334*d5c09012SAndroid Build Coastguard Worker // Output only. The last-modified time. 335*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp update_time = 8 336*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 337*d5c09012SAndroid Build Coastguard Worker 338*d5c09012SAndroid Build Coastguard Worker // Output only. The deletion time. 339*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp delete_time = 9 340*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 341*d5c09012SAndroid Build Coastguard Worker 342*d5c09012SAndroid Build Coastguard Worker // Output only. For a deleted resource, the time after which it will be 343*d5c09012SAndroid Build Coastguard Worker // permamently deleted. 344*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp expire_time = 10 345*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 346*d5c09012SAndroid Build Coastguard Worker 347*d5c09012SAndroid Build Coastguard Worker // Output only. Email address of the authenticated creator. 348*d5c09012SAndroid Build Coastguard Worker string creator = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; 349*d5c09012SAndroid Build Coastguard Worker 350*d5c09012SAndroid Build Coastguard Worker // Output only. Email address of the last authenticated modifier. 351*d5c09012SAndroid Build Coastguard Worker string last_modifier = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; 352*d5c09012SAndroid Build Coastguard Worker 353*d5c09012SAndroid Build Coastguard Worker // Arbitrary identifier for the API client. 354*d5c09012SAndroid Build Coastguard Worker string client = 13; 355*d5c09012SAndroid Build Coastguard Worker 356*d5c09012SAndroid Build Coastguard Worker // Arbitrary version identifier for the API client. 357*d5c09012SAndroid Build Coastguard Worker string client_version = 14; 358*d5c09012SAndroid Build Coastguard Worker 359*d5c09012SAndroid Build Coastguard Worker // Provides the ingress settings for this Service. On output, returns the 360*d5c09012SAndroid Build Coastguard Worker // currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no 361*d5c09012SAndroid Build Coastguard Worker // revision is active. 362*d5c09012SAndroid Build Coastguard Worker IngressTraffic ingress = 15; 363*d5c09012SAndroid Build Coastguard Worker 364*d5c09012SAndroid Build Coastguard Worker // The launch stage as defined by [Google Cloud Platform 365*d5c09012SAndroid Build Coastguard Worker // Launch Stages](https://cloud.google.com/terms/launch-stages). 366*d5c09012SAndroid Build Coastguard Worker // Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA 367*d5c09012SAndroid Build Coastguard Worker // is assumed. 368*d5c09012SAndroid Build Coastguard Worker // Set the launch stage to a preview stage on input to allow use of preview 369*d5c09012SAndroid Build Coastguard Worker // features in that stage. On read (or output), describes whether the resource 370*d5c09012SAndroid Build Coastguard Worker // uses preview features. 371*d5c09012SAndroid Build Coastguard Worker // <p> 372*d5c09012SAndroid Build Coastguard Worker // For example, if ALPHA is provided as input, but only BETA and GA-level 373*d5c09012SAndroid Build Coastguard Worker // features are used, this field will be BETA on output. 374*d5c09012SAndroid Build Coastguard Worker google.api.LaunchStage launch_stage = 16; 375*d5c09012SAndroid Build Coastguard Worker 376*d5c09012SAndroid Build Coastguard Worker // Settings for the Binary Authorization feature. 377*d5c09012SAndroid Build Coastguard Worker BinaryAuthorization binary_authorization = 17; 378*d5c09012SAndroid Build Coastguard Worker 379*d5c09012SAndroid Build Coastguard Worker // Required. The template used to create revisions for this Service. 380*d5c09012SAndroid Build Coastguard Worker RevisionTemplate template = 18 [(google.api.field_behavior) = REQUIRED]; 381*d5c09012SAndroid Build Coastguard Worker 382*d5c09012SAndroid Build Coastguard Worker // Specifies how to distribute traffic over a collection of Revisions 383*d5c09012SAndroid Build Coastguard Worker // belonging to the Service. If traffic is empty or not provided, defaults to 384*d5c09012SAndroid Build Coastguard Worker // 100% traffic to the latest `Ready` Revision. 385*d5c09012SAndroid Build Coastguard Worker repeated TrafficTarget traffic = 19; 386*d5c09012SAndroid Build Coastguard Worker 387*d5c09012SAndroid Build Coastguard Worker // Optional. Specifies service-level scaling settings 388*d5c09012SAndroid Build Coastguard Worker ServiceScaling scaling = 20 [(google.api.field_behavior) = OPTIONAL]; 389*d5c09012SAndroid Build Coastguard Worker 390*d5c09012SAndroid Build Coastguard Worker // Optional. Disables public resolution of the default URI of this service. 391*d5c09012SAndroid Build Coastguard Worker bool default_uri_disabled = 22 [(google.api.field_behavior) = OPTIONAL]; 392*d5c09012SAndroid Build Coastguard Worker 393*d5c09012SAndroid Build Coastguard Worker // Output only. The generation of this Service currently serving traffic. See 394*d5c09012SAndroid Build Coastguard Worker // comments in `reconciling` for additional information on reconciliation 395*d5c09012SAndroid Build Coastguard Worker // process in Cloud Run. Please note that unlike v1, this is an int64 value. 396*d5c09012SAndroid Build Coastguard Worker // As with most Google APIs, its JSON representation will be a `string` 397*d5c09012SAndroid Build Coastguard Worker // instead of an `integer`. 398*d5c09012SAndroid Build Coastguard Worker int64 observed_generation = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; 399*d5c09012SAndroid Build Coastguard Worker 400*d5c09012SAndroid Build Coastguard Worker // Output only. The Condition of this Service, containing its readiness 401*d5c09012SAndroid Build Coastguard Worker // status, and detailed error information in case it did not reach a serving 402*d5c09012SAndroid Build Coastguard Worker // state. See comments in `reconciling` for additional information on 403*d5c09012SAndroid Build Coastguard Worker // reconciliation process in Cloud Run. 404*d5c09012SAndroid Build Coastguard Worker Condition terminal_condition = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; 405*d5c09012SAndroid Build Coastguard Worker 406*d5c09012SAndroid Build Coastguard Worker // Output only. The Conditions of all other associated sub-resources. They 407*d5c09012SAndroid Build Coastguard Worker // contain additional diagnostics information in case the Service does not 408*d5c09012SAndroid Build Coastguard Worker // reach its Serving state. See comments in `reconciling` for additional 409*d5c09012SAndroid Build Coastguard Worker // information on reconciliation process in Cloud Run. 410*d5c09012SAndroid Build Coastguard Worker repeated Condition conditions = 32 411*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 412*d5c09012SAndroid Build Coastguard Worker 413*d5c09012SAndroid Build Coastguard Worker // Output only. Name of the latest revision that is serving traffic. See 414*d5c09012SAndroid Build Coastguard Worker // comments in `reconciling` for additional information on reconciliation 415*d5c09012SAndroid Build Coastguard Worker // process in Cloud Run. 416*d5c09012SAndroid Build Coastguard Worker string latest_ready_revision = 33 [ 417*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = OUTPUT_ONLY, 418*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } 419*d5c09012SAndroid Build Coastguard Worker ]; 420*d5c09012SAndroid Build Coastguard Worker 421*d5c09012SAndroid Build Coastguard Worker // Output only. Name of the last created revision. See comments in 422*d5c09012SAndroid Build Coastguard Worker // `reconciling` for additional information on reconciliation process in Cloud 423*d5c09012SAndroid Build Coastguard Worker // Run. 424*d5c09012SAndroid Build Coastguard Worker string latest_created_revision = 34 [ 425*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = OUTPUT_ONLY, 426*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } 427*d5c09012SAndroid Build Coastguard Worker ]; 428*d5c09012SAndroid Build Coastguard Worker 429*d5c09012SAndroid Build Coastguard Worker // Output only. Detailed status information for corresponding traffic targets. 430*d5c09012SAndroid Build Coastguard Worker // See comments in `reconciling` for additional information on reconciliation 431*d5c09012SAndroid Build Coastguard Worker // process in Cloud Run. 432*d5c09012SAndroid Build Coastguard Worker repeated TrafficTargetStatus traffic_statuses = 35 433*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 434*d5c09012SAndroid Build Coastguard Worker 435*d5c09012SAndroid Build Coastguard Worker // Output only. The main URI in which this Service is serving traffic. 436*d5c09012SAndroid Build Coastguard Worker string uri = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; 437*d5c09012SAndroid Build Coastguard Worker 438*d5c09012SAndroid Build Coastguard Worker // One or more custom audiences that you want this service to support. Specify 439*d5c09012SAndroid Build Coastguard Worker // each custom audience as the full URL in a string. The custom audiences are 440*d5c09012SAndroid Build Coastguard Worker // encoded in the token and used to authenticate requests. For more 441*d5c09012SAndroid Build Coastguard Worker // information, see 442*d5c09012SAndroid Build Coastguard Worker // https://cloud.google.com/run/docs/configuring/custom-audiences. 443*d5c09012SAndroid Build Coastguard Worker repeated string custom_audiences = 37; 444*d5c09012SAndroid Build Coastguard Worker 445*d5c09012SAndroid Build Coastguard Worker // Output only. Reserved for future use. 446*d5c09012SAndroid Build Coastguard Worker bool satisfies_pzs = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; 447*d5c09012SAndroid Build Coastguard Worker 448*d5c09012SAndroid Build Coastguard Worker // Output only. Returns true if the Service is currently being acted upon by 449*d5c09012SAndroid Build Coastguard Worker // the system to bring it into the desired state. 450*d5c09012SAndroid Build Coastguard Worker // 451*d5c09012SAndroid Build Coastguard Worker // When a new Service is created, or an existing one is updated, Cloud Run 452*d5c09012SAndroid Build Coastguard Worker // will asynchronously perform all necessary steps to bring the Service to the 453*d5c09012SAndroid Build Coastguard Worker // desired serving state. This process is called reconciliation. 454*d5c09012SAndroid Build Coastguard Worker // While reconciliation is in process, `observed_generation`, 455*d5c09012SAndroid Build Coastguard Worker // `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient 456*d5c09012SAndroid Build Coastguard Worker // values that might mismatch the intended state: Once reconciliation is over 457*d5c09012SAndroid Build Coastguard Worker // (and this field is false), there are two possible outcomes: reconciliation 458*d5c09012SAndroid Build Coastguard Worker // succeeded and the serving state matches the Service, or there was an error, 459*d5c09012SAndroid Build Coastguard Worker // and reconciliation failed. This state can be found in 460*d5c09012SAndroid Build Coastguard Worker // `terminal_condition.state`. 461*d5c09012SAndroid Build Coastguard Worker // 462*d5c09012SAndroid Build Coastguard Worker // If reconciliation succeeded, the following fields will match: `traffic` and 463*d5c09012SAndroid Build Coastguard Worker // `traffic_statuses`, `observed_generation` and `generation`, 464*d5c09012SAndroid Build Coastguard Worker // `latest_ready_revision` and `latest_created_revision`. 465*d5c09012SAndroid Build Coastguard Worker // 466*d5c09012SAndroid Build Coastguard Worker // If reconciliation failed, `traffic_statuses`, `observed_generation`, and 467*d5c09012SAndroid Build Coastguard Worker // `latest_ready_revision` will have the state of the last serving revision, 468*d5c09012SAndroid Build Coastguard Worker // or empty for newly created Services. Additional information on the failure 469*d5c09012SAndroid Build Coastguard Worker // can be found in `terminal_condition` and `conditions`. 470*d5c09012SAndroid Build Coastguard Worker bool reconciling = 98 [(google.api.field_behavior) = OUTPUT_ONLY]; 471*d5c09012SAndroid Build Coastguard Worker 472*d5c09012SAndroid Build Coastguard Worker // Output only. A system-generated fingerprint for this version of the 473*d5c09012SAndroid Build Coastguard Worker // resource. May be used to detect modification conflict during updates. 474*d5c09012SAndroid Build Coastguard Worker string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; 475*d5c09012SAndroid Build Coastguard Worker} 476