@azure/arm-hanaonazure 4.0.0-beta.1 → 4.0.0-beta.2
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 +2 -2
- package/README.md +11 -0
- package/dist/index.js +85 -36
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/providerInstancesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/providerInstancesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerInstancesCreateSample.js +37 -0
- package/dist-esm/samples-dev/providerInstancesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/providerInstancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/providerInstancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerInstancesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/providerInstancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/providerInstancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/providerInstancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerInstancesGetSample.js +32 -0
- package/dist-esm/samples-dev/providerInstancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/providerInstancesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/providerInstancesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/providerInstancesListSample.js +45 -0
- package/dist-esm/samples-dev/providerInstancesListSample.js.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapMonitorsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsCreateSample.js +40 -0
- package/dist-esm/samples-dev/sapMonitorsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapMonitorsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/sapMonitorsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapMonitorsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsGetSample.js +31 -0
- package/dist-esm/samples-dev/sapMonitorsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapMonitorsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsListSample.js +43 -0
- package/dist-esm/samples-dev/sapMonitorsListSample.js.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sapMonitorsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sapMonitorsUpdateSample.js +51 -0
- package/dist-esm/samples-dev/sapMonitorsUpdateSample.js.map +1 -0
- package/dist-esm/src/hanaManagementClient.d.ts.map +1 -1
- package/dist-esm/src/hanaManagementClient.js +20 -2
- package/dist-esm/src/hanaManagementClient.js.map +1 -1
- package/dist-esm/src/operations/providerInstances.d.ts.map +1 -1
- package/dist-esm/src/operations/providerInstances.js +6 -2
- package/dist-esm/src/operations/providerInstances.js.map +1 -1
- package/dist-esm/src/operations/sapMonitors.d.ts.map +1 -1
- package/dist-esm/src/operations/sapMonitors.js +6 -2
- package/dist-esm/src/operations/sapMonitors.js.map +1 -1
- package/package.json +40 -14
- package/rollup.config.js +6 -72
- package/src/hanaManagementClient.ts +27 -2
- package/src/operations/providerInstances.ts +6 -2
- package/src/operations/sapMonitors.ts +6 -2
- package/tsconfig.json +19 -5
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 4.0.0-beta.
|
|
3
|
+
## 4.0.0-beta.2 (2022-04-26)
|
|
4
4
|
|
|
5
|
-
The package of @azure/arm-hanaonazure is using our next generation design principles since version 4.0.0-beta.
|
|
5
|
+
The package of @azure/arm-hanaonazure is using our next generation design principles since version 4.0.0-beta.2, which contains breaking changes.
|
|
6
6
|
|
|
7
7
|
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
|
8
8
|
|
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ HANA on Azure Client
|
|
|
16
16
|
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
17
17
|
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
18
18
|
|
|
19
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
20
|
+
|
|
19
21
|
### Prerequisites
|
|
20
22
|
|
|
21
23
|
- An [Azure subscription][azure_sub].
|
|
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
|
|
|
49
51
|
```javascript
|
|
50
52
|
const { HanaManagementClient } = require("@azure/arm-hanaonazure");
|
|
51
53
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
54
|
+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
55
|
+
|
|
52
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
53
57
|
const client = new HanaManagementClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
+
|
|
59
|
+
// For client-side applications running in the browser, use this code instead:
|
|
60
|
+
// const credential = new InteractiveBrowserCredential({
|
|
61
|
+
// tenantId: "<YOUR_TENANT_ID>",
|
|
62
|
+
// clientId: "<YOUR_CLIENT_ID>"
|
|
63
|
+
// });
|
|
64
|
+
// const client = new HanaManagementClient(credential, subscriptionId);
|
|
54
65
|
```
|
|
55
66
|
|
|
56
67
|
|
package/dist/index.js
CHANGED
|
@@ -3,9 +3,31 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
7
|
var tslib = require('tslib');
|
|
7
8
|
var coreLro = require('@azure/core-lro');
|
|
8
9
|
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
9
31
|
/*
|
|
10
32
|
* Copyright (c) Microsoft Corporation.
|
|
11
33
|
* Licensed under the MIT License.
|
|
@@ -13,6 +35,8 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
35
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
36
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
37
|
*/
|
|
38
|
+
/** Known values of {@link HanaProvisioningStatesEnum} that the service accepts. */
|
|
39
|
+
exports.KnownHanaProvisioningStatesEnum = void 0;
|
|
16
40
|
(function (KnownHanaProvisioningStatesEnum) {
|
|
17
41
|
KnownHanaProvisioningStatesEnum["Accepted"] = "Accepted";
|
|
18
42
|
KnownHanaProvisioningStatesEnum["Creating"] = "Creating";
|
|
@@ -549,12 +573,12 @@ class OperationsImpl {
|
|
|
549
573
|
* @param options The options parameters.
|
|
550
574
|
*/
|
|
551
575
|
_list(options) {
|
|
552
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
576
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
553
577
|
}
|
|
554
578
|
}
|
|
555
579
|
// Operation Specifications
|
|
556
|
-
const serializer =
|
|
557
|
-
const listOperationSpec = {
|
|
580
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
581
|
+
const listOperationSpec$2 = {
|
|
558
582
|
path: "/providers/Microsoft.HanaOnAzure/operations",
|
|
559
583
|
httpMethod: "GET",
|
|
560
584
|
responses: {
|
|
@@ -568,7 +592,7 @@ const listOperationSpec = {
|
|
|
568
592
|
queryParameters: [apiVersion],
|
|
569
593
|
urlParameters: [$host],
|
|
570
594
|
headerParameters: [accept],
|
|
571
|
-
serializer
|
|
595
|
+
serializer: serializer$2
|
|
572
596
|
};
|
|
573
597
|
|
|
574
598
|
/*
|
|
@@ -680,7 +704,7 @@ class SapMonitorsImpl {
|
|
|
680
704
|
* @param options The options parameters.
|
|
681
705
|
*/
|
|
682
706
|
get(resourceGroupName, sapMonitorName, options) {
|
|
683
|
-
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, options }, getOperationSpec);
|
|
707
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, options }, getOperationSpec$1);
|
|
684
708
|
}
|
|
685
709
|
/**
|
|
686
710
|
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
|
|
@@ -713,11 +737,13 @@ class SapMonitorsImpl {
|
|
|
713
737
|
}
|
|
714
738
|
};
|
|
715
739
|
});
|
|
716
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, sapMonitorParameter, options }, createOperationSpec);
|
|
717
|
-
|
|
740
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, sapMonitorParameter, options }, createOperationSpec$1);
|
|
741
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
718
742
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
719
743
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
720
744
|
});
|
|
745
|
+
yield poller.poll();
|
|
746
|
+
return poller;
|
|
721
747
|
});
|
|
722
748
|
}
|
|
723
749
|
/**
|
|
@@ -763,11 +789,13 @@ class SapMonitorsImpl {
|
|
|
763
789
|
}
|
|
764
790
|
};
|
|
765
791
|
});
|
|
766
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, options }, deleteOperationSpec);
|
|
767
|
-
|
|
792
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, options }, deleteOperationSpec$1);
|
|
793
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
768
794
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
769
795
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
770
796
|
});
|
|
797
|
+
yield poller.poll();
|
|
798
|
+
return poller;
|
|
771
799
|
});
|
|
772
800
|
}
|
|
773
801
|
/**
|
|
@@ -799,11 +827,11 @@ class SapMonitorsImpl {
|
|
|
799
827
|
* @param options The options parameters.
|
|
800
828
|
*/
|
|
801
829
|
_listNext(nextLink, options) {
|
|
802
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
830
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
803
831
|
}
|
|
804
832
|
}
|
|
805
833
|
// Operation Specifications
|
|
806
|
-
const serializer$1 =
|
|
834
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
807
835
|
const listOperationSpec$1 = {
|
|
808
836
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/sapMonitors",
|
|
809
837
|
httpMethod: "GET",
|
|
@@ -820,7 +848,7 @@ const listOperationSpec$1 = {
|
|
|
820
848
|
headerParameters: [accept],
|
|
821
849
|
serializer: serializer$1
|
|
822
850
|
};
|
|
823
|
-
const getOperationSpec = {
|
|
851
|
+
const getOperationSpec$1 = {
|
|
824
852
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
825
853
|
httpMethod: "GET",
|
|
826
854
|
responses: {
|
|
@@ -841,7 +869,7 @@ const getOperationSpec = {
|
|
|
841
869
|
headerParameters: [accept],
|
|
842
870
|
serializer: serializer$1
|
|
843
871
|
};
|
|
844
|
-
const createOperationSpec = {
|
|
872
|
+
const createOperationSpec$1 = {
|
|
845
873
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
846
874
|
httpMethod: "PUT",
|
|
847
875
|
responses: {
|
|
@@ -873,7 +901,7 @@ const createOperationSpec = {
|
|
|
873
901
|
mediaType: "json",
|
|
874
902
|
serializer: serializer$1
|
|
875
903
|
};
|
|
876
|
-
const deleteOperationSpec = {
|
|
904
|
+
const deleteOperationSpec$1 = {
|
|
877
905
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
878
906
|
httpMethod: "DELETE",
|
|
879
907
|
responses: {
|
|
@@ -918,7 +946,7 @@ const updateOperationSpec = {
|
|
|
918
946
|
mediaType: "json",
|
|
919
947
|
serializer: serializer$1
|
|
920
948
|
};
|
|
921
|
-
const listNextOperationSpec = {
|
|
949
|
+
const listNextOperationSpec$1 = {
|
|
922
950
|
path: "{nextLink}",
|
|
923
951
|
httpMethod: "GET",
|
|
924
952
|
responses: {
|
|
@@ -1015,7 +1043,7 @@ class ProviderInstancesImpl {
|
|
|
1015
1043
|
* @param options The options parameters.
|
|
1016
1044
|
*/
|
|
1017
1045
|
_list(resourceGroupName, sapMonitorName, options) {
|
|
1018
|
-
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, options }, listOperationSpec
|
|
1046
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, options }, listOperationSpec);
|
|
1019
1047
|
}
|
|
1020
1048
|
/**
|
|
1021
1049
|
* Gets properties of a provider instance for the specified subscription, resource group, SapMonitor
|
|
@@ -1026,7 +1054,7 @@ class ProviderInstancesImpl {
|
|
|
1026
1054
|
* @param options The options parameters.
|
|
1027
1055
|
*/
|
|
1028
1056
|
get(resourceGroupName, sapMonitorName, providerInstanceName, options) {
|
|
1029
|
-
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, providerInstanceName, options }, getOperationSpec
|
|
1057
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, providerInstanceName, options }, getOperationSpec);
|
|
1030
1058
|
}
|
|
1031
1059
|
/**
|
|
1032
1060
|
* Creates a provider instance for the specified subscription, resource group, SapMonitor name, and
|
|
@@ -1067,11 +1095,13 @@ class ProviderInstancesImpl {
|
|
|
1067
1095
|
providerInstanceName,
|
|
1068
1096
|
providerInstanceParameter,
|
|
1069
1097
|
options
|
|
1070
|
-
}, createOperationSpec
|
|
1071
|
-
|
|
1098
|
+
}, createOperationSpec);
|
|
1099
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1072
1100
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1073
1101
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1074
1102
|
});
|
|
1103
|
+
yield poller.poll();
|
|
1104
|
+
return poller;
|
|
1075
1105
|
});
|
|
1076
1106
|
}
|
|
1077
1107
|
/**
|
|
@@ -1121,11 +1151,13 @@ class ProviderInstancesImpl {
|
|
|
1121
1151
|
}
|
|
1122
1152
|
};
|
|
1123
1153
|
});
|
|
1124
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, providerInstanceName, options }, deleteOperationSpec
|
|
1125
|
-
|
|
1154
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, providerInstanceName, options }, deleteOperationSpec);
|
|
1155
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1126
1156
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1127
1157
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1128
1158
|
});
|
|
1159
|
+
yield poller.poll();
|
|
1160
|
+
return poller;
|
|
1129
1161
|
});
|
|
1130
1162
|
}
|
|
1131
1163
|
/**
|
|
@@ -1150,12 +1182,12 @@ class ProviderInstancesImpl {
|
|
|
1150
1182
|
* @param options The options parameters.
|
|
1151
1183
|
*/
|
|
1152
1184
|
_listNext(resourceGroupName, sapMonitorName, nextLink, options) {
|
|
1153
|
-
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, nextLink, options }, listNextOperationSpec
|
|
1185
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, nextLink, options }, listNextOperationSpec);
|
|
1154
1186
|
}
|
|
1155
1187
|
}
|
|
1156
1188
|
// Operation Specifications
|
|
1157
|
-
const serializer
|
|
1158
|
-
const listOperationSpec
|
|
1189
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1190
|
+
const listOperationSpec = {
|
|
1159
1191
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}/providerInstances",
|
|
1160
1192
|
httpMethod: "GET",
|
|
1161
1193
|
responses: {
|
|
@@ -1174,9 +1206,9 @@ const listOperationSpec$2 = {
|
|
|
1174
1206
|
sapMonitorName
|
|
1175
1207
|
],
|
|
1176
1208
|
headerParameters: [accept],
|
|
1177
|
-
serializer
|
|
1209
|
+
serializer
|
|
1178
1210
|
};
|
|
1179
|
-
const getOperationSpec
|
|
1211
|
+
const getOperationSpec = {
|
|
1180
1212
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}/providerInstances/{providerInstanceName}",
|
|
1181
1213
|
httpMethod: "GET",
|
|
1182
1214
|
responses: {
|
|
@@ -1196,9 +1228,9 @@ const getOperationSpec$1 = {
|
|
|
1196
1228
|
providerInstanceName
|
|
1197
1229
|
],
|
|
1198
1230
|
headerParameters: [accept],
|
|
1199
|
-
serializer
|
|
1231
|
+
serializer
|
|
1200
1232
|
};
|
|
1201
|
-
const createOperationSpec
|
|
1233
|
+
const createOperationSpec = {
|
|
1202
1234
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}/providerInstances/{providerInstanceName}",
|
|
1203
1235
|
httpMethod: "PUT",
|
|
1204
1236
|
responses: {
|
|
@@ -1229,9 +1261,9 @@ const createOperationSpec$1 = {
|
|
|
1229
1261
|
],
|
|
1230
1262
|
headerParameters: [accept, contentType],
|
|
1231
1263
|
mediaType: "json",
|
|
1232
|
-
serializer
|
|
1264
|
+
serializer
|
|
1233
1265
|
};
|
|
1234
|
-
const deleteOperationSpec
|
|
1266
|
+
const deleteOperationSpec = {
|
|
1235
1267
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}/providerInstances/{providerInstanceName}",
|
|
1236
1268
|
httpMethod: "DELETE",
|
|
1237
1269
|
responses: {
|
|
@@ -1252,9 +1284,9 @@ const deleteOperationSpec$1 = {
|
|
|
1252
1284
|
providerInstanceName
|
|
1253
1285
|
],
|
|
1254
1286
|
headerParameters: [accept],
|
|
1255
|
-
serializer
|
|
1287
|
+
serializer
|
|
1256
1288
|
};
|
|
1257
|
-
const listNextOperationSpec
|
|
1289
|
+
const listNextOperationSpec = {
|
|
1258
1290
|
path: "{nextLink}",
|
|
1259
1291
|
httpMethod: "GET",
|
|
1260
1292
|
responses: {
|
|
@@ -1274,7 +1306,7 @@ const listNextOperationSpec$1 = {
|
|
|
1274
1306
|
nextLink
|
|
1275
1307
|
],
|
|
1276
1308
|
headerParameters: [accept],
|
|
1277
|
-
serializer
|
|
1309
|
+
serializer
|
|
1278
1310
|
};
|
|
1279
1311
|
|
|
1280
1312
|
/*
|
|
@@ -1284,7 +1316,7 @@ const listNextOperationSpec$1 = {
|
|
|
1284
1316
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1285
1317
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1286
1318
|
*/
|
|
1287
|
-
class HanaManagementClient extends
|
|
1319
|
+
class HanaManagementClient extends coreClient__namespace.ServiceClient {
|
|
1288
1320
|
/**
|
|
1289
1321
|
* Initializes a new instance of the HanaManagementClient class.
|
|
1290
1322
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -1293,6 +1325,7 @@ class HanaManagementClient extends coreClient.ServiceClient {
|
|
|
1293
1325
|
* @param options The parameter options
|
|
1294
1326
|
*/
|
|
1295
1327
|
constructor(credentials, subscriptionId, options) {
|
|
1328
|
+
var _a, _b;
|
|
1296
1329
|
if (credentials === undefined) {
|
|
1297
1330
|
throw new Error("'credentials' cannot be null");
|
|
1298
1331
|
}
|
|
@@ -1307,7 +1340,7 @@ class HanaManagementClient extends coreClient.ServiceClient {
|
|
|
1307
1340
|
requestContentType: "application/json; charset=utf-8",
|
|
1308
1341
|
credential: credentials
|
|
1309
1342
|
};
|
|
1310
|
-
const packageDetails = `azsdk-js-arm-hanaonazure/4.0.0-beta.
|
|
1343
|
+
const packageDetails = `azsdk-js-arm-hanaonazure/4.0.0-beta.2`;
|
|
1311
1344
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1312
1345
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1313
1346
|
: `${packageDetails}`;
|
|
@@ -1316,8 +1349,24 @@ class HanaManagementClient extends coreClient.ServiceClient {
|
|
|
1316
1349
|
}
|
|
1317
1350
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1318
1351
|
userAgentPrefix
|
|
1319
|
-
}, baseUri: options.endpoint
|
|
1352
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1320
1353
|
super(optionsWithDefaults);
|
|
1354
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1355
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1356
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1357
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1358
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
1359
|
+
this.pipeline.removePolicy({
|
|
1360
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1361
|
+
});
|
|
1362
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1363
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
1364
|
+
challengeCallbacks: {
|
|
1365
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1366
|
+
}
|
|
1367
|
+
}));
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1321
1370
|
// Parameter assignments
|
|
1322
1371
|
this.subscriptionId = subscriptionId;
|
|
1323
1372
|
// Assigning values to Constant parameters
|