Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2581 from Azure/daschult/analysisservices
Browse files Browse the repository at this point in the history
Update analysisservices minor version and regenerate
  • Loading branch information
Dan Schulte authored Mar 28, 2018
2 parents 84ae7b1 + 2b9abc1 commit f7703f7
Show file tree
Hide file tree
Showing 14 changed files with 1,315 additions and 94 deletions.
4 changes: 4 additions & 0 deletions codegen_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"analysisservices": {
"resource-manager": {
"packageName": "azure-arm-analysisservices",
"packageVersion": "2.2.0-preview",
"generateLicenseTxt": true,
"generatePackageJson": true,
"generateReadmeMd": false,
"dir": "analysisServices",
"source": "analysisservices/resource-manager/readme.md"
}
Expand Down
4 changes: 2 additions & 2 deletions lib/services/analysisServices/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Microsoft
Copyright (c) 2018 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

declare class AnalysisServicesManagementClient extends AzureServiceClient {
export default class AnalysisServicesManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the AnalysisServicesManagementClient class.
* @constructor
Expand Down Expand Up @@ -59,4 +60,4 @@ declare class AnalysisServicesManagementClient extends AzureServiceClient {
operations: operations.Operations;
}

export = AnalysisServicesManagementClient;
export { AnalysisServicesManagementClient, models as AnalysisServicesManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AnalysisServicesManagementClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2017-08-01-beta';
this.apiVersion = '2017-08-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand Down Expand Up @@ -81,3 +81,6 @@ class AnalysisServicesManagementClient extends ServiceClient {
}

module.exports = AnalysisServicesManagementClient;
module.exports['default'] = AnalysisServicesManagementClient;
module.exports.AnalysisServicesManagementClient = AnalysisServicesManagementClient;
module.exports.AnalysisServicesManagementModels = models;
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class AnalysisServicesServer extends models['Resource'] {
* administrators
* @member {array} [asAdministrators.members] An array of administrator user
* identities.
* @member {string} [backupBlobContainerUri] The container URI of backup
* blob.
* @member {string} [backupBlobContainerUri] The SAS container URI to the
* backup container.
* @member {object} [gatewayDetails] The gateway details configured for the
* AS server.
* @member {string} [gatewayDetails.gatewayResourceId] Gateway resource to be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class AnalysisServicesServerUpdateParameters {
* administrators
* @member {array} [asAdministrators.members] An array of administrator user
* identities.
* @member {string} [backupBlobContainerUri] The container URI of backup
* blob.
* @member {string} [backupBlobContainerUri] The SAS container URI to the
* backup container.
* @member {object} [gatewayDetails] The gateway details configured for the
* AS server.
* @member {string} [gatewayDetails.gatewayResourceId] Gateway resource to be
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Details of server name request body.
*
*/
class CheckServerNameAvailabilityParameters {
/**
* Create a CheckServerNameAvailabilityParameters.
* @member {string} [name] Name for checking availability.
* @member {string} [type] The resource type of azure analysis services.
* Default value: 'Microsoft.AnalysisServices/servers' .
*/
constructor() {
}

/**
* Defines the metadata of CheckServerNameAvailabilityParameters
*
* @returns {object} metadata of CheckServerNameAvailabilityParameters
*
*/
mapper() {
return {
required: false,
serializedName: 'CheckServerNameAvailabilityParameters',
type: {
name: 'Composite',
className: 'CheckServerNameAvailabilityParameters',
modelProperties: {
name: {
required: false,
serializedName: 'name',
constraints: {
MaxLength: 63,
MinLength: 3,
Pattern: '^[a-z][a-z0-9]*$'
},
type: {
name: 'String'
}
},
type: {
required: false,
serializedName: 'type',
defaultValue: 'Microsoft.AnalysisServices/servers',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CheckServerNameAvailabilityParameters;
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* 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 checking result of server name availibility.
*
*/
class CheckServerNameAvailabilityResult {
/**
* Create a CheckServerNameAvailabilityResult.
* @member {boolean} [nameAvailable] Indicator of available of the server
* name.
* @member {string} [reason] The reason of unavailability.
* @member {string} [message] The detailed message of the request
* unavailability.
*/
constructor() {
}

/**
* Defines the metadata of CheckServerNameAvailabilityResult
*
* @returns {object} metadata of CheckServerNameAvailabilityResult
*
*/
mapper() {
return {
required: false,
serializedName: 'CheckServerNameAvailabilityResult',
type: {
name: 'Composite',
className: 'CheckServerNameAvailabilityResult',
modelProperties: {
nameAvailable: {
required: false,
serializedName: 'nameAvailable',
type: {
name: 'Boolean'
}
},
reason: {
required: false,
serializedName: 'reason',
type: {
name: 'String'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CheckServerNameAvailabilityResult;
93 changes: 76 additions & 17 deletions lib/services/analysisServices/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export interface Resource extends BaseResource {
* @member {object} [asAdministrators] A collection of AS server administrators
* @member {array} [asAdministrators.members] An array of administrator user
* identities.
* @member {string} [backupBlobContainerUri] The container URI of backup blob.
* @member {string} [backupBlobContainerUri] The SAS container URI to the
* backup container.
* @member {object} [gatewayDetails] The gateway details configured for the AS
* server.
* @member {string} [gatewayDetails.gatewayResourceId] Gateway resource to be
Expand Down Expand Up @@ -232,7 +233,8 @@ export interface IPv4FirewallSettings {
* @member {object} [asAdministrators] A collection of AS server administrators
* @member {array} [asAdministrators.members] An array of administrator user
* identities.
* @member {string} [backupBlobContainerUri] The container URI of backup blob.
* @member {string} [backupBlobContainerUri] The SAS container URI to the
* backup container.
* @member {object} [gatewayDetails] The gateway details configured for the AS
* server.
* @member {string} [gatewayDetails.gatewayResourceId] Gateway resource to be
Expand Down Expand Up @@ -305,6 +307,78 @@ export interface GatewayListStatusError {
error?: GatewayError;
}

/**
* @class
* Initializes a new instance of the CheckServerNameAvailabilityParameters class.
* @constructor
* Details of server name request body.
*
* @member {string} [name] Name for checking availability.
* @member {string} [type] The resource type of azure analysis services.
* Default value: 'Microsoft.AnalysisServices/servers' .
*/
export interface CheckServerNameAvailabilityParameters {
name?: string;
type?: string;
}

/**
* @class
* Initializes a new instance of the CheckServerNameAvailabilityResult class.
* @constructor
* The checking result of server name availibility.
*
* @member {boolean} [nameAvailable] Indicator of available of the server name.
* @member {string} [reason] The reason of unavailability.
* @member {string} [message] The detailed message of the request
* unavailability.
*/
export interface CheckServerNameAvailabilityResult {
nameAvailable?: boolean;
reason?: string;
message?: string;
}

/**
* @class
* Initializes a new instance of the ErrorResponse class.
* @constructor
* Describes the format of Error response.
*
* @member {string} [code] Error code
* @member {string} [message] Error message indicating why the operation
* failed.
*/
export interface ErrorResponse {
code?: string;
message?: string;
}

/**
* @class
* Initializes a new instance of the OperationStatus class.
* @constructor
* The status of operation.
*
* @member {string} [id] The operation Id.
* @member {string} [name] The operation name.
* @member {string} [startTime] The start time of the operation.
* @member {string} [endTime] The end time of the operation.
* @member {string} [status] The status of the operation.
* @member {object} [error] The error detail of the operation if any.
* @member {string} [error.code] Error code
* @member {string} [error.message] Error message indicating why the operation
* failed.
*/
export interface OperationStatus {
id?: string;
name?: string;
startTime?: string;
endTime?: string;
status?: string;
error?: ErrorResponse;
}

/**
* @class
* Initializes a new instance of the SkuEnumerationForNewResourceResult class.
Expand Down Expand Up @@ -347,21 +421,6 @@ export interface SkuEnumerationForExistingResourceResult {
value?: SkuDetailsForExistingResource[];
}

/**
* @class
* Initializes a new instance of the ErrorResponse class.
* @constructor
* Describes the format of Error response.
*
* @member {string} [code] Error code
* @member {string} [message] Error message indicating why the operation
* failed.
*/
export interface ErrorResponse {
code?: string;
message?: string;
}


/**
* @class
Expand Down
5 changes: 4 additions & 1 deletion lib/services/analysisServices/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ exports.AnalysisServicesServerUpdateParameters = require('./analysisServicesServ
exports.GatewayListStatusLive = require('./gatewayListStatusLive');
exports.GatewayError = require('./gatewayError');
exports.GatewayListStatusError = require('./gatewayListStatusError');
exports.CheckServerNameAvailabilityParameters = require('./checkServerNameAvailabilityParameters');
exports.CheckServerNameAvailabilityResult = require('./checkServerNameAvailabilityResult');
exports.ErrorResponse = require('./errorResponse');
exports.OperationStatus = require('./operationStatus');
exports.SkuEnumerationForNewResourceResult = require('./skuEnumerationForNewResourceResult');
exports.SkuDetailsForExistingResource = require('./skuDetailsForExistingResource');
exports.SkuEnumerationForExistingResourceResult = require('./skuEnumerationForExistingResourceResult');
exports.ErrorResponse = require('./errorResponse');
exports.AnalysisServicesServers = require('./analysisServicesServers');
exports.OperationListResult = require('./operationListResult');
Loading

0 comments on commit f7703f7

Please sign in to comment.