NAME
Google::Cloud::Networksecurity::V1::ServerTlsPolicy - Compiled Protocol Buffers messages for google/cloud/networksecurity/v1/server_tls_policy.proto
SYNOPSIS
use Google::Cloud::Networksecurity::V1::ServerTlsPolicy;
my $msg = Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ServerTlsPolicy->new({
name => $name,
description => $description,
create_time => $create_time,
update_time => $update_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ServerTlsPolicy->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/networksecurity/v1/server_tls_policy.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ServerTlsPolicy
ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource itself does not affect configuration unless it is attached to a target HTTPS proxy or endpoint config selector resource.
ServerTlsPolicy in the form accepted by Application Load Balancers can be attached only to TargetHttpsProxy with an `EXTERNAL`, `EXTERNAL_MANAGED` or `INTERNAL_MANAGED` load balancing scheme. Traffic Director compatible ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with Traffic Director `INTERNAL_SELF_MANAGED` load balancing scheme.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the ServerTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
$msg->description()/$msg->description($value)Type:
StringFree-text description of the resource.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the resource was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the resource was updated.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ServerTlsPolicy::LabelsEntry)Set of label tags associated with the resource.
$msg->allow_open()/$msg->allow_open($value)Type:
BoolThis field applies only for Traffic Director policies. It is must be set to false for Application Load Balancer policies.
Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility.
Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.
$msg->server_certificate()/$msg->server_certificate($value)Type:
Message(Google::Cloud::Networksecurity::V1::Tls::CertificateProvider)Optional if policy is to be used with Traffic Director. For Application Load Balancers must be empty.
Defines a mechanism to provision server identity (public and private keys). Cannot be combined with `allow_open` as a permissive mode that allows both plain text and TLS is not supported.
$msg->mtls_policy()/$msg->mtls_policy($value)Type:
Message(Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ServerTlsPolicy::MTLSPolicy)This field is required if the policy is used with Application Load Balancers. This field can be empty for Traffic Director.
Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections.
Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ListServerTlsPoliciesRequest
Request used by the ListServerTlsPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location from which the ServerTlsPolicies should be listed, specified in the format `projects/*/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of ServerTlsPolicies to return per call.
$msg->page_token()/$msg->page_token($value)Type:
StringThe value returned by the last `ListServerTlsPoliciesResponse` Indicates that this is a continuation of a prior `ListServerTlsPolicies` call, and that the system should return the next page of data.
$msg->return_partial_success()/$msg->return_partial_success($value)Type:
BoolOptional. Setting this field to `true` will opt the request into returning the resources that are reachable, and into including the names of those that were unreachable in the [ListServerTlsPoliciesResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`.
Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ListServerTlsPoliciesResponse
Response returned by the ListServerTlsPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->server_tls_policies()/$msg->server_tls_policies($value)Type:
Message(Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ServerTlsPolicy)List of ServerTlsPolicy resources.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnreachable resources. Populated when the request opts into `return_partial_success` and reading across collections e.g. when attempting to list all resources across all supported locations.
Google::Cloud::Networksecurity::V1::ServerTlsPolicy::GetServerTlsPolicyRequest
Request used by the GetServerTlsPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the ServerTlsPolicy to get. Must be in the format `projects/*/locations/{location}/serverTlsPolicies/*`.
Google::Cloud::Networksecurity::V1::ServerTlsPolicy::CreateServerTlsPolicyRequest
Request used by the CreateServerTlsPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the ServerTlsPolicy. Must be in the format `projects/*/locations/{location}`.
$msg->server_tls_policy_id()/$msg->server_tls_policy_id($value)Type:
StringRequired. Short name of the ServerTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "server_mtls_policy".
$msg->server_tls_policy()/$msg->server_tls_policy($value)Type:
Message(Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ServerTlsPolicy)Required. ServerTlsPolicy resource to be created.
Google::Cloud::Networksecurity::V1::ServerTlsPolicy::UpdateServerTlsPolicyRequest
Request used by UpdateServerTlsPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. Field mask is used to specify the fields to be overwritten in the ServerTlsPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
$msg->server_tls_policy()/$msg->server_tls_policy($value)Type:
Message(Google::Cloud::Networksecurity::V1::ServerTlsPolicy::ServerTlsPolicy)Required. Updated ServerTlsPolicy resource.
Google::Cloud::Networksecurity::V1::ServerTlsPolicy::DeleteServerTlsPolicyRequest
Request used by the DeleteServerTlsPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the ServerTlsPolicy to delete. Must be in the format `projects/*/locations/{location}/serverTlsPolicies/*`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Networksecurity::V1::ServerTlsPolicy::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.