Merge pull request #3 from Microsoft/ImageBugFixAndS2S

regenerated client with latest version of swagger spec
This commit is contained in:
Sharad Agarwal 2016-03-23 10:25:21 -07:00
Родитель b1a63f00ea fff4025ac2
Коммит 669c64f0e2
86 изменённых файлов: 179 добавлений и 38 удалений

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

13
models/index.d.ts поставляемый
Просмотреть файл

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
@ -690,7 +691,8 @@ export interface PostReportRequest {
* @constructor
* Request to post (create) session
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter',
* 'Beihai'
*
* @member {string} [accessToken] Gets or sets access or authentication token,
* user code, or verifier obtained from third-party provider.
@ -862,7 +864,8 @@ export interface PutTopicRequest {
* @constructor
* Request to post (create) user
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter',
* 'Beihai'
*
* @member {string} [accessToken] Gets or sets access or authentication token
* obtained from third-party provider.
@ -1037,7 +1040,8 @@ export interface FeedResponseUserProfileView {
* @constructor
* Request to post (create) linked account
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter',
* 'Beihai'
*
* @member {string} [accessToken] Gets or sets access or authentication token,
* user code, or verifier obtained from third-party provider.
@ -1063,7 +1067,8 @@ export interface PostLinkedAccountRequest {
* @constructor
* Linked account view
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter',
* 'Beihai'
*
* @member {string} accountId Gets or sets third party account id -- Unique
* user id provided by the third-party identity provider

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
/* jshint latedef:false */

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';
@ -11,7 +12,8 @@
* @constructor
* Linked account view
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter',
* 'Beihai'
*
* @member {string} accountId Gets or sets third party account id -- Unique
* user id provided by the third-party identity provider
@ -39,7 +41,7 @@ LinkedAccountView.prototype.mapper = function () {
serializedName: 'identityProvider',
type: {
name: 'Enum',
allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ]
allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ]
}
},
accountId: {

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';
@ -11,7 +12,8 @@
* @constructor
* Request to post (create) linked account
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter',
* 'Beihai'
*
* @member {string} [accessToken] Gets or sets access or authentication token,
* user code, or verifier obtained from third-party provider.
@ -47,7 +49,7 @@ PostLinkedAccountRequest.prototype.mapper = function () {
serializedName: 'identityProvider',
type: {
name: 'Enum',
allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ]
allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ]
}
},
accessToken: {

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';
@ -11,7 +12,8 @@
* @constructor
* Request to post (create) session
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter',
* 'Beihai'
*
* @member {string} [accessToken] Gets or sets access or authentication token,
* user code, or verifier obtained from third-party provider.
@ -53,7 +55,7 @@ PostSessionRequest.prototype.mapper = function () {
serializedName: 'identityProvider',
type: {
name: 'Enum',
allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ]
allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ]
}
},
accessToken: {

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';
@ -11,7 +12,8 @@
* @constructor
* Request to post (create) user
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter',
* 'Beihai'
*
* @member {string} [accessToken] Gets or sets access or authentication token
* obtained from third-party provider.
@ -58,7 +60,7 @@ PostUserRequest.prototype.mapper = function () {
serializedName: 'identityProvider',
type: {
name: 'Enum',
allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ]
allowedValues: [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ]
}
},
accessToken: {

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';
@ -119,7 +120,7 @@ Images.prototype.postImage = function (imageType, authorization, image, options,
}
}
}
httpRequest.headers['Content-Type'] = 'image';
httpRequest.headers['Content-Type'] = 'image/gif';
// Serialize Request
var requestContent = image;
httpRequest.body = requestContent;

