# Google Cloud Network Security V1 Client - Class GatewaySecurityPolicy (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class GatewaySecurityPolicy.

The GatewaySecurityPolicy resource contains a collection of
GatewaySecurityPolicyRules and associated metadata.

Generated from protobuf message `google.cloud.networksecurity.v1.GatewaySecurityPolicy`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(\^[a-z](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/[a-z0-9-]{0,61}[a-z0-9])?$). |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the resource was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The timestamp when the resource was updated. |
| `↳ description` | `string` Optional. Free-text description of the resource. |
| `↳ tls_inspection_policy` | `string` Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it. |

### getName

Required. Name of the resource. Name is of the form
projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
gateway_security_policy should match the
pattern:(\^[a-z](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/[a-z0-9-]{0,61}[a-z0-9])?$).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. Name of the resource. Name is of the form
projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
gateway_security_policy should match the
pattern:(\^[a-z](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/[a-z0-9-]{0,61}[a-z0-9])?$).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. The timestamp when the resource was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The timestamp when the resource was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateTime

Output only. The timestamp when the resource was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The timestamp when the resource was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **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` |   |

### getTlsInspectionPolicy

Optional. Name of a TLS Inspection Policy resource that defines how TLS
inspection will be performed for any rule(s) which enables it.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setTlsInspectionPolicy

Optional. Name of a TLS Inspection Policy resource that defines how TLS
inspection will be performed for any rule(s) which enables it.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |