toArgMap method

Map<String, Object?> toArgMap()

Implementation

Map<String, Object?> toArgMap() => {
  if (network != null) 'network': network!.toTfJson(),
  if (subnetwork != null) 'subnetwork': subnetwork!.toTfJson(),
  if (subnetworkProject != null)
    'subnetwork_project': subnetworkProject!.toTfJson(),
  if (networkIp != null) 'network_ip': networkIp!.toTfJson(),
  if (name != null) 'name': name!.toTfJson(),
  if (nicType != null) 'nic_type': nicType!.terraformValue,
  if (accessConfig != null)
    'access_config': accessConfig!.map((a) => a.toArgMap()).toList(),
  if (ipv6AccessConfig != null)
    'ipv6_access_config': ipv6AccessConfig!.map((a) => a.toArgMap()).toList(),
  if (aliasIpRange != null)
    'alias_ip_range': aliasIpRange!.map((a) => a.toArgMap()).toList(),
};