# Module `netapp_ontap.models.ipv4_interface`

Copyright © 2023 NetApp Inc. All rights reserved.

This file has been automatically generated based on the ONTAP REST API documentation.

## Classes

`class Ipv4InterfaceSchema (*, only: Union[Sequence[str], Set[str]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Dict = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str = None)`

  The fields of the Ipv4Interface object

  ### Ancestors

  - netapp_ontap.resource.ResourceSchema
  - marshmallow.schema.Schema
  - marshmallow.base.SchemaABC

  ### Class variables

  `address: str GET POST PATCH`

    IPv4 or IPv6 address

    Example: 10.10.10.7

  `enabled: bool GET POST PATCH`

    Indicates whether the IPv4 interfaces is enabled. It expects dhcp_enabled as "true" or values for address, netmask and gateway when set to "true".

  `gateway: str GET POST PATCH`

    The IPv4 or IPv6 address of the default router.

    Example: 10.1.1.1

  `netmask: str GET POST PATCH`

    The netmask field of the ipv4_interface.

  `setup_state: str GET`

    Indicates the setup state of the interface.

    Valid choices:

    - not_setup
    - succeeded
    - in_progress
    - failed