Skip to content

Commit 04abdaa

Browse files
Google APIscopybara-github
authored andcommitted
docs: Add a comment for the NetworkServices service
PiperOrigin-RevId: 642310389
1 parent ac90fa9 commit 04abdaa

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

google/cloud/networkservices/v1/network_services.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ option java_package = "com.google.cloud.networkservices.v1";
3535
option php_namespace = "Google\\Cloud\\NetworkServices\\V1";
3636
option ruby_package = "Google::Cloud::NetworkServices::V1";
3737

38+
// Service describing handlers for resources.
3839
service NetworkServices {
3940
option (google.api.default_host) = "networkservices.googleapis.com";
4041
option (google.api.oauth_scopes) =

google/cloud/networkservices/v1beta1/network_services.proto

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ option java_package = "com.google.cloud.networkservices.v1beta1";
2828
option php_namespace = "Google\\Cloud\\NetworkServices\\V1beta1";
2929
option ruby_package = "Google::Cloud::NetworkServices::V1beta1";
3030

31+
// Service describing handlers for resources.
3132
service NetworkServices {
3233
option (google.api.default_host) = "networkservices.googleapis.com";
33-
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
34+
option (google.api.oauth_scopes) =
35+
"https://www.googleapis.com/auth/cloud-platform";
3436

3537
// Lists EndpointPolicies in a given project and location.
36-
rpc ListEndpointPolicies(ListEndpointPoliciesRequest) returns (ListEndpointPoliciesResponse) {
38+
rpc ListEndpointPolicies(ListEndpointPoliciesRequest)
39+
returns (ListEndpointPoliciesResponse) {
3740
option (google.api.http) = {
3841
get: "/v1beta1/{parent=projects/*/locations/*}/endpointPolicies"
3942
};
@@ -49,20 +52,23 @@ service NetworkServices {
4952
}
5053

5154
// Creates a new EndpointPolicy in a given project and location.
52-
rpc CreateEndpointPolicy(CreateEndpointPolicyRequest) returns (google.longrunning.Operation) {
55+
rpc CreateEndpointPolicy(CreateEndpointPolicyRequest)
56+
returns (google.longrunning.Operation) {
5357
option (google.api.http) = {
5458
post: "/v1beta1/{parent=projects/*/locations/*}/endpointPolicies"
5559
body: "endpoint_policy"
5660
};
57-
option (google.api.method_signature) = "parent,endpoint_policy,endpoint_policy_id";
61+
option (google.api.method_signature) =
62+
"parent,endpoint_policy,endpoint_policy_id";
5863
option (google.longrunning.operation_info) = {
5964
response_type: "EndpointPolicy"
6065
metadata_type: "google.cloud.networkservices.v1beta1.OperationMetadata"
6166
};
6267
}
6368

6469
// Updates the parameters of a single EndpointPolicy.
65-
rpc UpdateEndpointPolicy(UpdateEndpointPolicyRequest) returns (google.longrunning.Operation) {
70+
rpc UpdateEndpointPolicy(UpdateEndpointPolicyRequest)
71+
returns (google.longrunning.Operation) {
6672
option (google.api.http) = {
6773
patch: "/v1beta1/{endpoint_policy.name=projects/*/locations/*/endpointPolicies/*}"
6874
body: "endpoint_policy"
@@ -75,7 +81,8 @@ service NetworkServices {
7581
}
7682

7783
// Deletes a single EndpointPolicy.
78-
rpc DeleteEndpointPolicy(DeleteEndpointPolicyRequest) returns (google.longrunning.Operation) {
84+
rpc DeleteEndpointPolicy(DeleteEndpointPolicyRequest)
85+
returns (google.longrunning.Operation) {
7986
option (google.api.http) = {
8087
delete: "/v1beta1/{name=projects/*/locations/*/endpointPolicies/*}"
8188
};

0 commit comments

Comments
 (0)