@azure/arm-hanaonazure 2.2.0 → 4.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +1 -1
- package/README.md +72 -72
- package/dist/index.js +1333 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/hanaManagementClient.d.ts +21 -0
- package/dist-esm/src/hanaManagementClient.d.ts.map +1 -0
- package/dist-esm/src/hanaManagementClient.js +54 -0
- package/dist-esm/src/hanaManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +260 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +19 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +15 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +330 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +116 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/providerInstances.d.ts +88 -0
- package/dist-esm/src/operations/providerInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/providerInstances.js +344 -0
- package/dist-esm/src/operations/providerInstances.js.map +1 -0
- package/dist-esm/src/operations/sapMonitors.d.ts +81 -0
- package/dist-esm/src/operations/sapMonitors.d.ts.map +1 -0
- package/dist-esm/src/operations/sapMonitors.js +346 -0
- package/dist-esm/src/operations/sapMonitors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/providerInstances.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/providerInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/providerInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/providerInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sapMonitors.d.ts +59 -0
- package/dist-esm/src/operationsInterfaces/sapMonitors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sapMonitors.js +9 -0
- package/dist-esm/src/operationsInterfaces/sapMonitors.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-hanaonazure.api.md +260 -0
- package/rollup.config.js +181 -30
- package/src/hanaManagementClient.ts +75 -34
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +227 -638
- package/src/models/mappers.ts +138 -367
- package/src/models/parameters.ts +84 -30
- package/src/operations/index.ts +4 -6
- package/src/operations/operations.ts +66 -42
- package/src/operations/providerInstances.ts +477 -0
- package/src/operations/sapMonitors.ts +332 -256
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/providerInstances.ts +115 -0
- package/src/operationsInterfaces/sapMonitors.ts +113 -0
- package/tsconfig.json +4 -4
- package/types/arm-hanaonazure.d.ts +444 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-hanaonazure.js +0 -1702
- package/dist/arm-hanaonazure.js.map +0 -1
- package/dist/arm-hanaonazure.min.js +0 -1
- package/dist/arm-hanaonazure.min.js.map +0 -1
- package/esm/hanaManagementClient.d.ts +0 -21
- package/esm/hanaManagementClient.d.ts.map +0 -1
- package/esm/hanaManagementClient.js +0 -36
- package/esm/hanaManagementClient.js.map +0 -1
- package/esm/hanaManagementClientContext.d.ts +0 -17
- package/esm/hanaManagementClientContext.d.ts.map +0 -1
- package/esm/hanaManagementClientContext.js +0 -57
- package/esm/hanaManagementClientContext.js.map +0 -1
- package/esm/models/hanaInstancesMappers.d.ts +0 -2
- package/esm/models/hanaInstancesMappers.d.ts.map +0 -1
- package/esm/models/hanaInstancesMappers.js +0 -9
- package/esm/models/hanaInstancesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -661
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -21
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -556
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -9
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -81
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/sapMonitorsMappers.d.ts +0 -2
- package/esm/models/sapMonitorsMappers.d.ts.map +0 -1
- package/esm/models/sapMonitorsMappers.js +0 -9
- package/esm/models/sapMonitorsMappers.js.map +0 -1
- package/esm/operations/hanaInstances.d.ts +0 -244
- package/esm/operations/hanaInstances.d.ts.map +0 -1
- package/esm/operations/hanaInstances.js +0 -514
- package/esm/operations/hanaInstances.js.map +0 -1
- package/esm/operations/index.d.ts +0 -4
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -13
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/sapMonitors.d.ts +0 -138
- package/esm/operations/sapMonitors.d.ts.map +0 -1
- package/esm/operations/sapMonitors.js +0 -260
- package/esm/operations/sapMonitors.js.map +0 -1
- package/src/hanaManagementClientContext.ts +0 -63
- package/src/models/hanaInstancesMappers.ts +0 -25
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/sapMonitorsMappers.ts +0 -23
- package/src/operations/hanaInstances.ts +0 -718
package/src/models/parameters.ts
CHANGED
|
@@ -1,83 +1,137 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
import {
|
|
15
|
+
SapMonitor as SapMonitorMapper,
|
|
16
|
+
Tags as TagsMapper,
|
|
17
|
+
ProviderInstance as ProviderInstanceMapper
|
|
18
|
+
} from "../models/mappers";
|
|
12
19
|
|
|
13
|
-
export const
|
|
14
|
-
parameterPath: "
|
|
20
|
+
export const accept: OperationParameter = {
|
|
21
|
+
parameterPath: "accept",
|
|
15
22
|
mapper: {
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
defaultValue: "application/json",
|
|
24
|
+
isConstant: true,
|
|
25
|
+
serializedName: "Accept",
|
|
18
26
|
type: {
|
|
19
27
|
name: "String"
|
|
20
28
|
}
|
|
21
29
|
}
|
|
22
30
|
};
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
|
|
32
|
+
export const $host: OperationURLParameter = {
|
|
33
|
+
parameterPath: "$host",
|
|
25
34
|
mapper: {
|
|
35
|
+
serializedName: "$host",
|
|
26
36
|
required: true,
|
|
27
|
-
serializedName: "api-version",
|
|
28
37
|
type: {
|
|
29
38
|
name: "String"
|
|
30
39
|
}
|
|
31
|
-
}
|
|
40
|
+
},
|
|
41
|
+
skipEncoding: true
|
|
32
42
|
};
|
|
33
|
-
|
|
34
|
-
|
|
43
|
+
|
|
44
|
+
export const apiVersion: OperationQueryParameter = {
|
|
45
|
+
parameterPath: "apiVersion",
|
|
35
46
|
mapper: {
|
|
36
|
-
|
|
37
|
-
|
|
47
|
+
defaultValue: "2020-02-07-preview",
|
|
48
|
+
isConstant: true,
|
|
49
|
+
serializedName: "api-version",
|
|
38
50
|
type: {
|
|
39
51
|
name: "String"
|
|
40
52
|
}
|
|
41
53
|
}
|
|
42
54
|
};
|
|
43
|
-
|
|
44
|
-
|
|
55
|
+
|
|
56
|
+
export const subscriptionId: OperationURLParameter = {
|
|
57
|
+
parameterPath: "subscriptionId",
|
|
45
58
|
mapper: {
|
|
59
|
+
serializedName: "subscriptionId",
|
|
46
60
|
required: true,
|
|
47
|
-
serializedName: "nextLink",
|
|
48
61
|
type: {
|
|
49
62
|
name: "String"
|
|
50
63
|
}
|
|
51
|
-
}
|
|
52
|
-
skipEncoding: true
|
|
64
|
+
}
|
|
53
65
|
};
|
|
54
|
-
|
|
66
|
+
|
|
67
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
55
68
|
parameterPath: "resourceGroupName",
|
|
56
69
|
mapper: {
|
|
57
|
-
required: true,
|
|
58
70
|
serializedName: "resourceGroupName",
|
|
71
|
+
required: true,
|
|
59
72
|
type: {
|
|
60
73
|
name: "String"
|
|
61
74
|
}
|
|
62
75
|
}
|
|
63
76
|
};
|
|
64
|
-
|
|
77
|
+
|
|
78
|
+
export const sapMonitorName: OperationURLParameter = {
|
|
65
79
|
parameterPath: "sapMonitorName",
|
|
66
80
|
mapper: {
|
|
67
|
-
required: true,
|
|
68
81
|
serializedName: "sapMonitorName",
|
|
82
|
+
required: true,
|
|
69
83
|
type: {
|
|
70
84
|
name: "String"
|
|
71
85
|
}
|
|
72
86
|
}
|
|
73
87
|
};
|
|
74
|
-
|
|
75
|
-
|
|
88
|
+
|
|
89
|
+
export const contentType: OperationParameter = {
|
|
90
|
+
parameterPath: ["options", "contentType"],
|
|
76
91
|
mapper: {
|
|
92
|
+
defaultValue: "application/json",
|
|
93
|
+
isConstant: true,
|
|
94
|
+
serializedName: "Content-Type",
|
|
95
|
+
type: {
|
|
96
|
+
name: "String"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export const sapMonitorParameter: OperationParameter = {
|
|
102
|
+
parameterPath: "sapMonitorParameter",
|
|
103
|
+
mapper: SapMonitorMapper
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const tagsParameter: OperationParameter = {
|
|
107
|
+
parameterPath: "tagsParameter",
|
|
108
|
+
mapper: TagsMapper
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export const nextLink: OperationURLParameter = {
|
|
112
|
+
parameterPath: "nextLink",
|
|
113
|
+
mapper: {
|
|
114
|
+
serializedName: "nextLink",
|
|
115
|
+
required: true,
|
|
116
|
+
type: {
|
|
117
|
+
name: "String"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
skipEncoding: true
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export const providerInstanceName: OperationURLParameter = {
|
|
124
|
+
parameterPath: "providerInstanceName",
|
|
125
|
+
mapper: {
|
|
126
|
+
serializedName: "providerInstanceName",
|
|
77
127
|
required: true,
|
|
78
|
-
serializedName: "subscriptionId",
|
|
79
128
|
type: {
|
|
80
129
|
name: "String"
|
|
81
130
|
}
|
|
82
131
|
}
|
|
83
132
|
};
|
|
133
|
+
|
|
134
|
+
export const providerInstanceParameter: OperationParameter = {
|
|
135
|
+
parameterPath: "providerInstanceParameter",
|
|
136
|
+
mapper: ProviderInstanceMapper
|
|
137
|
+
};
|
package/src/operations/index.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
9
|
export * from "./operations";
|
|
12
|
-
export * from "./hanaInstances";
|
|
13
10
|
export * from "./sapMonitors";
|
|
11
|
+
export * from "./providerInstances";
|
|
@@ -1,67 +1,88 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { HanaManagementClient } from "../hanaManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListOptionalParams,
|
|
18
|
+
OperationsListResponse
|
|
19
|
+
} from "../models";
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Class containing Operations operations. */
|
|
23
|
+
export class OperationsImpl implements Operations {
|
|
24
|
+
private readonly client: HanaManagementClient;
|
|
20
25
|
|
|
21
26
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
27
|
+
* Initialize a new instance of the class Operations class.
|
|
28
|
+
* @param client Reference to the service client
|
|
24
29
|
*/
|
|
25
|
-
constructor(client:
|
|
30
|
+
constructor(client: HanaManagementClient) {
|
|
26
31
|
this.client = client;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
/**
|
|
30
35
|
* Gets a list of SAP HANA management operations.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
36
|
+
* @param options The options parameters.
|
|
33
37
|
*/
|
|
34
|
-
list(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
public list(
|
|
39
|
+
options?: OperationsListOptionalParams
|
|
40
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
41
|
+
const iter = this.listPagingAll(options);
|
|
42
|
+
return {
|
|
43
|
+
next() {
|
|
44
|
+
return iter.next();
|
|
45
|
+
},
|
|
46
|
+
[Symbol.asyncIterator]() {
|
|
47
|
+
return this;
|
|
48
|
+
},
|
|
49
|
+
byPage: () => {
|
|
50
|
+
return this.listPagingPage(options);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
private async *listPagingPage(
|
|
56
|
+
options?: OperationsListOptionalParams
|
|
57
|
+
): AsyncIterableIterator<Operation[]> {
|
|
58
|
+
let result = await this._list(options);
|
|
59
|
+
yield result.value || [];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
private async *listPagingAll(
|
|
63
|
+
options?: OperationsListOptionalParams
|
|
64
|
+
): AsyncIterableIterator<Operation> {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
39
70
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @param
|
|
71
|
+
* Gets a list of SAP HANA management operations.
|
|
72
|
+
* @param options The options parameters.
|
|
42
73
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
options
|
|
48
|
-
},
|
|
49
|
-
listOperationSpec,
|
|
50
|
-
callback) as Promise<Models.OperationsListResponse>;
|
|
74
|
+
private _list(
|
|
75
|
+
options?: OperationsListOptionalParams
|
|
76
|
+
): Promise<OperationsListResponse> {
|
|
77
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
51
78
|
}
|
|
52
79
|
}
|
|
53
|
-
|
|
54
80
|
// Operation Specifications
|
|
55
|
-
const serializer =
|
|
56
|
-
|
|
81
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
82
|
+
|
|
83
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
84
|
+
path: "/providers/Microsoft.HanaOnAzure/operations",
|
|
57
85
|
httpMethod: "GET",
|
|
58
|
-
path: "providers/Microsoft.HanaOnAzure/operations",
|
|
59
|
-
queryParameters: [
|
|
60
|
-
Parameters.apiVersion
|
|
61
|
-
],
|
|
62
|
-
headerParameters: [
|
|
63
|
-
Parameters.acceptLanguage
|
|
64
|
-
],
|
|
65
86
|
responses: {
|
|
66
87
|
200: {
|
|
67
88
|
bodyMapper: Mappers.OperationList
|
|
@@ -70,5 +91,8 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
70
91
|
bodyMapper: Mappers.ErrorResponse
|
|
71
92
|
}
|
|
72
93
|
},
|
|
94
|
+
queryParameters: [Parameters.apiVersion],
|
|
95
|
+
urlParameters: [Parameters.$host],
|
|
96
|
+
headerParameters: [Parameters.accept],
|
|
73
97
|
serializer
|
|
74
98
|
};
|