Skip to content

Commit 4e8c586

Browse files
author
SDKAuto
committed
CodeGen from PR 17159 in Azure/azure-rest-api-specs
Merge a917c08290679943c514e3ff197c468c1f652d05 into 31e3d74717007c0e674ee38b331bbb4d67de3639
1 parent d180f26 commit 4e8c586

File tree

9 files changed

+206
-37
lines changed

9 files changed

+206
-37
lines changed

sdk/storagesync/arm-storagesync/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Release History
22

3+
## 10.0.0 (2022-01-28)
4+
5+
**Features**
6+
7+
- Added Interface SystemData
8+
- Added Type Alias CreatedByType
9+
- Interface OperationResourceMetricSpecification has a new optional parameter supportedAggregationTypes
10+
- Interface Resource has a new optional parameter systemData
11+
- Interface StorageSyncApiError has a new optional parameter innererror
12+
- Added Enum KnownCreatedByType
13+
14+
**Breaking Changes**
15+
16+
- Interface StorageSyncApiError no longer has parameter innerError
17+
18+
319
## 9.0.0 (2022-01-21)
420

521
The package of @azure/arm-storagesync is using our next generation design principles since version 9.0.0, which contains breaking changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
2+
"commit": "7f2d20c3ec2543bc4fca9f82f4408289f3178bee",
33
"readme": "specification/storagesync/resource-manager/readme.md",
4-
"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",
4+
"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",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
6+
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-storagesync.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/storagesync/arm-storagesync/package.json

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for MicrosoftStorageSync.",
6-
"version": "9.0.0",
7-
"engines": { "node": ">=12.0.0" },
6+
"version": "10.0.0",
7+
"engines": {
8+
"node": ">=12.0.0"
9+
},
810
"dependencies": {
911
"@azure/core-lro": "^2.2.0",
1012
"@azure/abort-controller": "^1.0.0",
@@ -14,7 +16,13 @@
1416
"@azure/core-rest-pipeline": "^1.1.0",
1517
"tslib": "^2.2.0"
1618
},
17-
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
19+
"keywords": [
20+
"node",
21+
"azure",
22+
"typescript",
23+
"browser",
24+
"isomorphic"
25+
],
1826
"license": "MIT",
1927
"main": "./dist/index.js",
2028
"module": "./dist-esm/src/index.js",
@@ -41,7 +49,9 @@
4149
"type": "git",
4250
"url": "https://github.com/Azure/azure-sdk-for-js.git"
4351
},
44-
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
52+
"bugs": {
53+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
54+
},
4555
"files": [
4656
"dist/**/*.js",
4757
"dist/**/*.js.map",
@@ -88,16 +98,5 @@
8898
"docs": "echo skipped"
8999
},
90100
"sideEffects": false,
91-
"//metadata": {
92-
"constantPaths": [
93-
{ "path": "src/MicrosoftStorageSync.ts", "prefix": "packageDetails" }
94-
]
95-
},
96-
"autoPublish": true,
97-
"//sampleConfiguration": {
98-
"productName": "",
99-
"productSlugs": ["azure"],
100-
"disableDocsMs": true,
101-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storagesync?view=azure-node-preview"
102-
}
103-
}
101+
"autoPublish": true
102+
}

sdk/storagesync/arm-storagesync/review/arm-storagesync.api.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ export interface CloudTieringVolumeFreeSpacePolicyStatus {
297297
readonly lastUpdatedTimestamp?: Date;
298298
}
299299

300+
// @public
301+
export type CreatedByType = string;
302+
300303
// @public
301304
export type FeatureStatus = string;
302305

@@ -339,6 +342,18 @@ export enum KnownCloudEndpointChangeEnumerationTotalCountsState {
339342
Final = "Final"
340343
}
341344

