Reference documentation and code samples for the Google Cloud Design Center V1 Client class Application.

Represents the application resource.

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

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the application. Format: projects/{project}/locations/{location}/spaces/{space}/applications/{application} |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. Create timestamp. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. Update timestamp. |
| `↳ source` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.DeploymentSource` Required. The application deployment source. |
| `↳ app_parameters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Parameter>` Optional. A list of parameters to attach to the deployment source object, which is a catalog entry or application template snapshot. |
| `↳ component_parameters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ComponentParameters>` Optional. A list of component parameters to associate with the application. |
| `↳ service_account` | `string` Optional. Your own service account that you use to deploy an application. |
| `↳ display_name` | `string` Optional. Display name of the application. |
| `↳ description` | `string` Optional. Description of the application. |
| `↳ attributes` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.Attributes.html` Optional. Attributes of the application. |
| `↳ scope` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.Scope.html` Required. Scope of the application. |
| `↳ import_existing_resources` | `bool` Optional. Import existing resources into the application. |
| `↳ preview_reference` | `string` Output only. Preview reference for the application. |
| `↳ deployment_revision` | `string` Output only. \[Output only\] Optional Infra Manager deployment Id with revision |
| `↳ apphub_application` | `string` Output only. The App Hub App associated with the application. |
| `↳ serialized_application_template` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.SerializedApplicationTemplate` Output only. \[Output only\] Serialized application template. |
| `↳ state` | `int` Output only. Deployment state of the application. |
| `↳ deployment_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.DeploymentMetadata` Output only. Deployment metadata of the application. |
| `↳ project_parameters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ProjectParameters>` Output only. List of project parameters for the application. |
| `↳ deployment_region` | `string` Optional. The region where the application is deployed. |
| `↳ updated_template_revision` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.UpdatedTemplateRevision` Output only. The updated template revision because of which the application is outdated. |
| `↳ deployment_project` | `string` Optional. Deployment project of the application. |
| `↳ connection_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ConnectionConfig>` Optional. Connection configuration for the application. |
| `↳ artifact_location` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ArtifactLocation` Output only. Details of the location where the IaC for this application was last successfully exported. |
| `↳ type` | `int` Optional. The type of the application. |
| `↳ deployment_target` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.DeploymentTarget` Optional. The deployment target of the application. |
| `↳ composition_type` | `int` Output only. The composition type of the application: STANDARD OR COMPOSITE. |
| `↳ composite_application_parameters` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.CompositeApplicationParameters` Optional. Parameters that are required for composite applications. |
| `↳ deployment_group_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.DeploymentGroupMetadata` Output only. The deployment group metadata of the application. This is applicable only for composite applications. |
| `↳ params_update_strategy` | `int` Optional. Specifies the strategy to use when updating the application parameters while updating the application template revision. |
| `↳ roles_apis_config` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.RolesAndApisConfig>` Optional. Project-specific configurations required for application deployment, including IAM roles and APIs. The list can contain up to 100 items. |
| `↳ template_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.TFBlueprintMetadata` Output only. The input output variables parsed from the imported terraform code. |
| `↳ iac_source` | `int` Output only. Indicates the IaC source format of this application. |

### getName

Identifier. The name of the application.

Format:
projects/{project}/locations/{location}/spaces/{space}/applications/{application}

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

### setName

Identifier. The name of the application.

Format:
projects/{project}/locations/{location}/spaces/{space}/applications/{application}

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

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

### getCreateTime

Output only. Create timestamp.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Create timestamp.

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

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

### getUpdateTime

Output only. Update timestamp.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Update timestamp.

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

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

### getSource

Required. The application deployment source.

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

### hasSource

### clearSource

### setSource

Required. The application deployment source.

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

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

### getAppParameters

Optional. A list of parameters to attach to the deployment source object,
which is a catalog entry or application template snapshot.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Parameter>` |   |

### setAppParameters

Optional. A list of parameters to attach to the deployment source object,
which is a catalog entry or application template snapshot.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Parameter>` |

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

### getComponentParameters

Optional. A list of component parameters to associate with the application.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ComponentParameters>` |   |

### setComponentParameters

