text: /**
   * Fastly API
   * Via the Fastly API you can perform any of the operations that are possible within the management console,  including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) 
   *
   * The version of the OpenAPI document: 1.0.0
   * Contact: oss@fastly.com
   *
   * NOTE: This class is auto generated.
   * Do not edit the class manually.
   *
   */
  
  
  import ApiClient from "../ApiClient";
  import PublicIpList from '../model/PublicIpList';
  
  /**
  * PublicIpList service.
  * @module api/PublicIpListApi
  * @version 3.0.0-beta3
  */
  export default class PublicIpListApi {
  
      /**
      * Constructs a new PublicIpListApi. 
      * @alias module:api/PublicIpListApi
      * @class
      * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
      * default to {@link module:ApiClient#instance} if unspecified.
      */
      constructor(apiClient) {
          this.apiClient = apiClient || ApiClient.instance;
  
          if (typeof window === 'undefined' && Boolean(process.env.FASTLY_API_TOKEN)) {
              this.apiClient.authenticate(process.env.FASTLY_API_TOKEN);
          }
      }
  
  
      /**
       * List the public IP addresses for the Fastly network.
       * @param {Object} options
       * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PublicIpList} and HTTP response
       */
      listFastlyIpsWithHttpInfo(options = {}) {
        let postBody = null;
  
        let pathParams = {
        };
        let queryParams = {
        };
        let headerParams = {
        };
        let formParams = {
        };
  
        let authNames = ['token'];
        let contentTypes = [];
        let accepts = ['application/json'];
        let returnType = PublicIpList;
        return this.apiClient.callApi(
          '/public-ip-list', 'GET',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, null
        );
      }
  
      /**
       * List the public IP addresses for the Fastly network.
       * @param {Object} options
       * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PublicIpList}
       */
      listFastlyIps(options = {}) {
        return this.listFastlyIpsWithHttpInfo(options)
          .then(function(response_and_data) {
            return response_and_data.data;
          });
      }
  
  
  }
  