Google Cloud Network Security V1 Client - Class CreateServerTlsPolicyRequest (0.5.2)

Reference documentation and code samples for the Google Cloud Network Security V1 Client class CreateServerTlsPolicyRequest.

Request used by the CreateServerTlsPolicy method.

Generated from protobuf message google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest

Namespace

Google \ Cloud \ NetworkSecurity \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}.

↳ server_tls_policy_id 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".

↳ server_tls_policy Google\Cloud\NetworkSecurity\V1\ServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

getParent

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}.

Returns
TypeDescription
string

setParent

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServerTlsPolicyId

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

Returns
TypeDescription
string

setServerTlsPolicyId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

Returns
TypeDescription
Google\Cloud\NetworkSecurity\V1\ServerTlsPolicy|null

hasServerTlsPolicy

clearServerTlsPolicy

setServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

Parameter
NameDescription
var Google\Cloud\NetworkSecurity\V1\ServerTlsPolicy
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}. Please see Google\Cloud\NetworkSecurity\V1\NetworkSecurityClient::locationName() for help formatting this field.

serverTlsPolicy Google\Cloud\NetworkSecurity\V1\ServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

serverTlsPolicyId 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".

Returns
TypeDescription
Google\Cloud\NetworkSecurity\V1\CreateServerTlsPolicyRequest