Reference documentation and code samples for the Google Cloud Config V1 Client class TerraformError.
Errors encountered during actuation using Terraform
Generated from protobuf messagegoogle.cloud.config.v1.TerraformError
Namespace
Google \ Cloud \ Config \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ resource_address
string
Address of the resource associated with the error, e.g.google_compute_network.vpc_network.
↳ http_response_code
int
HTTP response code returned from Google Cloud Platform APIs when Terraform fails to provision the resource. If unset or 0, no HTTP response code was returned by Terraform.
Output only. Original error response from underlying Google API, if available.
getResourceAddress
Address of the resource associated with the error,
e.g.google_compute_network.vpc_network.
Returns
Type
Description
string
setResourceAddress
Address of the resource associated with the error,
e.g.google_compute_network.vpc_network.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getHttpResponseCode
HTTP response code returned from Google Cloud Platform APIs when Terraform
fails to provision the resource. If unset or 0, no HTTP response code was
returned by Terraform.
Returns
Type
Description
int
setHttpResponseCode
HTTP response code returned from Google Cloud Platform APIs when Terraform
fails to provision the resource. If unset or 0, no HTTP response code was
returned by Terraform.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getErrorDescription
A human-readable error description.
Returns
Type
Description
string
setErrorDescription
A human-readable error description.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getError
Output only. Original error response from underlying Google API, if
available.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Config V1 Client - Class TerraformError (1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/php/docs/reference/cloud-config/latest/V1.TerraformError)\n- [1.4.0](/php/docs/reference/cloud-config/1.4.0/V1.TerraformError)\n- [1.3.0](/php/docs/reference/cloud-config/1.3.0/V1.TerraformError)\n- [1.2.1](/php/docs/reference/cloud-config/1.2.1/V1.TerraformError)\n- [1.1.0](/php/docs/reference/cloud-config/1.1.0/V1.TerraformError)\n- [1.0.1](/php/docs/reference/cloud-config/1.0.1/V1.TerraformError)\n- [0.5.2](/php/docs/reference/cloud-config/0.5.2/V1.TerraformError)\n- [0.2.0](/php/docs/reference/cloud-config/0.2.0/V1.TerraformError)\n- [0.1.3](/php/docs/reference/cloud-config/0.1.3/V1.TerraformError) \nReference documentation and code samples for the Google Cloud Config V1 Client class TerraformError.\n\nErrors encountered during actuation using Terraform\n\nGenerated from protobuf message `google.cloud.config.v1.TerraformError`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Config \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getResourceAddress\n\nAddress of the resource associated with the error,\ne.g. `google_compute_network.vpc_network`.\n\n### setResourceAddress\n\nAddress of the resource associated with the error,\ne.g. `google_compute_network.vpc_network`.\n\n### getHttpResponseCode\n\nHTTP response code returned from Google Cloud Platform APIs when Terraform\nfails to provision the resource. If unset or 0, no HTTP response code was\nreturned by Terraform.\n\n### setHttpResponseCode\n\nHTTP response code returned from Google Cloud Platform APIs when Terraform\nfails to provision the resource. If unset or 0, no HTTP response code was\nreturned by Terraform.\n\n### getErrorDescription\n\nA human-readable error description.\n\n### setErrorDescription\n\nA human-readable error description.\n\n### getError\n\nOutput only. Original error response from underlying Google API, if\navailable.\n\n### hasError\n\n### clearError\n\n### setError\n\nOutput only. Original error response from underlying Google API, if\navailable."]]