# Google Cloud Network Security V1 Client - Class TlsInspectionPolicy (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 TlsInspectionPolicy.

The TlsInspectionPolicy resource contains references to CA pools in
Certificate Authority Service and associated metadata.

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

## 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}/tlsInspectionPolicies/{tls_inspection_policy} tls_inspection_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])?$). |
| `↳ description` | `string` Optional. Free-text description of the resource. |
| `↳ 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. |
| `↳ ca_pool` | `string` Required. A CA pool resource used to issue interception certificates. The CA pool string has a relative resource path following the form "projects/{project}/locations/{location}/caPools/{ca_pool}". |
| `↳ trust_config` | `string` Optional. A TrustConfig resource used when making a connection to the TLS server. This is a relative resource path following the form "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This is necessary to intercept TLS connections to servers with certificates signed by a private CA or self-signed certificates. Note that Secure Web Proxy does not yet honor this field. |
| `↳ exclude_public_ca_set` | `bool` Optional. If FALSE (the default), use our default set of public CAs in addition to any CAs specified in trust_config. These public CAs are currently based on the Mozilla Root Program and are subject to change over time. If TRUE, do not accept our default set of public CAs. Only CAs specified in trust_config will be accepted. This defaults to FALSE (use public CAs in addition to trust_config) for backwards compatibility, but trusting public root CAs is *not recommended* unless the traffic in question is outbound to public web servers. When possible, prefer setting this to "false" and explicitly specifying trusted CAs and certificates in a TrustConfig. Note that Secure Web Proxy does not yet honor this field. |
| `↳ min_tls_version` | `int` Optional. Minimum TLS version that the firewall should use when negotiating connections with both clients and servers. If this is not set, then the default value is to allow the broadest set of clients and servers (TLS 1.0 or higher). Setting this to more restrictive values may improve security, but may also prevent the firewall from connecting to some clients or servers. Note that Secure Web Proxy does not yet honor this field. |
| `↳ tls_feature_profile` | `int` Optional. The selected Profile. If this is not set, then the default value is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE"). Setting this to more restrictive values may improve security, but may also prevent the TLS inspection proxy from connecting to some clients or servers. Note that Secure Web Proxy does not yet honor this field. |
| `↳ custom_tls_features` | `string[]` Optional. List of custom TLS cipher suites selected. This field is valid only if the selected tls_feature_profile is CUSTOM. The compute.SslPoliciesService.ListAvailableFeatures method returns the set of features that can be specified in this list. Note that Secure Web Proxy does not yet honor this field. |

### getName

Required. Name of the resource. Name is of the form
projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
tls_inspection_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}/tlsInspectionPolicies/{tls_inspection_policy}
tls_inspection_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` |   |

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

### getCaPool

Required. A CA pool resource used to issue interception certificates.

The CA pool string has a relative resource path following the form
"projects/{project}/locations/{location}/caPools/{ca_pool}".

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

### setCaPool

Required. A CA pool resource used to issue interception certificates.

The CA pool string has a relative resource path following the form
"projects/{project}/locations/{location}/caPools/{ca_pool}".

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

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

### getTrustConfig

Optional. A TrustConfig resource used when making a connection to the TLS
server. This is a relative resource path following the form
"projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
is necessary to intercept TLS connections to servers with certificates
signed by a private CA or self-signed certificates.

Note that Secure Web Proxy does not yet honor this field.

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

### setTrustConfig

Optional. A TrustConfig resource used when making a connection to the TLS
server. This is a relative resource path following the form
"projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
is necessary to intercept TLS connections to servers with certificates
signed by a private CA or self-signed certificates.

Note that Secure Web Proxy does not yet honor this field.

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

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

### getExcludePublicCaSet

Optional. If FALSE (the default), use our default set of public CAs in
addition to any CAs specified in trust_config. These public CAs are
currently based on the Mozilla Root Program and are subject to change over
time. If TRUE, do not accept our default set of public CAs. Only CAs
specified in trust_config will be accepted. This defaults to FALSE (use
public CAs in addition to trust_config) for backwards compatibility, but
trusting public root CAs is *not recommended* unless the traffic in
question is outbound to public web servers. When possible, prefer setting
this to "false" and explicitly specifying trusted CAs and certificates in a
TrustConfig. Note that Secure Web Proxy does not yet honor this field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasExcludePublicCaSet

### clearExcludePublicCaSet

### setExcludePublicCaSet

Optional. If FALSE (the default), use our default set of public CAs in
addition to any CAs specified in trust_config. These public CAs are
currently based on the Mozilla Root Program and are subject to change over
time. If TRUE, do not accept our default set of public CAs. Only CAs
specified in trust_config will be accepted. This defaults to FALSE (use
public CAs in addition to trust_config) for backwards compatibility, but
trusting public root CAs is *not recommended* unless the traffic in
question is outbound to public web servers. When possible, prefer setting
this to "false" and explicitly specifying trusted CAs and certificates in a
TrustConfig. Note that Secure Web Proxy does not yet honor this field.

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

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

### getMinTlsVersion

Optional. Minimum TLS version that the firewall should use when negotiating
connections with both clients and servers. If this is not set, then the
default value is to allow the broadest set of clients and servers (TLS 1.0
or higher). Setting this to more restrictive values may improve security,
but may also prevent the firewall from connecting to some clients or
servers.

Note that Secure Web Proxy does not yet honor this field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TlsVersion](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.TlsInspectionPolicy.TlsVersion). |

### setMinTlsVersion

Optional. Minimum TLS version that the firewall should use when negotiating
connections with both clients and servers. If this is not set, then the
default value is to allow the broadest set of clients and servers (TLS 1.0
or higher). Setting this to more restrictive values may improve security,
but may also prevent the firewall from connecting to some clients or
servers.

Note that Secure Web Proxy does not yet honor this field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TlsVersion](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.TlsInspectionPolicy.TlsVersion). |

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

### getTlsFeatureProfile

Optional. The selected Profile. If this is not set, then the default value
is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").

Setting this to more restrictive values may improve security, but may also
prevent the TLS inspection proxy from connecting to some clients or
servers. Note that Secure Web Proxy does not yet honor this field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Profile](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.TlsInspectionPolicy.Profile). |

### setTlsFeatureProfile

Optional. The selected Profile. If this is not set, then the default value
is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").

Setting this to more restrictive values may improve security, but may also
prevent the TLS inspection proxy from connecting to some clients or
servers. Note that Secure Web Proxy does not yet honor this field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Profile](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.TlsInspectionPolicy.Profile). |

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

### getCustomTlsFeatures

Optional. List of custom TLS cipher suites selected.

This field is valid only if the selected tls_feature_profile is CUSTOM.
The compute.SslPoliciesService.ListAvailableFeatures method returns the
set of features that can be specified in this list.
Note that Secure Web Proxy does not yet honor this field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setCustomTlsFeatures

Optional. List of custom TLS cipher suites selected.

This field is valid only if the selected tls_feature_profile is CUSTOM.
The compute.SslPoliciesService.ListAvailableFeatures method returns the
set of features that can be specified in this list.
Note that Secure Web Proxy does not yet honor this field.

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

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