0.6.0 (latest) 0.5.3 0.4.5 0.3.1 0.2.0 0.1.6 Reference documentation and code samples for the Google Cloud App Hub V1 Client class Application.

Application defines the governance boundary for App Hub entities that
perform a logical end-to-end business function.

App Hub supports application level IAM permission to align with governance
requirements.

Generated from protobuf message `google.cloud.apphub.v1.Application`

## Namespace

Google \\ Cloud \\ AppHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of an Application. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}"` |
| `↳ display_name` | `string` Optional. User-defined name for the Application. Can have a maximum length of 63 characters. |
| `↳ description` | `string` Optional. User-defined description of an Application. Can have a maximum length of 2048 characters. |
| `↳ attributes` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.Attributes` Optional. Consumer provided attributes. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. Create time. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. Update time. |
| `↳ scope` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.Scope` Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered. |
| `↳ uid` | `string` Output only. A universally unique identifier (in UUID4 format) for the `Application`. |
| `↳ state` | `int` Output only. Application state. |
| `↳ application_properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.ApplicationProperties` Output only. Properties of an underlying cloud resource that can comprise an Application. |
| `↳ application_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.ApplicationType` Output only. Application type. |

### getName

Identifier. The resource name of an Application. Format:
`"projects/{host-project-id}/locations/{location}/applications/{application-id}"`

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

### setName

Identifier. The resource name of an Application. Format:
`"projects/{host-project-id}/locations/{location}/applications/{application-id}"`

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

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

### getDisplayName

Optional. User-defined name for the Application.

Can have a maximum length of 63 characters.

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

### setDisplayName

Optional. User-defined name for the Application.

Can have a maximum length of 63 characters.

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

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

### getDescription

Optional. User-defined description of an Application.

Can have a maximum length of 2048 characters.

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

### setDescription

Optional. User-defined description of an Application.

Can have a maximum length of 2048 characters.

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

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

### getAttributes

Optional. Consumer provided attributes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.Attributes|null` |   |

### hasAttributes

### clearAttributes

### setAttributes

Optional. Consumer provided attributes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.Attributes` |

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

### getCreateTime

Output only. Create time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Create time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getUpdateTime

Output only. Update time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Update time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getScope

Required. Immutable. Defines what data can be included into this
Application. Limits which Services and Workloads can be registered.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.Scope|null` |   |

### hasScope

### clearScope

### setScope

Required. Immutable. Defines what data can be included into this
Application. Limits which Services and Workloads can be registered.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.Scope` |

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

### getUid

Output only. A universally unique identifier (in UUID4 format) for the
`Application`.

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

### setUid

Output only. A universally unique identifier (in UUID4 format) for the
`Application`.

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

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

### getState

Output only. Application state.

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

### setState

Output only. Application state.

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

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

### getApplicationProperties

Output only. Properties of an underlying cloud resource that can comprise
an Application.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.ApplicationProperties|null` |   |

### hasApplicationProperties

### clearApplicationProperties

### setApplicationProperties

Output only. Properties of an underlying cloud resource that can comprise
an Application.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.ApplicationProperties` |

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

### getApplicationType

Output only. Application type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.ApplicationType|null` |   |

### hasApplicationType

### clearApplicationType

### setApplicationType

Output only. Application type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.ApplicationType` |

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