How to use the azure-common.WebResource function in azure-common

To help you get started, we’ve selected a few azure-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BabylonJS / Extensions / LeaderBoard / Zumo / service / node_modules / azure / node_modules / azure-mgmt-scheduler / lib / cloudServiceManagementClient.js View on Github external
// limitations under the License.
// 

// Warning: This code was generated by a tool.
// 
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

'use strict';

var util = require('util');
var azureCommon = require('azure-common');
var xml = azureCommon.xml2js;
var js2xml = azureCommon.js2xml;
var Service = azureCommon.Service;
var WebResource = azureCommon.WebResource;

var CloudServiceManagementClient = ( /** @lends CloudServiceManagementClient */ function() {
  /**
   * @class
   * Initializes a new instance of the CloudServiceManagementClient class.
   * @constructor
   * 
   * @param {SubscriptionCloudCredentials} credentials Gets subscription
   * credentials which uniquely identify Microsoft Azure subscription. The
   * subscription ID forms part of the URI for every service call.
   * 
   * @param {string} [credentials.subscriptionId]
   * 
   * @param {string} [baseUri] Gets the URI used as the base for all cloud
   * service requests.
   * 
github Azure / azure-xplat-cli / lib / commands / arm / armsdk / storageManagementClient.js View on Github external
// See the License for the specific language governing permissions and
// limitations under the License.
// 

// Warning: This code was generated by a tool.
// 
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

'use strict';

var util = require('util');
var uuid = require('uuid');
var azureCommon = require('azure-common');
var Service = azureCommon.Service;
var WebResource = azureCommon.WebResource;
var OperationStatus = azureCommon.OperationStatus;

var StorageManagementClient = ( /** @lends StorageManagementClient */ function() {
  /**
   * @class
   * The Storage Management Client.
   * Initializes a new instance of the StorageManagementClient class.
   * @constructor
   * 
   * @param {SubscriptionCloudCredentials} credentials Gets subscription
   * credentials which uniquely identify Microsoft Azure subscription. The
   * subscription ID forms part of the URI for every service call.
   * 
   * @param {string} [credentials.subscriptionId]
   * 
   * @param {string} [baseUri] Gets the URI used as the base for all cloud
github Azure / azure-xplat-cli / lib / commands / arm / armsdk / trafficManagerManagementClient.js View on Github external
// 
// See the License for the specific language governing permissions and
// limitations under the License.
// 

// Warning: This code was generated by a tool.
// 
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

'use strict';

var util = require('util');
var azureCommon = require('azure-common');
var Service = azureCommon.Service;
var WebResource = azureCommon.WebResource;

var TrafficManagerManagementClient = ( /** @lends TrafficManagerManagementClient */ function() {
  /**
   * @class
   * The Windows Azure Traffic Manager management API provides a RESTful set of
   * web services that interact with Windows Azure Traffic Manager service for
   * creating, updating, listing, and deleting Traffic Manager profiles and
   * definitions.  (see
   * http://msdn.microsoft.com/en-us/library/windowsazure/dn166981.aspx for
   * more information)
   * Initializes a new instance of the TrafficManagerManagementClient class.
   * @constructor
   * 
   * @param {SubscriptionCloudCredentials} credentials Gets subscription
   * credentials which uniquely identify Microsoft Azure subscription. The
   * subscription ID forms part of the URI for every service call.
github Azure / azure-sdk-for-node / lib / services / serviceBus / lib / apnsservice.js View on Github external
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//

var _ = require('underscore');

var azureCommon = require('azure-common');
var azureutil = azureCommon.util;
var Constants = azureCommon.Constants;
var validate = azureCommon.validate;
var HeaderConstants = Constants.HeaderConstants;
var WebResource = azureCommon.WebResource;

var registrationResult = require('./models/registrationresult');

/**
* Creates a new ApnsService object using the specified {@link NotificationHubService} object.
*
*
* __Note__: An instance of this object is created automatically when a {@link NotificationHubService}
* object is created. See {@link NotificationHubService#apns}.
* @class
* The ApnsService class is used to send notifications using the Apple Push Notification Service (APNS).
* This service is used to communicate with iOS device.
* @constructor
*
* @param {NotificationHubService} notificationHubService The notification hub service.
*/
github Azure / azure-sdk-for-node / lib / services / serviceBus / lib / mpnsservice.js View on Github external
// 
// See the License for the specific language governing permissions and
// limitations under the License.
// 

var util = require('util');

var _ = require('underscore');
var mpns = require('mpns');

var azureCommon = require('azure-common');
var azureutil = azureCommon.util;
var Constants = azureCommon.Constants;
var validate = azureCommon.validate;
var HeaderConstants = Constants.HeaderConstants;
var WebResource = azureCommon.WebResource;

var registrationResult = require('./models/registrationresult');

// White list of methods to use from wns module
var templateSpecs = [ 'Toast', 'Tile', 'FlipTile', 'Raw' ];

/**
* Creates a new MpnsService object.
*
* __Note__: An instance of this object is created automatically when a {@link NotificationHubService}
* object is created. See {@link NotificationHubService#gcm}.
* @class
* The MpnsService class is used to send notifications using the [Microsoft Push Notification Service](http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402558).
* @constructor
*
* @param {NotificationHubService} notificationHubService The notification hub service.
github Azure / azure-sdk-for-node / lib / services / trafficManagerManagement / lib / trafficManagerManagementClient.js View on Github external
// limitations under the License.
// 

// Warning: This code was generated by a tool.
// 
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

'use strict';

var util = require('util');
var azureCommon = require('azure-common');
var xml = azureCommon.xml2js;
var js2xml = azureCommon.js2xml;
var Service = azureCommon.Service;
var WebResource = azureCommon.WebResource;

var TrafficManagerManagementClient = ( /** @lends TrafficManagerManagementClient */ function() {
  /**
   * @class
   * The Windows Azure Traffic Manager management API provides a RESTful set of
   * web services that interact with Windows Azure Traffic Manager service for
   * creating, updating, listing, and deleting Traffic Manager profiles and
   * definitions.  (see
   * http://msdn.microsoft.com/en-us/library/windowsazure/dn166981.aspx for
   * more information)
   * Initializes a new instance of the TrafficManagerManagementClient class.
   * @constructor
   * 
   * @param {SubscriptionCloudCredentials} credentials Gets subscription
   * credentials which uniquely identify Microsoft Azure subscription. The
   * subscription ID forms part of the URI for every service call.
github Azure / azure-sdk-for-node / lib / services / sqlManagement / lib / sqlmanagementservice.js View on Github external
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// 
// See the License for the specific language governing permissions and
// limitations under the License.
// 

// Module dependencies.
var util = require('util');
var _ = require('underscore');

var azureCommon = require('azure-common');
var ServiceManagementClient = azureCommon.ServiceManagementClient;
var ServiceManagementSettings = azureCommon.ServiceManagementSettings;
var WebResource = azureCommon.WebResource;

var js2xml = azureCommon.js2xml;
var Constants = azureCommon.Constants;
var SqlAzureConstants = Constants.SqlAzureConstants;

function setDefaultDbCreationOptions(opts) {
  if (!opts.edition) {
    opts.edition = SqlAzureConstants.WEB_EDITION;
  }

  if (!opts.maxsize) {
    if (opts.edition === SqlAzureConstants.WEB_EDITION) {
      opts.maxsize = SqlAzureConstants.WEB_1GB;
    } else {
      opts.maxsize = SqlAzureConstants.BUSINESS_10GB;
    }
github BabylonJS / Extensions / LeaderBoard / Zumo / service / node_modules / azure / node_modules / azure-monitoring / lib / autoscaleClient.js View on Github external
// See the License for the specific language governing permissions and
// limitations under the License.
// 

// Warning: This code was generated by a tool.
// 
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

'use strict';

var util = require('util');
var moment = require('moment');
var azureCommon = require('azure-common');
var Service = azureCommon.Service;
var WebResource = azureCommon.WebResource;

var AutoscaleClient = ( /** @lends AutoscaleClient */ function() {
  /**
   * @class
   * Initializes a new instance of the AutoscaleClient class.
   * @constructor
   * 
   * @param {SubscriptionCloudCredentials} credentials Gets subscription
   * credentials which uniquely identify Microsoft Azure subscription. The
   * subscription ID forms part of the URI for every service call.
   * 
   * @param {string} [credentials.subscriptionId]
   * 
   * @param {string} [baseUri] Gets the URI used as the base for all cloud
   * service requests.
   * 
github Azure / azure-xplat-cli / test / commands / cli.mobile-tests.js View on Github external
*/

var nockedSubscriptionId = '1bf890dd-ee1e-45b8-a870-34e6279ffaba';
var nodeNockedServiceName = 'clitestab9d284f-7691-4640-9086-81d40a2fce98';
var dotnetNockedServiceName = 'clitest2f0b9371-9ed5-4d3f-8b27-f925cecf007d';

var _ = require('underscore');
var should = require('should');
var uuid = require('node-uuid');
var fs = require('fs');
var azureCommon = require('azure-common');
var path = require('path');
var PipelineChannel = require('../../lib/commands/asm/mobile/pipelineChannel');
var utils = require('../../lib/util/utils');
var CLITest = require('../framework/cli-test');
var WebResource = azureCommon.WebResource;
var location = process.env.AZURE_SQL_TEST_LOCATION || 'West US';
var servicedomain = process.env.SERVICE_DOMAIN || '.azure-mobile.net';
var scopeWritten;
var existingDBName;
var existingServerName;
var existingContinuationToken;
var knownRecords;

var suite;
var testPrefix = 'cli.mobile-tests';
var requiredEnvironment = [];
var testArtifactDir = path.join(__dirname, 'mobile');

var testLogFile = '';

function createDirIfNotExists(directory) {
github Azure / azure-sdk-for-node / lib / services / serviceBus / lib / gcmservice.js View on Github external
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

var _ = require('underscore');

var azureCommon = require('azure-common');
var azureutil = azureCommon.util;
var Constants = azureCommon.Constants;
var validate = azureCommon.validate;
var HeaderConstants = Constants.HeaderConstants;
var WebResource = azureCommon.WebResource;

var registrationResult = require('./models/registrationresult');

/**
* Creates a new GcmService object.
* 
*
* __Note__: An instance of this object is created automatically when a {@link NotificationHubService}
* object is created. See {@link NotificationHubService#gcm}.
* @class
* The GcmService class is used to send notifications using [Google Cloud Messaging](http://developer.android.com/google/gcm/index.html).
* @constructor
*
* @param {NotificationHubService} notificationHubService The notification hub service.
*/
function GcmService(notificationHubService) {