Reference documentation and code samples for the Google Cloud Network Security V1 Client class AddressGroup.
AddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy.
Generated from protobuf message google.cloud.networksecurity.v1.AddressGroup
Namespace
Google \ Cloud \ NetworkSecurity \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. Name of the AddressGroup resource. It matches pattern |
↳ description |
string
Optional. Free-text description of the resource. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. The timestamp when the resource was created. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. The timestamp when the resource was updated. |
↳ labels |
array|Google\Protobuf\Internal\MapField
Optional. Set of label tags associated with the AddressGroup resource. |
↳ type |
int
Required. The type of the Address Group. Possible values are "IPv4" or "IPV6". |
↳ items |
array
Optional. List of items. |
↳ capacity |
int
Required. Capacity of the Address Group |
↳ self_link |
string
Output only. Server-defined fully-qualified URL for this resource. |
↳ purpose |
array
Optional. List of supported purposes of the Address Group. |
getName
Required. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Optional. Free-text description of the resource.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Optional. Free-text description of the resource.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. The timestamp when the resource was created.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the resource was created.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
Output only. The timestamp when the resource was updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the resource was updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLabels
Optional. Set of label tags associated with the AddressGroup resource.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setLabels
Optional. Set of label tags associated with the AddressGroup resource.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Type. |
setType
Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Type. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getItems
Optional. List of items.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setItems
Optional. List of items.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCapacity
Required. Capacity of the Address Group
| Returns | |
|---|---|
| Type | Description |
int |
|
setCapacity
Required. Capacity of the Address Group
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSelfLink
Output only. Server-defined fully-qualified URL for this resource.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSelfLink
Output only. Server-defined fully-qualified URL for this resource.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPurpose
Optional. List of supported purposes of the Address Group.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setPurpose
Optional. List of supported purposes of the Address Group.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|