Skip to content

Commit

Permalink
CodeGen from PR 17796 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Add x-ms-identifiers to storagesync/resource-manager. (Azure#17796)

Co-authored-by: Steven Vukelich <[email protected]>
  • Loading branch information
SDKAuto and vukelich committed Feb 24, 2022
1 parent d70157c commit a817b65
Show file tree
Hide file tree
Showing 9 changed files with 206 additions and 37 deletions.
16 changes: 16 additions & 0 deletions sdk/storagesync/arm-storagesync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions sdk/storagesync/arm-storagesync/_meta.json
Original file line number Diff line number Diff line change
@@ -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/[email protected].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/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].20220114.1"
"use": "@autorest/[email protected].20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/storagesync/arm-storagesync/api-extractor.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
33 changes: 16 additions & 17 deletions sdk/storagesync/arm-storagesync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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
}
29 changes: 28 additions & 1 deletion sdk/storagesync/arm-storagesync/review/arm-storagesync.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ export interface CloudTieringVolumeFreeSpacePolicyStatus {
readonly lastUpdatedTimestamp?: Date;
}

// @public
export type CreatedByType = string;

// @public
export type FeatureStatus = string;

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -628,6 +643,7 @@ export interface OperationResourceMetricSpecification {
displayName?: string;
fillGapWithZero?: boolean;
name?: string;
supportedAggregationTypes?: string[];
unit?: string;
}

Expand Down Expand Up @@ -998,6 +1014,7 @@ export type RegisteredServersTriggerRolloverResponse = RegisteredServersTriggerR
export interface Resource {
readonly id?: string;
readonly name?: string;
readonly systemData?: SystemData;
readonly type?: string;
}

Expand Down Expand Up @@ -1267,7 +1284,7 @@ export interface ServerEndpointUpdateParameters {
export interface StorageSyncApiError {
code?: string;
details?: StorageSyncErrorDetails;
innerError?: StorageSyncInnerErrorDetails;
innererror?: StorageSyncInnerErrorDetails;
message?: string;
target?: string;
}
Expand Down Expand Up @@ -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?: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
45 changes: 44 additions & 1 deletion sdk/storagesync/arm-storagesync/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -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",
Expand Down
68 changes: 66 additions & 2 deletions sdk/storagesync/arm-storagesync/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -277,8 +288,8 @@ export const StorageSyncApiError: coreClient.CompositeMapper = {
className: "StorageSyncErrorDetails"
}
},
innerError: {
serializedName: "innerError",
innererror: {
serializedName: "innererror",
type: {
name: "Composite",
className: "StorageSyncInnerErrorDetails"
Expand Down Expand Up @@ -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"
}
}
}
}
Expand Down Expand Up @@ -2505,6 +2568,7 @@ export const ServerEndpointCreateParameters: coreClient.CompositeMapper = {
}
},
tierFilesOlderThanDays: {
defaultValue: 0,
constraints: {
InclusiveMaximum: 2147483647,
InclusiveMinimum: 0
Expand Down
Loading

0 comments on commit a817b65

Please sign in to comment.