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

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

Request message for ImportApplicationTemplateIaC method.

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

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.

↳ developer_connect_source_config DeveloperConnectSourceConfig

Optional. Configuration for fetching content from source code repository such as GitHub or Bitbucket through Developer Connect.

↳ name string

Required. The name of the application template.

↳ 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

getDeveloperConnectSourceConfig

Optional. Configuration for fetching content from source code repository such as GitHub or Bitbucket through Developer Connect.

Returns
Type Description
DeveloperConnectSourceConfig|null

hasDeveloperConnectSourceConfig

setDeveloperConnectSourceConfig

Optional. Configuration for fetching content from source code repository such as GitHub or Bitbucket through Developer Connect.

Parameter
Name Description
var DeveloperConnectSourceConfig
Returns
Type Description
$this

getName

Required. The name of the application template.

Returns
Type Description
string

setName

Required. The name of the application template.

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 template. Please see DesignCenterClient::applicationTemplateName() for help formatting this field.

Returns
Type Description
ImportApplicationTemplateIaCRequest