microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
ef14e11b4dec66f85f409f65f431d7e9549c601d

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

lib/app-center-node-client/src/codepush/codepushClient.js

61lines · modecode

1/*
2 * Code generated by Microsoft (R) AutoRest Code Generator.
3 * Changes may cause incorrect behavior and will be lost if the code is
4 * regenerated.
5 */
6
7/* jshint latedef:false */
8/* jshint forin:false */
9/* jshint noempty:false */
10
11'use strict';
12
13const msRest = require('ms-rest');
14const ServiceClient = msRest.ServiceClient;
15
16const models = require('./models');
17const operations = require('./operations');
18
19
20/** Class representing a CodepushClient. */
21class CodepushClient extends ServiceClient {
22 /**
23 * Create a CodepushClient.
24 * @param {credentials} credentials - Subscription credentials which uniquely identify client subscription.
25 * @param {string} [baseUri] - The base URI of the service.
26 * @param {object} [options] - The parameter options
27 * @param {Array} [options.filters] - Filters to be added to the request pipeline
28 * @param {object} [options.requestOptions] - Options for the underlying request object
29 * {@link https://github.com/request/request#requestoptions-callback Options doc}
30 * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
31 */
32 constructor(credentials, baseUri, options) {
33 if (credentials === null || credentials === undefined) {
34 throw new Error('\'credentials\' cannot be null.');
35 }
36
37 if (!options) options = {};
38
39 super(credentials, options);
40
41 this.baseUri = baseUri;
42 if (!this.baseUri) {
43 this.baseUri = 'https://api.appcenter.ms/';
44 }
45 this.credentials = credentials;
46
47 let packageInfo = this.getPackageJsonInfo(__dirname);
48 this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
49 this.codePushAcquisition = new operations.CodePushAcquisition(this);
50 this.codePushDeployments = new operations.CodePushDeployments(this);
51 this.codePushDeploymentMetrics = new operations.CodePushDeploymentMetrics(this);
52 this.codePushDeploymentReleases = new operations.CodePushDeploymentReleases(this);
53 this.deploymentReleases = new operations.DeploymentReleases(this);
54 this.codePushDeploymentRelease = new operations.CodePushDeploymentRelease(this);
55 this.models = models;
56 msRest.addSerializationMixin(this);
57 }
58
59}
60
61module.exports = CodepushClient;
62