Google Cloud Network Security V1beta1 Client - Class CreateAuthorizationPolicyRequest (0.4.1)

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

Request used by the CreateAuthorizationPolicy method.

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

Namespace

Google \ Cloud \ NetworkSecurity \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Cloud\NetworkSecurity\V1beta1\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
TypeDescription
string

setParent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getAuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

Returns
TypeDescription
Google\Cloud\NetworkSecurity\V1beta1\AuthorizationPolicy|null

hasAuthorizationPolicy

clearAuthorizationPolicy

setAuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

Parameter
NameDescription
var Google\Cloud\NetworkSecurity\V1beta1\AuthorizationPolicy
Returns
TypeDescription
$this