345+
// @public
346+
export enum KnownCreatedByType {
347+
// (undocumented)
348+
Application = "Application",
349+
// (undocumented)
350+
Key = "Key",
351+
// (undocumented)
352+
ManagedIdentity = "ManagedIdentity",
353+
// (undocumented)
354+
User = "User"
355+
}
356+
342357
// @public
343358
export enum KnownFeatureStatus {
344359
// (undocumented)
@@ -628,6 +643,7 @@ export interface OperationResourceMetricSpecification {
628643
displayName?: string;
629644
fillGapWithZero?: boolean;
630645
name?: string;
646+
supportedAggregationTypes?: string[];
631647
unit?: string;
632648
}
633649

@@ -998,6 +1014,7 @@ export type RegisteredServersTriggerRolloverResponse = RegisteredServersTriggerR
9981014
export interface Resource {
9991015
readonly id?: string;
10001016
readonly name?: string;
1017+
readonly systemData?: SystemData;
10011018
readonly type?: string;
10021019
}
10031020

@@ -1267,7 +1284,7 @@ export interface ServerEndpointUpdateParameters {
12671284
export interface StorageSyncApiError {
12681285
code?: string;
12691286
details?: StorageSyncErrorDetails;
1270-
innerError?: StorageSyncInnerErrorDetails;
1287+
innererror?: StorageSyncInnerErrorDetails;
12711288
message?: string;
12721289
target?: string;
12731290
}
@@ -1523,6 +1540,16 @@ export interface SyncGroupsListByStorageSyncServiceOptionalParams extends coreCl
15231540
// @public
15241541
export type SyncGroupsListByStorageSyncServiceResponse = SyncGroupsListByStorageSyncServiceHeaders & SyncGroupArray;
15251542

1543+
// @public
1544+
export interface SystemData {
1545+
createdAt?: Date;
1546+
createdBy?: string;
1547+
createdByType?: CreatedByType;
1548+
lastModifiedAt?: Date;
1549+
lastModifiedBy?: string;
1550+
lastModifiedByType?: CreatedByType;
1551+
}
1552+
15261553
// @public
15271554
export type TrackedResource = Resource & {
15281555
tags?: {

sdk/storagesync/arm-storagesync/src/microsoftStorageSync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class MicrosoftStorageSync extends coreClient.ServiceClient {
7272
credential: credentials
7373
};
7474

75-
const packageDetails = `azsdk-js-arm-storagesync/9.0.0`;
75+
const packageDetails = `azsdk-js-arm-storagesync/10.0.0`;
7676
const userAgentPrefix =
7777
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7878
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

sdk/storagesync/arm-storagesync/src/models/index.ts

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ export interface OperationResourceMetricSpecification {
6464
unit?: string;
6565
/** Aggregation type for the metric. */
6666
aggregationType?: string;
67+
/** Supported aggregation types for the metric. */
68+
supportedAggregationTypes?: string[];
6769
/** Fill gaps in the metric with zero. */
6870
fillGapWithZero?: boolean;
6971
/** Dimensions for the metric specification. */
@@ -99,7 +101,7 @@ export interface StorageSyncApiError {
99101
/** Error details of the given entry. */
100102
details?: StorageSyncErrorDetails;
101103
/** Inner error details of the given entry. */
102-
innerError?: StorageSyncInnerErrorDetails;
104+
innererror?: StorageSyncInnerErrorDetails;
103105
}
104106

105107
/** Error Details object. */
@@ -207,6 +209,27 @@ export interface Resource {
207209
* NOTE: This property will not be serialized. It can only be populated by the server.
208210
*/
209211
readonly type?: string;
212+
/**
213+
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
214+
* NOTE: This property will not be serialized. It can only be populated by the server.
215+
*/
216+
readonly systemData?: SystemData;
217+
}
218+
219+
/** Metadata pertaining to creation and last modification of the resource. */
220+
export interface SystemData {
221+
/** The identity that created the resource. */
222+
createdBy?: string;
223+
/** The type of identity that created the resource. */
224+
createdByType?: CreatedByType;
225+
/** The timestamp of resource creation (UTC). */
226+
createdAt?: Date;
227+
/** The identity that last modified the resource. */
228+
lastModifiedBy?: string;
229+
/** The type of identity that last modified the resource. */
230+
lastModifiedByType?: CreatedByType;
231+
/** The timestamp of resource last modification (UTC) */
232+
lastModifiedAt?: Date;
210233
}
211234

212235
/** Parameters for updating an Storage sync service. */
@@ -1756,6 +1779,26 @@ export enum KnownPrivateEndpointConnectionProvisioningState {
17561779
*/
17571780
export type PrivateEndpointConnectionProvisioningState = string;
17581781

1782+
/** Known values of {@link CreatedByType} that the service accepts. */
1783+
export enum KnownCreatedByType {
1784+
User = "User",
1785+
Application = "Application",
1786+
ManagedIdentity = "ManagedIdentity",
1787+
Key = "Key"
1788+
}
1789+
1790+
/**
1791+
* Defines values for CreatedByType. \
1792+
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
1793+
* this enum contains the known values that the service supports.
1794+
* ### Known values supported by the service
1795+
* **User** \
1796+
* **Application** \
1797+
* **ManagedIdentity** \
1798+
* **Key**
1799+
*/
1800+
export type CreatedByType = string;
1801+
17591802
/** Known values of {@link CloudEndpointChangeEnumerationActivityState} that the service accepts. */
17601803
export enum KnownCloudEndpointChangeEnumerationActivityState {
17611804
InitialEnumerationInProgress = "InitialEnumerationInProgress",

sdk/storagesync/arm-storagesync/src/models/mappers.ts

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,17 @@ export const OperationResourceMetricSpecification: coreClient.CompositeMapper =
175175
name: "String"
176176
}
177177
},
178+
supportedAggregationTypes: {
179+
serializedName: "supportedAggregationTypes",
180+
type: {
181+
name: "Sequence",
182+
element: {
183+
type: {
184+
name: "String"
185+
}
186+
}
187+
}
188+
},
178189
fillGapWithZero: {
179190
serializedName: "fillGapWithZero",
180191
type: {
@@ -277,8 +288,8 @@ export const StorageSyncApiError: coreClient.CompositeMapper = {
277288
className: "StorageSyncErrorDetails"
278289
}
279290
},
280-
innerError: {
281-
serializedName: "innerError",
291+
innererror: {
292+
serializedName: "innererror",
282293
type: {
283294
name: "Composite",
284295
className: "StorageSyncInnerErrorDetails"
@@ -530,6 +541,58 @@ export const Resource: coreClient.CompositeMapper = {
530541
type: {
531542
name: "String"
532543
}
544+
},
545+
systemData: {
546+
serializedName: "systemData",
547+
type: {
548+
name: "Composite",
549+
className: "SystemData"
550+
}
551+
}
552+
}
553+
}
554+
};
555+
556+
export const SystemData: coreClient.CompositeMapper = {
557+
type: {
558+
name: "Composite",
559+
className: "SystemData",
560+
modelProperties: {
561+
createdBy: {
562+
serializedName: "createdBy",
563+
type: {
564+
name: "String"
565+
}
566+
},
567+
createdByType: {
568+
serializedName: "createdByType",
569+
type: {
570+
name: "String"
571+
}
572+
},
573+
createdAt: {
574+
serializedName: "createdAt",
575+
type: {
576+
name: "DateTime"
577+
}
578+
},
579+
lastModifiedBy: {
580+
serializedName: "lastModifiedBy",
581+
type: {
582+
name: "String"
583+
}
584+
},
585+
lastModifiedByType: {
586+
serializedName: "lastModifiedByType",
587+
type: {
588+
name: "String"
589+
}
590+
},
591+
lastModifiedAt: {
592+
serializedName: "lastModifiedAt",
593+
type: {
594+
name: "DateTime"
595+
}
533596
}
534597
}
535598
}
@@ -2505,6 +2568,7 @@ export const ServerEndpointCreateParameters: coreClient.CompositeMapper = {
25052568
}
25062569
},
25072570
tierFilesOlderThanDays: {
2571+
defaultValue: 0,
25082572
constraints: {
25092573
InclusiveMaximum: 2147483647,
25102574
InclusiveMinimum: 0

0 commit comments

Comments
 (0)