/**
 * Subnets service.
 * @version 4.0.1
 * @class SubnetsApi
 */
export class SubnetsApi {
    /**
    * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
    * their own fetch methods into the SDK
    */
    static get ApiClient(): typeof ApiClient;
    /**
     * Constructs a new SubnetsApi.
     * @alias module:api/SubnetsApi
     * @class
     * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
     * default to {@link module:ApiClient#instance} if unspecified.
     */
    constructor(apiClient?: any);
    apiClient: any;
    /**
     * Create a subnet.
     * Create a subnet.
     * @param { Partial<Subnet> } body specification
     * @param {Object} args Additional Arguments
     * @return {Promise<ConfigTaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ConfigTaskReferenceApiResponse } and HTTP response
     */
    createSubnet(body: Partial<Subnet>, ...args: any): Promise<ConfigTaskReferenceApiResponse>;
    /**
     * Delete the specified subnet.
     * Delete the specified subnet.
     * @param { String } extId The UUID of the subnet.
     * @param {Object} args Additional Arguments
     * @return {Promise<ConfigTaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ConfigTaskReferenceApiResponse } and HTTP response
     */
    deleteSubnetById(extId: string, ...args: any): Promise<ConfigTaskReferenceApiResponse>;
    /**
     * Get the subnet with the specified UUID.
     * Get a subnet with the specified UUID.
     * @param { String } extId The UUID of the subnet.
     * @param {Object} args Additional Arguments
     * @return {Promise<GetSubnetApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetSubnetApiResponse } and HTTP response
     */
    getSubnetById(extId: string, ...args: any): Promise<GetSubnetApiResponse>;
    /**
     * Get the list of existing subnets.
     * Get the list of existing subnets. With filtering, the following rules apply:   VLAN     (subnet_type&#x3D;&#x3D;[no_val] OR subnet_type&#x3D;&#x3D;VLAN) AND     (is_external&#x3D;&#x3D;[no_val] OR is_external&#x3D;&#x3D;false)   OVERLAY     (subnet_type&#x3D;&#x3D;OVERLAY) AND     (is_external&#x3D;&#x3D;[no_val] OR is_external&#x3D;&#x3D;false)   External     is_external&#x3D;&#x3D;true
     * @param {Object} opts Optional parameters defined for the operation
     * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.

     * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set.  Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.

     * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
     * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
     * The filter can be applied to the following fields:<br>
     * - clusterReference<br>
     * - extId<br>
     * - isExternal<br>
     * - name<br>
     * - subnetType<br>
     * - vpcReference
     * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
     * The orderby can be applied to the following fields:<br>
     * - name
     * @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
- virtualSwitch
- vpc

     * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
- clusterName
- clusterReference
- extId
- hypervisorType
- ipPrefix
- isAdvancedNetworking
- isExternal
- isNatEnabled
- links
- metadata
- name
- networkId
- subnetType
- tenantId
- virtualSwitchReference
- vpcReference

     * @param {Object} args Additional Arguments
     * @return {Promise<ListSubnetsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListSubnetsApiResponse } and HTTP response
     */
    listSubnets(opts: {
        $page: number;
        $limit: number;
        $filter: string;
        $orderby: string;
        $expand: string;
        $select: string;
    }, ...args: any): Promise<ListSubnetsApiResponse>;
    /**
     * List virtual NICs on a subnet.
     * Paginated list of virtual NICs belonging to a particular subnet.
     * @param { String } subnetExtId The UUID of the subnet.
     * @param {Object} opts Optional parameters defined for the operation
     * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.

     * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set.  Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.

     * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
     * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
     * The filter can be applied to the following fields:<br>
     * - vmReference
     * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
     * The orderby can be applied to the following fields:<br>
     * - macAddress
     * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
- assignedIpv4Addresses
- assignedSecondaryIpv4Addresses
- extId
- learnedIpv4Addresses
- links
- macAddress
- metadata
- tenantId
- vmReference

     * @param {Object} args Additional Arguments
     * @return {Promise<ListSubnetVnicsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListSubnetVnicsApiResponse } and HTTP response
     */
    listVnicsBySubnetId(subnetExtId: string, opts: {
        $page: number;
        $limit: number;
        $filter: string;
        $orderby: string;
        $select: string;
    }, ...args: any): Promise<ListSubnetVnicsApiResponse>;
    /**
     * Update the specified subnet.
     * Update the specified subnet.
     * @param { Partial<Subnet> } body specification
     * @param { String } extId The UUID of the subnet.
     * @param {Object} args Additional Arguments
     * @return {Promise<ConfigTaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ConfigTaskReferenceApiResponse } and HTTP response
     */
    updateSubnetById(extId: string, body: Partial<Subnet>, ...args: any): Promise<ConfigTaskReferenceApiResponse>;
    #private;
}
import Subnet from "../models/networking/v4/config/Subnet";
import ConfigTaskReferenceApiResponse from "../models/networking/v4/config/TaskReferenceApiResponse";
import GetSubnetApiResponse from "../models/networking/v4/config/GetSubnetApiResponse";
import ListSubnetsApiResponse from "../models/networking/v4/config/ListSubnetsApiResponse";
import ListSubnetVnicsApiResponse from "../models/networking/v4/config/ListSubnetVnicsApiResponse";
import { ApiClient } from "../ApiClient";
