diff --git a/NetworkServices/metadata/V1/EndpointPolicy.php b/NetworkServices/metadata/V1/EndpointPolicy.php index 9f152820a731..df5b024cf2c1 100644 --- a/NetworkServices/metadata/V1/EndpointPolicy.php +++ b/NetworkServices/metadata/V1/EndpointPolicy.php @@ -20,7 +20,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x93\x16\x0A5google/cloud/networkservices/v1/endpoint_policy.proto\x12\x1Fgoogle.cloud.networkservices.v1\x1A\x19google/api/resource.proto\x1A,google/cloud/networkservices/v1/common.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x8C\x08\x0A\x0EEndpointPolicy\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x124\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12P\x0A\x06labels\x18\x04 \x03(\x0B2;.google.cloud.networkservices.v1.EndpointPolicy.LabelsEntryB\x03\xE0A\x01\x12U\x0A\x04type\x18\x05 \x01(\x0E2B.google.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyTypeB\x03\xE0A\x02\x12X\x0A\x14authorization_policy\x18\x07 \x01(\x09B:\xE0A\x01\xFAA4\x0A2networksecurity.googleapis.com/AuthorizationPolicy\x12O\x0A\x10endpoint_matcher\x18\x09 \x01(\x0B20.google.cloud.networkservices.v1.EndpointMatcherB\x03\xE0A\x02\x12X\x0A\x15traffic_port_selector\x18\x0A \x01(\x0B24.google.cloud.networkservices.v1.TrafficPortSelectorB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x0B \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x11server_tls_policy\x18\x0C \x01(\x09B6\xE0A\x01\xFAA0\x0A.networksecurity.googleapis.com/ServerTlsPolicy\x12Q\x0A\x11client_tls_policy\x18\x0D \x01(\x09B6\xE0A\x01\xFAA0\x0A.networksecurity.googleapis.com/ClientTlsPolicy\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"^\x0A\x12EndpointPolicyType\x12\$\x0A ENDPOINT_POLICY_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DSIDECAR_PROXY\x10\x01\x12\x0F\x0A\x0BGRPC_SERVER\x10\x02:~\xEAA{\x0A-networkservices.googleapis.com/EndpointPolicy\x12Jprojects/{project}/locations/{location}/endpointPolicies/{endpoint_policy}\"\xB0\x01\x0A\x1BListEndpointPoliciesRequest\x12E\x0A\x06parent\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x12-networkservices.googleapis.com/EndpointPolicy\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12#\x0A\x16return_partial_success\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x1CListEndpointPoliciesResponse\x12J\x0A\x11endpoint_policies\x18\x01 \x03(\x0B2/.google.cloud.networkservices.v1.EndpointPolicy\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"_\x0A\x18GetEndpointPolicyRequest\x12C\x0A\x04name\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x0A-networkservices.googleapis.com/EndpointPolicy\"\xD4\x01\x0A\x1BCreateEndpointPolicyRequest\x12E\x0A\x06parent\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x12-networkservices.googleapis.com/EndpointPolicy\x12\x1F\x0A\x12endpoint_policy_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12M\x0A\x0Fendpoint_policy\x18\x03 \x01(\x0B2/.google.cloud.networkservices.v1.EndpointPolicyB\x03\xE0A\x02\"\xA2\x01\x0A\x1BUpdateEndpointPolicyRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12M\x0A\x0Fendpoint_policy\x18\x02 \x01(\x0B2/.google.cloud.networkservices.v1.EndpointPolicyB\x03\xE0A\x02\"b\x0A\x1BDeleteEndpointPolicyRequest\x12C\x0A\x04name\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x0A-networkservices.googleapis.com/EndpointPolicyB\x86\x05\x0A#com.google.cloud.networkservices.v1B\x13EndpointPolicyProtoP\x01ZMcloud.google.com/go/networkservices/apiv1/networkservicespb;networkservicespb\xAA\x02\x1FGoogle.Cloud.NetworkServices.V1\xCA\x02\x1FGoogle\\Cloud\\NetworkServices\\V1\xEA\x02\"Google::Cloud::NetworkServices::V1\xEAA\x8A\x01\x0A2networksecurity.googleapis.com/AuthorizationPolicy\x12Tprojects/{project}/locations/{location}/authorizationPolicies/{authorization_policy}\xEAA\x7F\x0A.networksecurity.googleapis.com/ServerTlsPolicy\x12Mprojects/{project}/locations/{location}/serverTlsPolicies/{server_tls_policy}\xEAA\x7F\x0A.networksecurity.googleapis.com/ClientTlsPolicy\x12Mprojects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}b\x06proto3" + "\x0A\x95\x16\x0A5google/cloud/networkservices/v1/endpoint_policy.proto\x12\x1Fgoogle.cloud.networkservices.v1\x1A\x19google/api/resource.proto\x1A,google/cloud/networkservices/v1/common.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x8E\x08\x0A\x0EEndpointPolicy\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x124\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12P\x0A\x06labels\x18\x04 \x03(\x0B2;.google.cloud.networkservices.v1.EndpointPolicy.LabelsEntryB\x03\xE0A\x01\x12U\x0A\x04type\x18\x05 \x01(\x0E2B.google.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyTypeB\x03\xE0A\x02\x12X\x0A\x14authorization_policy\x18\x07 \x01(\x09B:\xE0A\x01\xFAA4\x0A2networksecurity.googleapis.com/AuthorizationPolicy\x12O\x0A\x10endpoint_matcher\x18\x09 \x01(\x0B20.google.cloud.networkservices.v1.EndpointMatcherB\x03\xE0A\x02\x12X\x0A\x15traffic_port_selector\x18\x0A \x01(\x0B24.google.cloud.networkservices.v1.TrafficPortSelectorB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x0B \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x11server_tls_policy\x18\x0C \x01(\x09B6\xE0A\x01\xFAA0\x0A.networksecurity.googleapis.com/ServerTlsPolicy\x12S\x0A\x11client_tls_policy\x18\x0D \x01(\x09B8\x18\x01\xE0A\x01\xFAA0\x0A.networksecurity.googleapis.com/ClientTlsPolicy\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"^\x0A\x12EndpointPolicyType\x12\$\x0A ENDPOINT_POLICY_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DSIDECAR_PROXY\x10\x01\x12\x0F\x0A\x0BGRPC_SERVER\x10\x02:~\xEAA{\x0A-networkservices.googleapis.com/EndpointPolicy\x12Jprojects/{project}/locations/{location}/endpointPolicies/{endpoint_policy}\"\xB0\x01\x0A\x1BListEndpointPoliciesRequest\x12E\x0A\x06parent\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x12-networkservices.googleapis.com/EndpointPolicy\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12#\x0A\x16return_partial_success\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x1CListEndpointPoliciesResponse\x12J\x0A\x11endpoint_policies\x18\x01 \x03(\x0B2/.google.cloud.networkservices.v1.EndpointPolicy\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"_\x0A\x18GetEndpointPolicyRequest\x12C\x0A\x04name\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x0A-networkservices.googleapis.com/EndpointPolicy\"\xD4\x01\x0A\x1BCreateEndpointPolicyRequest\x12E\x0A\x06parent\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x12-networkservices.googleapis.com/EndpointPolicy\x12\x1F\x0A\x12endpoint_policy_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12M\x0A\x0Fendpoint_policy\x18\x03 \x01(\x0B2/.google.cloud.networkservices.v1.EndpointPolicyB\x03\xE0A\x02\"\xA2\x01\x0A\x1BUpdateEndpointPolicyRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12M\x0A\x0Fendpoint_policy\x18\x02 \x01(\x0B2/.google.cloud.networkservices.v1.EndpointPolicyB\x03\xE0A\x02\"b\x0A\x1BDeleteEndpointPolicyRequest\x12C\x0A\x04name\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x0A-networkservices.googleapis.com/EndpointPolicyB\x86\x05\x0A#com.google.cloud.networkservices.v1B\x13EndpointPolicyProtoP\x01ZMcloud.google.com/go/networkservices/apiv1/networkservicespb;networkservicespb\xAA\x02\x1FGoogle.Cloud.NetworkServices.V1\xCA\x02\x1FGoogle\\Cloud\\NetworkServices\\V1\xEA\x02\"Google::Cloud::NetworkServices::V1\xEAA\x8A\x01\x0A2networksecurity.googleapis.com/AuthorizationPolicy\x12Tprojects/{project}/locations/{location}/authorizationPolicies/{authorization_policy}\xEAA\x7F\x0A.networksecurity.googleapis.com/ServerTlsPolicy\x12Mprojects/{project}/locations/{location}/serverTlsPolicies/{server_tls_policy}\xEAA\x7F\x0A.networksecurity.googleapis.com/ClientTlsPolicy\x12Mprojects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}b\x06proto3" , true); static::$is_initialized = true; diff --git a/NetworkServices/src/V1/EndpointPolicy.php b/NetworkServices/src/V1/EndpointPolicy.php index 62e08556916d..ce5da2912107 100644 --- a/NetworkServices/src/V1/EndpointPolicy.php +++ b/NetworkServices/src/V1/EndpointPolicy.php @@ -91,16 +91,18 @@ class EndpointPolicy extends \Google\Protobuf\Internal\Message */ protected $server_tls_policy = ''; /** - * Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy - * can be set to specify the authentication for traffic from the proxy to the - * actual endpoints. More specifically, it is applied to the outgoing traffic - * from the proxy to the endpoint. This is typically used for sidecar model - * where the proxy identifies itself as endpoint to the control plane, with - * the connection between sidecar and endpoint requiring authentication. If - * this field is not set, authentication is disabled(open). Applicable only - * when EndpointPolicyType is SIDECAR_PROXY. - * - * Generated from protobuf field string client_tls_policy = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * Optional. Deprecated: This field is not used and is a no-op. + * A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set + * to specify the authentication for traffic from the proxy to the actual + * endpoints. More specifically, it is applied to the outgoing traffic from + * the proxy to the endpoint. This is typically used for sidecar model where + * the proxy identifies itself as endpoint to the control plane, with the + * connection between sidecar and endpoint requiring authentication. If this + * field is not set, authentication is disabled(open). Applicable only when + * EndpointPolicyType is SIDECAR_PROXY. + * + * Generated from protobuf field string client_tls_policy = 13 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @deprecated */ protected $client_tls_policy = ''; @@ -143,14 +145,15 @@ class EndpointPolicy extends \Google\Protobuf\Internal\Message * inbound traffic at the identified backends. If this field is not set, * authentication is disabled(open) for this endpoint. * @type string $client_tls_policy - * Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy - * can be set to specify the authentication for traffic from the proxy to the - * actual endpoints. More specifically, it is applied to the outgoing traffic - * from the proxy to the endpoint. This is typically used for sidecar model - * where the proxy identifies itself as endpoint to the control plane, with - * the connection between sidecar and endpoint requiring authentication. If - * this field is not set, authentication is disabled(open). Applicable only - * when EndpointPolicyType is SIDECAR_PROXY. + * Optional. Deprecated: This field is not used and is a no-op. + * A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set + * to specify the authentication for traffic from the proxy to the actual + * endpoints. More specifically, it is applied to the outgoing traffic from + * the proxy to the endpoint. This is typically used for sidecar model where + * the proxy identifies itself as endpoint to the control plane, with the + * connection between sidecar and endpoint requiring authentication. If this + * field is not set, authentication is disabled(open). Applicable only when + * EndpointPolicyType is SIDECAR_PROXY. * } */ public function __construct($data = NULL) { @@ -483,39 +486,47 @@ public function setServerTlsPolicy($var) } /** - * Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy - * can be set to specify the authentication for traffic from the proxy to the - * actual endpoints. More specifically, it is applied to the outgoing traffic - * from the proxy to the endpoint. This is typically used for sidecar model - * where the proxy identifies itself as endpoint to the control plane, with - * the connection between sidecar and endpoint requiring authentication. If - * this field is not set, authentication is disabled(open). Applicable only - * when EndpointPolicyType is SIDECAR_PROXY. + * Optional. Deprecated: This field is not used and is a no-op. + * A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set + * to specify the authentication for traffic from the proxy to the actual + * endpoints. More specifically, it is applied to the outgoing traffic from + * the proxy to the endpoint. This is typically used for sidecar model where + * the proxy identifies itself as endpoint to the control plane, with the + * connection between sidecar and endpoint requiring authentication. If this + * field is not set, authentication is disabled(open). Applicable only when + * EndpointPolicyType is SIDECAR_PROXY. * - * Generated from protobuf field string client_tls_policy = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * Generated from protobuf field string client_tls_policy = 13 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { * @return string + * @deprecated */ public function getClientTlsPolicy() { + if ($this->client_tls_policy !== '') { + @trigger_error('client_tls_policy is deprecated.', E_USER_DEPRECATED); + } return $this->client_tls_policy; } /** - * Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy - * can be set to specify the authentication for traffic from the proxy to the - * actual endpoints. More specifically, it is applied to the outgoing traffic - * from the proxy to the endpoint. This is typically used for sidecar model - * where the proxy identifies itself as endpoint to the control plane, with - * the connection between sidecar and endpoint requiring authentication. If - * this field is not set, authentication is disabled(open). Applicable only - * when EndpointPolicyType is SIDECAR_PROXY. + * Optional. Deprecated: This field is not used and is a no-op. + * A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set + * to specify the authentication for traffic from the proxy to the actual + * endpoints. More specifically, it is applied to the outgoing traffic from + * the proxy to the endpoint. This is typically used for sidecar model where + * the proxy identifies itself as endpoint to the control plane, with the + * connection between sidecar and endpoint requiring authentication. If this + * field is not set, authentication is disabled(open). Applicable only when + * EndpointPolicyType is SIDECAR_PROXY. * - * Generated from protobuf field string client_tls_policy = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * Generated from protobuf field string client_tls_policy = 13 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { * @param string $var * @return $this + * @deprecated */ public function setClientTlsPolicy($var) { + @trigger_error('client_tls_policy is deprecated.', E_USER_DEPRECATED); GPBUtil::checkString($var, True); $this->client_tls_policy = $var;