Reference documentation and code samples for the Google Cloud Network Security V1 Client class CreateGatewaySecurityPolicyRequest.
Request used by the CreateGatewaySecurityPolicy method.
Generated from protobuf message google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest
Namespace
Google \ Cloud \ NetworkSecurity \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The parent resource of the GatewaySecurityPolicy. Must be in the format |
↳ gateway_security_policy_id |
string
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1". |
↳ gateway_security_policy |
GatewaySecurityPolicy
Required. GatewaySecurityPolicy resource to be created. |
getParent
Required. The parent resource of the GatewaySecurityPolicy. Must be in the
format projects/{project}/locations/{location}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The parent resource of the GatewaySecurityPolicy. Must be in the
format projects/{project}/locations/{location}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGatewaySecurityPolicyId
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1".
| Returns | |
|---|---|
| Type | Description |
string |
|
setGatewaySecurityPolicyId
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1".
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGatewaySecurityPolicy
Required. GatewaySecurityPolicy resource to be created.
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy|null |
|
hasGatewaySecurityPolicy
clearGatewaySecurityPolicy
setGatewaySecurityPolicy
Required. GatewaySecurityPolicy resource to be created.
| Parameter | |
|---|---|
| Name | Description |
var |
GatewaySecurityPolicy
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The parent resource of the GatewaySecurityPolicy. Must be in the
format |
gatewaySecurityPolicy |
GatewaySecurityPolicy
Required. GatewaySecurityPolicy resource to be created. |
gatewaySecurityPolicyId |
string
Required. Short name of the GatewaySecurityPolicy 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. "gateway_security_policy1". |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRequest |
|