Skip to content

Commit 9e9ccf4

Browse files
Google APIscopybara-github
authored andcommitted
feat: add new AutonomousDatabase RPCs
PiperOrigin-RevId: 745730134
1 parent 141df8b commit 9e9ccf4

1 file changed

Lines changed: 78 additions & 0 deletions

File tree

google/cloud/oracledatabase/v1/oracledatabase.proto

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,48 @@ service OracleDatabase {
286286
};
287287
option (google.api.method_signature) = "parent";
288288
}
289+
290+
// Stops an Autonomous Database.
291+
rpc StopAutonomousDatabase(StopAutonomousDatabaseRequest)
292+
returns (google.longrunning.Operation) {
293+
option (google.api.http) = {
294+
post: "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:stop"
295+
body: "*"
296+
};
297+
option (google.api.method_signature) = "name";
298+
option (google.longrunning.operation_info) = {
299+
response_type: "AutonomousDatabase"
300+
metadata_type: "OperationMetadata"
301+
};
302+
}
303+
304+
// Starts an Autonomous Database.
305+
rpc StartAutonomousDatabase(StartAutonomousDatabaseRequest)
306+
returns (google.longrunning.Operation) {
307+
option (google.api.http) = {
308+
post: "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:start"
309+
body: "*"
310+
};
311+
option (google.api.method_signature) = "name";
312+
option (google.longrunning.operation_info) = {
313+
response_type: "AutonomousDatabase"
314+
metadata_type: "OperationMetadata"
315+
};
316+
}
317+
318+
// Restarts an Autonomous Database.
319+
rpc RestartAutonomousDatabase(RestartAutonomousDatabaseRequest)
320+
returns (google.longrunning.Operation) {
321+
option (google.api.http) = {
322+
post: "/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restart"
323+
body: "*"
324+
};
325+
option (google.api.method_signature) = "name";
326+
option (google.longrunning.operation_info) = {
327+
response_type: "AutonomousDatabase"
328+
metadata_type: "OperationMetadata"
329+
};
330+
}
289331
}
290332

291333
// The request for `CloudExadataInfrastructures.List`.
@@ -808,6 +850,42 @@ message RestoreAutonomousDatabaseRequest {
808850
[(google.api.field_behavior) = REQUIRED];
809851
}
810852

853+
// The request for `AutonomousDatabase.Stop`.
854+
message StopAutonomousDatabaseRequest {
855+
// Required. The name of the Autonomous Database in the following format:
856+
// projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
857+
string name = 1 [
858+
(google.api.field_behavior) = REQUIRED,
859+
(google.api.resource_reference) = {
860+
type: "oracledatabase.googleapis.com/AutonomousDatabase"
861+
}
862+
];
863+
}
864+
865+
// The request for `AutonomousDatabase.Start`.
866+
message StartAutonomousDatabaseRequest {
867+
// Required. The name of the Autonomous Database in the following format:
868+
// projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
869+
string name = 1 [
870+
(google.api.field_behavior) = REQUIRED,
871+
(google.api.resource_reference) = {
872+
type: "oracledatabase.googleapis.com/AutonomousDatabase"
873+
}
874+
];
875+
}
876+
877+
// The request for `AutonomousDatabase.Restart`.
878+
message RestartAutonomousDatabaseRequest {
879+
// Required. The name of the Autonomous Database in the following format:
880+
// projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
881+
string name = 1 [
882+
(google.api.field_behavior) = REQUIRED,
883+
(google.api.resource_reference) = {
884+
type: "oracledatabase.googleapis.com/AutonomousDatabase"
885+
}
886+
];
887+
}
888+
811889
// The request for `AutonomousDatabase.GenerateWallet`.
812890
message GenerateAutonomousDatabaseWalletRequest {
813891
// Required. The name of the Autonomous Database in the following format:

0 commit comments

Comments
 (0)