Reference documentation and code samples for the Google Cloud Design Center V1 Client class ModuleInput.
Represents an input variable for a module.
Generated from protobuf message google.cloud.designcenter.v1.ModuleInput
Namespace
Google \ Cloud \ DesignCenter \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Optional. Name of the input variable. |
↳ type |
string
Optional. Terraform type of the variable. |
↳ description |
string
Optional. Description of the variable. |
↳ default_value |
Google\Protobuf\Value
Optional. Default value of the variable as a string representation. Using google.protobuf.Value to allow for different types, though a string is common. |
↳ required |
bool
Optional. Whether the input variable is required. |
getName
Optional. Name of the input variable.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Optional. Name of the input variable.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
Optional. Terraform type of the variable.
| Returns | |
|---|---|
| Type | Description |
string |
|
setType
Optional. Terraform type of the variable.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Optional. Description of the variable.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Optional. Description of the variable.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDefaultValue
Optional. Default value of the variable as a string representation.
Using google.protobuf.Value to allow for different types, though a string is common.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Value|null |
|
hasDefaultValue
clearDefaultValue
setDefaultValue
Optional. Default value of the variable as a string representation.
Using google.protobuf.Value to allow for different types, though a string is common.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Value
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRequired
Optional. Whether the input variable is required.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setRequired
Optional. Whether the input variable is required.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|