2.2.3 (latest) 2.1.3 2.0.4 1.3.5 1.2.2 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class ApiConfigHandler.

[Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/)
configuration for API handlers.

Generated from protobuf message `google.appengine.v1.ApiConfigHandler`

## Namespace

Google \\ Cloud \\ AppEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ auth_fail_action` | `int` Action to take when users access resources that require authentication. Defaults to `redirect`. |
| `↳ login` | `int` Level of login required to access this resource. Defaults to `optional`. |
| `↳ script` | `string` Path to the script from the application root directory. |
| `↳ security_level` | `int` Security (HTTPS) enforcement for this URL. |
| `↳ url` | `string` URL to serve the endpoint at. |

### getAuthFailAction

Action to take when users access resources that require
authentication. Defaults to `redirect`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AuthFailAction](https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.AuthFailAction). |

### setAuthFailAction

Action to take when users access resources that require
authentication. Defaults to `redirect`.

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

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

### getLogin

Level of login required to access this resource. Defaults to
`optional`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [LoginRequirement](https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.LoginRequirement). |

### setLogin

Level of login required to access this resource. Defaults to
`optional`.

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

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

### getScript

Path to the script from the application root directory.

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

### setScript

Path to the script from the application root directory.

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

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

### getSecurityLevel

Security (HTTPS) enforcement for this URL.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SecurityLevel](https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.SecurityLevel). |

### setSecurityLevel

Security (HTTPS) enforcement for this URL.

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

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

### getUrl

URL to serve the endpoint at.

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

### setUrl

URL to serve the endpoint at.

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

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