Module: ForemanNetbox::Params

Defined in:
app/contracts/foreman_netbox/params/tenant_params.rb,
app/contracts/foreman_netbox/params/interface_params.rb,
app/contracts/foreman_netbox/params/ip_address_params.rb

Constant Summary collapse

TenantParams =
Dry::Schema.Params do
  required(:name).filled(:string)
  required(:slug).filled(:string)
  optional(:tags).array(:string)
end
InterfaceParams =
Dry::Schema.Params do
  required(:name).filled(:string)
  required(:type).filled(:hash) do
    required(:value).filled(:string)
  end
  optional(:mac_address).maybe(:string)
  optional(:tags).array(:string)
end
IpAddressParams =
Dry::Schema.Params do
  required(:address).filled(:string)
  required(:interface).filled(:hash) do
    required(:name).filled(:string)
  end
  optional(:tags).array(:string)
end