Reference documentation and code samples for the Compute V1 Client class SecurityPolicyAssociation.
Generated from protobuf message google.cloud.compute.v1.SecurityPolicyAssociation
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ attachment_id |
string
The resource that the security policy is attached to. |
↳ display_name |
string
[Output Only] The display name of the security policy of the association. |
↳ excluded_folders |
array
A list of folders to exclude from the security policy. |
↳ excluded_projects |
array
A list of projects to exclude from the security policy. |
↳ name |
string
The name for an association. |
↳ security_policy_id |
string
[Output Only] The security policy ID of the association. |
↳ short_name |
string
[Output Only] The short name of the security policy of the association. |
getAttachmentId
The resource that the security policy is attached to.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasAttachmentId
clearAttachmentId
setAttachmentId
The resource that the security policy is attached to.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisplayName
[Output Only] The display name of the security policy of the association.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasDisplayName
clearDisplayName
setDisplayName
[Output Only] The display name of the security policy of the association.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getExcludedFolders
A list of folders to exclude from the security policy.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setExcludedFolders
A list of folders to exclude from the security policy.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getExcludedProjects
A list of projects to exclude from the security policy.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setExcludedProjects
A list of projects to exclude from the security policy.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getName
The name for an association.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasName
clearName
setName
The name for an association.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSecurityPolicyId
[Output Only] The security policy ID of the association.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasSecurityPolicyId
clearSecurityPolicyId
setSecurityPolicyId
[Output Only] The security policy ID of the association.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getShortName
[Output Only] The short name of the security policy of the association.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasShortName
clearShortName
setShortName
[Output Only] The short name of the security policy of the association.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|