azure-arm-powerbiembedded
Advanced tools
Comparing version 1.0.0-preview to 1.1.0-preview
@@ -14,7 +14,8 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the AzureSku class. | ||
* @constructor | ||
* Class representing a AzureSku. | ||
*/ | ||
class AzureSku { | ||
/** | ||
* Create a AzureSku. | ||
*/ | ||
constructor() { | ||
@@ -21,0 +22,0 @@ } |
@@ -14,12 +14,11 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the CheckNameRequest class. | ||
* @constructor | ||
* @member {string} [name] Workspace collection name | ||
* | ||
* @member {string} [type] Resource type. Default value: | ||
* 'Microsoft.PowerBI/workspaceCollections' . | ||
* | ||
* Class representing a CheckNameRequest. | ||
*/ | ||
class CheckNameRequest { | ||
/** | ||
* Create a CheckNameRequest. | ||
* @member {string} [name] Workspace collection name | ||
* @member {string} [type] Resource type. Default value: | ||
* 'Microsoft.PowerBI/workspaceCollections' . | ||
*/ | ||
constructor() { | ||
@@ -26,0 +25,0 @@ } |
@@ -14,17 +14,15 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the CheckNameResponse class. | ||
* @constructor | ||
* @member {boolean} [nameAvailable] Specifies a Boolean value that indicates | ||
* whether the specified Power BI Workspace Collection name is available to | ||
* use. | ||
* | ||
* @member {string} [reason] Reason why the workspace collection name cannot be | ||
* used. Possible values include: 'Unavailable', 'Invalid' | ||
* | ||
* @member {string} [message] Message indicating an unavailable name due to a | ||
* conflict, or a description of the naming rules that are violated. | ||
* | ||
* Class representing a CheckNameResponse. | ||
*/ | ||
class CheckNameResponse { | ||
/** | ||
* Create a CheckNameResponse. | ||
* @member {boolean} [nameAvailable] Specifies a Boolean value that indicates | ||
* whether the specified Power BI Workspace Collection name is available to | ||
* use. | ||
* @member {string} [reason] Reason why the workspace collection name cannot | ||
* be used. Possible values include: 'Unavailable', 'Invalid' | ||
* @member {string} [message] Message indicating an unavailable name due to a | ||
* conflict, or a description of the naming rules that are violated. | ||
*/ | ||
constructor() { | ||
@@ -31,0 +29,0 @@ } |
@@ -16,11 +16,10 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the CreateWorkspaceCollectionRequest class. | ||
* @constructor | ||
* @member {string} [location] Azure location | ||
* | ||
* @member {object} [tags] | ||
* | ||
* Class representing a CreateWorkspaceCollectionRequest. | ||
*/ | ||
class CreateWorkspaceCollectionRequest { | ||
/** | ||
* Create a CreateWorkspaceCollectionRequest. | ||
* @member {string} [location] Azure location | ||
* @member {object} [tags] | ||
*/ | ||
constructor() { | ||
@@ -27,0 +26,0 @@ } |
@@ -14,30 +14,26 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the Display class. | ||
* @constructor | ||
* @member {string} [provider] The localized friendly form of the resource | ||
* provider name. This form is also expected to include the publisher/company | ||
* responsible. Use Title Casing. Begin with “Microsoft” for 1st party | ||
* services. | ||
* | ||
* @member {string} [resource] The localized friendly form of the resource type | ||
* related to this action/operation. This form should match the public | ||
* documentation for the resource provider. Use Title Casing. For examples, | ||
* refer to the “name” section. | ||
* | ||
* @member {string} [operation] The localized friendly name for the operation | ||
* as shown to the user. This name should be concise (to fit in drop downs), | ||
* but clear (self-documenting). Use Title Casing and include the | ||
* entity/resource to which it applies. | ||
* | ||
* @member {string} [description] The localized friendly description for the | ||
* operation as shown to the user. This description should be thorough, yet | ||
* concise. It will be used in tool-tips and detailed views. | ||
* | ||
* @member {string} [origin] The intended executor of the operation; governs | ||
* the display of the operation in the RBAC UX and the audit logs UX. Default | ||
* value is 'user,system' | ||
* | ||
* Class representing a Display. | ||
*/ | ||
class Display { | ||
/** | ||
* Create a Display. | ||
* @member {string} [provider] The localized friendly form of the resource | ||
* provider name. This form is also expected to include the publisher/company | ||
* responsible. Use Title Casing. Begin with “Microsoft” for 1st party | ||
* services. | ||
* @member {string} [resource] The localized friendly form of the resource | ||
* type related to this action/operation. This form should match the public | ||
* documentation for the resource provider. Use Title Casing. For examples, | ||
* refer to the “name” section. | ||
* @member {string} [operation] The localized friendly name for the operation | ||
* as shown to the user. This name should be concise (to fit in drop downs), | ||
* but clear (self-documenting). Use Title Casing and include the | ||
* entity/resource to which it applies. | ||
* @member {string} [description] The localized friendly description for the | ||
* operation as shown to the user. This description should be thorough, yet | ||
* concise. It will be used in tool-tips and detailed views. | ||
* @member {string} [origin] The intended executor of the operation; governs | ||
* the display of the operation in the RBAC UX and the audit logs UX. Default | ||
* value is 'user,system' | ||
*/ | ||
constructor() { | ||
@@ -44,0 +40,0 @@ } |
@@ -14,13 +14,11 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the ErrorDetail class. | ||
* @constructor | ||
* @member {string} [code] | ||
* | ||
* @member {string} [message] | ||
* | ||
* @member {string} [target] | ||
* | ||
* Class representing a ErrorDetail. | ||
*/ | ||
class ErrorDetail { | ||
/** | ||
* Create a ErrorDetail. | ||
* @member {string} [code] | ||
* @member {string} [message] | ||
* @member {string} [target] | ||
*/ | ||
constructor() { | ||
@@ -27,0 +25,0 @@ } |
@@ -16,15 +16,12 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the ErrorModel class. | ||
* @constructor | ||
* @member {string} [code] | ||
* | ||
* @member {string} [message] | ||
* | ||
* @member {string} [target] | ||
* | ||
* @member {array} [details] | ||
* | ||
* Class representing a ErrorModel. | ||
*/ | ||
class ErrorModel { | ||
/** | ||
* Create a ErrorModel. | ||
* @member {string} [code] | ||
* @member {string} [message] | ||
* @member {string} [target] | ||
* @member {array} [details] | ||
*/ | ||
constructor() { | ||
@@ -31,0 +28,0 @@ } |
@@ -13,2 +13,3 @@ /* | ||
import { CloudError } from 'ms-rest-azure'; | ||
import * as moment from 'moment'; | ||
@@ -24,7 +25,4 @@ export { BaseResource } from 'ms-rest-azure'; | ||
* @member {string} [code] | ||
* | ||
* @member {string} [message] | ||
* | ||
* @member {string} [target] | ||
* | ||
*/ | ||
@@ -42,9 +40,5 @@ export interface ErrorDetail { | ||
* @member {string} [code] | ||
* | ||
* @member {string} [message] | ||
* | ||
* @member {string} [target] | ||
* | ||
* @member {array} [details] | ||
* | ||
*/ | ||
@@ -71,13 +65,7 @@ export interface ErrorModel { | ||
* @member {string} [id] Resource id | ||
* | ||
* @member {string} [name] Workspace collection name | ||
* | ||
* @member {string} [type] Resource type | ||
* | ||
* @member {string} [location] Azure location | ||
* | ||
* @member {object} [tags] | ||
* | ||
* @member {object} [properties] Properties | ||
* | ||
*/ | ||
@@ -95,23 +83,8 @@ export interface WorkspaceCollection { | ||
* @class | ||
* Initializes a new instance of the WorkspaceCollectionList class. | ||
* @constructor | ||
* @member {array} [value] | ||
* | ||
*/ | ||
export interface WorkspaceCollectionList { | ||
value?: WorkspaceCollection[]; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the Workspace class. | ||
* @constructor | ||
* @member {string} [id] Workspace id | ||
* | ||
* @member {string} [name] Workspace name | ||
* | ||
* @member {string} [type] Resource type | ||
* | ||
* @member {object} [properties] Property bag | ||
* | ||
*/ | ||
@@ -127,13 +100,2 @@ export interface Workspace { | ||
* @class | ||
* Initializes a new instance of the WorkspaceList class. | ||
* @constructor | ||
* @member {array} [value] | ||
* | ||
*/ | ||
export interface WorkspaceList { | ||
value?: Workspace[]; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the Display class. | ||
@@ -145,3 +107,2 @@ * @constructor | ||
* services. | ||
* | ||
* @member {string} [resource] The localized friendly form of the resource type | ||
@@ -151,3 +112,2 @@ * related to this action/operation. This form should match the public | ||
* refer to the “name” section. | ||
* | ||
* @member {string} [operation] The localized friendly name for the operation | ||
@@ -157,11 +117,8 @@ * as shown to the user. This name should be concise (to fit in drop downs), | ||
* entity/resource to which it applies. | ||
* | ||
* @member {string} [description] The localized friendly description for the | ||
* operation as shown to the user. This description should be thorough, yet | ||
* concise. It will be used in tool-tips and detailed views. | ||
* | ||
* @member {string} [origin] The intended executor of the operation; governs | ||
* the display of the operation in the RBAC UX and the audit logs UX. Default | ||
* value is 'user,system' | ||
* | ||
*/ | ||
@@ -183,5 +140,3 @@ export interface Display { | ||
* RBAC / the event service. | ||
* | ||
* @member {object} [display] | ||
* | ||
* @member {string} [display.provider] The localized friendly form of the | ||
@@ -191,3 +146,2 @@ * resource provider name. This form is also expected to include the | ||
* 1st party services. | ||
* | ||
* @member {string} [display.resource] The localized friendly form of the | ||
@@ -197,3 +151,2 @@ * resource type related to this action/operation. This form should match the | ||
* examples, refer to the “name” section. | ||
* | ||
* @member {string} [display.operation] The localized friendly name for the | ||
@@ -203,11 +156,8 @@ * operation as shown to the user. This name should be concise (to fit in drop | ||
* entity/resource to which it applies. | ||
* | ||
* @member {string} [display.description] The localized friendly description | ||
* for the operation as shown to the user. This description should be thorough, | ||
* yet concise. It will be used in tool-tips and detailed views. | ||
* | ||
* @member {string} [display.origin] The intended executor of the operation; | ||
* governs the display of the operation in the RBAC UX and the audit logs UX. | ||
* Default value is 'user,system' | ||
* | ||
*/ | ||
@@ -224,3 +174,2 @@ export interface Operation { | ||
* @member {array} [value] | ||
* | ||
*/ | ||
@@ -236,5 +185,3 @@ export interface OperationList { | ||
* @member {string} [key1] Access key 1 | ||
* | ||
* @member {string} [key2] Access key 2 | ||
* | ||
*/ | ||
@@ -251,3 +198,2 @@ export interface WorkspaceCollectionAccessKeys { | ||
* @member {string} [keyName] Key name. Possible values include: 'key1', 'key2' | ||
* | ||
*/ | ||
@@ -263,5 +209,3 @@ export interface WorkspaceCollectionAccessKey { | ||
* @member {string} [location] Azure location | ||
* | ||
* @member {object} [tags] | ||
* | ||
*/ | ||
@@ -278,3 +222,2 @@ export interface CreateWorkspaceCollectionRequest { | ||
* @member {object} [tags] | ||
* | ||
*/ | ||
@@ -290,6 +233,4 @@ export interface UpdateWorkspaceCollectionRequest { | ||
* @member {string} [name] Workspace collection name | ||
* | ||
* @member {string} [type] Resource type. Default value: | ||
* 'Microsoft.PowerBI/workspaceCollections' . | ||
* | ||
*/ | ||
@@ -308,9 +249,6 @@ export interface CheckNameRequest { | ||
* use. | ||
* | ||
* @member {string} [reason] Reason why the workspace collection name cannot be | ||
* used. Possible values include: 'Unavailable', 'Invalid' | ||
* | ||
* @member {string} [message] Message indicating an unavailable name due to a | ||
* conflict, or a description of the naming rules that are violated. | ||
* | ||
*/ | ||
@@ -329,5 +267,3 @@ export interface CheckNameResponse { | ||
* BI workspace collections will be migrated to. | ||
* | ||
* @member {array} [resources] | ||
* | ||
*/ | ||
@@ -339,27 +275,5 @@ export interface MigrateWorkspaceCollectionRequest { | ||
/** | ||
* @class | ||
* Initializes a new instance of the WorkspaceCollectionList class. | ||
* @constructor | ||
* @member {array} [value] | ||
* | ||
*/ | ||
export interface WorkspaceCollectionList { | ||
value?: WorkspaceCollection[]; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the WorkspaceList class. | ||
* @constructor | ||
* @member {array} [value] | ||
* | ||
*/ | ||
export interface WorkspaceList { | ||
value?: Workspace[]; | ||
} | ||
/** | ||
* @class | ||
* Initializes a new instance of the WorkspaceCollectionList class. | ||
@@ -366,0 +280,0 @@ * @constructor |
@@ -25,5 +25,3 @@ /* | ||
exports.WorkspaceCollection = require('./workspaceCollection'); | ||
exports.WorkspaceCollectionList = require('./workspaceCollectionList'); | ||
exports.Workspace = require('./workspace'); | ||
exports.WorkspaceList = require('./workspaceList'); | ||
exports.Display = require('./display'); | ||
@@ -30,0 +28,0 @@ exports.Operation = require('./operation'); |
@@ -14,12 +14,11 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the MigrateWorkspaceCollectionRequest class. | ||
* @constructor | ||
* @member {string} [targetResourceGroup] Name of the resource group the Power | ||
* BI workspace collections will be migrated to. | ||
* | ||
* @member {array} [resources] | ||
* | ||
* Class representing a MigrateWorkspaceCollectionRequest. | ||
*/ | ||
class MigrateWorkspaceCollectionRequest { | ||
/** | ||
* Create a MigrateWorkspaceCollectionRequest. | ||
* @member {string} [targetResourceGroup] Name of the resource group the | ||
* Power BI workspace collections will be migrated to. | ||
* @member {array} [resources] | ||
*/ | ||
constructor() { | ||
@@ -26,0 +25,0 @@ } |
@@ -16,36 +16,30 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the Operation class. | ||
* @constructor | ||
* @member {string} [name] The name of the operation being performed on this | ||
* particular object. This name should match the action name that appears in | ||
* RBAC / the event service. | ||
* | ||
* @member {object} [display] | ||
* | ||
* @member {string} [display.provider] The localized friendly form of the | ||
* resource provider name. This form is also expected to include the | ||
* publisher/company responsible. Use Title Casing. Begin with “Microsoft” for | ||
* 1st party services. | ||
* | ||
* @member {string} [display.resource] The localized friendly form of the | ||
* resource type related to this action/operation. This form should match the | ||
* public documentation for the resource provider. Use Title Casing. For | ||
* examples, refer to the “name” section. | ||
* | ||
* @member {string} [display.operation] The localized friendly name for the | ||
* operation as shown to the user. This name should be concise (to fit in drop | ||
* downs), but clear (self-documenting). Use Title Casing and include the | ||
* entity/resource to which it applies. | ||
* | ||
* @member {string} [display.description] The localized friendly description | ||
* for the operation as shown to the user. This description should be thorough, | ||
* yet concise. It will be used in tool-tips and detailed views. | ||
* | ||
* @member {string} [display.origin] The intended executor of the operation; | ||
* governs the display of the operation in the RBAC UX and the audit logs UX. | ||
* Default value is 'user,system' | ||
* | ||
* Class representing a Operation. | ||
*/ | ||
class Operation { | ||
/** | ||
* Create a Operation. | ||
* @member {string} [name] The name of the operation being performed on this | ||
* particular object. This name should match the action name that appears in | ||
* RBAC / the event service. | ||
* @member {object} [display] | ||
* @member {string} [display.provider] The localized friendly form of the | ||
* resource provider name. This form is also expected to include the | ||
* publisher/company responsible. Use Title Casing. Begin with “Microsoft” | ||
* for 1st party services. | ||
* @member {string} [display.resource] The localized friendly form of the | ||
* resource type related to this action/operation. This form should match the | ||
* public documentation for the resource provider. Use Title Casing. For | ||
* examples, refer to the “name” section. | ||
* @member {string} [display.operation] The localized friendly name for the | ||
* operation as shown to the user. This name should be concise (to fit in | ||
* drop downs), but clear (self-documenting). Use Title Casing and include | ||
* the entity/resource to which it applies. | ||
* @member {string} [display.description] The localized friendly description | ||
* for the operation as shown to the user. This description should be | ||
* thorough, yet concise. It will be used in tool-tips and detailed views. | ||
* @member {string} [display.origin] The intended executor of the operation; | ||
* governs the display of the operation in the RBAC UX and the audit logs UX. | ||
* Default value is 'user,system' | ||
*/ | ||
constructor() { | ||
@@ -52,0 +46,0 @@ } |
@@ -16,9 +16,9 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the OperationList class. | ||
* @constructor | ||
* @member {array} [value] | ||
* | ||
* Class representing a OperationList. | ||
*/ | ||
class OperationList { | ||
/** | ||
* Create a OperationList. | ||
* @member {array} [value] | ||
*/ | ||
constructor() { | ||
@@ -25,0 +25,0 @@ } |
@@ -16,9 +16,9 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the UpdateWorkspaceCollectionRequest class. | ||
* @constructor | ||
* @member {object} [tags] | ||
* | ||
* Class representing a UpdateWorkspaceCollectionRequest. | ||
*/ | ||
class UpdateWorkspaceCollectionRequest { | ||
/** | ||
* Create a UpdateWorkspaceCollectionRequest. | ||
* @member {object} [tags] | ||
*/ | ||
constructor() { | ||
@@ -25,0 +25,0 @@ } |
@@ -14,15 +14,12 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the Workspace class. | ||
* @constructor | ||
* @member {string} [id] Workspace id | ||
* | ||
* @member {string} [name] Workspace name | ||
* | ||
* @member {string} [type] Resource type | ||
* | ||
* @member {object} [properties] Property bag | ||
* | ||
* Class representing a Workspace. | ||
*/ | ||
class Workspace { | ||
/** | ||
* Create a Workspace. | ||
* @member {string} [id] Workspace id | ||
* @member {string} [name] Workspace name | ||
* @member {string} [type] Resource type | ||
* @member {object} [properties] Property bag | ||
*/ | ||
constructor() { | ||
@@ -29,0 +26,0 @@ } |
@@ -16,19 +16,14 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the WorkspaceCollection class. | ||
* @constructor | ||
* @member {string} [id] Resource id | ||
* | ||
* @member {string} [name] Workspace collection name | ||
* | ||
* @member {string} [type] Resource type | ||
* | ||
* @member {string} [location] Azure location | ||
* | ||
* @member {object} [tags] | ||
* | ||
* @member {object} [properties] Properties | ||
* | ||
* Class representing a WorkspaceCollection. | ||
*/ | ||
class WorkspaceCollection { | ||
/** | ||
* Create a WorkspaceCollection. | ||
* @member {string} [id] Resource id | ||
* @member {string} [name] Workspace collection name | ||
* @member {string} [type] Resource type | ||
* @member {string} [location] Azure location | ||
* @member {object} [tags] | ||
* @member {object} [properties] Properties | ||
*/ | ||
constructor() { | ||
@@ -35,0 +30,0 @@ } |
@@ -14,9 +14,10 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the WorkspaceCollectionAccessKey class. | ||
* @constructor | ||
* @member {string} [keyName] Key name. Possible values include: 'key1', 'key2' | ||
* | ||
* Class representing a WorkspaceCollectionAccessKey. | ||
*/ | ||
class WorkspaceCollectionAccessKey { | ||
/** | ||
* Create a WorkspaceCollectionAccessKey. | ||
* @member {string} [keyName] Key name. Possible values include: 'key1', | ||
* 'key2' | ||
*/ | ||
constructor() { | ||
@@ -23,0 +24,0 @@ } |
@@ -14,11 +14,10 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the WorkspaceCollectionAccessKeys class. | ||
* @constructor | ||
* @member {string} [key1] Access key 1 | ||
* | ||
* @member {string} [key2] Access key 2 | ||
* | ||
* Class representing a WorkspaceCollectionAccessKeys. | ||
*/ | ||
class WorkspaceCollectionAccessKeys { | ||
/** | ||
* Create a WorkspaceCollectionAccessKeys. | ||
* @member {string} [key1] Access key 1 | ||
* @member {string} [key2] Access key 2 | ||
*/ | ||
constructor() { | ||
@@ -25,0 +24,0 @@ } |
@@ -14,7 +14,8 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the WorkspaceCollectionList class. | ||
* @constructor | ||
* Class representing a WorkspaceCollectionList. | ||
*/ | ||
class WorkspaceCollectionList extends Array { | ||
/** | ||
* Create a WorkspaceCollectionList. | ||
*/ | ||
constructor() { | ||
@@ -21,0 +22,0 @@ super(); |
@@ -14,7 +14,8 @@ /* | ||
/** | ||
* @class | ||
* Initializes a new instance of the WorkspaceList class. | ||
* @constructor | ||
* Class representing a WorkspaceList. | ||
*/ | ||
class WorkspaceList extends Array { | ||
/** | ||
* Create a WorkspaceList. | ||
*/ | ||
constructor() { | ||
@@ -21,0 +22,0 @@ super(); |
@@ -90,5 +90,6 @@ /* | ||
httpRequest.method = 'GET'; | ||
httpRequest.url = requestUrl; | ||
httpRequest.headers = {}; | ||
httpRequest.url = requestUrl; | ||
// Set Headers | ||
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; | ||
if (this.client.generateClientRequestId) { | ||
@@ -107,3 +108,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); | ||
} | ||
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; | ||
httpRequest.body = null; | ||
@@ -167,13 +167,8 @@ // Send Request | ||
/** | ||
* @class | ||
* Workspaces | ||
* __NOTE__: An instance of this class is automatically created for an | ||
* instance of the PowerBIEmbeddedManagementClient. | ||
* Initializes a new instance of the Workspaces class. | ||
* @constructor | ||
* | ||
* @param {PowerBIEmbeddedManagementClient} client Reference to the service client. | ||
*/ | ||
/** Class representing a Workspaces. */ | ||
class Workspaces { | ||
/** | ||
* Create a Workspaces. | ||
* @param {PowerBIEmbeddedManagementClient} client Reference to the service client. | ||
*/ | ||
constructor(client) { | ||
@@ -180,0 +175,0 @@ this.client = client; |
@@ -11,7 +11,8 @@ /* | ||
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; | ||
import { ServiceClient, ServiceClientOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; | ||
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; | ||
import * as models from "./models"; | ||
import * as operations from "./operations"; | ||
declare class PowerBIEmbeddedManagementClient { | ||
declare class PowerBIEmbeddedManagementClient extends AzureServiceClient { | ||
/** | ||
@@ -37,4 +38,2 @@ * Initializes a new instance of the PowerBIEmbeddedManagementClient class. | ||
* | ||
* @param {string} [options.apiVersion] - Client Api Version. | ||
* | ||
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. | ||
@@ -47,3 +46,3 @@ * | ||
*/ | ||
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions); | ||
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); | ||
@@ -50,0 +49,0 @@ credentials: ServiceClientCredentials; |
@@ -82,5 +82,6 @@ /* | ||
httpRequest.method = 'GET'; | ||
httpRequest.url = requestUrl; | ||
httpRequest.headers = {}; | ||
httpRequest.url = requestUrl; | ||
// Set Headers | ||
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; | ||
if (this.generateClientRequestId) { | ||
@@ -99,3 +100,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); | ||
} | ||
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; | ||
httpRequest.body = null; | ||
@@ -159,32 +159,18 @@ // Send Request | ||
/** | ||
* @class | ||
* Initializes a new instance of the PowerBIEmbeddedManagementClient class. | ||
* @constructor | ||
* | ||
* @param {credentials} credentials - Credentials needed for the client to connect to Azure. | ||
* | ||
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. | ||
* | ||
* @param {string} [baseUri] - The base URI of the service. | ||
* | ||
* @param {object} [options] - The parameter options | ||
* | ||
* @param {Array} [options.filters] - Filters to be added to the request pipeline | ||
* | ||
* @param {object} [options.requestOptions] - Options for the underlying request object | ||
* {@link https://github.com/request/request#requestoptions-callback Options doc} | ||
* | ||
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy | ||
* | ||
* @param {string} [options.apiVersion] - Client Api Version. | ||
* | ||
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. | ||
* | ||
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. | ||
* | ||
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. | ||
* | ||
*/ | ||
/** Class representing a PowerBIEmbeddedManagementClient. */ | ||
class PowerBIEmbeddedManagementClient extends ServiceClient { | ||
/** | ||
* Create a PowerBIEmbeddedManagementClient. | ||
* @param {credentials} credentials - Credentials needed for the client to connect to Azure. | ||
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. | ||
* @param {string} [baseUri] - The base URI of the service. | ||
* @param {object} [options] - The parameter options | ||
* @param {Array} [options.filters] - Filters to be added to the request pipeline | ||
* @param {object} [options.requestOptions] - Options for the underlying request object | ||
* {@link https://github.com/request/request#requestoptions-callback Options doc} | ||
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy | ||
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. | ||
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. | ||
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. | ||
*/ | ||
constructor(credentials, subscriptionId, baseUri, options) { | ||
@@ -215,5 +201,2 @@ if (credentials === null || credentials === undefined) { | ||
this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`); | ||
if(options.apiVersion !== null && options.apiVersion !== undefined) { | ||
this.apiVersion = options.apiVersion; | ||
} | ||
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { | ||
@@ -220,0 +203,0 @@ this.acceptLanguage = options.acceptLanguage; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "1.0.0-preview", | ||
"version": "1.1.0-preview", | ||
"description": "Microsoft Azure Power BI Embedded Client Library for node", | ||
@@ -22,4 +22,4 @@ "tags": [ | ||
"dependencies": { | ||
"ms-rest": "^2.0.0", | ||
"ms-rest-azure": "^2.0.0" | ||
"ms-rest": "^2.2.2", | ||
"ms-rest-azure": "^2.3.3" | ||
}, | ||
@@ -26,0 +26,0 @@ "homepage": "http://github.com/Azure/azure-sdk-for-node", |
Sorry, the diff of this file is too big to display
216960
5424
Updatedms-rest@^2.2.2
Updatedms-rest-azure@^2.3.3