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

Serialized application template.

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

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ uri` | `string` Optional. The application template URI. |
| `↳ display_name` | `string` Optional. The application template display name. |
| `↳ description` | `string` Optional. The application template description. |
| `↳ application_parameters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Parameter>` Optional. Parameters to apply to all components in the application template. |
| `↳ iac_format` | `int` Optional. The IaC format of the application template. |
| `↳ components` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.SerializedComponent>` Optional. The application template components. |
| `↳ apphub_application_parameters` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.AppHubApplicationParameters` Optional. The App Hub application parameters. |
| `↳ has_global_resource` | `bool` Output only. Whether the application template is compatible with regional scope. |
| `↳ composition_type` | `int` Output only. The composition type of the applicationTemplate: STANDARD OR COMPOSITE. |
| `↳ root_input_variables` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ComponentVariable>` Output only. Root level input variables of the application template. |
| `↳ root_output_variables` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.ComponentVariable>` Output only. Root level output variables of the application template. |
| `↳ saas_runtime_context` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.SaaSRuntimeContext` Optional. SaaS runtime context for the application template. |
| `↳ serialized_policies` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.SerializedPolicy>` Output only. Policies of the application template. |
| `↳ providers` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.SerializedProvider>` Optional. Custom provider configurations imported from IaC. |
| `↳ custom_variables` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.TerraformInput>` Optional. Custom variables imported from variables.tf. |
| `↳ custom_tfvars` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Parameter>` Optional. Custom variable values imported from terraform.tfvars. |
| `↳ inputs_as_root_module_variables` | `bool` Optional. If true, exposes all inputs as root module variables. This is only supported for STANDARD composition type templates. |

### getUri

Optional. The application template URI.

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

### setUri

Optional. The application template URI.

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

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

### getDisplayName

Optional. The application template display name.

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

### setDisplayName

Optional. The application template display name.

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

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

### getDescription

Optional. The application template description.

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

### setDescription

Optional. The application template description.

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

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

### getApplicationParameters

Optional. Parameters to apply to all components in the application
template.

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

### setApplicationParameters

Optional. Parameters to apply to all components in the application
template.

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

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

### getIacFormat

Optional. The IaC format of the application template.

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

### setIacFormat

Optional. The IaC format of the application template.

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

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

### getComponents

Optional. The application template components.

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

### setComponents

Optional. The application template components.

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

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

### getApphubApplicationParameters

Optional. The App Hub application parameters.

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

### hasApphubApplicationParameters

### clearApphubApplicationParameters

### setApphubApplicationParameters

Optional. The App Hub application parameters.

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

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

### getHasGlobalResource

Output only. Whether the application template is compatible with regional
scope.

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

### setHasGlobalResource

Output only. Whether the application template is compatible with regional
scope.

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

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

### getCompositionType

Output only. The composition type of the applicationTemplate: 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 applicationTemplate: 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` |   |

### getRootInputVariables

Output only. Root level input variables of the application template.

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

### setRootInputVariables

Output only. Root level input variables of the application template.

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

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

### getRootOutputVariables

Output only. Root level output variables of the application template.

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

### setRootOutputVariables

Output only. Root level output variables of the application template.

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

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

### getSaasRuntimeContext

Optional. SaaS runtime context for the application template.

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

### hasSaasRuntimeContext

### clearSaasRuntimeContext

### setSaasRuntimeContext

Optional. SaaS runtime context for the application template.

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

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

### getSerializedPolicies

Output only. Policies of the application template.

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

### setSerializedPolicies

Output only. Policies of the application template.

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

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

### getProviders

Optional. Custom provider configurations imported from IaC.

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

### setProviders

Optional. Custom provider configurations imported from IaC.

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

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

### getCustomVariables

Optional. Custom variables imported from variables.tf.

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

### setCustomVariables

Optional. Custom variables imported from variables.tf.

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

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

### getCustomTfvars

Optional. Custom variable values imported from terraform.tfvars.

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

### setCustomTfvars

Optional. Custom variable values imported from terraform.tfvars.

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

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

### getInputsAsRootModuleVariables

Optional. If true, exposes all inputs as root module variables.

This is only supported for STANDARD composition type templates.

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

### setInputsAsRootModuleVariables

Optional. If true, exposes all inputs as root module variables.

This is only supported for STANDARD composition type templates.

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

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