Google Cloud Network Security V1 Client - Class CreateAuthorizationPolicyRequest (1.0.2)

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

Request used by the CreateAuthorizationPolicy method.

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

Namespace

Google \ Cloud \ NetworkSecurity \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ authorization_policy_id string

Required. Short name of the AuthorizationPolicy 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. "authz_policy".

↳ authorization_policy AuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

getParent

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

Returns
Type Description
string

setParent

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

Parameter
Name Description
var string
Returns
Type Description
$this

getAuthorizationPolicyId

Required. Short name of the AuthorizationPolicy 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. "authz_policy".

Returns
Type Description
string

setAuthorizationPolicyId

Required. Short name of the AuthorizationPolicy 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. "authz_policy".

Parameter
Name Description
var string
Returns
Type Description
$this

getAuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

Returns
Type Description
AuthorizationPolicy|null

hasAuthorizationPolicy

clearAuthorizationPolicy

setAuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

Parameter
Name Description
var AuthorizationPolicy
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}. Please see NetworkSecurityClient::locationName() for help formatting this field.

authorizationPolicy AuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

authorizationPolicyId string

Required. Short name of the AuthorizationPolicy 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. "authz_policy".

Returns
Type Description
CreateAuthorizationPolicyRequest