lib/services/serviceFabricMeshManagement/lib/operations/network.js
/**
   * @summary Creates or updates a network resource.
   *
   * Creates a network resource with the specified name and description. If a
   * network with the same name already exists, then its description is updated
   * to the one indicated in this request.
   *
   * Use network resources to create private network and configure public
   * connectivity for services within your application.
   *
   *
   * @param {string} resourceGroupName Azure resource group name
   *
   * @param {string} networkName The identity of the network.
   *
   * @param {object} networkResourceDescription Description for creating a
   * network resource.
   *
   * @param {string} [networkResourceDescription.description] User readable
   * description of the network.
   *
   * @param {string} networkResourceDescription.addressPrefix the address prefix
   * for this network.
   *
   * @param {object} [networkResourceDescription.ingressConfig] Configuration for
   * public connectivity for this network.
   *
   * @param {string} [networkResourceDescription.ingressConfig.qosLevel] The QoS
   * tier for ingress. Possible values include: 'Bronze'
   *
   * @param {array} [networkResourceDescription.ingressConfig.layer4]
   * Configuration for layer4 public connectivity for this network.
   *
   * @param {object} [networkResourceDescription.tags] Resource tags.
   *
   * @param {object} [options] Optional Parameters.
   *
   * @param {object} [options.customHeaders] Headers that will be added to the
   * request
   *
   * @returns {Promise} A promise is returned
   *
   * @resolve {HttpOperationResponse<NetworkResourceDescription>} - The deserialized result object.
   *
   * @reject {Error} - The error object.
   */
@summary Creates or updates a network resource.
Creates a network resource with the specified name and description. If a
network with the same name already exists, then its description is updated
to the one indicated in this request.

Use network resources to create private network and configure public
connectivity for services within your application.

@param {string} resourceGroupName Azure resource group name

@param {string} networkName The identity of the network.

@param {object} networkResourceDescription Description for creating a
network resource.

@param {string} [networkResourceDescription.description] User readable
description of the network.

@param {string} networkResourceDescription.addressPrefix the address prefix
for this network.

@param {object} [networkResourceDescription.ingressConfig] Configuration for
public connectivity for this network.

@param {string} [networkResourceDescription.ingressConfig.qosLevel] The QoS
tier for ingress. Possible values include: 'Bronze'

@param {array} [networkResourceDescription.ingressConfig.layer4]
Configuration for layer4 public connectivity for this network.

@param {object} [networkResourceDescription.tags] Resource tags.

@param {object} [options] Optional Parameters.

@param {object} [options.customHeaders] Headers that will be added to the
request

@returns {Promise} A promise is returned

@resolve {HttpOperationResponse} - The deserialized result object.

@reject {Error} - The error object.
@summary Creates or updates a network resource . Creates a network resource with the specified name and description . If a network with the same name already exists then its description is updated to the one indicated in this request . Use network resources to create private network and configure public connectivity for services within your application . @param { string } resourceGroupName Azure resource group name @param { string } networkName The identity of the network . @param { object } networkResourceDescription Description for creating a network resource . @param { string } [ networkResourceDescription . description ] User readable description of the network . @param { string } networkResourceDescription . addressPrefix the address prefix for this network . @param { object } [ networkResourceDescription . ingressConfig ] Configuration for public connectivity for this network . @param { string } [ networkResourceDescription . ingressConfig . qosLevel ] The QoS tier for ingress . Possible values include : ' Bronze ' @param { array } [ networkResourceDescription . ingressConfig . layer4 ] Configuration for layer4 public connectivity for this network . @param { object } [ networkResourceDescription . tags ] Resource tags . @param { object } [ options ] Optional Parameters . @param { object } [ options . customHeaders ] Headers that will be added to the request @returns { Promise } A promise is returned @resolve { HttpOperationResponse } - The deserialized result object . @reject { Error } - The error object .
createWithHttpOperationResponse(resourceGroupName, networkName, networkResourceDescription, options) {
    let client = this.client;
    let self = this;
    return new Promise((resolve, reject) => {
      self._create(resourceGroupName, networkName, networkResourceDescription, options, (err, result, request, response) => {
        let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
        httpOperationResponse.body = result;
        if (err) { reject(err); }
        else { resolve(httpOperationResponse); }
        return;
      });
    });
  }
createWithHttpOperationResponse ( resourceGroupName , networkName , networkResourceDescription , options ) { let client = this . client ; let self = this ; return new Promise ( ( resolve , reject ) => { self . _create ( resourceGroupName , networkName , networkResourceDescription , options , ( err , result , request , response ) => { let httpOperationResponse = new msRest . HttpOperationResponse ( request , response ) ; httpOperationResponse . body = result ; if ( err ) { reject ( err ) ; } else { resolve ( httpOperationResponse ) ; } return ; } ) ; } ) ; }
@summary Creates or updates a network resource.
@summary Creates or updates a network resource .