Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* @return {BasicAuthenticationCloudCredentials}
*/
exports.createBasicAuthenticationCloudCredentials = azureWebSite.createBasicAuthenticationCloudCredentials;
exports.Constants = azureCommon.Constants;
exports.ServiceClient = azureCommon.ServiceClient;
exports.ServiceClientConstants = azureCommon.ServiceClientConstants;
exports.ConnectionStringParser = azureCommon.ConnectionStringParser;
exports.Logger = azureCommon.Logger;
exports.WebResource = azureCommon.WebResource;
exports.Validate = azureCommon.validate;
exports.date = azureCommon.date;
exports.ServiceSettings = azureCommon.ServiceSettings;
exports.ServiceBusSettings = azureCommon.ServiceBusSettings;
exports.ServiceManagementSettings = azureCommon.ServiceManagementSettings;
exports.StorageServiceSettings = azureCommon.StorageServiceSettings;
// Credentials
exports.CertificateCloudCredentials = azureCommon.CertificateCloudCredentials;
exports.TokenCloudCredentials = azureCommon.TokenCloudCredentials;
exports.AnonymousCloudCredentials = azureCommon.AnonymousCloudCredentials;
exports.SharedAccessSignature = storage.SharedAccessSignature;
exports.SharedKey = storage.SharedKey;
exports.SharedKeyLite = storage.SharedKeyLite;
exports.SharedKeyTable = storage.SharedKeyTable;
exports.SharedKeyLiteTable = storage.SharedKeyLiteTable;
// Other filters
exports.LinearRetryPolicyFilter = azureCommon.LinearRetryPolicyFilter;
exports.ExponentialRetryPolicyFilter = azureCommon.ExponentialRetryPolicyFilter;
exports.UserAgentFilter = azureCommon.UserAgentFilter;
//
// 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 querystring = require('querystring');
var _ = require('underscore');
var azureCommon = require('azure-common');
var ServiceManagementSettings = azureCommon.ServiceManagementSettings;
var ServiceManagementClient = azureCommon.ServiceManagementClient;
var WebResource = azureCommon.WebResource;
var ServiceManagementSerialize = require('./models/servicemanagementserialize');
var Constants = azureCommon.Constants;
var validate = azureCommon.validate;
var jsonTransformer = require('./jsontransform/jsontransformer');
var serviceManagementMeta = require('./jsontransform/servicemanagementmeta.json');
function attributeToKeyValue(object) {
for(var key in object)
{
if (key === Constants.XML_METADATA_MARKER) {
for (var atrKey in object[key]) {
if (object[key].hasOwnProperty(atrKey)) {
var newKey = atrKey[0].toUpperCase() + atrKey.substr(1);
//
// 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;
//
// 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 HeaderConstants = Constants.HeaderConstants;
/**
*
* Creates a new WebsiteManagementService object.
* @class
* The WebsiteManagementService object allows you to perform management operations on Microsoft Azure Web Sites.
* @constructor
*
* @param {string} configOrSubscriptionId Configuration information, subscription ID for the account or the connection string
* @param {object} authentication The authentication object for the client.
* You must use either keyfile/certfile or keyvalue/certvalue
* @return {BasicAuthenticationCloudCredentials}
*/
exports.createBasicAuthenticationCloudCredentials = azureWebSite.createBasicAuthenticationCloudCredentials;
exports.Constants = azureCommon.Constants;
exports.ServiceClient = azureCommon.ServiceClient;
exports.ServiceClientConstants = azureCommon.ServiceClientConstants;
exports.ConnectionStringParser = azureCommon.ConnectionStringParser;
exports.Logger = azureCommon.Logger;
exports.WebResource = azureCommon.WebResource;
exports.Validate = azureCommon.validate;
exports.date = azureCommon.date;
exports.ServiceSettings = azureCommon.ServiceSettings;
exports.ServiceBusSettings = azureCommon.ServiceBusSettings;
exports.ServiceManagementSettings = azureCommon.ServiceManagementSettings;
exports.StorageServiceSettings = azureCommon.StorageServiceSettings;
// Credentials
exports.CertificateCloudCredentials = azureCommon.CertificateCloudCredentials;
exports.TokenCloudCredentials = azureCommon.TokenCloudCredentials;
exports.AnonymousCloudCredentials = azureCommon.AnonymousCloudCredentials;
exports.SharedAccessSignature = storage.SharedAccessSignature;
exports.SharedKey = storage.SharedKey;
exports.SharedKeyLite = storage.SharedKeyLite;
exports.SharedKeyTable = storage.SharedKeyTable;
exports.SharedKeyLiteTable = storage.SharedKeyLiteTable;
// Other filters
exports.LinearRetryPolicyFilter = azureCommon.LinearRetryPolicyFilter;
exports.ExponentialRetryPolicyFilter = azureCommon.ExponentialRetryPolicyFilter;
exports.UserAgentFilter = azureCommon.UserAgentFilter;
// limitations under the License.
//
// Module dependencies.
var util = require('util');
var _ = require('underscore');
var uuid = require('uuid');
var azureCommon = require('azure-common');
var azureUtil = azureCommon.util;
var js2xml = azureCommon.js2xml;
var Validate = azureCommon.validate;
var WebResource = azureCommon.WebResource;
var ServiceManagementClient = azureCommon.ServiceManagementClient;
var ServiceManagementSettings = azureCommon.ServiceManagementSettings;
/**
*
* Creates a new HDInsightService object
* @class
* The HDInsightService class is used to perform operations on the Microsoft Azure HDInsight Service.
*
* @constructor
* @param {string} configOrSubscriptionId configuration store or subscription ID for the account or the connection string
* @param {object} authentication The authentication object for the client.
*
* You must use either keyfile/certfile or keyvalue/certvalue
* to provide a management certificate to authenticate
* service requests.
* @param {string} [authentication.keyfile] The path to a file that contains the PEM encoded key
* @param {string} [authentication.certfile] The path to a file that contains the PEM encoded certificate