Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-newrelicobservability] Adding new preview version "2023-10-01-preview" with new APIs #7148

Closed
Closed
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
854 changes: 629 additions & 225 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

32 changes: 21 additions & 11 deletions sdk/newrelicobservability/arm-newrelicobservability/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
# Release History

## 1.1.0-beta.1 (2023-10-17)

**Features**

## 1.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation group BillingInfo
- Added operation group ConnectedPartnerResources
- Added Interface BillingInfoGetOptionalParams
- Added Interface BillingInfoResponse
- Added Interface ConnectedPartnerResourceProperties
- Added Interface ConnectedPartnerResourcesListFormat
- Added Interface ConnectedPartnerResourcesListNextOptionalParams
- Added Interface ConnectedPartnerResourcesListOptionalParams
- Added Interface ConnectedPartnerResourcesListResponse
- Added Interface MarketplaceSaaSInfo
- Added Interface PartnerBillingEntity
- Added Type Alias BillingInfoGetResponse
- Added Type Alias ConnectedPartnerResourcesListNextResponse
- Added Type Alias ConnectedPartnerResourcesListOperationResponse


## 1.0.0 (2023-05-06)

The package of @azure/arm-newrelicobservability is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
The package of @azure/arm-newrelicobservability is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/newrelicobservability/arm-newrelicobservability) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-newrelicobservability) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-newrelicobservability) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-newrelicobservability?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "3c639105c011765893db51cbb0dda056e34dc994",
"commit": "7a5e38dc6d3bb3fc7f5123c4a315517ec49144aa",
"readme": "specification/newrelic/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\newrelic\\resource-manager\\readme.md --use=@autorest/typescript@6.0.1 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/newrelic/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/typescript@6.0.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
"use": "@autorest/typescript@^6.0.4"
}

This file was deleted.

