mirror of
https://github.com/googleapis/googleapis.git
synced 2026-08-20 13:27:47 +02:00
feat: added sync APIs for the CRUD operations of Data Agent
PiperOrigin-RevId: 855534426
This commit is contained in:
parent
61ea52947a
commit
fbda01ec75
9 changed files with 36 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2025 Google LLC
|
||||
// Copyright 2026 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2025 Google LLC
|
||||
// Copyright 2026 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2025 Google LLC
|
||||
// Copyright 2026 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2025 Google LLC
|
||||
// Copyright 2026 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2025 Google LLC
|
||||
// Copyright 2026 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2025 Google LLC
|
||||
// Copyright 2026 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
@ -83,6 +83,15 @@ service DataAgentService {
|
|||
};
|
||||
}
|
||||
|
||||
// Creates a new DataAgent in a given project and location synchronously.
|
||||
rpc CreateDataAgentSync(CreateDataAgentRequest) returns (DataAgent) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1beta/{parent=projects/*/locations/*}/dataAgents:createSync"
|
||||
body: "data_agent"
|
||||
};
|
||||
option (google.api.method_signature) = "parent,data_agent,data_agent_id";
|
||||
}
|
||||
|
||||
// Updates the parameters of a single DataAgent.
|
||||
rpc UpdateDataAgent(UpdateDataAgentRequest)
|
||||
returns (google.longrunning.Operation) {
|
||||
|
|
@ -97,6 +106,15 @@ service DataAgentService {
|
|||
};
|
||||
}
|
||||
|
||||
// Updates the parameters of a single DataAgent synchronously.
|
||||
rpc UpdateDataAgentSync(UpdateDataAgentRequest) returns (DataAgent) {
|
||||
option (google.api.http) = {
|
||||
patch: "/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync"
|
||||
body: "data_agent"
|
||||
};
|
||||
option (google.api.method_signature) = "data_agent,update_mask";
|
||||
}
|
||||
|
||||
// Deletes a single DataAgent.
|
||||
rpc DeleteDataAgent(DeleteDataAgentRequest)
|
||||
returns (google.longrunning.Operation) {
|
||||
|
|
@ -110,6 +128,15 @@ service DataAgentService {
|
|||
};
|
||||
}
|
||||
|
||||
// Deletes a single DataAgent synchronously.
|
||||
rpc DeleteDataAgentSync(DeleteDataAgentRequest)
|
||||
returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1beta/{name=projects/*/locations/*/dataAgents/*}:deleteSync"
|
||||
};
|
||||
option (google.api.method_signature) = "name";
|
||||
}
|
||||
|
||||
// Gets the IAM policy for DataAgent
|
||||
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
|
||||
returns (google.iam.v1.Policy) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2025 Google LLC
|
||||
// Copyright 2026 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2025 Google LLC
|
||||
// Copyright 2026 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2025 Google LLC
|
||||
// Copyright 2026 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue