feat: added sync APIs for the CRUD operations of Data Agent · googleapis/googleapis@fbda01e
1-// Copyright 2025 Google LLC
1+// Copyright 2026 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.
@@ -83,6 +83,15 @@ service DataAgentService {
8383 };
8484 }
858586+// Creates a new DataAgent in a given project and location synchronously.
87+rpc CreateDataAgentSync(CreateDataAgentRequest) returns (DataAgent) {
88+option (google.api.http) = {
89+post: "/v1beta/{parent=projects/*/locations/*}/dataAgents:createSync"
90+body: "data_agent"
91+ };
92+option (google.api.method_signature) = "parent,data_agent,data_agent_id";
93+ }
94+8695// Updates the parameters of a single DataAgent.
8796rpc UpdateDataAgent(UpdateDataAgentRequest)
8897returns (google.longrunning.Operation) {
@@ -97,6 +106,15 @@ service DataAgentService {
97106 };
98107 }
99108109+// Updates the parameters of a single DataAgent synchronously.
110+rpc UpdateDataAgentSync(UpdateDataAgentRequest) returns (DataAgent) {
111+option (google.api.http) = {
112+patch: "/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync"
113+body: "data_agent"
114+ };
115+option (google.api.method_signature) = "data_agent,update_mask";
116+ }
117+100118// Deletes a single DataAgent.
101119rpc DeleteDataAgent(DeleteDataAgentRequest)
102120returns (google.longrunning.Operation) {
@@ -110,6 +128,15 @@ service DataAgentService {
110128 };
111129 }
112130131+// Deletes a single DataAgent synchronously.
132+rpc DeleteDataAgentSync(DeleteDataAgentRequest)
133+returns (google.protobuf.Empty) {
134+option (google.api.http) = {
135+delete: "/v1beta/{name=projects/*/locations/*/dataAgents/*}:deleteSync"
136+ };
137+option (google.api.method_signature) = "name";
138+ }
139+113140// Gets the IAM policy for DataAgent
114141rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
115142returns (google.iam.v1.Policy) {