123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460 |
- // Copyright 2022 Google LLC
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- syntax = "proto3";
- package google.cloud.networkservices.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/cloud/networkservices/v1/endpoint_policy.proto";
- import "google/cloud/networkservices/v1/gateway.proto";
- import "google/cloud/networkservices/v1/grpc_route.proto";
- import "google/cloud/networkservices/v1/http_route.proto";
- import "google/cloud/networkservices/v1/mesh.proto";
- import "google/cloud/networkservices/v1/service_binding.proto";
- import "google/cloud/networkservices/v1/tcp_route.proto";
- import "google/cloud/networkservices/v1/tls_route.proto";
- import "google/longrunning/operations.proto";
- option csharp_namespace = "Google.Cloud.NetworkServices.V1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/networkservices/v1;networkservices";
- option java_multiple_files = true;
- option java_package = "com.google.cloud.networkservices.v1";
- option php_namespace = "Google\\Cloud\\NetworkServices\\V1";
- option ruby_package = "Google::Cloud::NetworkServices::V1";
- service NetworkServices {
- option (google.api.default_host) = "networkservices.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
- // Lists EndpointPolicies in a given project and location.
- rpc ListEndpointPolicies(ListEndpointPoliciesRequest) returns (ListEndpointPoliciesResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/endpointPolicies"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single EndpointPolicy.
- rpc GetEndpointPolicy(GetEndpointPolicyRequest) returns (EndpointPolicy) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/endpointPolicies/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new EndpointPolicy in a given project and location.
- rpc CreateEndpointPolicy(CreateEndpointPolicyRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/endpointPolicies"
- body: "endpoint_policy"
- };
- option (google.api.method_signature) = "parent,endpoint_policy,endpoint_policy_id";
- option (google.longrunning.operation_info) = {
- response_type: "EndpointPolicy"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Updates the parameters of a single EndpointPolicy.
- rpc UpdateEndpointPolicy(UpdateEndpointPolicyRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1/{endpoint_policy.name=projects/*/locations/*/endpointPolicies/*}"
- body: "endpoint_policy"
- };
- option (google.api.method_signature) = "endpoint_policy,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "EndpointPolicy"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Deletes a single EndpointPolicy.
- rpc DeleteEndpointPolicy(DeleteEndpointPolicyRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/endpointPolicies/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Lists Gateways in a given project and location.
- rpc ListGateways(ListGatewaysRequest) returns (ListGatewaysResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/gateways"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single Gateway.
- rpc GetGateway(GetGatewayRequest) returns (Gateway) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/gateways/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new Gateway in a given project and location.
- rpc CreateGateway(CreateGatewayRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/gateways"
- body: "gateway"
- };
- option (google.api.method_signature) = "parent,gateway,gateway_id";
- option (google.longrunning.operation_info) = {
- response_type: "Gateway"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Updates the parameters of a single Gateway.
- rpc UpdateGateway(UpdateGatewayRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1/{gateway.name=projects/*/locations/*/gateways/*}"
- body: "gateway"
- };
- option (google.api.method_signature) = "gateway,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "Gateway"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Deletes a single Gateway.
- rpc DeleteGateway(DeleteGatewayRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/gateways/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Lists GrpcRoutes in a given project and location.
- rpc ListGrpcRoutes(ListGrpcRoutesRequest) returns (ListGrpcRoutesResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/grpcRoutes"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single GrpcRoute.
- rpc GetGrpcRoute(GetGrpcRouteRequest) returns (GrpcRoute) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/grpcRoutes/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new GrpcRoute in a given project and location.
- rpc CreateGrpcRoute(CreateGrpcRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/grpcRoutes"
- body: "grpc_route"
- };
- option (google.api.method_signature) = "parent,grpc_route,grpc_route_id";
- option (google.longrunning.operation_info) = {
- response_type: "GrpcRoute"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Updates the parameters of a single GrpcRoute.
- rpc UpdateGrpcRoute(UpdateGrpcRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1/{grpc_route.name=projects/*/locations/*/grpcRoutes/*}"
- body: "grpc_route"
- };
- option (google.api.method_signature) = "grpc_route,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "GrpcRoute"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Deletes a single GrpcRoute.
- rpc DeleteGrpcRoute(DeleteGrpcRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/grpcRoutes/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Lists HttpRoute in a given project and location.
- rpc ListHttpRoutes(ListHttpRoutesRequest) returns (ListHttpRoutesResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/httpRoutes"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single HttpRoute.
- rpc GetHttpRoute(GetHttpRouteRequest) returns (HttpRoute) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/httpRoutes/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new HttpRoute in a given project and location.
- rpc CreateHttpRoute(CreateHttpRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/httpRoutes"
- body: "http_route"
- };
- option (google.api.method_signature) = "parent,http_route,http_route_id";
- option (google.longrunning.operation_info) = {
- response_type: "HttpRoute"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Updates the parameters of a single HttpRoute.
- rpc UpdateHttpRoute(UpdateHttpRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1/{http_route.name=projects/*/locations/*/httpRoutes/*}"
- body: "http_route"
- };
- option (google.api.method_signature) = "http_route,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "HttpRoute"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Deletes a single HttpRoute.
- rpc DeleteHttpRoute(DeleteHttpRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/httpRoutes/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Lists TcpRoute in a given project and location.
- rpc ListTcpRoutes(ListTcpRoutesRequest) returns (ListTcpRoutesResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/tcpRoutes"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single TcpRoute.
- rpc GetTcpRoute(GetTcpRouteRequest) returns (TcpRoute) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/tcpRoutes/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new TcpRoute in a given project and location.
- rpc CreateTcpRoute(CreateTcpRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/tcpRoutes"
- body: "tcp_route"
- };
- option (google.api.method_signature) = "parent,tcp_route,tcp_route_id";
- option (google.longrunning.operation_info) = {
- response_type: "TcpRoute"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Updates the parameters of a single TcpRoute.
- rpc UpdateTcpRoute(UpdateTcpRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1/{tcp_route.name=projects/*/locations/*/tcpRoutes/*}"
- body: "tcp_route"
- };
- option (google.api.method_signature) = "tcp_route,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "TcpRoute"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Deletes a single TcpRoute.
- rpc DeleteTcpRoute(DeleteTcpRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/tcpRoutes/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Lists TlsRoute in a given project and location.
- rpc ListTlsRoutes(ListTlsRoutesRequest) returns (ListTlsRoutesResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/tlsRoutes"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single TlsRoute.
- rpc GetTlsRoute(GetTlsRouteRequest) returns (TlsRoute) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/tlsRoutes/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new TlsRoute in a given project and location.
- rpc CreateTlsRoute(CreateTlsRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/tlsRoutes"
- body: "tls_route"
- };
- option (google.api.method_signature) = "parent,tls_route,tls_route_id";
- option (google.longrunning.operation_info) = {
- response_type: "TlsRoute"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Updates the parameters of a single TlsRoute.
- rpc UpdateTlsRoute(UpdateTlsRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1/{tls_route.name=projects/*/locations/*/tlsRoutes/*}"
- body: "tls_route"
- };
- option (google.api.method_signature) = "tls_route,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "TlsRoute"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Deletes a single TlsRoute.
- rpc DeleteTlsRoute(DeleteTlsRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/tlsRoutes/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Lists ServiceBinding in a given project and location.
- rpc ListServiceBindings(ListServiceBindingsRequest) returns (ListServiceBindingsResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/serviceBindings"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single ServiceBinding.
- rpc GetServiceBinding(GetServiceBindingRequest) returns (ServiceBinding) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/serviceBindings/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new ServiceBinding in a given project and location.
- rpc CreateServiceBinding(CreateServiceBindingRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/serviceBindings"
- body: "service_binding"
- };
- option (google.api.method_signature) = "parent,service_binding,service_binding_id";
- option (google.longrunning.operation_info) = {
- response_type: "ServiceBinding"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Deletes a single ServiceBinding.
- rpc DeleteServiceBinding(DeleteServiceBindingRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/serviceBindings/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Lists Meshes in a given project and location.
- rpc ListMeshes(ListMeshesRequest) returns (ListMeshesResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*/locations/*}/meshes"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single Mesh.
- rpc GetMesh(GetMeshRequest) returns (Mesh) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/locations/*/meshes/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new Mesh in a given project and location.
- rpc CreateMesh(CreateMeshRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*/locations/*}/meshes"
- body: "mesh"
- };
- option (google.api.method_signature) = "parent,mesh,mesh_id";
- option (google.longrunning.operation_info) = {
- response_type: "Mesh"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Updates the parameters of a single Mesh.
- rpc UpdateMesh(UpdateMeshRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1/{mesh.name=projects/*/locations/*/meshes/*}"
- body: "mesh"
- };
- option (google.api.method_signature) = "mesh,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "Mesh"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- // Deletes a single Mesh.
- rpc DeleteMesh(DeleteMeshRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/locations/*/meshes/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "google.cloud.networkservices.v1.OperationMetadata"
- };
- }
- }
|