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

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

Request message for ImportApplicationIaC method.

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

Namespace

Google \ Cloud \ DesignCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ gcs_uri string

Optional. The Cloud Storage URI of the terraform code.

↳ iac_module IaCModule

Optional. The IaC module to import.

↳ name string

Required. The name of the application.

↳ allow_partial_import bool

Optional. If set to true, partially imports the valid edits in the IaC and ignores the invalid changes. Defaults to false, which means any edits which can't be imported must result in an error.

↳ validate_iac bool

Optional. If set to true, the IaC is validated against the golden terraform without importing. Defaults to false.

getGcsUri

Optional. The Cloud Storage URI of the terraform code.

Returns
Type Description
string

hasGcsUri

setGcsUri

Optional. The Cloud Storage URI of the terraform code.

Parameter
Name Description
var string
Returns
Type Description
$this

getIacModule

Optional. The IaC module to import.

Returns
Type Description
IaCModule|null

hasIacModule

setIacModule

Optional. The IaC module to import.

Parameter
Name Description
var IaCModule
Returns
Type Description
$this

getName

Required. The name of the application.

Returns
Type Description
string

setName

Required. The name of the application.

Parameter
Name Description
var string
Returns
Type Description
$this

getAllowPartialImport

Optional. If set to true, partially imports the valid edits in the IaC and ignores the invalid changes. Defaults to false, which means any edits which can't be imported must result in an error.

Returns
Type Description
bool

setAllowPartialImport

Optional. If set to true, partially imports the valid edits in the IaC and ignores the invalid changes. Defaults to false, which means any edits which can't be imported must result in an error.

Parameter
Name Description
var bool
Returns
Type Description
$this

getValidateIac

Optional. If set to true, the IaC is validated against the golden terraform without importing. Defaults to false.

Returns
Type Description
bool

setValidateIac

Optional. If set to true, the IaC is validated against the golden terraform without importing. Defaults to false.

Parameter
Name Description
var bool
Returns
Type Description
$this

getSource

Returns
Type Description
string

static::build

Parameter
Name Description
name string

Required. The name of the application. Please see DesignCenterClient::applicationName() for help formatting this field.

Returns
Type Description
ImportApplicationIaCRequest