diff --git a/sdk/storagesync/arm-storagesync/CHANGELOG.md b/sdk/storagesync/arm-storagesync/CHANGELOG.md index df2621245d7f..612d805c33dc 100644 --- a/sdk/storagesync/arm-storagesync/CHANGELOG.md +++ b/sdk/storagesync/arm-storagesync/CHANGELOG.md @@ -1,5 +1,21 @@ # Release History +## 10.0.0 (2022-02-24) + +**Features** + + - Added Interface SystemData + - Added Type Alias CreatedByType + - Interface OperationResourceMetricSpecification has a new optional parameter supportedAggregationTypes + - Interface Resource has a new optional parameter systemData + - Interface StorageSyncApiError has a new optional parameter innererror + - Added Enum KnownCreatedByType + +**Breaking Changes** + + - Interface StorageSyncApiError no longer has parameter innerError + + ## 9.0.0 (2022-01-21) The package of @azure/arm-storagesync is using our next generation design principles since version 9.0.0, which contains breaking changes. diff --git a/sdk/storagesync/arm-storagesync/_meta.json b/sdk/storagesync/arm-storagesync/_meta.json index 8e1326356dba..26069f27a880 100644 --- a/sdk/storagesync/arm-storagesync/_meta.json +++ b/sdk/storagesync/arm-storagesync/_meta.json @@ -1,7 +1,7 @@ { - "commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb", + "commit": "14850720267b401ae40774c54543b6934a7a98f1", "readme": "specification/storagesync/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/storagesync/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/storagesync/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/storagesync/arm-storagesync/api-extractor.json b/sdk/storagesync/arm-storagesync/api-extractor.json index 7d7ca49f31a9..60bae1ce6cad 100644 --- a/sdk/storagesync/arm-storagesync/api-extractor.json +++ b/sdk/storagesync/arm-storagesync/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-storagesync.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/storagesync/arm-storagesync/package.json b/sdk/storagesync/arm-storagesync/package.json index 7ca01610c98d..03d7c0b9283c 100644 --- a/sdk/storagesync/arm-storagesync/package.json +++ b/sdk/storagesync/arm-storagesync/package.json @@ -3,8 +3,10 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for MicrosoftStorageSync.", - "version": "9.0.0", - "engines": { "node": ">=12.0.0" }, + "version": "1.0.0-beta.1", + "engines": { + "node": ">=12.0.0" + }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -14,7 +16,13 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -41,7 +49,9 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, "files": [ "dist/**/*.js", "dist/**/*.js.map", @@ -88,16 +98,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { "path": "src/MicrosoftStorageSync.ts", "prefix": "packageDetails" } - ] - }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": ["azure"], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storagesync?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/storagesync/arm-storagesync/review/arm-storagesync.api.md b/sdk/storagesync/arm-storagesync/review/arm-storagesync.api.md index 762e62b1aa1d..7b59c71fb394 100644 --- a/sdk/storagesync/arm-storagesync/review/arm-storagesync.api.md +++ b/sdk/storagesync/arm-storagesync/review/arm-storagesync.api.md @@ -297,6 +297,9 @@ export interface CloudTieringVolumeFreeSpacePolicyStatus { readonly lastUpdatedTimestamp?: Date; } +// @public +export type CreatedByType = string; + // @public export type FeatureStatus = string; @@ -339,6 +342,18 @@ export enum KnownCloudEndpointChangeEnumerationTotalCountsState { Final = "Final" } +// @public +export enum KnownCreatedByType { + // (undocumented) + Application = "Application", + // (undocumented) + Key = "Key", + // (undocumented) + ManagedIdentity = "ManagedIdentity", + // (undocumented) + User = "User" +} + // @public export enum KnownFeatureStatus { // (undocumented) @@ -628,6 +643,7 @@ export interface OperationResourceMetricSpecification { displayName?: string; fillGapWithZero?: boolean; name?: string; + supportedAggregationTypes?: string[]; unit?: string; } @@ -998,6 +1014,7 @@ export type RegisteredServersTriggerRolloverResponse = RegisteredServersTriggerR export interface Resource { readonly id?: string; readonly name?: string; + readonly systemData?: SystemData; readonly type?: string; } @@ -1267,7 +1284,7 @@ export interface ServerEndpointUpdateParameters { export interface StorageSyncApiError { code?: string; details?: StorageSyncErrorDetails; - innerError?: StorageSyncInnerErrorDetails; + innererror?: StorageSyncInnerErrorDetails; message?: string; target?: string; } @@ -1523,6 +1540,16 @@ export interface SyncGroupsListByStorageSyncServiceOptionalParams extends coreCl // @public export type SyncGroupsListByStorageSyncServiceResponse = SyncGroupsListByStorageSyncServiceHeaders & SyncGroupArray; +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + // @public export type TrackedResource = Resource & { tags?: { diff --git a/sdk/storagesync/arm-storagesync/src/microsoftStorageSync.ts b/sdk/storagesync/arm-storagesync/src/microsoftStorageSync.ts index 9d9400ab30a6..e1688cb87187 100644 --- a/sdk/storagesync/arm-storagesync/src/microsoftStorageSync.ts +++ b/sdk/storagesync/arm-storagesync/src/microsoftStorageSync.ts @@ -72,7 +72,7 @@ export class MicrosoftStorageSync extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-storagesync/9.0.0`; + const packageDetails = `azsdk-js-arm-storagesync/10.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/storagesync/arm-storagesync/src/models/index.ts b/sdk/storagesync/arm-storagesync/src/models/index.ts index 2034b7be0e7f..aef911151497 100644 --- a/sdk/storagesync/arm-storagesync/src/models/index.ts +++ b/sdk/storagesync/arm-storagesync/src/models/index.ts @@ -64,6 +64,8 @@ export interface OperationResourceMetricSpecification { unit?: string; /** Aggregation type for the metric. */ aggregationType?: string; + /** Supported aggregation types for the metric. */ + supportedAggregationTypes?: string[]; /** Fill gaps in the metric with zero. */ fillGapWithZero?: boolean; /** Dimensions for the metric specification. */ @@ -99,7 +101,7 @@ export interface StorageSyncApiError { /** Error details of the given entry. */ details?: StorageSyncErrorDetails; /** Inner error details of the given entry. */ - innerError?: StorageSyncInnerErrorDetails; + innererror?: StorageSyncInnerErrorDetails; } /** Error Details object. */ @@ -207,6 +209,27 @@ export interface Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } /** Parameters for updating an Storage sync service. */ @@ -1756,6 +1779,26 @@ export enum KnownPrivateEndpointConnectionProvisioningState { */ export type PrivateEndpointConnectionProvisioningState = string; +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + /** Known values of {@link CloudEndpointChangeEnumerationActivityState} that the service accepts. */ export enum KnownCloudEndpointChangeEnumerationActivityState { InitialEnumerationInProgress = "InitialEnumerationInProgress", diff --git a/sdk/storagesync/arm-storagesync/src/models/mappers.ts b/sdk/storagesync/arm-storagesync/src/models/mappers.ts index 56e7b37c8720..5186c6f62edd 100644 --- a/sdk/storagesync/arm-storagesync/src/models/mappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/mappers.ts @@ -175,6 +175,17 @@ export const OperationResourceMetricSpecification: coreClient.CompositeMapper = name: "String" } }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, fillGapWithZero: { serializedName: "fillGapWithZero", type: { @@ -277,8 +288,8 @@ export const StorageSyncApiError: coreClient.CompositeMapper = { className: "StorageSyncErrorDetails" } }, - innerError: { - serializedName: "innerError", + innererror: { + serializedName: "innererror", type: { name: "Composite", className: "StorageSyncInnerErrorDetails" @@ -530,6 +541,58 @@ export const Resource: coreClient.CompositeMapper = { type: { name: "String" } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } @@ -2505,6 +2568,7 @@ export const ServerEndpointCreateParameters: coreClient.CompositeMapper = { } }, tierFilesOlderThanDays: { + defaultValue: 0, constraints: { InclusiveMaximum: 2147483647, InclusiveMinimum: 0 diff --git a/sdk/storagesync/arm-storagesync/tsconfig.json b/sdk/storagesync/arm-storagesync/tsconfig.json index 1776ae4737fa..3e6ae96443f3 100644 --- a/sdk/storagesync/arm-storagesync/tsconfig.json +++ b/sdk/storagesync/arm-storagesync/tsconfig.json @@ -9,12 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { "@azure/arm-storagesync": ["./src/index"] } + "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file