1- // Copyright 2022 Google LLC
1+ // Copyright 2023 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.
@@ -69,10 +69,12 @@ message EndpointPolicy {
6969 string name = 1 [(google.api.field_behavior ) = REQUIRED ];
7070
7171 // Output only. The timestamp when the resource was created.
72- google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
72+ google.protobuf.Timestamp create_time = 2
73+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
7374
7475 // Output only. The timestamp when the resource was updated.
75- google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior ) = OUTPUT_ONLY ];
76+ google.protobuf.Timestamp update_time = 3
77+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
7678
7779 // Optional. Set of label tags associated with the EndpointPolicy resource.
7880 map <string , string > labels = 4 [(google.api.field_behavior ) = OPTIONAL ];
@@ -93,19 +95,22 @@ message EndpointPolicy {
9395 }
9496 ];
9597
96- // Required. A matcher that selects endpoints to which the policies should be applied.
98+ // Required. A matcher that selects endpoints to which the policies should be
99+ // applied.
97100 EndpointMatcher endpoint_matcher = 9 [(google.api.field_behavior ) = REQUIRED ];
98101
99102 // Optional. Port selector for the (matched) endpoints. If no port selector is
100103 // provided, the matched config is applied to all ports.
101- TrafficPortSelector traffic_port_selector = 10 [(google.api.field_behavior ) = OPTIONAL ];
104+ TrafficPortSelector traffic_port_selector = 10
105+ [(google.api.field_behavior ) = OPTIONAL ];
102106
103- // Optional. A free-text description of the resource. Max length 1024 characters.
107+ // Optional. A free-text description of the resource. Max length 1024
108+ // characters.
104109 string description = 11 [(google.api.field_behavior ) = OPTIONAL ];
105110
106- // Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to
107- // determine the authentication policy to be applied to terminate the inbound
108- // traffic at the identified backends. If this field is not set,
111+ // Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is
112+ // used to determine the authentication policy to be applied to terminate the
113+ // inbound traffic at the identified backends. If this field is not set,
109114 // authentication is disabled(open) for this endpoint.
110115 string server_tls_policy = 12 [
111116 (google.api.field_behavior ) = OPTIONAL ,
@@ -114,14 +119,14 @@ message EndpointPolicy {
114119 }
115120 ];
116121
117- // Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set
118- // to specify the authentication for traffic from the proxy to the actual
119- // endpoints. More specifically, it is applied to the outgoing traffic from
120- // the proxy to the endpoint. This is typically used for sidecar model where
121- // the proxy identifies itself as endpoint to the control plane, with the
122- // connection between sidecar and endpoint requiring authentication. If this
123- // field is not set, authentication is disabled(open). Applicable only when
124- // EndpointPolicyType is SIDECAR_PROXY.
122+ // Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy
123+ // can be set to specify the authentication for traffic from the proxy to the
124+ // actual endpoints. More specifically, it is applied to the outgoing traffic
125+ // from the proxy to the endpoint. This is typically used for sidecar model
126+ // where the proxy identifies itself as endpoint to the control plane, with
127+ // the connection between sidecar and endpoint requiring authentication. If
128+ // this field is not set, authentication is disabled(open). Applicable only
129+ // when EndpointPolicyType is SIDECAR_PROXY.
125130 string client_tls_policy = 13 [
126131 (google.api.field_behavior ) = OPTIONAL ,
127132 (google.api.resource_reference ) = {
@@ -132,8 +137,8 @@ message EndpointPolicy {
132137
133138// Request used with the ListEndpointPolicies method.
134139message ListEndpointPoliciesRequest {
135- // Required. The project and location from which the EndpointPolicies should be
136- // listed, specified in the format `projects/*/locations/global`.
140+ // Required. The project and location from which the EndpointPolicies should
141+ // be listed, specified in the format `projects/*/locations/global`.
137142 string parent = 1 [
138143 (google.api.field_behavior ) = REQUIRED ,
139144 (google.api.resource_reference ) = {
@@ -200,7 +205,8 @@ message UpdateEndpointPolicyRequest {
200205 // The fields specified in the update_mask are relative to the resource, not
201206 // the full request. A field will be overwritten if it is in the mask. If the
202207 // user does not provide a mask then all fields will be overwritten.
203- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior ) = OPTIONAL ];
208+ google.protobuf.FieldMask update_mask = 1
209+ [(google.api.field_behavior ) = OPTIONAL ];
204210
205211 // Required. Updated EndpointPolicy resource.
206212 EndpointPolicy endpoint_policy = 2 [(google.api.field_behavior ) = REQUIRED ];
0 commit comments