Optional. A list of component parameters to associate with the application.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ComponentParameters>` |

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

### getServiceAccount

Optional. Your own service account that you use to deploy an application.

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

### setServiceAccount

Optional. Your own service account that you use to deploy an application.

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

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

### getDisplayName

Optional. Display name of the application.

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

### setDisplayName

Optional. Display name of the application.

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

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

### getDescription

Optional. Description of the application.

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

### setDescription

Optional. Description of the application.

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

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

### getAttributes

Optional. Attributes of the application.

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

### hasAttributes

### clearAttributes

### setAttributes

Optional. Attributes of the application.

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

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

### getScope

Required. Scope of the application.

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

### hasScope

### clearScope

### setScope

Required. Scope of the application.

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

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

### getImportExistingResources

Optional. Import existing resources into the application.

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

### setImportExistingResources

Optional. Import existing resources into the application.

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

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

### getPreviewReference

Output only. Preview reference for the application.

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

### setPreviewReference

Output only. Preview reference for the application.

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

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

### getDeploymentRevision

Output only. \[Output only\] Optional Infra Manager deployment Id with
revision

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

### setDeploymentRevision

Output only. \[Output only\] Optional Infra Manager deployment Id with
revision

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

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

### getApphubApplication

Output only. The App Hub App associated with the application.

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

### setApphubApplication

Output only. The App Hub App associated with the application.

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

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

### getSerializedApplicationTemplate

Output only. \[Output only\] Serialized application template.

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

### hasSerializedApplicationTemplate

### clearSerializedApplicationTemplate

### setSerializedApplicationTemplate

Output only. \[Output only\] Serialized application template.

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

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

### getState

Output only. Deployment state of the application.

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

### setState

Output only. Deployment state of the application.

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

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

### getDeploymentMetadata

Output only. Deployment metadata of the application.

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

### hasDeploymentMetadata

### clearDeploymentMetadata

### setDeploymentMetadata

Output only. Deployment metadata of the application.

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

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

### getProjectParameters

Output only. List of project parameters for the application.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ProjectParameters>` |   |

### setProjectParameters

Output only. List of project parameters for the application.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ProjectParameters>` |

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

### getDeploymentRegion

Optional. The region where the application is deployed.

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

### setDeploymentRegion

Optional. The region where the application is deployed.

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

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

### getUpdatedTemplateRevision

Output only. The updated template revision because of which the application
is outdated.

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

### hasUpdatedTemplateRevision

### clearUpdatedTemplateRevision

### setUpdatedTemplateRevision

Output only. The updated template revision because of which the application
is outdated.

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

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

### getDeploymentProject

Optional. Deployment project of the application.

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

### setDeploymentProject

Optional. Deployment project of the application.

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

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

### getConnectionConfigs

Optional. Connection configuration for the application.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ConnectionConfig>` |   |

### setConnectionConfigs

Optional. Connection configuration for the application.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ConnectionConfig>` |

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

### getArtifactLocation

Output only. Details of the location where the IaC for this application was
last successfully exported.

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

### hasArtifactLocation

### clearArtifactLocation

### setArtifactLocation

Output only. Details of the location where the IaC for this application was
last successfully exported.

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

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

### getType

Optional. The type of the application.

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

### setType

Optional. The type of the application.

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

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

### getDeploymentTarget

Optional. The deployment target of the application.

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

### hasDeploymentTarget

### clearDeploymentTarget

### setDeploymentTarget

Optional. The deployment target of the application.

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

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

### getCompositionType

Output only. The composition type of the application: STANDARD OR
COMPOSITE.

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

### setCompositionType

Output only. The composition type of the application: STANDARD OR
COMPOSITE.

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

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

### getCompositeApplicationParameters

Optional. Parameters that are required for composite applications.

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

### hasCompositeApplicationParameters

### clearCompositeApplicationParameters

### setCompositeApplicationParameters

Optional. Parameters that are required for composite applications.

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

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

### getDeploymentGroupMetadata

Output only. The deployment group metadata of the application. This is
applicable only for composite applications.

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

### hasDeploymentGroupMetadata

### clearDeploymentGroupMetadata

### setDeploymentGroupMetadata

Output only. The deployment group metadata of the application. This is
applicable only for composite applications.

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

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

### getParamsUpdateStrategy

Optional. Specifies the strategy to use when updating the application
parameters while updating the application template revision.

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

### setParamsUpdateStrategy

Optional. Specifies the strategy to use when updating the application
parameters while updating the application template revision.

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

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

### getRolesApisConfig

Optional. Project-specific configurations required for application
deployment, including IAM roles and APIs. The list can contain up to 100
items.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.RolesAndApisConfig>` |   |

### setRolesApisConfig

Optional. Project-specific configurations required for application
deployment, including IAM roles and APIs. The list can contain up to 100
items.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.RolesAndApisConfig>` |

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

### getTemplateMetadata

Output only. The input output variables parsed from the imported terraform
code.

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

### hasTemplateMetadata

### clearTemplateMetadata

### setTemplateMetadata

Output only. The input output variables parsed from the imported terraform
code.

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

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

### getIacSource

Output only. Indicates the IaC source format of this application.

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

### setIacSource

Output only. Indicates the IaC source format of this application.

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

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