NAME

Google::Cloud::Networksecurity::V1beta1::ServerTlsPolicy - Compiled Protocol Buffers messages for google/cloud/networksecurity/v1beta1/server_tls_policy.proto

SYNOPSIS

use Google::Cloud::Networksecurity::V1beta1::ServerTlsPolicy;

my $msg = Google::Cloud::Networksecurity::V1beta1::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::V1beta1::ServerTlsPolicy::ServerTlsPolicy->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/networksecurity/v1beta1/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::V1beta1::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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the ServerTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`

  • $msg->description() / $msg->description($value)

    Type: String

    Free-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::V1beta1::ServerTlsPolicy::ServerTlsPolicy::LabelsEntry)

    Set of label tags associated with the resource.

  • $msg->allow_open() / $msg->allow_open($value)

    Type: Bool

    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::V1beta1::Tls::CertificateProvider)

    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::V1beta1::ServerTlsPolicy::ServerTlsPolicy::MTLSPolicy)

    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::V1beta1::ServerTlsPolicy::ListServerTlsPoliciesRequest

Request used by the ListServerTlsPolicies method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. 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: Int32

    Maximum number of ServerTlsPolicies to return per call.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The 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.

Google::Cloud::Networksecurity::V1beta1::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::V1beta1::ServerTlsPolicy::ServerTlsPolicy)

    List of ServerTlsPolicy resources.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    If 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`.

Google::Cloud::Networksecurity::V1beta1::ServerTlsPolicy::GetServerTlsPolicyRequest

Request used by the GetServerTlsPolicy method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. A name of the ServerTlsPolicy to get. Must be in the format `projects/*/locations/{location}/serverTlsPolicies/*`.

Google::Cloud::Networksecurity::V1beta1::ServerTlsPolicy::CreateServerTlsPolicyRequest

Request used by the CreateServerTlsPolicy method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. 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: String

    Required. 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::V1beta1::ServerTlsPolicy::ServerTlsPolicy)

    Required. ServerTlsPolicy resource to be created.

Google::Cloud::Networksecurity::V1beta1::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::V1beta1::ServerTlsPolicy::ServerTlsPolicy)

    Required. Updated ServerTlsPolicy resource.

Google::Cloud::Networksecurity::V1beta1::ServerTlsPolicy::DeleteServerTlsPolicyRequest

Request used by the DeleteServerTlsPolicy method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. A name of the ServerTlsPolicy to delete. Must be in the format `projects/*/locations/{location}/serverTlsPolicies/*`.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Networksecurity::V1beta1::ServerTlsPolicy::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.