diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 84d91e0ecae0..ed59dfb2030b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -734,6 +734,7 @@ packages: /@azure/ai-form-recognizer/3.1.0-beta.3: resolution: {integrity: sha512-+4QtFKNyxAmdqpcYjuAtmWKm/MuOe9kZsbpS9jA9h0YHzngNj5gc67AA4egV9BXOq9x+1phjYTNC/rxiOUr1uQ==} engines: {node: '>=8.0.0'} + deprecated: Please migrate to a supported (non-beta) version of this package dependencies: '@azure/core-auth': 1.4.0 '@azure/core-http': 1.2.6 @@ -4035,7 +4036,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 5.1.0-dev.20230327 + typescript: 5.1.0-dev.20230328 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8677,37 +8678,6 @@ packages: hasBin: true dev: false - /ts-node/10.9.1_cda5npvz5vidcibznbsxxfupne: - resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.9 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.3 - '@types/node': 14.18.41 - acorn: 8.8.2 - acorn-walk: 8.2.0 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.0.2 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - dev: false - /ts-node/10.9.1_ksn4eycaeggbrckn3ykh37hwf4: resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true @@ -8913,8 +8883,8 @@ packages: hasBin: true dev: false - /typescript/5.1.0-dev.20230327: - resolution: {integrity: sha512-tzeS6vmUF8qC4zFdvos88Oer1oNVrg0CVlIaxfI//pDrq8rur4nIUTLRWRlEMCeLQporHhD+z9sESoSr5GL+lw==} + /typescript/5.1.0-dev.20230328: + resolution: {integrity: sha512-pylwLhhCSsZX72UUJTSD+5DKoEUUKsqQg6w4bLdRVbYVXDCxPLExUayWWCaRSmx9WJjf00YwMA2MXS2z2t5+2g==} engines: {node: '>=12.20'} hasBin: true dev: false @@ -14809,7 +14779,7 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-/qetaRJy783L82Mm4VsUYKg+WOM2h87iWBGHePBSU526fA5spOfdJ+MKUEHiyAZD21MqIFFiP2SUfelWmdmkQw==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-sU2/NNgDXYyhXsYxWy5BOeUu+LyZn/2SUuypKXCv/7re4Lz0IKC6krPr3crGH9EhF5kzvP5l25FyWzEN0a2qdw==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: @@ -14823,8 +14793,8 @@ packages: '@types/node': 14.18.41 chai: 4.3.7 cross-env: 7.0.3 - dotenv: 8.6.0 - mkdirp: 1.0.4 + dotenv: 16.0.3 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 @@ -17018,7 +16988,7 @@ packages: rollup-plugin-sourcemaps: 0.6.3_qg36w4uagpty5et2swcu4ykn64 rollup-plugin-visualizer: 5.9.0_rollup@2.79.1 semver: 7.3.8 - ts-node: 10.9.1_cda5npvz5vidcibznbsxxfupne + ts-node: 10.9.1_rwcdhhaqkims6irrp2ypnntvry tslib: 2.5.0 typescript: 4.8.4 yaml: 1.10.2 diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md b/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md index 1ee4bcfcb3d8..1db7fc5932e7 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md @@ -1,18 +1,8 @@ # Release History + +## 3.0.0-beta.5 (2023-03-29) -## 3.0.0-beta.5 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 3.0.0-beta.4 (2023-02-02) - -The package of @azure/arm-servicefabricmesh is using our next generation design principles since version 3.0.0-beta.4, which contains breaking changes. +The package of @azure/arm-servicefabricmesh is using our next generation design principles since version 3.0.0-beta.5, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json b/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json index 76aaec6bb0c5..c2710404723a 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json @@ -1,8 +1,8 @@ { - "commit": "aa42d66d5b919ea80c8dde04ae19d30a9c974d7d", - "readme": "specification\\servicefabricmesh\\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=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\servicefabricmesh\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.0", - "use": "@autorest/typescript@6.0.0-rc.7" + "commit": "61ee9d9d5e9865b98cef5a019f4c37edaa8b2d5f", + "readme": "specification/servicefabricmesh/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/servicefabricmesh/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", + "repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/package.json b/sdk/servicefabricmesh/arm-servicefabricmesh/package.json index 048748ed1f4a..28a1123f9059 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/package.json +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -31,13 +31,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -109,13 +109,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabricmesh/arm-servicefabricmesh", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-servicefabricmesh?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabricmesh/arm-servicefabricmesh" +} \ No newline at end of file diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md b/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md index 0144d9bc9469..bd967d738223 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md @@ -180,6 +180,11 @@ export type AutoScalingTriggerKind = string; // @public (undocumented) export type AutoScalingTriggerUnion = AutoScalingTrigger | AverageLoadScalingTrigger; +// @public +export interface AvailableOperationDescriptionProperties { + serviceSpecification?: ServiceSpecification; +} + // @public export interface AvailableOperationDisplay { description?: string; @@ -303,6 +308,18 @@ export interface DiagnosticsSinkProperties { // @public (undocumented) export type DiagnosticsSinkPropertiesUnion = DiagnosticsSinkProperties | AzureInternalMonitoringPipelineSinkDescription; +// @public +export interface Dimension { + // (undocumented) + displayName?: string; + // (undocumented) + internalName?: string; + // (undocumented) + name?: string; + // (undocumented) + toBeExportedForShoebox?: boolean; +} + // @public export interface EndpointProperties { name: string; @@ -595,6 +612,18 @@ export interface LocalNetworkResourceProperties extends NetworkResourcePropertie networkAddressPrefix?: string; } +// @public +export interface LogSpecification { + // (undocumented) + blobDuration?: string; + // (undocumented) + displayName?: string; + // (undocumented) + logFilterPattern?: string; + // (undocumented) + name?: string; +} + // @public export interface ManagedProxyResource { readonly id?: string; @@ -602,6 +631,52 @@ export interface ManagedProxyResource { readonly type?: string; } +// @public +export interface MetricAvailability { + // (undocumented) + blobDuration?: string; + // (undocumented) + timeGrain?: string; +} + +// @public +export interface MetricSpecification { + // (undocumented) + aggregationType?: string; + // (undocumented) + availabilities?: MetricAvailability[]; + // (undocumented) + category?: string; + // (undocumented) + dimensions?: Dimension[]; + // (undocumented) + displayDescription?: string; + // (undocumented) + displayName?: string; + // (undocumented) + enableRegionalMdmAccount?: boolean; + // (undocumented) + fillGapWithZero?: boolean; + // (undocumented) + isInternal?: boolean; + // (undocumented) + metricFilterPattern?: string; + // (undocumented) + name?: string; + // (undocumented) + sourceMdmAccount?: string; + // (undocumented) + sourceMdmNamespace?: string; + // (undocumented) + supportedAggregationTypes?: string[]; + // (undocumented) + supportedTimeGrainTypes?: string[]; + // (undocumented) + supportsInstanceLevelAggregation?: boolean; + // (undocumented) + unit?: string; +} + // @public export interface Network { create(resourceGroupName: string, networkResourceName: string, networkResourceDescription: NetworkResourceDescription, options?: NetworkCreateOptionalParams): Promise; @@ -711,6 +786,7 @@ export interface OperationResult { name?: string; nextLink?: string; origin?: string; + properties?: AvailableOperationDescriptionProperties; } // @public @@ -1089,6 +1165,14 @@ export interface ServiceResourceDescriptionList { export interface ServiceResourceProperties extends ProvisionedResourceProperties, ServiceReplicaProperties, ServiceProperties { } +// @public +export interface ServiceSpecification { + // (undocumented) + logSpecifications?: LogSpecification[]; + // (undocumented) + metricSpecifications?: MetricSpecification[]; +} + // @public export interface Setting { name?: string; diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts index 26a6ebe843e5..035d59665f41 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts @@ -57,6 +57,8 @@ export interface OperationResult { origin?: string; /** The URL to use for getting the next set of results. */ nextLink?: string; + /** Properties of the operation */ + properties?: AvailableOperationDescriptionProperties; } /** An operation available at the listed Azure resource provider. */ @@ -71,6 +73,64 @@ export interface AvailableOperationDisplay { description?: string; } +/** Properties available for a Microsoft.Web resource provider operation. */ +export interface AvailableOperationDescriptionProperties { + /** Resource metrics service provided by Microsoft.Insights resource provider. */ + serviceSpecification?: ServiceSpecification; +} + +/** Resource metrics service provided by Microsoft.Insights resource provider. */ +export interface ServiceSpecification { + metricSpecifications?: MetricSpecification[]; + logSpecifications?: LogSpecification[]; +} + +/** Definition of a single resource metric. */ +export interface MetricSpecification { + name?: string; + displayName?: string; + displayDescription?: string; + unit?: string; + aggregationType?: string; + supportsInstanceLevelAggregation?: boolean; + enableRegionalMdmAccount?: boolean; + sourceMdmAccount?: string; + sourceMdmNamespace?: string; + metricFilterPattern?: string; + fillGapWithZero?: boolean; + isInternal?: boolean; + dimensions?: Dimension[]; + category?: string; + availabilities?: MetricAvailability[]; + supportedTimeGrainTypes?: string[]; + supportedAggregationTypes?: string[]; +} + +/** + * Dimension of a resource metric. For e.g. instance specific HTTP requests for a web app, + * where instance name is dimension of the metric HTTP request + */ +export interface Dimension { + name?: string; + displayName?: string; + internalName?: string; + toBeExportedForShoebox?: boolean; +} + +/** Retention policy of a resource metric. */ +export interface MetricAvailability { + timeGrain?: string; + blobDuration?: string; +} + +/** Log Definition of a single resource metric. */ +export interface LogSpecification { + name?: string; + displayName?: string; + blobDuration?: string; + logFilterPattern?: string; +} + /** The error details. */ export interface ErrorModel { /** Error model information */ diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/mappers.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/mappers.ts index f532f60040eb..ac6cc3f8e31e 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/mappers.ts +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/mappers.ts @@ -65,6 +65,13 @@ export const OperationResult: coreClient.CompositeMapper = { type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AvailableOperationDescriptionProperties" + } } } } @@ -103,6 +110,275 @@ export const AvailableOperationDisplay: coreClient.CompositeMapper = { } }; +export const AvailableOperationDescriptionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableOperationDescriptionProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } + } + } + } +}; + +export const ServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + }, + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + } + } + } +}; + +export const MetricSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + supportsInstanceLevelAggregation: { + serializedName: "supportsInstanceLevelAggregation", + type: { + name: "Boolean" + } + }, + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", + type: { + name: "Boolean" + } + }, + sourceMdmAccount: { + serializedName: "sourceMdmAccount", + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + type: { + name: "String" + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + isInternal: { + serializedName: "isInternal", + type: { + name: "Boolean" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Dimension" + } + } + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + availabilities: { + serializedName: "availabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricAvailability" + } + } + } + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const Dimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Dimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" + } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MetricAvailability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricAvailability", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const LogSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + }, + logFilterPattern: { + serializedName: "logFilterPattern", + type: { + name: "String" + } + } + } + } +}; + export const ErrorModel: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/tsconfig.json b/sdk/servicefabricmesh/arm-servicefabricmesh/tsconfig.json index b352b9a4ca89..3e6ae96443f3 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/tsconfig.json +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-servicefabricmesh": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"