Skip to content

Commit fbda01e

Browse files
Google APIscopybara-github
authored andcommitted
feat: added sync APIs for the CRUD operations of Data Agent
PiperOrigin-RevId: 855534426
1 parent 61ea529 commit fbda01e

File tree

9 files changed

+36
-9
lines changed

9 files changed

+36
-9
lines changed

google/cloud/geminidataanalytics/v1beta/agent_context.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

google/cloud/geminidataanalytics/v1beta/context.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

google/cloud/geminidataanalytics/v1beta/conversation.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

google/cloud/geminidataanalytics/v1beta/credentials.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

google/cloud/geminidataanalytics/v1beta/data_agent.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

google/cloud/geminidataanalytics/v1beta/data_agent_service.proto

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
}
8585

86+
// 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.
8796
rpc UpdateDataAgent(UpdateDataAgentRequest)
8897
returns (google.longrunning.Operation) {
@@ -97,6 +106,15 @@ service DataAgentService {
97106
};
98107
}
99108

109+
// 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.
101119
rpc DeleteDataAgent(DeleteDataAgentRequest)
102120
returns (google.longrunning.Operation) {
@@ -110,6 +128,15 @@ service DataAgentService {
110128
};
111129
}
112130

131+
// 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
114141
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
115142
returns (google.iam.v1.Policy) {

google/cloud/geminidataanalytics/v1beta/data_analytics_agent.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

google/cloud/geminidataanalytics/v1beta/data_chat_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

google/cloud/geminidataanalytics/v1beta/datasource.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

0 commit comments

Comments
 (0)