1- // Copyright 2021 Google LLC
1+ // Copyright 2022 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -29,6 +29,20 @@ option ruby_package = "Google::Cloud::AppEngine::V1";
2929// An Application resource contains the top-level configuration of an App
3030// Engine application.
3131message Application {
32+ enum ServingStatus {
33+ // Serving status is unspecified.
34+ UNSPECIFIED = 0 ;
35+
36+ // Application is serving.
37+ SERVING = 1 ;
38+
39+ // Application has been disabled by the user.
40+ USER_DISABLED = 2 ;
41+
42+ // Application has been disabled by the system.
43+ SYSTEM_DISABLED = 3 ;
44+ }
45+
3246 // Identity-Aware Proxy
3347 message IdentityAwareProxy {
3448 // Whether the serving infrastructure will authenticate and
@@ -56,6 +70,20 @@ message Application {
5670 string oauth2_client_secret_sha256 = 4 ;
5771 }
5872
73+ enum DatabaseType {
74+ // Database type is unspecified.
75+ DATABASE_TYPE_UNSPECIFIED = 0 ;
76+
77+ // Cloud Datastore
78+ CLOUD_DATASTORE = 1 ;
79+
80+ // Cloud Firestore Native
81+ CLOUD_FIRESTORE = 2 ;
82+
83+ // Cloud Firestore in Datastore Mode
84+ CLOUD_DATASTORE_COMPATIBILITY = 3 ;
85+ }
86+
5987 // The feature specific settings to be used in the application. These define
6088 // behaviors that are user configurable.
6189 message FeatureSettings {
@@ -72,34 +100,6 @@ message Application {
72100 bool use_container_optimized_os = 2 ;
73101 }
74102
75- enum ServingStatus {
76- // Serving status is unspecified.
77- UNSPECIFIED = 0 ;
78-
79- // Application is serving.
80- SERVING = 1 ;
81-
82- // Application has been disabled by the user.
83- USER_DISABLED = 2 ;
84-
85- // Application has been disabled by the system.
86- SYSTEM_DISABLED = 3 ;
87- }
88-
89- enum DatabaseType {
90- // Database type is unspecified.
91- DATABASE_TYPE_UNSPECIFIED = 0 ;
92-
93- // Cloud Datastore
94- CLOUD_DATASTORE = 1 ;
95-
96- // Cloud Firestore Native
97- CLOUD_FIRESTORE = 2 ;
98-
99- // Cloud Firestore in Datastore Mode
100- CLOUD_DATASTORE_COMPATIBILITY = 3 ;
101- }
102-
103103 // Full path to the Application resource in the API.
104104 // Example: `apps/myapp`.
105105 //
@@ -157,6 +157,11 @@ message Application {
157157 // @OutputOnly
158158 string default_bucket = 12 ;
159159
160+ // The service account associated with the application.
161+ // This is the app-level default identity. If no identity provided during
162+ // create version, Admin API will fallback to this one.
163+ string service_account = 13 ;
164+
160165 IdentityAwareProxy iap = 14 ;
161166
162167 // The Google Container Registry domain used for storing managed build docker
0 commit comments