43 changes: 21 additions & 22 deletions sdk/newrelicobservability/arm-newrelicobservability/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for NewRelicObservability.",
"version": "1.0.1",
"version": "1.1.0-beta.1",
"engines": {
"node": ">=16.0.0"
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -29,21 +29,27 @@
"types": "./types/arm-newrelicobservability.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^3.3.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"mocha": "^7.1.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0"
"@types/node": "^14.0.0",
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand All @@ -64,20 +70,21 @@
"src/**/*.ts",
"README.md",
"LICENSE",
"rollup.config.js",
"tsconfig.json",
"review/*",
"CHANGELOG.md",
"types/*"
],
"scripts": {
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
"build:test": "echo skipped",
Expand Down Expand Up @@ -105,13 +112,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/newrelicobservability/arm-newrelicobservability",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-newrelicobservability?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/newrelicobservability/arm-newrelicobservability"
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,65 @@ export interface AppServicesListResponse {
// @public
export type BillingCycle = string;

// @public
export interface BillingInfo {
get(resourceGroupName: string, monitorName: string, options?: BillingInfoGetOptionalParams): Promise<BillingInfoGetResponse>;
}

// @public
export interface BillingInfoGetOptionalParams extends coreClient.OperationOptions {
}

// @public
export type BillingInfoGetResponse = BillingInfoResponse;

// @public
export interface BillingInfoResponse {
marketplaceSaasInfo?: MarketplaceSaaSInfo;
partnerBillingEntity?: PartnerBillingEntity;
}

// @public
export type BillingSource = string;

// @public
export interface ConnectedPartnerResourceProperties {
accountId?: string;
accountName?: string;
azureResourceId?: string;
location?: string;
}

// @public
export interface ConnectedPartnerResources {
list(resourceGroupName: string, monitorName: string, options?: ConnectedPartnerResourcesListOptionalParams): PagedAsyncIterableIterator<ConnectedPartnerResourcesListFormat>;
}

// @public
export interface ConnectedPartnerResourcesListFormat {
properties?: ConnectedPartnerResourceProperties;
}

// @public
export interface ConnectedPartnerResourcesListNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ConnectedPartnerResourcesListNextResponse = ConnectedPartnerResourcesListResponse;

// @public
export type ConnectedPartnerResourcesListOperationResponse = ConnectedPartnerResourcesListResponse;

// @public
export interface ConnectedPartnerResourcesListOptionalParams extends coreClient.OperationOptions {
}

// @public
export interface ConnectedPartnerResourcesListResponse {
nextLink?: string;
value?: ConnectedPartnerResourcesListFormat[];
}

// @public
export type CreatedByType = string;

Expand Down Expand Up @@ -294,6 +350,15 @@ export interface ManagedServiceIdentity {
// @public
export type ManagedServiceIdentityType = string;

// @public
export interface MarketplaceSaaSInfo {
billedAzureSubscriptionId?: string;
marketplaceResourceId?: string;
marketplaceStatus?: string;
marketplaceSubscriptionId?: string;
marketplaceSubscriptionName?: string;
}

// @public
export type MarketplaceSubscriptionStatus = string;

Expand Down Expand Up @@ -562,6 +627,10 @@ export class NewRelicObservability extends coreClient.ServiceClient {
// (undocumented)
apiVersion: string;
// (undocumented)
billingInfo: BillingInfo;
// (undocumented)
connectedPartnerResources: ConnectedPartnerResources;
// (undocumented)
monitors: Monitors;
// (undocumented)
operations: Operations;
Expand Down Expand Up @@ -675,6 +744,12 @@ export type OrgCreationSource = string;
// @public
export type Origin = string;

// @public
export interface PartnerBillingEntity {
organizationId?: string;
organizationName?: string;
}

// @public
export interface PlanData {
billingCycle?: BillingCycle;
Expand Down
122 changes: 122 additions & 0 deletions sdk/newrelicobservability/arm-newrelicobservability/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

import nodeResolve from "@rollup/plugin-node-resolve";
import cjs from "@rollup/plugin-commonjs";
import sourcemaps from "rollup-plugin-sourcemaps";
import multiEntry from "@rollup/plugin-multi-entry";
import json from "@rollup/plugin-json";

import nodeBuiltins from "builtin-modules";

// #region Warning Handler

/**
* A function that can determine whether a rollup warning should be ignored. If
* the function returns `true`, then the warning will not be displayed.
*/

function ignoreNiseSinonEval(warning) {
return (
warning.code === "EVAL" &&
warning.id &&
(warning.id.includes("node_modules/nise") ||
warning.id.includes("node_modules/sinon")) === true
);
}

function ignoreChaiCircularDependency(warning) {
return (
warning.code === "CIRCULAR_DEPENDENCY" &&
warning.importer && warning.importer.includes("node_modules/chai") === true
);
}

const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];

/**
* Construct a warning handler for the shared rollup configuration
* that ignores certain warnings that are not relevant to testing.
*/
function makeOnWarnForTesting() {
return (warning, warn) => {
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
if (warningInhibitors.every((inhib) => !inhib(warning))) {
warn(warning);
}
};
}

// #endregion

function makeBrowserTestConfig() {
const config = {
input: {
include: ["dist-esm/test/**/*.spec.js"],
exclude: ["dist-esm/test/**/node/**"]
},
output: {
file: `dist-test/index.browser.js`,
format: "umd",
sourcemap: true
},
preserveSymlinks: false,
plugins: [
multiEntry({ exports: false }),
nodeResolve({
mainFields: ["module", "browser"]
}),
cjs(),
json(),
sourcemaps()
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
],
onwarn: makeOnWarnForTesting(),
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
// rollup started respecting the "sideEffects" field in package.json. Since
// our package.json sets "sideEffects=false", this also applies to test
// code, which causes all tests to be removed by tree-shaking.
treeshake: false
};

return config;
}

const defaultConfigurationOptions = {
disableBrowserBundle: false
};

export function makeConfig(pkg, options) {
options = {
...defaultConfigurationOptions,
...(options || {})
};

const baseConfig = {
// Use the package's module field if it has one
input: pkg["module"] || "dist-esm/src/index.js",
external: [
...nodeBuiltins,
...Object.keys(pkg.dependencies),
...Object.keys(pkg.devDependencies)
],
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
preserveSymlinks: false,
plugins: [sourcemaps(), nodeResolve()]
};

const config = [baseConfig];

if (!options.disableBrowserBundle) {
config.push(makeBrowserTestConfig());
}

return config;
}

export default makeConfig(require("./package.json"));
Loading