@azure/arm-appinsights 5.0.0-beta.3 → 5.0.0-beta.4
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/dist/index.js +41 -18
- 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/src/applicationInsightsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/applicationInsightsManagementClient.js +20 -2
- package/dist-esm/src/applicationInsightsManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +22 -12
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -6
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/parameters.js +2 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/workbooks.d.ts +8 -8
- package/dist-esm/src/operations/workbooks.js +8 -8
- package/dist-esm/src/operationsInterfaces/workbooks.d.ts +6 -6
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +11 -7
- package/review/arm-appinsights.api.md +19 -12
- package/src/applicationInsightsManagementClient.ts +27 -2
- package/src/models/index.ts +24 -12
- package/src/models/parameters.ts +2 -2
- package/src/operations/workbooks.ts +8 -8
- package/src/operationsInterfaces/workbooks.ts +6 -6
- package/types/arm-appinsights.d.ts +39 -27
- package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 5.0.0-beta.
|
|
3
|
+
## 5.0.0-beta.4 (2022-06-01)
|
|
4
4
|
|
|
5
|
-
The package of @azure/arm-appinsights is using our next generation design principles since version 5.0.0-beta.
|
|
5
|
+
The package of @azure/arm-appinsights is using our next generation design principles since version 5.0.0-beta.4, 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/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
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
|
|
|
8
9
|
function _interopNamespace(e) {
|
|
@@ -24,6 +25,7 @@ function _interopNamespace(e) {
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
27
29
|
|
|
28
30
|
/*
|
|
29
31
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -109,12 +111,16 @@ exports.KnownManagedServiceIdentityType = void 0;
|
|
|
109
111
|
KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
|
|
110
112
|
KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
|
|
111
113
|
})(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
|
|
112
|
-
/** Known values of {@link
|
|
113
|
-
exports.
|
|
114
|
-
(function (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
/** Known values of {@link WorkbookSharedTypeKind} that the service accepts. */
|
|
115
|
+
exports.KnownWorkbookSharedTypeKind = void 0;
|
|
116
|
+
(function (KnownWorkbookSharedTypeKind) {
|
|
117
|
+
KnownWorkbookSharedTypeKind["Shared"] = "shared";
|
|
118
|
+
})(exports.KnownWorkbookSharedTypeKind || (exports.KnownWorkbookSharedTypeKind = {}));
|
|
119
|
+
/** Known values of {@link WorkbookUpdateSharedTypeKind} that the service accepts. */
|
|
120
|
+
exports.KnownWorkbookUpdateSharedTypeKind = void 0;
|
|
121
|
+
(function (KnownWorkbookUpdateSharedTypeKind) {
|
|
122
|
+
KnownWorkbookUpdateSharedTypeKind["Shared"] = "shared";
|
|
123
|
+
})(exports.KnownWorkbookUpdateSharedTypeKind || (exports.KnownWorkbookUpdateSharedTypeKind = {}));
|
|
118
124
|
/** Known values of {@link ApplicationType} that the service accepts. */
|
|
119
125
|
exports.KnownApplicationType = void 0;
|
|
120
126
|
(function (KnownApplicationType) {
|
|
@@ -3622,7 +3628,7 @@ const scope = {
|
|
|
3622
3628
|
}
|
|
3623
3629
|
};
|
|
3624
3630
|
const typeParam = {
|
|
3625
|
-
parameterPath: ["options", "
|
|
3631
|
+
parameterPath: ["options", "type"],
|
|
3626
3632
|
mapper: {
|
|
3627
3633
|
defaultValue: "none",
|
|
3628
3634
|
serializedName: "type",
|
|
@@ -3727,7 +3733,7 @@ const workbookProperties = {
|
|
|
3727
3733
|
const apiVersion3 = {
|
|
3728
3734
|
parameterPath: "apiVersion",
|
|
3729
3735
|
mapper: {
|
|
3730
|
-
defaultValue: "
|
|
3736
|
+
defaultValue: "2022-04-01",
|
|
3731
3737
|
isConstant: true,
|
|
3732
3738
|
serializedName: "api-version",
|
|
3733
3739
|
type: {
|
|
@@ -6604,7 +6610,7 @@ class WorkbooksImpl {
|
|
|
6604
6610
|
/**
|
|
6605
6611
|
* Get the revisions for the workbook defined by its resourceName.
|
|
6606
6612
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6607
|
-
* @param resourceName The name of the
|
|
6613
|
+
* @param resourceName The name of the resource.
|
|
6608
6614
|
* @param options The options parameters.
|
|
6609
6615
|
*/
|
|
6610
6616
|
listRevisionsList(resourceGroupName, resourceName, options) {
|
|
@@ -6671,7 +6677,7 @@ class WorkbooksImpl {
|
|
|
6671
6677
|
/**
|
|
6672
6678
|
* Get a single workbook by its resourceName.
|
|
6673
6679
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6674
|
-
* @param resourceName The name of the
|
|
6680
|
+
* @param resourceName The name of the resource.
|
|
6675
6681
|
* @param options The options parameters.
|
|
6676
6682
|
*/
|
|
6677
6683
|
get(resourceGroupName, resourceName, options) {
|
|
@@ -6680,7 +6686,7 @@ class WorkbooksImpl {
|
|
|
6680
6686
|
/**
|
|
6681
6687
|
* Delete a workbook.
|
|
6682
6688
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6683
|
-
* @param resourceName The name of the
|
|
6689
|
+
* @param resourceName The name of the resource.
|
|
6684
6690
|
* @param options The options parameters.
|
|
6685
6691
|
*/
|
|
6686
6692
|
delete(resourceGroupName, resourceName, options) {
|
|
@@ -6689,7 +6695,7 @@ class WorkbooksImpl {
|
|
|
6689
6695
|
/**
|
|
6690
6696
|
* Create a new workbook.
|
|
6691
6697
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6692
|
-
* @param resourceName The name of the
|
|
6698
|
+
* @param resourceName The name of the resource.
|
|
6693
6699
|
* @param workbookProperties Properties that need to be specified to create a new workbook.
|
|
6694
6700
|
* @param options The options parameters.
|
|
6695
6701
|
*/
|
|
@@ -6699,7 +6705,7 @@ class WorkbooksImpl {
|
|
|
6699
6705
|
/**
|
|
6700
6706
|
* Updates a workbook that has already been added.
|
|
6701
6707
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6702
|
-
* @param resourceName The name of the
|
|
6708
|
+
* @param resourceName The name of the resource.
|
|
6703
6709
|
* @param options The options parameters.
|
|
6704
6710
|
*/
|
|
6705
6711
|
update(resourceGroupName, resourceName, options) {
|
|
@@ -6708,7 +6714,7 @@ class WorkbooksImpl {
|
|
|
6708
6714
|
/**
|
|
6709
6715
|
* Get the revisions for the workbook defined by its resourceName.
|
|
6710
6716
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6711
|
-
* @param resourceName The name of the
|
|
6717
|
+
* @param resourceName The name of the resource.
|
|
6712
6718
|
* @param options The options parameters.
|
|
6713
6719
|
*/
|
|
6714
6720
|
_revisionsList(resourceGroupName, resourceName, options) {
|
|
@@ -6717,7 +6723,7 @@ class WorkbooksImpl {
|
|
|
6717
6723
|
/**
|
|
6718
6724
|
* Get a single workbook revision defined by its revisionId.
|
|
6719
6725
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6720
|
-
* @param resourceName The name of the
|
|
6726
|
+
* @param resourceName The name of the resource.
|
|
6721
6727
|
* @param revisionId The id of the workbook's revision.
|
|
6722
6728
|
* @param options The options parameters.
|
|
6723
6729
|
*/
|
|
@@ -6746,7 +6752,7 @@ class WorkbooksImpl {
|
|
|
6746
6752
|
/**
|
|
6747
6753
|
* RevisionsListNext
|
|
6748
6754
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6749
|
-
* @param resourceName The name of the
|
|
6755
|
+
* @param resourceName The name of the resource.
|
|
6750
6756
|
* @param nextLink The nextLink from the previous successful call to the RevisionsList method.
|
|
6751
6757
|
* @param options The options parameters.
|
|
6752
6758
|
*/
|
|
@@ -7667,6 +7673,7 @@ class ApplicationInsightsManagementClient extends coreClient__namespace.ServiceC
|
|
|
7667
7673
|
* @param options The parameter options
|
|
7668
7674
|
*/
|
|
7669
7675
|
constructor(credentials, subscriptionId, options) {
|
|
7676
|
+
var _a, _b;
|
|
7670
7677
|
if (credentials === undefined) {
|
|
7671
7678
|
throw new Error("'credentials' cannot be null");
|
|
7672
7679
|
}
|
|
@@ -7681,7 +7688,7 @@ class ApplicationInsightsManagementClient extends coreClient__namespace.ServiceC
|
|
|
7681
7688
|
requestContentType: "application/json; charset=utf-8",
|
|
7682
7689
|
credential: credentials
|
|
7683
7690
|
};
|
|
7684
|
-
const packageDetails = `azsdk-js-arm-appinsights/5.0.0-beta.
|
|
7691
|
+
const packageDetails = `azsdk-js-arm-appinsights/5.0.0-beta.4`;
|
|
7685
7692
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
7686
7693
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
7687
7694
|
: `${packageDetails}`;
|
|
@@ -7690,8 +7697,24 @@ class ApplicationInsightsManagementClient extends coreClient__namespace.ServiceC
|
|
|
7690
7697
|
}
|
|
7691
7698
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
7692
7699
|
userAgentPrefix
|
|
7693
|
-
}, baseUri: options.endpoint
|
|
7700
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
7694
7701
|
super(optionsWithDefaults);
|
|
7702
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
7703
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
7704
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
7705
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
7706
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
7707
|
+
this.pipeline.removePolicy({
|
|
7708
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
7709
|
+
});
|
|
7710
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
7711
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
7712
|
+
challengeCallbacks: {
|
|
7713
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
7714
|
+
}
|
|
7715
|
+
}));
|
|
7716
|
+
}
|
|
7717
|
+
}
|
|
7695
7718
|
// Parameter assignments
|
|
7696
7719
|
this.subscriptionId = subscriptionId;
|
|
7697
7720
|
// Assigning values to Constant parameters
|