-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 6dc88857bdcf5ba185555564f857c9d389297e44 (#1385)
Update MariaDB default API version to 2018-06-01
- Loading branch information
1 parent
30eaeee
commit c15b992
Showing
9 changed files
with
298 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export { | ||
discriminators, | ||
ServerListResult, | ||
Server, | ||
TrackedResource, | ||
ProxyResource, | ||
BaseResource, | ||
Sku, | ||
StorageProfile, | ||
CloudError, | ||
FirewallRule, | ||
VirtualNetworkRule, | ||
Database, | ||
Configuration, | ||
LogFile, | ||
ServerSecurityAlertPolicy | ||
} from "../models/mappers"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import * as msRest from "@azure/ms-rest-js"; | ||
import * as Models from "../models"; | ||
import * as Mappers from "../models/replicasMappers"; | ||
import * as Parameters from "../models/parameters"; | ||
import { MariaDBManagementClientContext } from "../mariaDBManagementClientContext"; | ||
|
||
/** Class representing a Replicas. */ | ||
export class Replicas { | ||
private readonly client: MariaDBManagementClientContext; | ||
|
||
/** | ||
* Create a Replicas. | ||
* @param {MariaDBManagementClientContext} client Reference to the service client. | ||
*/ | ||
constructor(client: MariaDBManagementClientContext) { | ||
this.client = client; | ||
} | ||
|
||
/** | ||
* List all the replicas for a given server. | ||
* @param resourceGroupName The name of the resource group that contains the resource. You can | ||
* obtain this value from the Azure Resource Manager API or the portal. | ||
* @param serverName The name of the server. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ReplicasListByServerResponse> | ||
*/ | ||
listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise<Models.ReplicasListByServerResponse>; | ||
/** | ||
* @param resourceGroupName The name of the resource group that contains the resource. You can | ||
* obtain this value from the Azure Resource Manager API or the portal. | ||
* @param serverName The name of the server. | ||
* @param callback The callback | ||
*/ | ||
listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback<Models.ServerListResult>): void; | ||
/** | ||
* @param resourceGroupName The name of the resource group that contains the resource. You can | ||
* obtain this value from the Azure Resource Manager API or the portal. | ||
* @param serverName The name of the server. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ServerListResult>): void; | ||
listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ServerListResult>, callback?: msRest.ServiceCallback<Models.ServerListResult>): Promise<Models.ReplicasListByServerResponse> { | ||
return this.client.sendOperationRequest( | ||
{ | ||
resourceGroupName, | ||
serverName, | ||
options | ||
}, | ||
listByServerOperationSpec, | ||
callback) as Promise<Models.ReplicasListByServerResponse>; | ||
} | ||
} | ||
|
||
// Operation Specifications | ||
const serializer = new msRest.Serializer(Mappers); | ||
const listByServerOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "GET", | ||
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/replicas", | ||
urlParameters: [ | ||
Parameters.subscriptionId, | ||
Parameters.resourceGroupName, | ||
Parameters.serverName | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
headerParameters: [ | ||
Parameters.acceptLanguage | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.ServerListResult | ||
}, | ||
default: { | ||
bodyMapper: Mappers.CloudError | ||
} | ||
}, | ||
serializer | ||
}; |
Oops, something went wrong.