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

Allows delegating authorization decisions to Cloud IAP or to
Service Extensions.

Generated from protobuf message `google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1 \\ AuthzPolicy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cloud_iap` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.CustomProvider.CloudIap` Optional. Delegates authorization decisions to Cloud IAP. Applicable only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy level is not compatible with Cloud IAP settings in the BackendService. Enabling IAP in both places will result in request failure. Ensure that IAP is enabled in either the AuthzPolicy or the BackendService but not in both places. |
| `↳ authz_extension` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.CustomProvider.AuthzExtension` Optional. Delegate authorization decision to user authored Service Extension. Only one of cloudIap or authzExtension can be specified. |

### getCloudIap

Optional. Delegates authorization decisions to Cloud IAP. Applicable
only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
level is not compatible with Cloud IAP settings in the BackendService.

Enabling IAP in both places will result in request failure. Ensure that
IAP is enabled in either the AuthzPolicy or the BackendService but not in
both places.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.CustomProvider.CloudIap|null` |   |

### hasCloudIap

### clearCloudIap

### setCloudIap

Optional. Delegates authorization decisions to Cloud IAP. Applicable
only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
level is not compatible with Cloud IAP settings in the BackendService.

Enabling IAP in both places will result in request failure. Ensure that
IAP is enabled in either the AuthzPolicy or the BackendService but not in
both places.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.CustomProvider.CloudIap` |

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

### getAuthzExtension

Optional. Delegate authorization decision to user authored Service
Extension. Only one of cloudIap or authzExtension can be specified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.CustomProvider.AuthzExtension|null` |   |

### hasAuthzExtension

### clearAuthzExtension

### setAuthzExtension

Optional. Delegate authorization decision to user authored Service
Extension. Only one of cloudIap or authzExtension can be specified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.CustomProvider.AuthzExtension` |

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