33
operations/index.d.ts поставляемый
Просмотреть файл

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
import { ServiceClientOptions, RequestOptions, ServiceCallback } from 'ms-rest';
@ -1050,7 +1051,8 @@ export interface Sessions {
* @param {object} request Post session request
*
* @param {string} [request.identityProvider] Gets or sets identity provider
* type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* type. Possible values include: 'Facebook', 'Microsoft', 'Google',
* 'Twitter', 'Beihai'
*
* @param {string} [request.accessToken] Gets or sets access or authentication
* token, user code, or verifier obtained from third-party provider.
@ -1115,7 +1117,7 @@ export interface RequestTokens {
* @summary Get request token
*
* @param {string} identityProvider Identity provider type. Possible values
* include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* include: 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai'
*
* @param {object} [options] Optional Parameters.
*
@ -1841,12 +1843,30 @@ export interface MyApps {
export interface Users {
/**
* @summary Create a new user
* @summary Create a new user using the following flow:
* 1. Validate and parse the identity provider access token to
* construct an identity provider user
* 2. If identity provider user present in linked account
* table, read user profile for this specific application from user profile
* table
* 3. If user profile exists, return user conflict
* 4. Otherwise, it means that the user does not have a
* profile for this particular application. Create one.
* 5. Otherwise, the identity provider user is not present.
* Create the user, and its user profile.
* 6. Generate session token, and return
* The purpose of steps 2-4 is to ensure that if the user has
* already registered with us using the same identity provider
* but for a different SocialPlus application, we reuse his
* user-handle and just resume to create a new profile for this specific
* SocialPlus application. The end result is that we know it is
* the same user in both apps.
*
* @param {object} request Post user request
*
* @param {string} [request.identityProvider] Gets or sets identity provider
* type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* type. Possible values include: 'Facebook', 'Microsoft', 'Google',
* 'Twitter', 'Beihai'
*
* @param {string} [request.accessToken] Gets or sets access or authentication
* token obtained from third-party provider.
@ -2094,7 +2114,8 @@ export interface MyLinkedAccounts {
* @param {object} request Post linked account request
*
* @param {string} [request.identityProvider] Gets or sets identity provider
* type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* type. Possible values include: 'Facebook', 'Microsoft', 'Google',
* 'Twitter', 'Beihai'
*
* @param {string} [request.accessToken] Gets or sets access or authentication
* token, user code, or verifier obtained from third-party provider.
@ -2125,7 +2146,7 @@ export interface MyLinkedAccounts {
* @summary Delete linked account
*
* @param {string} identityProvider Identity provider type. Possible values
* include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* include: 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai'
*
* @param {string} authorization Authenication (must begin with string "Bearer
* ")

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
/* jshint latedef:false */

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';
@ -161,7 +162,8 @@ MyLinkedAccounts.prototype.getLinkedAccounts = function (authorization, options,
* @param {object} request Post linked account request
*
* @param {string} [request.identityProvider] Gets or sets identity provider
* type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* type. Possible values include: 'Facebook', 'Microsoft', 'Google',
* 'Twitter', 'Beihai'
*
* @param {string} [request.accessToken] Gets or sets access or authentication
* token, user code, or verifier obtained from third-party provider.
@ -316,7 +318,7 @@ MyLinkedAccounts.prototype.postLinkedAccount = function (request, authorization,
* @summary Delete linked account
*
* @param {string} identityProvider Identity provider type. Possible values
* include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* include: 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai'
*
* @param {string} authorization Authenication (must begin with string "Bearer
* ")
@ -350,7 +352,7 @@ MyLinkedAccounts.prototype.deleteLinkedAccount = function (identityProvider, aut
// Validate
try {
if (identityProvider) {
var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ];
var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ];
if (!allowedValues.some( function(item) { return item === identityProvider; })) {
throw new Error(identityProvider + ' is not a valid value. The valid values are: ' + allowedValues);
}

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';
@ -27,7 +28,7 @@ function RequestTokens(client) {
* @summary Get request token
*
* @param {string} identityProvider Identity provider type. Possible values
* include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* include: 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai'
*
* @param {object} [options] Optional Parameters.
*
@ -67,7 +68,7 @@ RequestTokens.prototype.getRequestToken = function (identityProvider, options, c
// Validate
try {
if (identityProvider) {
var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ];
var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter', 'Beihai' ];
if (!allowedValues.some( function(item) { return item === identityProvider; })) {
throw new Error(identityProvider + ' is not a valid value. The valid values are: ' + allowedValues);
}

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';
@ -29,7 +30,8 @@ function Sessions(client) {
* @param {object} request Post session request
*
* @param {string} [request.identityProvider] Gets or sets identity provider
* type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* type. Possible values include: 'Facebook', 'Microsoft', 'Google',
* 'Twitter', 'Beihai'
*
* @param {string} [request.accessToken] Gets or sets access or authentication
* token, user code, or verifier obtained from third-party provider.

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
'use strict';
@ -24,12 +25,30 @@ function Users(client) {
}
/**
* @summary Create a new user
* @summary Create a new user using the following flow:
* 1. Validate and parse the identity provider access token to
* construct an identity provider user
* 2. If identity provider user present in linked account
* table, read user profile for this specific application from user profile
* table
* 3. If user profile exists, return user conflict
* 4. Otherwise, it means that the user does not have a
* profile for this particular application. Create one.
* 5. Otherwise, the identity provider user is not present.
* Create the user, and its user profile.
* 6. Generate session token, and return
* The purpose of steps 2-4 is to ensure that if the user has
* already registered with us using the same identity provider
* but for a different SocialPlus application, we reuse his
* user-handle and just resume to create a new profile for this specific
* SocialPlus application. The end result is that we know it is
* the same user in both apps.
*
* @param {object} request Post user request
*
* @param {string} [request.identityProvider] Gets or sets identity provider
* type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* type. Possible values include: 'Facebook', 'Microsoft', 'Google',
* 'Twitter', 'Beihai'
*
* @param {string} [request.accessToken] Gets or sets access or authentication
* token obtained from third-party provider.

1
socialPlusClient.d.ts поставляемый
Просмотреть файл

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
import { ServiceClientOptions, RequestOptions, ServiceCallback } from 'ms-rest';

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

@ -1,6 +1,7 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* the MIT License. See LICENSE in the project root for license information.
* This file was generated using AutoRest.
*/
/* jshint latedef:false */

1
swagger-original.json Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

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

@ -14,7 +14,7 @@
"url": "http://research.microsoft.com"
},
"x-ms-code-generation-settings": {
"header": "Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information."
"header": "Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. This file was generated using AutoRest."
}
},
"host": "localhost:1324",
@ -531,7 +531,9 @@
"description": "<para>Images will be resized. To access a resized image, append the 1 character size identifier to the blobHandle that is returned.</para>\r\n<para>d = 25 pixels wide</para>\r\n<para>h = 50 pixels wide</para>\r\n<para>l = 100 pixels wide</para>\r\n<para>p = 250 pixels wide</para>\r\n<para>t = 500 pixels wide</para>\r\n<para>x = 1000 pixels wide</para>\r\n<para>ImageType.UserPhoto supports d,h,l,p,t,x</para>\r\n<para>ImageType.ContentBlob supports d,h,l,p,t,x</para>\r\n<para>ImageType.AppIcon supports l</para>\r\n<para>All resized images will maintain their aspect ratio. Any orientation specified in the EXIF headers will be honored.</para>",
"operationId": "Images_PostImage",
"consumes": [
"image"
"image/gif",
"image/jpeg",
"image/png"
],
"produces": [
"application/json",
@ -602,7 +604,9 @@
"operationId": "Images_GetImage",
"consumes": [],
"produces": [
"image"
"image/gif",
"image/jpeg",
"image/png"
],
"parameters": [
{
@ -2479,7 +2483,8 @@
"Facebook",
"Microsoft",
"Google",
"Twitter"
"Twitter",
"Beihai"
],
"x-ms-enum": {
"name": "identityProvider"
@ -4189,7 +4194,7 @@
"tags": [
"Users"
],
"summary": "Create a new user",
"summary": "Create a new user using the following flow:\r\n 1. Validate and parse the identity provider access token to construct an identity provider user\r\n 2. If identity provider user present in linked account table, read user profile for this specific application from user profile table\r\n 3. If user profile exists, return user conflict\r\n 4. Otherwise, it means that the user does not have a profile for this particular application. Create one.\r\n 5. Otherwise, the identity provider user is not present. Create the user, and its user profile.\r\n 6. Generate session token, and return\r\n The purpose of steps 2-4 is to ensure that if the user has already registered with us using the same identity provider\r\n but for a different SocialPlus application, we reuse his user-handle and just resume to create a new profile for this specific \r\n SocialPlus application. The end result is that we know it is the same user in both apps.",
"operationId": "Users_PostUser",
"consumes": [
"application/json",
@ -4824,7 +4829,8 @@
"Facebook",
"Microsoft",
"Google",
"Twitter"
"Twitter",
"Beihai"
],
"x-ms-enum": {
"name": "identityProvider"
@ -5865,7 +5871,8 @@
"Facebook",
"Microsoft",
"Google",
"Twitter"
"Twitter",
"Beihai"
],
"type": "string",
"x-ms-enum": {
@ -6076,7 +6083,8 @@
"Facebook",
"Microsoft",
"Google",
"Twitter"
"Twitter",
"Beihai"
],
"type": "string",
"x-ms-enum": {
@ -6330,7 +6338,8 @@
"Facebook",
"Microsoft",
"Google",
"Twitter"
"Twitter",
"Beihai"
],
"type": "string",
"x-ms-enum": {
@ -6361,7 +6370,8 @@
"Facebook",
"Microsoft",
"Google",
"Twitter"
"Twitter",
"Beihai"
],
"type": "string",
"x-ms-enum": {

Различия файлов скрыты, потому что одна или несколько строк слишком длинны