network_services.proto 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.networkservices.v1beta1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/cloud/networkservices/v1beta1/endpoint_policy.proto";
  19. import "google/longrunning/operations.proto";
  20. option csharp_namespace = "Google.Cloud.NetworkServices.V1Beta1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/networkservices/v1beta1;networkservices";
  22. option java_multiple_files = true;
  23. option java_package = "com.google.cloud.networkservices.v1beta1";
  24. option php_namespace = "Google\\Cloud\\NetworkServices\\V1beta1";
  25. option ruby_package = "Google::Cloud::NetworkServices::V1beta1";
  26. service NetworkServices {
  27. option (google.api.default_host) = "networkservices.googleapis.com";
  28. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  29. // Lists EndpointPolicies in a given project and location.
  30. rpc ListEndpointPolicies(ListEndpointPoliciesRequest) returns (ListEndpointPoliciesResponse) {
  31. option (google.api.http) = {
  32. get: "/v1beta1/{parent=projects/*/locations/*}/endpointPolicies"
  33. };
  34. option (google.api.method_signature) = "parent";
  35. }
  36. // Gets details of a single EndpointPolicy.
  37. rpc GetEndpointPolicy(GetEndpointPolicyRequest) returns (EndpointPolicy) {
  38. option (google.api.http) = {
  39. get: "/v1beta1/{name=projects/*/locations/*/endpointPolicies/*}"
  40. };
  41. option (google.api.method_signature) = "name";
  42. }
  43. // Creates a new EndpointPolicy in a given project and location.
  44. rpc CreateEndpointPolicy(CreateEndpointPolicyRequest) returns (google.longrunning.Operation) {
  45. option (google.api.http) = {
  46. post: "/v1beta1/{parent=projects/*/locations/*}/endpointPolicies"
  47. body: "endpoint_policy"
  48. };
  49. option (google.api.method_signature) = "parent,endpoint_policy,endpoint_policy_id";
  50. option (google.longrunning.operation_info) = {
  51. response_type: "EndpointPolicy"
  52. metadata_type: "google.cloud.networkservices.v1beta1.OperationMetadata"
  53. };
  54. }
  55. // Updates the parameters of a single EndpointPolicy.
  56. rpc UpdateEndpointPolicy(UpdateEndpointPolicyRequest) returns (google.longrunning.Operation) {
  57. option (google.api.http) = {
  58. patch: "/v1beta1/{endpoint_policy.name=projects/*/locations/*/endpointPolicies/*}"
  59. body: "endpoint_policy"
  60. };
  61. option (google.api.method_signature) = "endpoint_policy,update_mask";
  62. option (google.longrunning.operation_info) = {
  63. response_type: "EndpointPolicy"
  64. metadata_type: "google.cloud.networkservices.v1beta1.OperationMetadata"
  65. };
  66. }
  67. // Deletes a single EndpointPolicy.
  68. rpc DeleteEndpointPolicy(DeleteEndpointPolicyRequest) returns (google.longrunning.Operation) {
  69. option (google.api.http) = {
  70. delete: "/v1beta1/{name=projects/*/locations/*/endpointPolicies/*}"
  71. };
  72. option (google.api.method_signature) = "name";
  73. option (google.longrunning.operation_info) = {
  74. response_type: "google.protobuf.Empty"
  75. metadata_type: "google.cloud.networkservices.v1beta1.OperationMetadata"
  76. };
  77. }
  78. }