Google Cloud Design Center V1 Client - Class ImportIaCError (0.1.0)

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

Message representing the error encountered during import.

Example: A variable with name "name" is expected to be of type string, but is provided as number, inside a module named "my_module". { resource_address: "module.my_module.name" file: "gs://my_bucket/main.tf" range: { start: { line: 2 byte_offset: 1 column: 2 } end: { line: 2 byte_offset: 10 column: 10 } } description: "Error parsing field: "name". Expected type "string" but got "number"." type: INVALID }

Generated from protobuf message google.cloud.designcenter.v1.ImportIaCError

Namespace

Google \ Cloud \ DesignCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ resource_address string

Output only. The resource address of the error.

↳ file string

Output only. The file where the error has occurred.

↳ range CodeRange

Output only. The code portion where this error occurs.

↳ description string

Output only. The description of the error.

↳ type int

Output only. The type of error.

↳ error_code int

Output only. Specific error code for the import error.

getResourceAddress

Output only. The resource address of the error.

Returns
Type Description
string

setResourceAddress

Output only. The resource address of the error.

Parameter
Name Description
var string
Returns
Type Description
$this

getFile

Output only. The file where the error has occurred.

Returns
Type Description
string

setFile

Output only. The file where the error has occurred.

Parameter
Name Description
var string
Returns
Type Description
$this

getRange

Output only. The code portion where this error occurs.

Returns
Type Description
CodeRange|null

hasRange

clearRange

setRange

Output only. The code portion where this error occurs.

Parameter
Name Description
var CodeRange
Returns
Type Description
$this

getDescription

Output only. The description of the error.

Returns
Type Description
string

setDescription

Output only. The description of the error.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Output only. The type of error.

Returns
Type Description
int Enum of type Type.

setType

Output only. The type of error.

Parameter
Name Description
var int

Enum of type Type.

Returns
Type Description
$this

getErrorCode

Output only. Specific error code for the import error.

Returns
Type Description
int Enum of type ErrorCode.

setErrorCode

Output only. Specific error code for the import error.

Parameter
Name Description
var int

Enum of type ErrorCode.

Returns
Type Description
$this