src.index.IpPolicyRuleArgs.scala Maven / Gradle / Ivy
package besom.api.ngrok
final case class IpPolicyRuleArgs private(
action: besom.types.Output[scala.Option[String]],
cidr: besom.types.Output[String],
description: besom.types.Output[scala.Option[String]],
ipPolicyId: besom.types.Output[String],
metadata: besom.types.Output[scala.Option[String]]
)
object IpPolicyRuleArgs:
def apply(
action: besom.types.Input.Optional[String] = scala.None,
cidr: besom.types.Input[String],
description: besom.types.Input.Optional[String] = scala.None,
ipPolicyId: besom.types.Input[String],
metadata: besom.types.Input.Optional[String] = scala.None
)(using besom.types.Context): IpPolicyRuleArgs =
new IpPolicyRuleArgs(
action = action.asOptionOutput(isSecret = false),
cidr = cidr.asOutput(isSecret = false),
description = description.asOptionOutput(isSecret = false),
ipPolicyId = ipPolicyId.asOutput(isSecret = false),
metadata = metadata.asOptionOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[IpPolicyRuleArgs] =
besom.internal.Encoder.derived[IpPolicyRuleArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[IpPolicyRuleArgs] =
besom.internal.ArgsEncoder.derived[IpPolicyRuleArgs]
© 2015 - 2024 Weber Informatics LLC | Privacy Policy