Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions lib/services/cosmosdbManagement/lib/models/errorResponse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* 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';

/**
* Error Response.
*
*/
class ErrorResponse {
/**
* Create a ErrorResponse.
* @member {string} [code] Error code.
* @member {string} [message] Error message indicating why the operation
* failed.
*/
constructor() {
}

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

module.exports = ErrorResponse;
28 changes: 28 additions & 0 deletions lib/services/cosmosdbManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,21 @@ export interface DatabaseAccount extends Resource {
virtualNetworkRules?: VirtualNetworkRule[];
}

/**
* @class
* Initializes a new instance of the ErrorResponse class.
* @constructor
* 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 FailoverPolicies class.
Expand All @@ -216,6 +231,19 @@ export interface FailoverPolicies {
failoverPolicies: FailoverPolicy[];
}

/**
* @class
* Initializes a new instance of the RegionForOnlineOffline class.
* @constructor
* Cosmos DB region to online or offline.
*
* @member {string} region Cosmos DB region, with spaces between words and each
* word capitalized.
*/
export interface RegionForOnlineOffline {
region: string;
}

/**
* @class
* Initializes a new instance of the DatabaseAccountCreateUpdateParameters class.
Expand Down
2 changes: 2 additions & 0 deletions lib/services/cosmosdbManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ exports.FailoverPolicy = require('./failoverPolicy');
exports.VirtualNetworkRule = require('./virtualNetworkRule');
exports.Resource = require('./resource');
exports.DatabaseAccount = require('./databaseAccount');
exports.ErrorResponse = require('./errorResponse');
exports.FailoverPolicies = require('./failoverPolicies');
exports.RegionForOnlineOffline = require('./regionForOnlineOffline');
exports.DatabaseAccountCreateUpdateParameters = require('./databaseAccountCreateUpdateParameters');
exports.DatabaseAccountPatchParameters = require('./databaseAccountPatchParameters');
exports.DatabaseAccountListReadOnlyKeysResult = require('./databaseAccountListReadOnlyKeysResult');
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* 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';

/**
* Cosmos DB region to online or offline.
*
*/
class RegionForOnlineOffline {
/**
* Create a RegionForOnlineOffline.
* @member {string} region Cosmos DB region, with spaces between words and
* each word capitalized.
*/
constructor() {
}

/**
* Defines the metadata of RegionForOnlineOffline
*
* @returns {object} metadata of RegionForOnlineOffline
*
*/
mapper() {
return {
required: false,
serializedName: 'RegionForOnlineOffline',
type: {
name: 'Composite',
className: 'RegionForOnlineOffline',
modelProperties: {
region: {
required: true,
serializedName: 'region',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = RegionForOnlineOffline;
Loading