replaced appcenter-node-client with autorest

This commit is contained in:
max-mironov 2018-04-11 16:28:29 +03:00
Родитель 361e28514e
Коммит f56fc4dc8b
685 изменённых файлов: 86330 добавлений и 61806 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -9,6 +9,6 @@ src/**/nodeDebugLocation.json
# Compiled files # Compiled files
src/**/*.js src/**/*.js
!src/appcenter/lib/**/*.js !src/appcenter/apis/generated/**/*.js
test/**/*.js test/**/*.js
**/*.js.map **/*.js.map

Просмотреть файл

@ -19,7 +19,7 @@ var lintSources = [
testPath testPath
].map(function (tsFolder) { return tsFolder + "/**/*.ts"; }); ].map(function (tsFolder) { return tsFolder + "/**/*.ts"; });
lintSources = lintSources.concat([ lintSources = lintSources.concat([
"!src/appcenter/lib/**" "!src/appcenter/apis/generated/**"
]); ]);
gulp.task("tslint", function () { gulp.task("tslint", function () {
@ -35,7 +35,7 @@ gulp.task("tslint", function () {
gulp.task("clean", function () { gulp.task("clean", function () {
var pathsToDelete = [ var pathsToDelete = [
"src/**/*.js", "src/**/*.js",
"!src/appcenter/lib/**/*.js", "!src/appcenter/apis/generated/**/*.js",
"src/**/*.js.map", "src/**/*.js.map",
"test/**/*.js", "test/**/*.js",
"test/**/*.js.map", "test/**/*.js.map",

Просмотреть файл

@ -1,5 +1,5 @@
import * as vscode from "vscode"; import * as vscode from "vscode";
import { AppCenterClient } from "./appcenter/api"; import { AppCenterClient } from "./appcenter/apis";
import AppCenterAppCreator, { AndroidAppCenterAppCreator, IOSAppCenterAppCreator, NullAppCenterAppCreator } from "./appCenterAppCreator"; import AppCenterAppCreator, { AndroidAppCenterAppCreator, IOSAppCenterAppCreator, NullAppCenterAppCreator } from "./appCenterAppCreator";
import { Constants } from "./constants"; import { Constants } from "./constants";
import { CreatedAppFromAppCenter, UserOrOrganizationItem } from "./helpers/interfaces"; import { CreatedAppFromAppCenter, UserOrOrganizationItem } from "./helpers/interfaces";

Просмотреть файл

@ -1,6 +1,6 @@
import { AppCenterClient } from "./appcenter/api"; import { AppCenterClient, models } from "./appcenter/apis";
import { Deployment } from "./appcenter/lib/app-center-node-client/models";
import { AppCenterOS, AppCenterPlatform, Constants } from "./constants"; import { AppCenterOS, AppCenterPlatform, Constants } from "./constants";
import { AppCenterUrlBuilder } from "./helpers/appCenterUrlBuilder";
import { CreatedAppFromAppCenter } from "./helpers/interfaces"; import { CreatedAppFromAppCenter } from "./helpers/interfaces";
import { SettingsHelper } from "./helpers/settingsHelper"; import { SettingsHelper } from "./helpers/settingsHelper";
import { ILogger } from "./log/logHelper"; import { ILogger } from "./log/logHelper";
@ -14,119 +14,105 @@ export default class AppCenterAppCreator {
public async withBranchConfigurationCreatedAndBuildKickOff(appName: string, branchName: string, ownerName: string): Promise<boolean> { public async withBranchConfigurationCreatedAndBuildKickOff(appName: string, branchName: string, ownerName: string): Promise<boolean> {
// TODO: get out what to do with this magic with not working of method to create default config! // TODO: get out what to do with this magic with not working of method to create default config!
try { try {
this.logger.info(`Start creating new branch configuration for branch ${branchName} and starting new build for ${appName}...`); this.logger.info(`Creating new branch configuration for branch ${branchName} and starting new build for ${appName}...`);
const configJson = Constants.defaultBuildConfigJSON; // const configJson = Constants.defaultBuildConfigJSON;
const configObj = JSON.parse(configJson); // const configObj = JSON.parse(configJson);
// tslint:disable-next-line:no-debugger
await this.client.branchConfigurations.create(branchName, ownerName, appName);
const queueBuildRequestResponse: models.Build = await this.client.builds.create(branchName, ownerName, appName);
await this.client.build.branchConfigurations.create(appName, branchName, ownerName, configObj); const buildId = queueBuildRequestResponse.id;
await this.client.build.builds.create(appName, branchName, ownerName); const realBranchName = queueBuildRequestResponse.sourceBranch;
} catch (err) {
return this.proceedErrorResponse(err); const url = AppCenterUrlBuilder.GetPortalBuildLink(ownerName, appName, realBranchName, buildId.toString());
this.logger.info(`Queued build link: ${url}`);
} catch (error) {
if (error.statusCode === 400) {
this.logger.error(`app ${appName} is not configured for building`);
} else {
this.logger.error(`failed to queue build request`);
}
return false;
} }
return true; return true;
} }
public async connectRepositoryToBuildService(appName: string, ownerName: string, repoUrl: string): Promise<boolean> { public async connectRepositoryToBuildService(appName: string, ownerName: string, repoUrl: string): Promise<boolean> {
try { try {
this.logger.info(`Start connecting repository to build service for ${appName}...`); this.logger.info(`Connecting repository to build service for ${appName}...`);
await this.client.build.repositoryConfigurations.createOrUpdate(
appName, await this.client.repositoryConfigurations.createOrUpdate(ownerName, appName, repoUrl);
ownerName,
{
repoUrl: repoUrl
}
);
} catch (err) {
return this.proceedErrorResponse(err);
}
return true; return true;
} catch (err) {
this.logger.error(`failed to connect repository to build service`);
return false;
}
} }
public async createBetaTestersDistributionGroup(appName: string, ownerName: string): Promise<boolean> { public async createBetaTestersDistributionGroup(appName: string, ownerName: string): Promise<boolean> {
try { try {
this.logger.info(`Start creating BetaTesters distribution group for ${appName}...`); this.logger.info(`Creating BetaTesters distribution group for ${appName}...`);
await this.client.account.distributionGroups.create(appName, { await this.client.distributionGroups.create(ownerName, appName, SettingsHelper.distribitionGroupTestersName());
name: SettingsHelper.distribitionGroupTestersName() } catch (error) {
}, ownerName); if (error === 409) {
} catch (err) { this.logger.error(`distribution group ${SettingsHelper.distribitionGroupTestersName()} already exists`);
return this.proceedErrorResponse(err); } else {
this.logger.error("failed to create distribution group");
}
return false;
} }
return true; return true;
} }
public async createAppForOrg(appName: string, displayName: string, orgName: string): Promise<CreatedAppFromAppCenter | false> { public async createAppForOrg(appName: string, displayName: string, orgName: string): Promise<CreatedAppFromAppCenter | false> {
let httpOperationResponse: any;
let result: any;
try { try {
this.logger.info(`Start creating new app ${appName} for org ${orgName}`); const result: models.AppResponse = await this.client.apps.createForOrg(orgName, {
httpOperationResponse = await this.client.account.apps.createForOrgWithHttpOperationResponse( {
displayName: displayName,
name: appName,
os: this.os,
platform: this.platform
}, orgName);
} catch (err) {
// TODO: investigate this strange issue
// I dont know why client falls into catch block here, so apply quick fix just to overcome this
if (err.statusCode > 400) {
this.proceedErrorResponse(err);
return false;
} else {
result = JSON.parse(err.response.body);
return {
appSecret: result.app_secret,
platform: result.platform,
os: result.os,
name: result.name
};
}
}
result = JSON.parse(httpOperationResponse.response.body);
return {
appSecret: result.app_secret,
platform: result.platform,
os: result.os,
name: result.name
};
}
public async createApp(appName: string, displayName: string): Promise<CreatedAppFromAppCenter | false> {
let httpOperationResponse: any;
try {
this.logger.info(`Start creating new app ${appName}...`);
httpOperationResponse = await this.client.account.apps.createWithHttpOperationResponse( {
displayName: displayName, displayName: displayName,
name: appName, name: appName,
os: this.os, os: this.os,
platform: this.platform platform: this.platform
}); });
} catch (err) {
this.proceedErrorResponse(err);
return false;
}
const result = JSON.parse(httpOperationResponse.response.body);
return { return {
appSecret: result.app_secret, appSecret: result.appSecret,
platform: result.platform, platform: result.platform,
os: result.os, os: result.os,
name: result.name name: result.name
}; };
} } catch (err) {
this.logger.error("failed to create apps for org");
public async createCodePushDeployment(appName: string, ownerName: string): Promise<Deployment> {
this.logger.info(`Start creating codepush deployment for ${appName}...`);
const result: any = await this.client.codepush.codePushDeployments.createWithHttpOperationResponse(appName, {
name: Constants.CodePushStagingDeplymentName
} , ownerName);
const codePushDeployment: Deployment = JSON.parse(result.response.body);
return codePushDeployment;
}
private proceedErrorResponse(error: any): boolean {
const errMessage: string = error.response ? error.response.body : error;
this.logger.error(errMessage);
return false; return false;
} }
}
public async createApp(appName: string, displayName: string): Promise<CreatedAppFromAppCenter | false> {
try {
const result: models.AppResponse = await this.client.apps.create({
displayName: displayName,
name: appName,
os: this.os,
platform: this.platform
});
return {
appSecret: result.appSecret,
platform: result.platform,
os: result.os,
name: result.name
};
} catch (err) {
this.logger.error("failed to create apps for org");
return false;
}
}
public async createCodePushDeployment(appName: string, ownerName: string): Promise<models.Deployment> {
try {
const result: models.Deployment = await this.client.codePushDeployments.create(ownerName, appName, Constants.CodePushStagingDeplymentName);
return result;
} catch (err) {
this.logger.error("failed to create codepush deployment");
throw new Error("failed to create codepush deployment");
}
}
} }
export class IOSAppCenterAppCreator extends AppCenterAppCreator { export class IOSAppCenterAppCreator extends AppCenterAppCreator {

Просмотреть файл

@ -1,5 +0,0 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
import AppCenterClientCredentials = require("../lib/app-center-node-client/src/appCenterClientCredentials");
export { AppCenterClientCredentials };

Просмотреть файл

@ -1,26 +0,0 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
import { AppCenterProfile, Profile } from '../../helpers/interfaces';
import Auth from '../auth/auth';
import AppCenterClient from '../lib/app-center-node-client/index';
import { AppCenterClientCredentials } from './appCenterClientCredentials';
// tslint:disable-next-line:interface-name
export interface AppCenterClientFactory {
fromToken(token: string, endpoint: string): AppCenterClient;
fromProfile(user: Profile, endpoint: string): AppCenterClient | null;
}
export function createAppCenterClient(): AppCenterClientFactory {
return {
fromToken(token: string): AppCenterClient {
return new AppCenterClient(new AppCenterClientCredentials(token));
},
fromProfile(user: AppCenterProfile): AppCenterClient | null {
if (!user) {
return null;
}
return new AppCenterClient(new AppCenterClientCredentials(Auth.accessTokenFor(user)));
}
};
}

Просмотреть файл

@ -1,8 +0,0 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
import AppCenterClient from "../lib/app-center-node-client";
import * as models from "../lib/app-center-node-client/models";
export { AppCenterClient, models };
export { AppCenterClientFactory, createAppCenterClient } from "./createClient";

Просмотреть файл

@ -0,0 +1,20 @@
import { WebResource } from "ms-rest";
export class AppCenterClientCredentials {
private getToken: {(): Promise<string>};
constructor(getToken: {(): Promise<string>}) {
this.getToken = getToken;
}
public signRequest(request: WebResource, callback: {(err: Error): void}): void {
this.getToken()
.then((token) => {
request.headers["x-api-token"] = token;
callback(null);
})
.catch((err: Error) => {
callback(err);
});
}
}

Просмотреть файл

@ -0,0 +1,104 @@
import { IncomingMessage } from "http";
import { AppCenterClientCredentials } from "./appcenter-client-credentials";
import AppCenterClient = require("./generated/appCenterClient");
import { userAgentFilter } from "./user-agent-filter";
// tslint:disable-next-line:no-var-requires
const BasicAuthenticationCredentials = require("ms-rest").BasicAuthenticationCredentials;
import { ServiceCallback, ServiceError, WebResource } from "ms-rest";
import { Profile } from "../../helpers/interfaces";
import Auth from "../auth/auth";
import { ErrorCodes } from "../codepush/commandResult";
export interface AppCenterClientFactory {
fromUserNameAndPassword(userName: string, password: string, endpoint: string): AppCenterClient;
fromToken(token: string | Promise<string> | {(): Promise<string>}, endpoint: string): AppCenterClient;
fromProfile(user: Profile, endpoint: string): AppCenterClient | null;
}
export function createAppCenterClient(): AppCenterClientFactory {
function createClientOptions(): any {
const filters = [userAgentFilter];
return {
filters: filters
};
}
return {
fromUserNameAndPassword(userName: string, password: string, endpoint: string): AppCenterClient {
return new AppCenterClient(new BasicAuthenticationCredentials(userName, password), endpoint, createClientOptions());
},
fromToken(token: string | Promise<string> | {(): Promise<string>}, endpoint: string): AppCenterClient {
let tokenFunc: {(): Promise<string>};
if (typeof token === "string") {
tokenFunc = () => Promise.resolve(token as string);
} else if (typeof token === "object") {
tokenFunc = () => token as Promise<string>;
} else {
tokenFunc = token;
}
return new AppCenterClient(new AppCenterClientCredentials(tokenFunc), endpoint, createClientOptions());
},
fromProfile(user: Profile, endpoint: string): AppCenterClient | null {
if (!user) {
return null;
}
return new AppCenterClient(new AppCenterClientCredentials(() => Auth.accessTokenFor(user)), endpoint, createClientOptions());
}
};
}
// Helper function to wrap client calls into promises while maintaining some type safety.
export function clientCall<T>(action: {(cb: ServiceCallback<any>): void}): Promise<T> {
return new Promise<T>((resolve, reject) => {
action((err: Error, result: T) => {
if (err) { reject(err); } else { resolve(result); }
});
});
}
//
// Response type for clientRequest<T> - returns both parsed result and the HTTP response.
//
export interface ClientResponse<T> {
result: T;
response: IncomingMessage;
}
export async function handleHttpError(error: any, check404: boolean,
messageDefault: string, message404: string = `404 Error received from api`, message401: string = `401 Error received from api`): Promise<void> {
if (check404 && error.statusCode === 404) {
throw failure(ErrorCodes.InvalidParameter, message404);
}
if (error.statusCode === 401) {
throw failure(ErrorCodes.NotLoggedIn, message401);
} else {
throw failure(ErrorCodes.Exception, messageDefault);
}
}
// Helper function to wrap client calls into pormises and returning both HTTP response and parsed result
export function clientRequest<T>(action: {(cb: ServiceCallback<any>): void}): Promise<ClientResponse<T>> {
return new Promise<ClientResponse<T>>((resolve, reject) => {
action((err: Error | ServiceError, result: T, _request: WebResource, response: IncomingMessage) => {
if (err) { reject(err); } else {
resolve({ result, response});
}
});
});
}
// Used when there's a failure otherwise
export function failure(errorCode: number, errorMessage: string): any {
return {
succeeded: false,
errorCode,
errorMessage
};
}

Просмотреть файл

@ -7,10 +7,10 @@
import { ServiceClient, ServiceClientOptions, ServiceClientCredentials } from 'ms-rest'; import { ServiceClient, ServiceClientOptions, ServiceClientCredentials } from 'ms-rest';
import * as operations from "./operations"; import * as operations from "./operations";
declare class AccountClient extends ServiceClient { declare class AppCenterClient extends ServiceClient {
/** /**
* @class * @class
* Initializes a new instance of the AccountClient class. * Initializes a new instance of the AppCenterClient class.
* @constructor * @constructor
* *
* @param {credentials} credentials - Subscription credentials which uniquely identify client subscription. * @param {credentials} credentials - Subscription credentials which uniquely identify client subscription.
@ -32,16 +32,43 @@ declare class AccountClient extends ServiceClient {
credentials: ServiceClientCredentials; credentials: ServiceClientCredentials;
// Operation groups // Operation groups
apiTokens: operations.ApiTokens; devices: operations.Devices;
apps: operations.Apps; orgInvitations: operations.OrgInvitations;
azureSubscription: operations.AzureSubscription; distributionGroupInvitations: operations.DistributionGroupInvitations;
distributionGroups: operations.DistributionGroups;
appInvitations: operations.AppInvitations; appInvitations: operations.AppInvitations;
users: operations.Users; users: operations.Users;
organizations: operations.Organizations; releases: operations.Releases;
orgInvitations: operations.OrgInvitations;
teams: operations.Teams; teams: operations.Teams;
distributionGroupInvitations: operations.DistributionGroupInvitations; azureSubscription: operations.AzureSubscription;
apps: operations.Apps;
organizations: operations.Organizations;
builds: operations.Builds;
crashes: operations.Crashes;
test: operations.Test;
symbols: operations.Symbols;
symbolUploads: operations.SymbolUploads;
missingSymbolGroups: operations.MissingSymbolGroups;
repositories: operations.Repositories;
repositoryConfigurations: operations.RepositoryConfigurations;
provisioning: operations.Provisioning;
releaseUploads: operations.ReleaseUploads;
push: operations.Push;
fileAssets: operations.FileAssets;
exportConfigurations: operations.ExportConfigurations;
storeReleases: operations.StoreReleases;
stores: operations.Stores;
distributionGroups: operations.DistributionGroups;
codePushDeploymentRelease: operations.CodePushDeploymentRelease;
deploymentReleases: operations.DeploymentReleases;
codePushDeploymentReleases: operations.CodePushDeploymentReleases;
codePushDeployments: operations.CodePushDeployments;
codePushDeploymentMetrics: operations.CodePushDeploymentMetrics;
crashGroups: operations.CrashGroups;
commits: operations.Commits;
branchConfigurations: operations.BranchConfigurations;
appleMapping: operations.AppleMapping;
analytics: operations.Analytics;
apiTokens: operations.ApiTokens;
} }
export = AccountClient; export = AppCenterClient;

Просмотреть файл

@ -17,10 +17,10 @@ const models = require('./models');
const operations = require('./operations'); const operations = require('./operations');
/** Class representing a AccountClient. */ /** Class representing a AppCenterClient. */
class AccountClient extends ServiceClient { class AppCenterClient extends ServiceClient {
/** /**
* Create a AccountClient. * Create a AppCenterClient.
* @param {credentials} credentials - Subscription credentials which uniquely identify client subscription. * @param {credentials} credentials - Subscription credentials which uniquely identify client subscription.
* @param {string} [baseUri] - The base URI of the service. * @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options * @param {object} [options] - The parameter options
@ -40,26 +40,53 @@ class AccountClient extends ServiceClient {
this.baseUri = baseUri; this.baseUri = baseUri;
if (!this.baseUri) { if (!this.baseUri) {
this.baseUri = 'https://api.appcenter.ms/'; this.baseUri = 'https://api.appcenter.ms';
} }
this.credentials = credentials; this.credentials = credentials;
let packageInfo = this.getPackageJsonInfo(__dirname); let packageInfo = this.getPackageJsonInfo(__dirname);
this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`); this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
this.apiTokens = new operations.ApiTokens(this); this.devices = new operations.Devices(this);
this.apps = new operations.Apps(this); this.orgInvitations = new operations.OrgInvitations(this);
this.azureSubscription = new operations.AzureSubscription(this); this.distributionGroupInvitations = new operations.DistributionGroupInvitations(this);
this.distributionGroups = new operations.DistributionGroups(this);
this.appInvitations = new operations.AppInvitations(this); this.appInvitations = new operations.AppInvitations(this);
this.users = new operations.Users(this); this.users = new operations.Users(this);
this.organizations = new operations.Organizations(this); this.releases = new operations.Releases(this);
this.orgInvitations = new operations.OrgInvitations(this);
this.teams = new operations.Teams(this); this.teams = new operations.Teams(this);
this.distributionGroupInvitations = new operations.DistributionGroupInvitations(this); this.azureSubscription = new operations.AzureSubscription(this);
this.apps = new operations.Apps(this);
this.organizations = new operations.Organizations(this);
this.builds = new operations.Builds(this);
this.crashes = new operations.Crashes(this);
this.test = new operations.Test(this);
this.symbols = new operations.Symbols(this);
this.symbolUploads = new operations.SymbolUploads(this);
this.missingSymbolGroups = new operations.MissingSymbolGroups(this);
this.repositories = new operations.Repositories(this);
this.repositoryConfigurations = new operations.RepositoryConfigurations(this);
this.provisioning = new operations.Provisioning(this);
this.releaseUploads = new operations.ReleaseUploads(this);
this.push = new operations.Push(this);
this.fileAssets = new operations.FileAssets(this);
this.exportConfigurations = new operations.ExportConfigurations(this);
this.storeReleases = new operations.StoreReleases(this);
this.stores = new operations.Stores(this);
this.distributionGroups = new operations.DistributionGroups(this);
this.codePushDeploymentRelease = new operations.CodePushDeploymentRelease(this);
this.deploymentReleases = new operations.DeploymentReleases(this);
this.codePushDeploymentReleases = new operations.CodePushDeploymentReleases(this);
this.codePushDeployments = new operations.CodePushDeployments(this);
this.codePushDeploymentMetrics = new operations.CodePushDeploymentMetrics(this);
this.crashGroups = new operations.CrashGroups(this);
this.commits = new operations.Commits(this);
this.branchConfigurations = new operations.BranchConfigurations(this);
this.appleMapping = new operations.AppleMapping(this);
this.analytics = new operations.Analytics(this);
this.apiTokens = new operations.ApiTokens(this);
this.models = models; this.models = models;
msRest.addSerializationMixin(this); msRest.addSerializationMixin(this);
} }
} }
module.exports = AccountClient; module.exports = AppCenterClient;

Просмотреть файл

@ -0,0 +1,64 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AADTenantAddRequest.
*/
class AADTenantAddRequest {
/**
* Create a AADTenantAddRequest.
* @member {string} userId The user wanting to add this tenant to the
* organization, must be an admin of the organization
* @member {string} aadTenantId The AAD tenant id
* @member {string} displayName The name of the AAD Tenant
*/
constructor() {
}
/**
* Defines the metadata of AADTenantAddRequest
*
* @returns {object} metadata of AADTenantAddRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AADTenantAddRequest',
type: {
name: 'Composite',
className: 'AADTenantAddRequest',
modelProperties: {
userId: {
required: true,
serializedName: 'user_id',
type: {
name: 'String'
}
},
aadTenantId: {
required: true,
serializedName: 'aad_tenant_id',
type: {
name: 'String'
}
},
displayName: {
required: true,
serializedName: 'display_name',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AADTenantAddRequest;

Просмотреть файл

@ -0,0 +1,55 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AADTenantResponse.
*/
class AADTenantResponse {
/**
* Create a AADTenantResponse.
* @member {string} aadTenantId The AAD tenant id
* @member {string} displayName The name of the AAD Tenant
*/
constructor() {
}
/**
* Defines the metadata of AADTenantResponse
*
* @returns {object} metadata of AADTenantResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AADTenantResponse',
type: {
name: 'Composite',
className: 'AADTenantResponse',
modelProperties: {
aadTenantId: {
required: true,
serializedName: 'aad_tenant_id',
type: {
name: 'String'
}
},
displayName: {
required: true,
serializedName: 'display_name',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AADTenantResponse;

Просмотреть файл

@ -0,0 +1,81 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AccountResponse.
*/
class AccountResponse {
/**
* Create a AccountResponse.
* @member {string} id The internal unique id (UUID) of the account.
* @member {string} displayName The display name of the account
* @member {string} name The slug name of the account
* @member {string} origin The creation origin of this account. Possible
* values include: 'appcenter', 'hockeyapp'
* @member {string} type The type of this account. Possible values include:
* 'user', 'org'
*/
constructor() {
}
/**
* Defines the metadata of AccountResponse
*
* @returns {object} metadata of AccountResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AccountResponse',
type: {
name: 'Composite',
className: 'AccountResponse',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
displayName: {
required: true,
serializedName: 'display_name',
type: {
name: 'String'
}
},
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
origin: {
required: true,
serializedName: 'origin',
type: {
name: 'String'
}
},
type: {
required: true,
serializedName: 'type',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AccountResponse;

Просмотреть файл

@ -0,0 +1,65 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Class representing a ActiveCrashingAppDetails.
*/
class ActiveCrashingAppDetails {
/**
* Create a ActiveCrashingAppDetails.
* @member {string} [nextLink]
* @member {array} [appsWithCrashes] details of the apps with crashes
*/
constructor() {
}
/**
* Defines the metadata of ActiveCrashingAppDetails
*
* @returns {object} metadata of ActiveCrashingAppDetails
*
*/
mapper() {
return {
required: false,
serializedName: 'ActiveCrashingAppDetails',
type: {
name: 'Composite',
className: 'ActiveCrashingAppDetails',
modelProperties: {
nextLink: {
required: false,
serializedName: 'nextLink',
type: {
name: 'String'
}
},
appsWithCrashes: {
required: false,
serializedName: 'appsWithCrashes',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'CrashingAppDetailElementType',
type: {
name: 'Composite',
className: 'CrashingAppDetail'
}
}
}
}
}
}
};
}
}
module.exports = ActiveCrashingAppDetails;

Просмотреть файл

@ -0,0 +1,56 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Agent queue
*
*/
class AgentQueueResponse {
/**
* Create a AgentQueueResponse.
* @member {number} [id]
* @member {string} [name]
*/
constructor() {
}
/**
* Defines the metadata of AgentQueueResponse
*
* @returns {object} metadata of AgentQueueResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AgentQueueResponse',
type: {
name: 'Composite',
className: 'AgentQueueResponse',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'Number'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AgentQueueResponse;

Просмотреть файл

@ -0,0 +1,215 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Aggregated Billing Information for a user or an organization
*
*/
class AggregatedBillingInformation {
/**
* Create a AggregatedBillingInformation.
* @member {string} [version] Version of the Billing Information schema
* @member {string} [timestamp] The ISO 8601 datetime of last modification
* @member {string} [id] ID of the user or organization
* @member {object} [billingPlans]
* @member {object} [billingPlans.buildService]
* @member {boolean} [billingPlans.buildService.canSelectTrialPlan] Can
* customer select trial plan for that service (if it exists)?
* @member {string} [billingPlans.buildService.lastTrialPlanExpirationTime]
* Expiration time of the last selected trial plan. Will be null if trial
* plan was not used.
* @member {object} [billingPlans.buildService.currentBillingPeriod]
* @member {string}
* [billingPlans.buildService.currentBillingPeriod.startTime] Inclusive start
* of the period
* @member {string} [billingPlans.buildService.currentBillingPeriod.endTime]
* Exclusive end of the period.
* @member {object}
* [billingPlans.buildService.currentBillingPeriod.byAccount]
* @member {number}
* [billingPlans.buildService.currentBillingPeriod.byAccount.count] Number of
* instances of the billing plan.
* @member {object}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan]
* @member {string}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.id] The
* Billing Plan ID
* @member {string}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.version]
* Version of the Billing Plan schema
* @member {number}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.priceBucket]
* Price bucket of the billing plan. Free plans start with 0, paid plans have
* higher price buckets
* @member {string}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.service]
* Name of the service that the plan applies to. Possible values include:
* 'Build', 'Push', 'Test'
* @member {object}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.limits]
* @member {object}
* [billingPlans.buildService.currentBillingPeriod.byAccount.plan.attributes]
* @member {object} [billingPlans.pushService]
* @member {boolean} [billingPlans.pushService.canSelectTrialPlan] Can
* customer select trial plan for that service (if it exists)?
* @member {string} [billingPlans.pushService.lastTrialPlanExpirationTime]
* Expiration time of the last selected trial plan. Will be null if trial
* plan was not used.
* @member {object} [billingPlans.pushService.currentBillingPeriod]
* @member {string} [billingPlans.pushService.currentBillingPeriod.startTime]
* Inclusive start of the period
* @member {string} [billingPlans.pushService.currentBillingPeriod.endTime]
* Exclusive end of the period.
* @member {object} [billingPlans.pushService.currentBillingPeriod.byAccount]
* @member {number}
* [billingPlans.pushService.currentBillingPeriod.byAccount.count] Number of
* instances of the billing plan.
* @member {object}
* [billingPlans.pushService.currentBillingPeriod.byAccount.plan]
* @member {string}
* [billingPlans.pushService.currentBillingPeriod.byAccount.plan.id] The
* Billing Plan ID
* @member {string}
* [billingPlans.pushService.currentBillingPeriod.byAccount.plan.version]
* Version of the Billing Plan schema
* @member {number}
* [billingPlans.pushService.currentBillingPeriod.byAccount.plan.priceBucket]
* Price bucket of the billing plan. Free plans start with 0, paid plans have
* higher price buckets
* @member {string}
* [billingPlans.pushService.currentBillingPeriod.byAccount.plan.service]
* Name of the service that the plan applies to. Possible values include:
* 'Build', 'Push', 'Test'
* @member {object}
* [billingPlans.pushService.currentBillingPeriod.byAccount.plan.limits]
* @member {object}
* [billingPlans.pushService.currentBillingPeriod.byAccount.plan.attributes]
* @member {object} [billingPlans.testService]
* @member {boolean} [billingPlans.testService.canSelectTrialPlan] Can
* customer select trial plan for that service (if it exists)?
* @member {string} [billingPlans.testService.lastTrialPlanExpirationTime]
* Expiration time of the last selected trial plan. Will be null if trial
* plan was not used.
* @member {object} [billingPlans.testService.currentBillingPeriod]
* @member {string} [billingPlans.testService.currentBillingPeriod.startTime]
* Inclusive start of the period
* @member {string} [billingPlans.testService.currentBillingPeriod.endTime]
* Exclusive end of the period.
* @member {object} [billingPlans.testService.currentBillingPeriod.byAccount]
* @member {number}
* [billingPlans.testService.currentBillingPeriod.byAccount.count] Number of
* instances of the billing plan.
* @member {object}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan]
* @member {string}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.id] The
* Billing Plan ID
* @member {string}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.version]
* Version of the Billing Plan schema
* @member {number}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.priceBucket]
* Price bucket of the billing plan. Free plans start with 0, paid plans have
* higher price buckets
* @member {string}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.service]
* Name of the service that the plan applies to. Possible values include:
* 'Build', 'Push', 'Test'
* @member {object}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.limits]
* @member {object}
* [billingPlans.testService.currentBillingPeriod.byAccount.plan.attributes]
* @member {object} [usage]
* @member {object} [usage.buildService]
* @member {object} [usage.buildService.currentUsagePeriod]
* @member {string} [usage.buildService.currentUsagePeriod.startTime]
* Inclusive start time of the usage period
* @member {string} [usage.buildService.currentUsagePeriod.endTime] Exclusive
* end time of the usage period.
* @member {object} [usage.buildService.currentUsagePeriod.byAccount]
* @member {object} [usage.buildService.currentUsagePeriod.byApp]
* @member {object} [usage.pushService]
* @member {object} [usage.pushService.currentUsagePeriod]
* @member {string} [usage.pushService.currentUsagePeriod.startTime]
* Inclusive start time of the usage period
* @member {string} [usage.pushService.currentUsagePeriod.endTime] Exclusive
* end time of the usage period.
* @member {object} [usage.pushService.currentUsagePeriod.byAccount]
* @member {object} [usage.pushService.currentUsagePeriod.byApp]
* @member {object} [usage.testService]
* @member {object} [usage.testService.currentUsagePeriod]
* @member {string} [usage.testService.currentUsagePeriod.startTime]
* Inclusive start time of the usage period
* @member {string} [usage.testService.currentUsagePeriod.endTime] Exclusive
* end time of the usage period.
* @member {object} [usage.testService.currentUsagePeriod.byAccount]
* @member {object} [usage.testService.currentUsagePeriod.byApp]
*/
constructor() {
}
/**
* Defines the metadata of AggregatedBillingInformation
*
* @returns {object} metadata of AggregatedBillingInformation
*
*/
mapper() {
return {
required: false,
serializedName: 'AggregatedBillingInformation',
type: {
name: 'Composite',
className: 'AggregatedBillingInformation',
modelProperties: {
version: {
required: false,
serializedName: 'version',
type: {
name: 'String'
}
},
timestamp: {
required: false,
serializedName: 'timestamp',
type: {
name: 'String'
}
},
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
billingPlans: {
required: false,
serializedName: 'billingPlans',
type: {
name: 'Composite',
className: 'BillingInformationPlans'
}
},
usage: {
required: false,
serializedName: 'usage',
type: {
name: 'Composite',
className: 'BillingResourceUsage'
}
}
}
}
};
}
}
module.exports = AggregatedBillingInformation;

Просмотреть файл

@ -0,0 +1,94 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Repostiory object
*
*/
class AlertBugTrackerRepo {
/**
* Create a AlertBugTrackerRepo.
* @member {string} name
* @member {string} url
* @member {string} id
* @member {string} [description]
* @member {boolean} [privateProperty]
* @member {object} [owner]
* @member {string} [owner.name]
* @member {string} [owner.id]
* @member {string} [owner.login]
*/
constructor() {
}
/**
* Defines the metadata of AlertBugTrackerRepo
*
* @returns {object} metadata of AlertBugTrackerRepo
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertBugTrackerRepo',
type: {
name: 'Composite',
className: 'AlertBugTrackerRepo',
modelProperties: {
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
url: {
required: true,
serializedName: 'url',
type: {
name: 'String'
}
},
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
privateProperty: {
required: false,
serializedName: 'private',
type: {
name: 'Boolean'
}
},
owner: {
required: false,
serializedName: 'owner',
type: {
name: 'Composite',
className: 'AlertBugTrackerRepoOwner'
}
}
}
}
};
}
}
module.exports = AlertBugTrackerRepo;

Просмотреть файл

@ -0,0 +1,64 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Repository owner object
*
*/
class AlertBugTrackerRepoOwner {
/**
* Create a AlertBugTrackerRepoOwner.
* @member {string} [name]
* @member {string} [id]
* @member {string} [login]
*/
constructor() {
}
/**
* Defines the metadata of AlertBugTrackerRepoOwner
*
* @returns {object} metadata of AlertBugTrackerRepoOwner
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertBugTrackerRepoOwner',
type: {
name: 'Composite',
className: 'AlertBugTrackerRepoOwner',
modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
login: {
required: false,
serializedName: 'login',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AlertBugTrackerRepoOwner;

Просмотреть файл

@ -0,0 +1,67 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* List of bug tracker repositories
*
*/
class AlertBugTrackerReposResult {
/**
* Create a AlertBugTrackerReposResult.
* @member {string} [repoType] Possible values include: 'github', 'vsts',
* 'jira'
* @member {array} repositories
*/
constructor() {
}
/**
* Defines the metadata of AlertBugTrackerReposResult
*
* @returns {object} metadata of AlertBugTrackerReposResult
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertBugTrackerReposResult',
type: {
name: 'Composite',
className: 'AlertBugTrackerReposResult',
modelProperties: {
repoType: {
required: false,
serializedName: 'repo_type',
type: {
name: 'String'
}
},
repositories: {
required: true,
serializedName: 'repositories',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AlertBugTrackerRepoElementType',
type: {
name: 'Composite',
className: 'AlertBugTrackerRepo'
}
}
}
}
}
}
};
}
}
module.exports = AlertBugTrackerReposResult;

Просмотреть файл

@ -0,0 +1,49 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* AlertCrashGroup patching parameter
*
*/
class AlertCrashGroupStateChange {
/**
* Create a AlertCrashGroupStateChange.
* @member {string} [state] Possible values include: 'Open', 'Closed',
* 'Ignored'
*/
constructor() {
}
/**
* Defines the metadata of AlertCrashGroupStateChange
*
* @returns {object} metadata of AlertCrashGroupStateChange
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertCrashGroupStateChange',
type: {
name: 'Composite',
className: 'AlertCrashGroupStateChange',
modelProperties: {
state: {
required: false,
serializedName: 'state',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AlertCrashGroupStateChange;

Просмотреть файл

@ -0,0 +1,58 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Alerting Email Settings
*
*/
class AlertEmailSettings {
/**
* Create a AlertEmailSettings.
* @member {array} settings The settings the user has for the app
*/
constructor() {
}
/**
* Defines the metadata of AlertEmailSettings
*
* @returns {object} metadata of AlertEmailSettings
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertEmailSettings',
type: {
name: 'Composite',
className: 'AlertEmailSettings',
modelProperties: {
settings: {
required: true,
serializedName: 'settings',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'EventSettingElementType',
type: {
name: 'Composite',
className: 'EventSetting'
}
}
}
}
}
}
};
}
}
module.exports = AlertEmailSettings;

Просмотреть файл

@ -0,0 +1,48 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Generic result for any alerting API operation
*
*/
class AlertOperationResult {
/**
* Create a AlertOperationResult.
* @member {string} requestId Unique request identifier for tracking
*/
constructor() {
}
/**
* Defines the metadata of AlertOperationResult
*
* @returns {object} metadata of AlertOperationResult
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertOperationResult',
type: {
name: 'Composite',
className: 'AlertOperationResult',
modelProperties: {
requestId: {
required: true,
serializedName: 'request_id',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AlertOperationResult;

Просмотреть файл

@ -0,0 +1,104 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Alerting Email Settings of the user for a particular app
*
* @extends models['AlertUserEmailSettingsResult']
*/
class AlertUserAppEmailSettingsResult extends models['AlertUserEmailSettingsResult'] {
/**
* Create a AlertUserAppEmailSettingsResult.
* @member {string} appId Application ID
* @member {boolean} userEnabled A flag indicating if settings are enabled at
* user/global level
*/
constructor() {
super();
}
/**
* Defines the metadata of AlertUserAppEmailSettingsResult
*
* @returns {object} metadata of AlertUserAppEmailSettingsResult
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertUserAppEmailSettingsResult',
type: {
name: 'Composite',
className: 'AlertUserAppEmailSettingsResult',
modelProperties: {
requestId: {
required: true,
serializedName: 'request_id',
type: {
name: 'String'
}
},
eTag: {
required: true,
serializedName: 'eTag',
type: {
name: 'String'
}
},
enabled: {
required: true,
serializedName: 'enabled',
type: {
name: 'Boolean'
}
},
userId: {
required: true,
serializedName: 'userId',
type: {
name: 'String'
}
},
settings: {
required: true,
serializedName: 'settings',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'EventSettingElementType',
type: {
name: 'Composite',
className: 'EventSetting'
}
}
}
},
appId: {
required: true,
serializedName: 'appId',
type: {
name: 'String'
}
},
userEnabled: {
required: true,
serializedName: 'user_enabled',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = AlertUserAppEmailSettingsResult;

Просмотреть файл

@ -0,0 +1,92 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Alerting Default Email Settings of the user
*
* @extends models['AlertOperationResult']
*/
class AlertUserEmailSettingsResult extends models['AlertOperationResult'] {
/**
* Create a AlertUserEmailSettingsResult.
* @member {string} eTag The ETag of the entity
* @member {boolean} enabled Allows to forcefully disable emails on app or
* user level
* @member {string} userId The unique id (UUID) of the user
* @member {array} settings The settings the user has for the app
*/
constructor() {
super();
}
/**
* Defines the metadata of AlertUserEmailSettingsResult
*
* @returns {object} metadata of AlertUserEmailSettingsResult
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertUserEmailSettingsResult',
type: {
name: 'Composite',
className: 'AlertUserEmailSettingsResult',
modelProperties: {
requestId: {
required: true,
serializedName: 'request_id',
type: {
name: 'String'
}
},
eTag: {
required: true,
serializedName: 'eTag',
type: {
name: 'String'
}
},
enabled: {
required: true,
serializedName: 'enabled',
type: {
name: 'Boolean'
}
},
userId: {
required: true,
serializedName: 'userId',
type: {
name: 'String'
}
},
settings: {
required: true,
serializedName: 'settings',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'EventSettingElementType',
type: {
name: 'Composite',
className: 'EventSetting'
}
}
}
}
}
}
};
}
}
module.exports = AlertUserEmailSettingsResult;

Просмотреть файл

@ -0,0 +1,90 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Alerting webhook
*
*/
class AlertWebhook {
/**
* Create a AlertWebhook.
* @member {string} [id] The unique id (UUID) of the webhook
* @member {string} name display name of the webhook
* @member {string} url target url of the webhook
* @member {boolean} [enabled] Allows eanble/disable webhook
* @member {array} eventTypes Event types enabled for webhook
*/
constructor() {
}
/**
* Defines the metadata of AlertWebhook
*
* @returns {object} metadata of AlertWebhook
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertWebhook',
type: {
name: 'Composite',
className: 'AlertWebhook',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: true,
serializedName: 'name',
constraints: {
MaxLength: 512
},
type: {
name: 'String'
}
},
url: {
required: true,
serializedName: 'url',
type: {
name: 'String'
}
},
enabled: {
required: false,
serializedName: 'enabled',
type: {
name: 'Boolean'
}
},
eventTypes: {
required: true,
serializedName: 'event_types',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}
module.exports = AlertWebhook;

Просмотреть файл

@ -0,0 +1,58 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* List of alerting webhooks wrapped as operation result
*
*/
class AlertWebhookListResult {
/**
* Create a AlertWebhookListResult.
* @member {array} values
*/
constructor() {
}
/**
* Defines the metadata of AlertWebhookListResult
*
* @returns {object} metadata of AlertWebhookListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertWebhookListResult',
type: {
name: 'Composite',
className: 'AlertWebhookListResult',
modelProperties: {
values: {
required: true,
serializedName: 'values',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AlertWebhookElementType',
type: {
name: 'Composite',
className: 'AlertWebhook'
}
}
}
}
}
}
};
}
}
module.exports = AlertWebhookListResult;

Просмотреть файл

@ -0,0 +1,69 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Alerting webhook ping operation result
*
* @extends models['AlertOperationResult']
*/
class AlertWebhookPingResult extends models['AlertOperationResult'] {
/**
* Create a AlertWebhookPingResult.
* @member {number} responseStatusCode HTTP status code returned in response
* from calling webhook
* @member {string} [responseReason] Reason returned in response from calling
* webhook
*/
constructor() {
super();
}
/**
* Defines the metadata of AlertWebhookPingResult
*
* @returns {object} metadata of AlertWebhookPingResult
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertWebhookPingResult',
type: {
name: 'Composite',
className: 'AlertWebhookPingResult',
modelProperties: {
requestId: {
required: true,
serializedName: 'request_id',
type: {
name: 'String'
}
},
responseStatusCode: {
required: true,
serializedName: 'response_status_code',
type: {
name: 'Number'
}
},
responseReason: {
required: false,
serializedName: 'response_reason',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AlertWebhookPingResult;

Просмотреть файл

@ -0,0 +1,76 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Access token details
*
*/
class AlertingAccessTokenResponse {
/**
* Create a AlertingAccessTokenResponse.
* @member {string} accessTokenId ID of the access token
* @member {string} externalProviderName External provider name. Possible
* values include: 'github', 'vsts', 'jira'
* @member {string} externalUserEmail The email of external user that used to
* authenticate aginst the external oauth provider
* @member {object} externalAccountName The account name of external user
* that used to authenticate against the external oauth provider or basic
* auth
*/
constructor() {
}
/**
* Defines the metadata of AlertingAccessTokenResponse
*
* @returns {object} metadata of AlertingAccessTokenResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertingAccessTokenResponse',
type: {
name: 'Composite',
className: 'AlertingAccessTokenResponse',
modelProperties: {
accessTokenId: {
required: true,
serializedName: 'access_token_id',
type: {
name: 'String'
}
},
externalProviderName: {
required: true,
serializedName: 'external_provider_name',
type: {
name: 'String'
}
},
externalUserEmail: {
required: true,
serializedName: 'external_user_email',
type: {
name: 'String'
}
},
externalAccountName: {
required: true,
serializedName: 'external_account_name',
type: {
name: 'Object'
}
}
}
}
};
}
}
module.exports = AlertingAccessTokenResponse;

Просмотреть файл

@ -0,0 +1,109 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Alerting bugtracker resource
*
*/
class AlertingBugtracker {
/**
* Create a AlertingBugtracker.
* @member {string} [type] type of bugtracker. Possible values include:
* 'github', 'vsts', 'jira'
* @member {string} [state] bugtracker state. Possible values include:
* 'enabled', 'disabled', 'unauthorized'
* @member {string} [tokenId] ID of OAuth token
* @member {array} [eventTypes] Event types enabled for bugtracker
* @member {number} [crashCountThreshold] Threshold for the number of crashes
* at which to create a bug
* @member {object} [settings]
* @member {string} [settings.callbackUrl]
* @member {string} [settings.ownerName]
* @member {string} [settings.type] Polymorphic Discriminator
*/
constructor() {
}
/**
* Defines the metadata of AlertingBugtracker
*
* @returns {object} metadata of AlertingBugtracker
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertingBugtracker',
type: {
name: 'Composite',
className: 'AlertingBugtracker',
modelProperties: {
type: {
required: false,
serializedName: 'type',
type: {
name: 'String'
}
},
state: {
required: false,
serializedName: 'state',
type: {
name: 'String'
}
},
tokenId: {
required: false,
serializedName: 'token_id',
type: {
name: 'String'
}
},
eventTypes: {
required: false,
serializedName: 'event_types',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
crashCountThreshold: {
required: false,
serializedName: 'crash_count_threshold',
type: {
name: 'Number'
}
},
settings: {
required: false,
serializedName: 'settings',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'AlertingBugtrackerSettings',
className: 'AlertingBugtrackerSettings'
}
}
}
}
};
}
}
module.exports = AlertingBugtracker;

Просмотреть файл

@ -0,0 +1,70 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Bugtracker specific settings
*
*/
class AlertingBugtrackerSettings {
/**
* Create a AlertingBugtrackerSettings.
* @member {string} [callbackUrl]
* @member {string} ownerName
* @member {string} type Polymorphic Discriminator
*/
constructor() {
}
/**
* Defines the metadata of AlertingBugtrackerSettings
*
* @returns {object} metadata of AlertingBugtrackerSettings
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertingBugtrackerSettings',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'AlertingBugtrackerSettings',
className: 'AlertingBugtrackerSettings',
modelProperties: {
callbackUrl: {
required: false,
serializedName: 'callback_url',
type: {
name: 'String'
}
},
ownerName: {
required: true,
serializedName: 'owner_name',
type: {
name: 'String'
}
},
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AlertingBugtrackerSettings;

Просмотреть файл

@ -0,0 +1,112 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AlertingCrashGroup.
*/
class AlertingCrashGroup {
/**
* Create a AlertingCrashGroup.
* @member {string} [url]
* @member {string} [appDisplayName]
* @member {string} [appPlatform] SDK/Platform this thread is beeing
* generated from. Possible values include: 'ios', 'android', 'xamarin',
* 'react-native', 'ndk', 'unity', 'other'
* @member {string} [appVersion]
* @member {string} [id]
* @member {string} [name]
* @member {string} [reason]
* @member {array} [stackTrace]
*/
constructor() {
}
/**
* Defines the metadata of AlertingCrashGroup
*
* @returns {object} metadata of AlertingCrashGroup
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertingCrashGroup',
type: {
name: 'Composite',
className: 'AlertingCrashGroup',
modelProperties: {
url: {
required: false,
serializedName: 'url',
type: {
name: 'String'
}
},
appDisplayName: {
required: false,
serializedName: 'app_display_name',
type: {
name: 'String'
}
},
appPlatform: {
required: false,
serializedName: 'app_platform',
type: {
name: 'String'
}
},
appVersion: {
required: false,
serializedName: 'app_version',
type: {
name: 'String'
}
},
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
reason: {
required: false,
serializedName: 'reason',
type: {
name: 'String'
}
},
stackTrace: {
required: false,
serializedName: 'stack_trace',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}
module.exports = AlertingCrashGroup;

Просмотреть файл

@ -0,0 +1,68 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Alerting service error
*
* @extends models['AlertOperationResult']
*/
class AlertingError extends models['AlertOperationResult'] {
/**
* Create a AlertingError.
* @member {number} code The status code return by the API. It can be 400 or
* 404 or 409 or 500.
* @member {string} [message] The reason for the request failed
*/
constructor() {
super();
}
/**
* Defines the metadata of AlertingError
*
* @returns {object} metadata of AlertingError
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertingError',
type: {
name: 'Composite',
className: 'AlertingError',
modelProperties: {
requestId: {
required: true,
serializedName: 'request_id',
type: {
name: 'String'
}
},
code: {
required: true,
serializedName: 'code',
type: {
name: 'Number'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AlertingError;

Просмотреть файл

@ -0,0 +1,66 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Alerting event
*
*/
class AlertingEvent {
/**
* Create a AlertingEvent.
* @member {string} eventTimestamp ISO 8601 date time when event was
* generated
* @member {string} eventId A unique identifier for this event instance.
* Useful for deduplication
* @member {object} [properties] Obsolete. Use emailProperties.
*/
constructor() {
}
/**
* Defines the metadata of AlertingEvent
*
* @returns {object} metadata of AlertingEvent
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertingEvent',
type: {
name: 'Composite',
className: 'AlertingEvent',
modelProperties: {
eventTimestamp: {
required: true,
serializedName: 'event_timestamp',
type: {
name: 'String'
}
},
eventId: {
required: true,
serializedName: 'event_id',
type: {
name: 'String'
}
},
properties: {
required: false,
serializedName: 'properties',
type: {
name: 'Object'
}
}
}
}
};
}
}
module.exports = AlertingEvent;

Просмотреть файл

@ -0,0 +1,95 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Github bugtracker specific settings
*
* @extends models['AlertingBugtrackerSettings']
*/
class AlertingGithubBugtrackerSettings extends models['AlertingBugtrackerSettings'] {
/**
* Create a AlertingGithubBugtrackerSettings.
* @member {number} githubRepoId
* @member {string} githubRepoName
* @member {string} [githubLabel]
*/
constructor() {
super();
}
/**
* Defines the metadata of AlertingGithubBugtrackerSettings
*
* @returns {object} metadata of AlertingGithubBugtrackerSettings
*
*/
mapper() {
return {
required: false,
serializedName: 'github',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'AlertingBugtrackerSettings',
className: 'AlertingGithubBugtrackerSettings',
modelProperties: {
callbackUrl: {
required: false,
serializedName: 'callback_url',
type: {
name: 'String'
}
},
ownerName: {
required: true,
serializedName: 'owner_name',
type: {
name: 'String'
}
},
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
githubRepoId: {
required: true,
serializedName: 'github_repo_id',
type: {
name: 'Number'
}
},
githubRepoName: {
required: true,
serializedName: 'github_repo_name',
type: {
name: 'String'
}
},
githubLabel: {
required: false,
serializedName: 'github_label',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AlertingGithubBugtrackerSettings;

Просмотреть файл

@ -0,0 +1,87 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Jira bugtracker specific settings
*
* @extends models['AlertingBugtrackerSettings']
*/
class AlertingJiraBugtrackerSettings extends models['AlertingBugtrackerSettings'] {
/**
* Create a AlertingJiraBugtrackerSettings.
* @member {number} jiraProjectId
* @member {string} jiraProjectName
*/
constructor() {
super();
}
/**
* Defines the metadata of AlertingJiraBugtrackerSettings
*
* @returns {object} metadata of AlertingJiraBugtrackerSettings
*
*/
mapper() {
return {
required: false,
serializedName: 'jira',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'AlertingBugtrackerSettings',
className: 'AlertingJiraBugtrackerSettings',
modelProperties: {
callbackUrl: {
required: false,
serializedName: 'callback_url',
type: {
name: 'String'
}
},
ownerName: {
required: true,
serializedName: 'owner_name',
type: {
name: 'String'
}
},
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
jiraProjectId: {
required: true,
serializedName: 'jira_project_id',
type: {
name: 'Number'
}
},
jiraProjectName: {
required: true,
serializedName: 'jira_project_name',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AlertingJiraBugtrackerSettings;

Просмотреть файл

@ -0,0 +1,119 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* VSTS bugtracker specific settings
*
* @extends models['AlertingBugtrackerSettings']
*/
class AlertingVstsBugtrackerSettings extends models['AlertingBugtrackerSettings'] {
/**
* Create a AlertingVstsBugtrackerSettings.
* @member {string} vstsProjectId
* @member {string} vstsProjectUri
* @member {string} [vstsProjectName]
* @member {string} [vstsAccountName]
* @member {string} [vstsAreaPath]
* @member {object} [vstsDefaultPayload]
*/
constructor() {
super();
}
/**
* Defines the metadata of AlertingVstsBugtrackerSettings
*
* @returns {object} metadata of AlertingVstsBugtrackerSettings
*
*/
mapper() {
return {
required: false,
serializedName: 'vsts',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'AlertingBugtrackerSettings',
className: 'AlertingVstsBugtrackerSettings',
modelProperties: {
callbackUrl: {
required: false,
serializedName: 'callback_url',
type: {
name: 'String'
}
},
ownerName: {
required: true,
serializedName: 'owner_name',
type: {
name: 'String'
}
},
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
vstsProjectId: {
required: true,
serializedName: 'vsts_project_id',
type: {
name: 'String'
}
},
vstsProjectUri: {
required: true,
serializedName: 'vsts_project_uri',
type: {
name: 'String'
}
},
vstsProjectName: {
required: false,
serializedName: 'vsts_project_name',
type: {
name: 'String'
}
},
vstsAccountName: {
required: false,
serializedName: 'vsts_account_name',
type: {
name: 'String'
}
},
vstsAreaPath: {
required: false,
serializedName: 'vsts_area_path',
type: {
name: 'String'
}
},
vstsDefaultPayload: {
required: false,
serializedName: 'vsts_default_payload',
type: {
name: 'Object'
}
}
}
}
};
}
}
module.exports = AlertingVstsBugtrackerSettings;

Просмотреть файл

@ -0,0 +1,72 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Itunes teams details .
*
*/
class AllItunesAppsResponse {
/**
* Create a AllItunesAppsResponse.
* @member {string} [appleId] apple id for app team id.
* @member {string} [bundleId] bundle identifier of app
* @member {string} [name] App Name
* @member {string} [iconUrl] url for the app icon from app store
*/
constructor() {
}
/**
* Defines the metadata of AllItunesAppsResponse
*
* @returns {object} metadata of AllItunesAppsResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AllItunesAppsResponse',
type: {
name: 'Composite',
className: 'AllItunesAppsResponse',
modelProperties: {
appleId: {
required: false,
serializedName: 'apple_id',
type: {
name: 'String'
}
},
bundleId: {
required: false,
serializedName: 'bundle_id',
type: {
name: 'String'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
iconUrl: {
required: false,
serializedName: 'iconUrl',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AllItunesAppsResponse;

Просмотреть файл

@ -0,0 +1,55 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a ApiTokenDeleteResponse.
*/
class ApiTokenDeleteResponse {
/**
* Create a ApiTokenDeleteResponse.
* @member {string} id The unique id (UUID) of the api token
* @member {string} tokenHash The hashed value of api token
*/
constructor() {
}
/**
* Defines the metadata of ApiTokenDeleteResponse
*
* @returns {object} metadata of ApiTokenDeleteResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'ApiTokenDeleteResponse',
type: {
name: 'Composite',
className: 'ApiTokenDeleteResponse',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
tokenHash: {
required: true,
serializedName: 'token_hash',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = ApiTokenDeleteResponse;

Просмотреть файл

@ -0,0 +1,88 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a ApiTokenGetUserResponse.
*/
class ApiTokenGetUserResponse {
/**
* Create a ApiTokenGetUserResponse.
* @member {string} tokenId The token's unique id (UUID)
* @member {array} tokenScope The token's scope. A list of allowed roles.
* @member {string} userEmail The user email
* @member {string} userId The unique id (UUID) of the user
* @member {string} userOrigin The creation origin of the user who created
* this api token. Possible values include: 'appcenter', 'hockeyapp',
* 'codepush'
*/
constructor() {
}
/**
* Defines the metadata of ApiTokenGetUserResponse
*
* @returns {object} metadata of ApiTokenGetUserResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'ApiTokenGetUserResponse',
type: {
name: 'Composite',
className: 'ApiTokenGetUserResponse',
modelProperties: {
tokenId: {
required: true,
serializedName: 'token_id',
type: {
name: 'String'
}
},
tokenScope: {
required: true,
serializedName: 'token_scope',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
userEmail: {
required: true,
serializedName: 'user_email',
type: {
name: 'String'
}
},
userId: {
required: true,
serializedName: 'user_id',
type: {
name: 'String'
}
},
userOrigin: {
required: true,
serializedName: 'user_origin',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = ApiTokenGetUserResponse;

Просмотреть файл

@ -0,0 +1,87 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a ApiTokenResponse.
*/
class ApiTokenResponse {
/**
* Create a ApiTokenResponse.
* @member {string} id The unique id (UUID) of the api token
* @member {string} createdAt The creation time
* @member {array} [scope] The token's scope. A list of allowed roles.
* @member {object} [encryptedToken] The encrypted value of a token. This
* value will only be returned for token of type in_app_update.
* @member {string} [description] The description of the token
*/
constructor() {
}
/**
* Defines the metadata of ApiTokenResponse
*
* @returns {object} metadata of ApiTokenResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'ApiTokenResponse',
type: {
name: 'Composite',
className: 'ApiTokenResponse',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
createdAt: {
required: true,
serializedName: 'created_at',
type: {
name: 'String'
}
},
scope: {
required: false,
serializedName: 'scope',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
encryptedToken: {
required: false,
serializedName: 'encrypted_token',
type: {
name: 'Object'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = ApiTokenResponse;

Просмотреть файл

@ -0,0 +1,87 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a ApiTokensCreateResponse.
*/
class ApiTokensCreateResponse {
/**
* Create a ApiTokensCreateResponse.
* @member {string} id The unique id (UUID) of the api token
* @member {string} apiToken The api token generated will not be accessible
* again
* @member {string} [description] The description of the token
* @member {array} [scope] The scope for this token.
* @member {string} createdAt The creation time
*/
constructor() {
}
/**
* Defines the metadata of ApiTokensCreateResponse
*
* @returns {object} metadata of ApiTokensCreateResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'ApiTokensCreateResponse',
type: {
name: 'Composite',
className: 'ApiTokensCreateResponse',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
apiToken: {
required: true,
serializedName: 'api_token',
type: {
name: 'String'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
scope: {
required: false,
serializedName: 'scope',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
createdAt: {
required: true,
serializedName: 'created_at',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = ApiTokensCreateResponse;

Просмотреть файл

@ -0,0 +1,91 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a ApiTokensPostRequest.
*/
class ApiTokensPostRequest {
/**
* Create a ApiTokensPostRequest.
* @member {string} [description] The description of the token
* @member {string} [encryptedToken] An encrypted value of the token.
* @member {array} [scope] The scope for this token. An array of supported
* roles.
* @member {string} [tokenHash] The hashed value of api token
* @member {string} [tokenType] The token's type. public:managed by the user;
* in_app_update:special token for in-app update scenario; buid:dedicated for
* CI usage for now; session:for CLI session management; tester_app: used for
* tester mobile app; default is "public".'. Possible values include:
* 'public', 'in_app_update', 'build', 'session', 'tester_app'
*/
constructor() {
}
/**
* Defines the metadata of ApiTokensPostRequest
*
* @returns {object} metadata of ApiTokensPostRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'ApiTokensPostRequest',
type: {
name: 'Composite',
className: 'ApiTokensPostRequest',
modelProperties: {
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
encryptedToken: {
required: false,
serializedName: 'encrypted_token',
type: {
name: 'String'
}
},
scope: {
required: false,
serializedName: 'scope',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
tokenHash: {
required: false,
serializedName: 'token_hash',
type: {
name: 'String'
}
},
tokenType: {
required: false,
serializedName: 'token_type',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = ApiTokensPostRequest;

Просмотреть файл

@ -0,0 +1,56 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* supported feature
*
*/
class AppBuildFeature {
/**
* Create a AppBuildFeature.
* @member {string} [name]
* @member {boolean} [value]
*/
constructor() {
}
/**
* Defines the metadata of AppBuildFeature
*
* @returns {object} metadata of AppBuildFeature
*
*/
mapper() {
return {
required: false,
serializedName: 'AppBuildFeature',
type: {
name: 'Composite',
className: 'AppBuildFeature',
modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
value: {
required: false,
serializedName: 'value',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = AppBuildFeature;

Просмотреть файл

@ -0,0 +1,91 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AppGroupResponse.
*/
class AppGroupResponse {
/**
* Create a AppGroupResponse.
* @member {string} id The unique ID (UUID) of the app
* @member {string} groupId The unique ID (UUID) of the group that the app
* belongs to
* @member {string} [displayName] The display name of the app
* @member {string} name The name of the app used in URLs
* @member {string} os The OS the app will be running on. Possible values
* include: 'Android', 'iOS', 'macOS', 'Tizen', 'tvOS', 'Windows', 'Custom'
* @member {string} platform The platform of the app. Possible values
* include: 'Java', 'Objective-C-Swift', 'UWP', 'Cordova', 'React-Native',
* 'Unity', 'Xamarin', 'Unknown'
*/
constructor() {
}
/**
* Defines the metadata of AppGroupResponse
*
* @returns {object} metadata of AppGroupResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AppGroupResponse',
type: {
name: 'Composite',
className: 'AppGroupResponse',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
groupId: {
required: true,
serializedName: 'group_id',
type: {
name: 'String'
}
},
displayName: {
required: false,
serializedName: 'display_name',
type: {
name: 'String'
}
},
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
os: {
required: true,
serializedName: 'os',
type: {
name: 'String'
}
},
platform: {
required: true,
serializedName: 'platform',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AppGroupResponse;

Просмотреть файл

@ -0,0 +1,47 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AppRepoPatchRequest.
*/
class AppRepoPatchRequest {
/**
* Create a AppRepoPatchRequest.
* @member {string} [repoUrl] The absolute URL of the repository
*/
constructor() {
}
/**
* Defines the metadata of AppRepoPatchRequest
*
* @returns {object} metadata of AppRepoPatchRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AppRepoPatchRequest',
type: {
name: 'Composite',
className: 'AppRepoPatchRequest',
modelProperties: {
repoUrl: {
required: false,
serializedName: 'repo_url',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AppRepoPatchRequest;

Просмотреть файл

@ -0,0 +1,65 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AppRepoPostRequest.
*/
class AppRepoPostRequest {
/**
* Create a AppRepoPostRequest.
* @member {string} repoUrl The absolute URL of the repository
* @member {string} [repoProvider] The provider of the repository. Possible
* values include: 'github', 'bitbucket', 'vsts'
* @member {string} userId The unique id (UUID) of the user who configured
* the repository
*/
constructor() {
}
/**
* Defines the metadata of AppRepoPostRequest
*
* @returns {object} metadata of AppRepoPostRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AppRepoPostRequest',
type: {
name: 'Composite',
className: 'AppRepoPostRequest',
modelProperties: {
repoUrl: {
required: true,
serializedName: 'repo_url',
type: {
name: 'String'
}
},
repoProvider: {
required: false,
serializedName: 'repo_provider',
type: {
name: 'String'
}
},
userId: {
required: true,
serializedName: 'user_id',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AppRepoPostRequest;

Просмотреть файл

@ -0,0 +1,82 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AppRepoResponse.
*/
class AppRepoResponse {
/**
* Create a AppRepoResponse.
* @member {string} id The unique id (UUID) of the repository integration
* @member {string} appId The unique id (UUID) of the app that this
* repository integration belongs to
* @member {string} repoUrl The absolute URL of the repository
* @member {string} [repoProvider] The provider of the repository. Possible
* values include: 'github', 'bitbucket', 'vsts'
* @member {string} userId The unique id (UUID) of the user who configured
* the repository
*/
constructor() {
}
/**
* Defines the metadata of AppRepoResponse
*
* @returns {object} metadata of AppRepoResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AppRepoResponse',
type: {
name: 'Composite',
className: 'AppRepoResponse',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
appId: {
required: true,
serializedName: 'app_id',
type: {
name: 'String'
}
},
repoUrl: {
required: true,
serializedName: 'repo_url',
type: {
name: 'String'
}
},
repoProvider: {
required: false,
serializedName: 'repo_provider',
type: {
name: 'String'
}
},
userId: {
required: true,
serializedName: 'user_id',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AppRepoResponse;

Просмотреть файл

@ -15,7 +15,7 @@ const models = require('./index');
class AppResponse extends models['BasicAppResponse'] { class AppResponse extends models['BasicAppResponse'] {
/** /**
* Create a AppResponse. * Create a AppResponse.
* @member {string} [appSecret] A unique and secret key used to identify the * @member {string} appSecret A unique and secret key used to identify the
* app in communication with the ingestion endpoint for crash reporting and * app in communication with the ingestion endpoint for crash reporting and
* analytics * analytics
* @member {object} [azureSubscription] * @member {object} [azureSubscription]
@ -29,10 +29,10 @@ class AppResponse extends models['BasicAppResponse'] {
* used for billing * used for billing
* @member {boolean} [azureSubscription.isBillable] If the subscription can * @member {boolean} [azureSubscription.isBillable] If the subscription can
* be used for billing * be used for billing
* @member {string} [platform] The platform of the app. Possible values * @member {string} platform The platform of the app. Possible values
* include: 'Java', 'Objective-C-Swift', 'UWP', 'Cordova', 'React-Native', * include: 'Java', 'Objective-C-Swift', 'UWP', 'Cordova', 'React-Native',
* 'Unity', 'Xamarin', 'Unknown' * 'Unity', 'Xamarin', 'Unknown'
* @member {string} [origin] The creation origin of this app. Possible values * @member {string} origin The creation origin of this app. Possible values
* include: 'appcenter', 'hockeyapp', 'codepush' * include: 'appcenter', 'hockeyapp', 'codepush'
* @member {string} [createdAt] The created date of this app * @member {string} [createdAt] The created date of this app
* @member {string} [updatedAt] The last updated date of this app * @member {string} [updatedAt] The last updated date of this app
@ -107,7 +107,7 @@ class AppResponse extends models['BasicAppResponse'] {
} }
}, },
appSecret: { appSecret: {
required: false, required: true,
serializedName: 'app_secret', serializedName: 'app_secret',
type: { type: {
name: 'String' name: 'String'
@ -122,14 +122,14 @@ class AppResponse extends models['BasicAppResponse'] {
} }
}, },
platform: { platform: {
required: false, required: true,
serializedName: 'platform', serializedName: 'platform',
type: { type: {
name: 'String' name: 'String'
} }
}, },
origin: { origin: {
required: false, required: true,
serializedName: 'origin', serializedName: 'origin',
type: { type: {
name: 'String' name: 'String'

Просмотреть файл

@ -0,0 +1,182 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Class representing a AppResponseInternal.
* @extends models['AppResponse']
*/
class AppResponseInternal extends models['AppResponse'] {
/**
* Create a AppResponseInternal.
* @member {array} [featureFlags] The feature flags that are enabled for this
* app
* @member {array} [repositories] The repositories associated with this app
*/
constructor() {
super();
}
/**
* Defines the metadata of AppResponseInternal
*
* @returns {object} metadata of AppResponseInternal
*
*/
mapper() {
return {
required: false,
serializedName: 'AppResponseInternal',
type: {
name: 'Composite',
className: 'AppResponseInternal',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
displayName: {
required: true,
serializedName: 'display_name',
type: {
name: 'String'
}
},
iconUrl: {
required: false,
serializedName: 'icon_url',
type: {
name: 'String'
}
},
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
os: {
required: true,
serializedName: 'os',
type: {
name: 'String'
}
},
owner: {
required: true,
serializedName: 'owner',
type: {
name: 'Composite',
className: 'Owner'
}
},
appSecret: {
required: true,
serializedName: 'app_secret',
type: {
name: 'String'
}
},
azureSubscription: {
required: false,
serializedName: 'azure_subscription',
type: {
name: 'Composite',
className: 'AzureSubscriptionResponse'
}
},
platform: {
required: true,
serializedName: 'platform',
type: {
name: 'String'
}
},
origin: {
required: true,
serializedName: 'origin',
type: {
name: 'String'
}
},
createdAt: {
required: false,
serializedName: 'created_at',
type: {
name: 'String'
}
},
updatedAt: {
required: false,
serializedName: 'updated_at',
type: {
name: 'String'
}
},
memberPermissions: {
required: false,
serializedName: 'member_permissions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
featureFlags: {
required: false,
serializedName: 'feature_flags',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
repositories: {
required: false,
serializedName: 'repositories',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AppResponseInternalRepositoriesItemElementType',
type: {
name: 'Composite',
className: 'AppResponseInternalRepositoriesItem'
}
}
}
}
}
}
};
}
}
module.exports = AppResponseInternal;

Просмотреть файл

@ -0,0 +1,55 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AppResponseInternalRepositoriesItem.
*/
class AppResponseInternalRepositoriesItem {
/**
* Create a AppResponseInternalRepositoriesItem.
* @member {string} [repoProvider]
* @member {string} [repoUrl]
*/
constructor() {
}
/**
* Defines the metadata of AppResponseInternalRepositoriesItem
*
* @returns {object} metadata of AppResponseInternalRepositoriesItem
*
*/
mapper() {
return {
required: false,
serializedName: 'AppResponseInternal_repositoriesItem',
type: {
name: 'Composite',
className: 'AppResponseInternalRepositoriesItem',
modelProperties: {
repoProvider: {
required: false,
serializedName: 'repo_provider',
type: {
name: 'String'
}
},
repoUrl: {
required: false,
serializedName: 'repo_url',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AppResponseInternalRepositoriesItem;

Просмотреть файл

@ -0,0 +1,97 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AppUserPermissionResponse.
*/
class AppUserPermissionResponse {
/**
* Create a AppUserPermissionResponse.
* @member {string} appId The unique id (UUID) of the app
* @member {array} permissions The permissions the user has for the app
* @member {string} userEmail The email of the user
* @member {string} userId The unique id (UUID) of the user
* @member {string} appOrigin The creation origin of this app. Possible
* values include: 'appcenter', 'hockeyapp', 'codepush'
* @member {string} appSecret A unique and secret key used to identify the
* app in communication with the ingestion endpoint for crash reporting and
* analytics
*/
constructor() {
}
/**
* Defines the metadata of AppUserPermissionResponse
*
* @returns {object} metadata of AppUserPermissionResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AppUserPermissionResponse',
type: {
name: 'Composite',
className: 'AppUserPermissionResponse',
modelProperties: {
appId: {
required: true,
serializedName: 'app_id',
type: {
name: 'String'
}
},
permissions: {
required: true,
serializedName: 'permissions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
userEmail: {
required: true,
serializedName: 'user_email',
type: {
name: 'String'
}
},
userId: {
required: true,
serializedName: 'user_id',
type: {
name: 'String'
}
},
appOrigin: {
required: true,
serializedName: 'app_origin',
type: {
name: 'String'
}
},
appSecret: {
required: true,
serializedName: 'app_secret',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AppUserPermissionResponse;

Просмотреть файл

@ -86,7 +86,7 @@ class AppWithTeamPermissionsResponse extends models['AppResponse'] {
} }
}, },
appSecret: { appSecret: {
required: false, required: true,
serializedName: 'app_secret', serializedName: 'app_secret',
type: { type: {
name: 'String' name: 'String'
@ -101,14 +101,14 @@ class AppWithTeamPermissionsResponse extends models['AppResponse'] {
} }
}, },
platform: { platform: {
required: false, required: true,
serializedName: 'platform', serializedName: 'platform',
type: { type: {
name: 'String' name: 'String'
} }
}, },
origin: { origin: {
required: false, required: true,
serializedName: 'origin', serializedName: 'origin',
type: { type: {
name: 'String' name: 'String'

Просмотреть файл

@ -0,0 +1,65 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Apple credentials needed to log into the Apple Developer Portal
*
*/
class AppleLoginRequest {
/**
* Create a AppleLoginRequest.
* @member {string} username The username for the Apple Developer account.
* @member {string} password The password for the Apple Developer account.
* @member {string} [teamIdentifier] Identifier of the team to use when
* logged in.
*/
constructor() {
}
/**
* Defines the metadata of AppleLoginRequest
*
* @returns {object} metadata of AppleLoginRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AppleLoginRequest',
type: {
name: 'Composite',
className: 'AppleLoginRequest',
modelProperties: {
username: {
required: true,
serializedName: 'username',
type: {
name: 'String'
}
},
password: {
required: true,
serializedName: 'password',
type: {
name: 'String'
}
},
teamIdentifier: {
required: false,
serializedName: 'team_identifier',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AppleLoginRequest;

Просмотреть файл

@ -0,0 +1,48 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Indicates if login was successful.
*
*/
class AppleLoginResponse {
/**
* Create a AppleLoginResponse.
* @member {boolean} [successful] True when login was successful.
*/
constructor() {
}
/**
* Defines the metadata of AppleLoginResponse
*
* @returns {object} metadata of AppleLoginResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AppleLoginResponse',
type: {
name: 'Composite',
className: 'AppleLoginResponse',
modelProperties: {
successful: {
required: false,
serializedName: 'successful',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = AppleLoginResponse;

Просмотреть файл

@ -0,0 +1,85 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Apple details for fetching test flight groups from Apple Developer Portal.
* pass either apple_id or bundle_identifier to get the test flight groups. if
* both are passed than apple_id will take preference
*
*/
class AppleTestFlightGroupRequest {
/**
* Create a AppleTestFlightGroupRequest.
* @member {string} username The username for the Apple Developer account.
* @member {string} password The password for the Apple Developer account.
* @member {string} [appleId] apple_id of the app for which test flight
* groups need to be fetched.
* @member {string} [bundleIdentifier] apple_id of the app for which test
* flight groups need to be fetched.
* @member {string} [teamIdentifier] Identifier of the team to use when
* logged in.
*/
constructor() {
}
/**
* Defines the metadata of AppleTestFlightGroupRequest
*
* @returns {object} metadata of AppleTestFlightGroupRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AppleTestFlightGroupRequest',
type: {
name: 'Composite',
className: 'AppleTestFlightGroupRequest',
modelProperties: {
username: {
required: true,
serializedName: 'username',
type: {
name: 'String'
}
},
password: {
required: true,
serializedName: 'password',
type: {
name: 'String'
}
},
appleId: {
required: false,
serializedName: 'apple_id',
type: {
name: 'String'
}
},
bundleIdentifier: {
required: false,
serializedName: 'bundle_identifier',
type: {
name: 'String'
}
},
teamIdentifier: {
required: false,
serializedName: 'team_identifier',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AppleTestFlightGroupRequest;

Просмотреть файл

@ -0,0 +1,89 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* test flight group details for the app.
*
*/
class AppleTestFlightGroupResponse {
/**
* Create a AppleTestFlightGroupResponse.
* @member {string} [id] id of the group.
* @member {number} [providerId] provider id of the group.
* @member {number} [appAdamId] apple id of the group.
* @member {string} [name] name of the group.
* @member {boolean} [active] true if group is in active state.
* @member {boolean} [isInternalGroup] true if the group is an internal
* group.
*/
constructor() {
}
/**
* Defines the metadata of AppleTestFlightGroupResponse
*
* @returns {object} metadata of AppleTestFlightGroupResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AppleTestFlightGroupResponse',
type: {
name: 'Composite',
className: 'AppleTestFlightGroupResponse',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
providerId: {
required: false,
serializedName: 'providerId',
type: {
name: 'Number'
}
},
appAdamId: {
required: false,
serializedName: 'appAdamId',
type: {
name: 'Number'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
active: {
required: false,
serializedName: 'active',
type: {
name: 'Boolean'
}
},
isInternalGroup: {
required: false,
serializedName: 'isInternalGroup',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = AppleTestFlightGroupResponse;

Просмотреть файл

@ -0,0 +1,101 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* The information needed to fetch the status of an application
*
*/
class ApplicationStatusRequest {
/**
* Create a ApplicationStatusRequest.
* @member {string} username The username for the Apple Developer account.
* @member {string} password The password for the Apple Developer account.
* @member {string} bundleIdentifier Bundle Identifier of application in
* Apple Itunes portal.
* @member {string} trackIdentifier Track Identifier for which the status is
* to be fetched.
* @member {string} [buildVersion] The version of build for which real time
* status is to be fetched.
* @member {string} [teamIdentifier] Identifier of the team to use when
* logged in.
* @member {string} [trainVersion] The Train version for which the status is
* to be fetched.
*/
constructor() {
}
/**
* Defines the metadata of ApplicationStatusRequest
*
* @returns {object} metadata of ApplicationStatusRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationStatusRequest',
type: {
name: 'Composite',
className: 'ApplicationStatusRequest',
modelProperties: {
username: {
required: true,
serializedName: 'username',
type: {
name: 'String'
}
},
password: {
required: true,
serializedName: 'password',
type: {
name: 'String'
}
},
bundleIdentifier: {
required: true,
serializedName: 'bundle_identifier',
type: {
name: 'String'
}
},
trackIdentifier: {
required: true,
serializedName: 'track_identifier',
type: {
name: 'String'
}
},
buildVersion: {
required: false,
serializedName: 'build_version',
type: {
name: 'String'
}
},
teamIdentifier: {
required: false,
serializedName: 'team_identifier',
type: {
name: 'String'
}
},
trainVersion: {
required: false,
serializedName: 'train_version',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = ApplicationStatusRequest;

Просмотреть файл

@ -0,0 +1,57 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* The status information from Itunes portal
*
*/
class ApplicationStatusResponse {
/**
* Create a ApplicationStatusResponse.
* @member {string} versionType The type of version being returned
* (production/edit/test flight).
* @member {string} [version] The version of the application
*/
constructor() {
}
/**
* Defines the metadata of ApplicationStatusResponse
*
* @returns {object} metadata of ApplicationStatusResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationStatusResponse',
type: {
name: 'Composite',
className: 'ApplicationStatusResponse',
modelProperties: {
versionType: {
required: true,
serializedName: 'version_type',
type: {
name: 'String'
}
},
version: {
required: false,
serializedName: 'version',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = ApplicationStatusResponse;

Просмотреть файл

@ -0,0 +1,57 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* An object containing a UUID for an architecture for an iOS app.
*
*/
class ArchIdentifier {
/**
* Create a ArchIdentifier.
* @member {string} architecture The architecture that the UUID belongs to,
* i.e. armv7 or arm64.
* @member {uuid} uuid The unique identifier.
*/
constructor() {
}
/**
* Defines the metadata of ArchIdentifier
*
* @returns {object} metadata of ArchIdentifier
*
*/
mapper() {
return {
required: false,
serializedName: 'ArchIdentifier',
type: {
name: 'Composite',
className: 'ArchIdentifier',
modelProperties: {
architecture: {
required: true,
serializedName: 'architecture',
type: {
name: 'String'
}
},
uuid: {
required: true,
serializedName: 'uuid',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = ArchIdentifier;

Просмотреть файл

@ -0,0 +1,48 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Audience definition.
*
*/
class AudienceBlobResult {
/**
* Create a AudienceBlobResult.
* @member {string} [url] Location of the audience blob.
*/
constructor() {
}
/**
* Defines the metadata of AudienceBlobResult
*
* @returns {object} metadata of AudienceBlobResult
*
*/
mapper() {
return {
required: false,
serializedName: 'AudienceBlobResult',
type: {
name: 'Composite',
className: 'AudienceBlobResult',
modelProperties: {
url: {
required: false,
serializedName: 'url',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AudienceBlobResult;

Просмотреть файл

@ -0,0 +1,71 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* A request containing information for creating a Auto Provisioning Config.
*
*/
class AutoProvisioningConfigRequest {
/**
* Create a AutoProvisioningConfigRequest.
* @member {string} appleDeveloperAccountKey A key to a secret in
* customer-credential-store. apple_developer_account refers to the user's
* developer account that is used to log into https://developer.apple.com.
* Normally the user's email.
* @member {string} appleDistributionCertificateKey A key to a secret in
* customer-credential-store. distribution_certificate refers to the
* cusomer's certificate (that holds the private key) that will be used to
* sign the app.
* @member {boolean} allowAutoProvisioning When *true* enables auto
* provisioning
*/
constructor() {
}
/**
* Defines the metadata of AutoProvisioningConfigRequest
*
* @returns {object} metadata of AutoProvisioningConfigRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AutoProvisioningConfigRequest',
type: {
name: 'Composite',
className: 'AutoProvisioningConfigRequest',
modelProperties: {
appleDeveloperAccountKey: {
required: true,
serializedName: 'apple_developer_account_key',
type: {
name: 'String'
}
},
appleDistributionCertificateKey: {
required: true,
serializedName: 'apple_distribution_certificate_key',
type: {
name: 'String'
}
},
allowAutoProvisioning: {
required: true,
serializedName: 'allow_auto_provisioning',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = AutoProvisioningConfigRequest;

Просмотреть файл

@ -0,0 +1,95 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* A response from API containing information for a Auto Provisioning Config.
*
*/
class AutoProvisioningConfigResponse {
/**
* Create a AutoProvisioningConfigResponse.
* @member {number} [id] The identifier of the config.
* @member {string} [appId] The identifier of the App.
* @member {string} [destinationId] The identifier of the destination.
* @member {string} [appleDeveloperAccountKey] A key to a secret in
* customer-credential-store. apple_developer_account refers to the user's
* developer account that is used to log into https://developer.apple.com.
* Normally the user's email.
* @member {string} [appleDistributionCertificateKey] A key to a secret in
* customer-credential-store. distribution_certificate refers to the
* cusomer's certificate (that holds the private key) that will be used to
* sign the app.
* @member {boolean} [allowAutoProvisioning] When *true* enables auto
* provisioning
*/
constructor() {
}
/**
* Defines the metadata of AutoProvisioningConfigResponse
*
* @returns {object} metadata of AutoProvisioningConfigResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AutoProvisioningConfigResponse',
type: {
name: 'Composite',
className: 'AutoProvisioningConfigResponse',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'Number'
}
},
appId: {
required: false,
serializedName: 'app_id',
type: {
name: 'String'
}
},
destinationId: {
required: false,
serializedName: 'destination_id',
type: {
name: 'String'
}
},
appleDeveloperAccountKey: {
required: false,
serializedName: 'apple_developer_account_key',
type: {
name: 'String'
}
},
appleDistributionCertificateKey: {
required: false,
serializedName: 'apple_distribution_certificate_key',
type: {
name: 'String'
}
},
allowAutoProvisioning: {
required: false,
serializedName: 'allow_auto_provisioning',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = AutoProvisioningConfigResponse;

Просмотреть файл

@ -0,0 +1,66 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Apple credentials needed to log into the Apple Developer Portal and access
* provisioning profiles
*
*/
class AvailabilityOfDevicesRequest {
/**
* Create a AvailabilityOfDevicesRequest.
* @member {string} [username] The username for the Apple Developer account.
* @member {string} [password] The password for the Apple Developer account.
* @member {string} [serviceConnectionId] The service_connection_id of the
* stored Apple credentials instad of username, password.
*/
constructor() {
}
/**
* Defines the metadata of AvailabilityOfDevicesRequest
*
* @returns {object} metadata of AvailabilityOfDevicesRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AvailabilityOfDevicesRequest',
type: {
name: 'Composite',
className: 'AvailabilityOfDevicesRequest',
modelProperties: {
username: {
required: false,
serializedName: 'username',
type: {
name: 'String'
}
},
password: {
required: false,
serializedName: 'password',
type: {
name: 'String'
}
},
serviceConnectionId: {
required: false,
serializedName: 'service_connection_id',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AvailabilityOfDevicesRequest;

Просмотреть файл

@ -0,0 +1,91 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* The current device availability (registered, available and maxmimum) for
* iPhones, iPads, iPods and Watches from Apple Developer Portal
*
*/
class AvailabilityOfDevicesResponse {
/**
* Create a AvailabilityOfDevicesResponse.
* @member {object} iphones
* @member {number} [iphones.registered]
* @member {number} [iphones.available]
* @member {number} [iphones.maximum]
* @member {object} ipads
* @member {number} [ipads.registered]
* @member {number} [ipads.available]
* @member {number} [ipads.maximum]
* @member {object} ipods
* @member {number} [ipods.registered]
* @member {number} [ipods.available]
* @member {number} [ipods.maximum]
* @member {object} watches
* @member {number} [watches.registered]
* @member {number} [watches.available]
* @member {number} [watches.maximum]
*/
constructor() {
}
/**
* Defines the metadata of AvailabilityOfDevicesResponse
*
* @returns {object} metadata of AvailabilityOfDevicesResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AvailabilityOfDevicesResponse',
type: {
name: 'Composite',
className: 'AvailabilityOfDevicesResponse',
modelProperties: {
iphones: {
required: true,
serializedName: 'iphones',
type: {
name: 'Composite',
className: 'DeviceAvailability'
}
},
ipads: {
required: true,
serializedName: 'ipads',
type: {
name: 'Composite',
className: 'DeviceAvailability'
}
},
ipods: {
required: true,
serializedName: 'ipods',
type: {
name: 'Composite',
className: 'DeviceAvailability'
}
},
watches: {
required: true,
serializedName: 'watches',
type: {
name: 'Composite',
className: 'DeviceAvailability'
}
}
}
}
};
}
}
module.exports = AvailabilityOfDevicesResponse;

Просмотреть файл

@ -0,0 +1,63 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AvailableVersions.
*/
class AvailableVersions {
/**
* Create a AvailableVersions.
* @member {array} [versions] List of available versions.
* @member {number} [totalCount] The full number of versions across all
* pages.
*/
constructor() {
}
/**
* Defines the metadata of AvailableVersions
*
* @returns {object} metadata of AvailableVersions
*
*/
mapper() {
return {
required: false,
serializedName: 'AvailableVersions',
type: {
name: 'Composite',
className: 'AvailableVersions',
modelProperties: {
versions: {
required: false,
serializedName: 'versions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
totalCount: {
required: false,
serializedName: 'total_count',
type: {
name: 'Number'
}
}
}
}
};
}
}
module.exports = AvailableVersions;

Просмотреть файл

@ -0,0 +1,72 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AzureSubscriptionAddRequest.
*/
class AzureSubscriptionAddRequest {
/**
* Create a AzureSubscriptionAddRequest.
* @member {string} subscriptionId The azure subscription id
* @member {string} tenantId The tenant id of the azure subscription belongs
* to
* @member {string} subscriptionName The name of the azure subscription
* @member {boolean} [isBilling] If the subscription is used for billing
*/
constructor() {
}
/**
* Defines the metadata of AzureSubscriptionAddRequest
*
* @returns {object} metadata of AzureSubscriptionAddRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureSubscriptionAddRequest',
type: {
name: 'Composite',
className: 'AzureSubscriptionAddRequest',
modelProperties: {
subscriptionId: {
required: true,
serializedName: 'subscription_id',
type: {
name: 'String'
}
},
tenantId: {
required: true,
serializedName: 'tenant_id',
type: {
name: 'String'
}
},
subscriptionName: {
required: true,
serializedName: 'subscription_name',
type: {
name: 'String'
}
},
isBilling: {
required: false,
serializedName: 'is_billing',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = AzureSubscriptionAddRequest;

Просмотреть файл

@ -0,0 +1,47 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AzureSubscriptionPatchRequest.
*/
class AzureSubscriptionPatchRequest {
/**
* Create a AzureSubscriptionPatchRequest.
* @member {boolean} isBilling If the subscription is used for billing
*/
constructor() {
}
/**
* Defines the metadata of AzureSubscriptionPatchRequest
*
* @returns {object} metadata of AzureSubscriptionPatchRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureSubscriptionPatchRequest',
type: {
name: 'Composite',
className: 'AzureSubscriptionPatchRequest',
modelProperties: {
isBilling: {
required: true,
serializedName: 'is_billing',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = AzureSubscriptionPatchRequest;

Просмотреть файл

@ -0,0 +1,47 @@
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* Class representing a AzureSubscriptionUpdateBillableRequest.
*/
class AzureSubscriptionUpdateBillableRequest {
/**
* Create a AzureSubscriptionUpdateBillableRequest.
* @member {boolean} isBillable Billable status of the subscription
*/
constructor() {
}
/**
* Defines the metadata of AzureSubscriptionUpdateBillableRequest
*
* @returns {object} metadata of AzureSubscriptionUpdateBillableRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureSubscriptionUpdateBillableRequest',
type: {
name: 'Composite',
className: 'AzureSubscriptionUpdateBillableRequest',
modelProperties: {
isBillable: {
required: true,
serializedName: 'is_billable',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = AzureSubscriptionUpdateBillableRequest;

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше