From 829a26eafd9715f14f1501d9c72ea813e6815194 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Nov 2020 04:14:50 +0000 Subject: [PATCH] CodeGen from PR 11793 in Azure/azure-rest-api-specs Merge 8f6dcce300a0e071507028daa1d9df971225935c into d4d7ea6c660f853323ce6dc0ab9f3c239767169c --- sdk/storagesync/arm-storagesync/README.md | 9 +- .../arm-storagesync/rollup.config.js | 4 +- .../src/models/cloudEndpointsMappers.ts | 16 +- .../arm-storagesync/src/models/index.ts | 989 +++++++++++++-- .../arm-storagesync/src/models/mappers.ts | 1126 ++++++++++++++++- .../operationStatusOperationsMappers.ts | 7 +- .../src/models/operationsMappers.ts | 11 +- .../arm-storagesync/src/models/parameters.ts | 15 +- .../privateEndpointConnectionsMappers.ts | 51 + .../src/models/privateLinkResourcesMappers.ts | 45 + .../src/models/registeredServersMappers.ts | 16 +- .../src/models/serverEndpointsMappers.ts | 16 +- .../src/models/storageSyncServicesMappers.ts | 17 +- .../src/models/syncGroupsMappers.ts | 16 +- .../src/models/workflowsMappers.ts | 16 +- .../src/operations/cloudEndpoints.ts | 35 +- .../arm-storagesync/src/operations/index.ts | 7 +- .../operations/operationStatusOperations.ts | 8 +- .../src/operations/operations.ts | 14 +- .../operations/privateEndpointConnections.ts | 307 +++++ .../src/operations/privateLinkResources.ts | 89 ++ .../src/operations/registeredServers.ts | 20 +- .../src/operations/serverEndpoints.ts | 23 +- .../src/operations/storageSyncServices.ts | 267 ++-- .../src/operations/syncGroups.ts | 17 +- .../src/operations/workflows.ts | 14 +- .../src/storageSyncManagementClient.ts | 9 +- .../src/storageSyncManagementClientContext.ts | 7 +- 28 files changed, 2797 insertions(+), 374 deletions(-) create mode 100644 sdk/storagesync/arm-storagesync/src/models/privateEndpointConnectionsMappers.ts create mode 100644 sdk/storagesync/arm-storagesync/src/models/privateLinkResourcesMappers.ts create mode 100644 sdk/storagesync/arm-storagesync/src/operations/privateEndpointConnections.ts create mode 100644 sdk/storagesync/arm-storagesync/src/operations/privateLinkResources.ts diff --git a/sdk/storagesync/arm-storagesync/README.md b/sdk/storagesync/arm-storagesync/README.md index 09b380bd29de..657e0fe49e98 100644 --- a/sdk/storagesync/arm-storagesync/README.md +++ b/sdk/storagesync/arm-storagesync/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-storagesync ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +#### nodejs - client creation and list operations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { StorageSyncManagementClient, StorageSyncManagementModels, StorageSyncManagementMappers } from "@azure/arm-storagesync"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { StorageSyncManagementClient } = require("@azure/arm-storagesync"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/storagesync/arm-storagesync/rollup.config.js b/sdk/storagesync/arm-storagesync/rollup.config.js index 11130dc93fb6..7075a17b2c10 100644 --- a/sdk/storagesync/arm-storagesync/rollup.config.js +++ b/sdk/storagesync/arm-storagesync/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts index aad2b506cb6f..ef30c7f0cdc1 100644 --- a/sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -23,15 +23,26 @@ export { CloudEndpointsPreRestoreHeaders, CloudEndpointsRestoreheartbeatHeaders, CloudEndpointsTriggerChangeDetectionHeaders, + CloudTieringCachePerformance, + CloudTieringDatePolicyStatus, + CloudTieringFilesNotTiering, + CloudTieringSpaceSavings, + CloudTieringVolumeFreeSpacePolicyStatus, + FilesNotTieringError, PostBackupResponse, PostRestoreRequest, PreRestoreRequest, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, RegisteredServer, RegisteredServerCreateParameters, Resource, RestoreFileSpec, ServerEndpoint, + ServerEndpointBackgroundDataDownloadActivity, ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, ServerEndpointFilesNotSyncingError, @@ -43,6 +54,7 @@ export { StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, + StorageSyncInnerErrorDetails, StorageSyncService, SyncGroup, SyncGroupCreateParameters, diff --git a/sdk/storagesync/arm-storagesync/src/models/index.ts b/sdk/storagesync/arm-storagesync/src/models/index.ts index b58aba1f343e..3a975a2938d2 100644 --- a/sdk/storagesync/arm-storagesync/src/models/index.ts +++ b/sdk/storagesync/arm-storagesync/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -27,6 +27,48 @@ export interface StorageSyncErrorDetails { * Target of the given entry. */ target?: string; + /** + * Request URI of the given entry. + */ + requestUri?: string; + /** + * Exception type of the given entry. + */ + exceptionType?: string; + /** + * HTTP method of the given entry. + */ + httpMethod?: string; + /** + * Hashed message of the given entry. + */ + hashedMessage?: string; + /** + * HTTP error code of the given entry. + */ + httpErrorCode?: string; +} + +/** + * Error Details object. + */ +export interface StorageSyncInnerErrorDetails { + /** + * Call stack of the error. + */ + callStack?: string; + /** + * Error message of the error. + */ + message?: string; + /** + * Exception of the inner error. + */ + innerException?: string; + /** + * Call stack of the inner error. + */ + innerExceptionCallStack?: string; } /** @@ -49,6 +91,10 @@ export interface StorageSyncApiError { * Error details of the given entry. */ details?: StorageSyncErrorDetails; + /** + * Inner error details of the given entry. + */ + innerError?: StorageSyncInnerErrorDetails; } /** @@ -86,11 +132,43 @@ export interface SubscriptionState { } /** - * An interface representing Resource. + * The Private Endpoint resource. + */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; +} + +/** + * A collection of information about the state of the connection between service consumer and + * provider. + */ +export interface PrivateLinkServiceConnectionState { + /** + * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the + * service. Possible values include: 'Pending', 'Approved', 'Rejected' + */ + status?: PrivateEndpointServiceConnectionStatus; + /** + * The reason for approval/rejection of the connection. + */ + description?: string; + /** + * A message indicating if changes on the service provider require any updates on the consumer. + */ + actionsRequired?: string; +} + +/** + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource */ export interface Resource extends BaseResource { /** - * Fully qualified resource Id for the resource. Ex - + * Fully qualified resource ID for the resource. Ex - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ @@ -101,15 +179,37 @@ export interface Resource extends BaseResource { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * The resource model definition for a ARM tracked top level resource + * The Private Endpoint Connection resource. + */ +export interface PrivateEndpointConnection extends Resource { + /** + * The resource of private end point. + */ + privateEndpoint?: PrivateEndpoint; + /** + * A collection of information about the state of the connection between service consumer and + * provider. + */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + /** + * The provisioning state of the private endpoint connection resource. Possible values include: + * 'Succeeded', 'Creating', 'Deleting', 'Failed' + */ + provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +/** + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource */ export interface TrackedResource extends Resource { /** @@ -126,6 +226,11 @@ export interface TrackedResource extends Resource { * Storage Sync Service object. */ export interface StorageSyncService extends TrackedResource { + /** + * Incoming Traffic Policy. Possible values include: 'AllowAllTraffic', + * 'AllowVirtualNetworksOnly' + */ + incomingTrafficPolicy?: IncomingTrafficPolicy; /** * Storage Sync service status. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -136,11 +241,32 @@ export interface StorageSyncService extends TrackedResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly storageSyncServiceUid?: string; + /** + * StorageSyncService Provisioning State + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * StorageSyncService lastWorkflowId + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastWorkflowId?: string; + /** + * Resource Last Operation Name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastOperationName?: string; + /** + * List of private endpoint connection associated with the specified storage sync service + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource */ export interface ProxyResource extends Resource { } @@ -256,7 +382,11 @@ export interface StorageSyncServiceCreateParameters { * and a value with a length no greater than 256 characters. */ tags?: { [propertyName: string]: string }; - properties?: any; + /** + * Incoming Traffic Policy. Possible values include: 'AllowAllTraffic', + * 'AllowVirtualNetworksOnly' + */ + incomingTrafficPolicy?: IncomingTrafficPolicy; } /** @@ -302,7 +432,7 @@ export interface ServerEndpointCreateParameters extends ProxyResource { /** * Cloud Tiering. Possible values include: 'on', 'off' */ - cloudTiering?: CloudTiering; + cloudTiering?: FeatureStatus; /** * Level of free space to be maintained by Cloud Tiering if it is enabled. */ @@ -322,11 +452,22 @@ export interface ServerEndpointCreateParameters extends ProxyResource { /** * Offline data transfer. Possible values include: 'on', 'off' */ - offlineDataTransfer?: OfflineDataTransfer; + offlineDataTransfer?: FeatureStatus; /** * Offline data transfer share name */ offlineDataTransferShareName?: string; + /** + * Policy for how namespace and files are recalled during FastDr. Possible values include: + * 'NamespaceOnly', 'NamespaceThenModifiedFiles', 'AvoidTieredFiles' + */ + initialDownloadPolicy?: InitialDownloadPolicy; + /** + * Policy for enabling follow-the-sun business models: link local cache to cloud behavior to + * pre-populate before local access. Possible values include: 'DownloadNewAndModifiedFiles', + * 'UpdateLocallyCachedFiles' + */ + localCacheMode?: LocalCacheMode; } /** @@ -388,7 +529,7 @@ export interface ServerEndpointUpdateParameters { /** * Cloud Tiering. Possible values include: 'on', 'off' */ - cloudTiering?: CloudTiering1; + cloudTiering?: FeatureStatus; /** * Level of free space to be maintained by Cloud Tiering if it is enabled. */ @@ -400,11 +541,17 @@ export interface ServerEndpointUpdateParameters { /** * Offline data transfer. Possible values include: 'on', 'off' */ - offlineDataTransfer?: OfflineDataTransfer1; + offlineDataTransfer?: FeatureStatus; /** * Offline data transfer share name */ offlineDataTransferShareName?: string; + /** + * Policy for enabling follow-the-sun business models: link local cache to cloud behavior to + * pre-populate before local access. Possible values include: 'DownloadNewAndModifiedFiles', + * 'UpdateLocallyCachedFiles' + */ + localCacheMode?: LocalCacheMode; } /** @@ -467,6 +614,12 @@ export interface ServerEndpointSyncSessionStatus { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly filesNotSyncingErrors?: ServerEndpointFilesNotSyncingError[]; + /** + * Sync mode. Possible values include: 'Regular', 'NamespaceDownload', 'InitialUpload', + * 'SnapshotUpload', 'InitialFullDownload' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastSyncMode?: ServerEndpointSyncMode; } /** @@ -503,6 +656,33 @@ export interface ServerEndpointSyncActivityStatus { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly totalBytes?: number; + /** + * Sync mode. Possible values include: 'Regular', 'NamespaceDownload', 'InitialUpload', + * 'SnapshotUpload', 'InitialFullDownload' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly syncMode?: ServerEndpointSyncMode; +} + +/** + * Background data download activity object + */ +export interface ServerEndpointBackgroundDataDownloadActivity { + /** + * Timestamp when properties were updated + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timestamp?: Date; + /** + * Progress percentage + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentProgress?: number; + /** + * Running count of bytes downloaded + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly downloadedBytes?: number; } /** @@ -510,28 +690,25 @@ export interface ServerEndpointSyncActivityStatus { */ export interface ServerEndpointSyncStatus { /** - * Download Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', - * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * Download Health Status. Possible values include: 'Unavailable', 'Healthy', 'Error' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly downloadHealth?: DownloadHealth; + readonly downloadHealth?: ServerEndpointHealthState; /** - * Upload Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', - * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * Upload Health Status. Possible values include: 'Unavailable', 'Healthy', 'Error' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly uploadHealth?: UploadHealth; + readonly uploadHealth?: ServerEndpointHealthState; /** - * Combined Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', - * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * Combined Health Status. Possible values include: 'Unavailable', 'Healthy', 'Error' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly combinedHealth?: CombinedHealth; + readonly combinedHealth?: ServerEndpointHealthState; /** * Sync activity. Possible values include: 'Upload', 'Download', 'UploadAndDownload' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly syncActivity?: SyncActivity; + readonly syncActivity?: ServerEndpointSyncActivityState; /** * Total count of persistent files not syncing (combined upload + download). * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -567,23 +744,170 @@ export interface ServerEndpointSyncStatus { * 'Complete' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly offlineDataTransferStatus?: OfflineDataTransferStatus; + readonly offlineDataTransferStatus?: ServerEndpointOfflineDataTransferState; + /** + * Background data download activity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backgroundDataDownloadActivity?: ServerEndpointBackgroundDataDownloadActivity; } /** * Server endpoint cloud tiering status object. */ -export interface ServerEndpointCloudTieringStatus { +export interface CloudTieringSpaceSavings { + /** + * Last updated timestamp + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdatedTimestamp?: Date; + /** + * Volume size + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly volumeSizeBytes?: number; + /** + * Total size of content in the azure file share + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalSizeCloudBytes?: number; + /** + * Cached content size on the server + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cachedSizeBytes?: number; + /** + * Percentage of cached size over total size + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly spaceSavingsPercent?: number; + /** + * Count of bytes saved on the server + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly spaceSavingsBytes?: number; +} + +/** + * Server endpoint cloud tiering status object. + */ +export interface CloudTieringCachePerformance { + /** + * Last updated timestamp + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdatedTimestamp?: Date; + /** + * Count of bytes that were served from the local server + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cacheHitBytes?: number; + /** + * Count of bytes that were served from the cloud + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cacheMissBytes?: number; + /** + * Percentage of total bytes (hit + miss) that were served from the local server + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cacheHitBytesPercent?: number; +} + +/** + * Files not tiering error object + */ +export interface FilesNotTieringError { + /** + * Error code (HResult) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errorCode?: number; + /** + * Count of files with this error + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fileCount?: number; +} + +/** + * Server endpoint cloud tiering status object. + */ +export interface CloudTieringFilesNotTiering { + /** + * Last updated timestamp + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdatedTimestamp?: Date; + /** + * Last cloud tiering result (HResult) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalFileCount?: number; + /** + * Array of tiering errors + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errors?: FilesNotTieringError[]; +} + +/** + * Status of the volume free space policy + */ +export interface CloudTieringVolumeFreeSpacePolicyStatus { + /** + * Last updated timestamp + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdatedTimestamp?: Date; /** - * Cloud tiering health state. Possible values include: 'Healthy', 'Error' + * In the case where multiple server endpoints are present in a volume, an effective free space + * policy is applied. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly health?: Health; + readonly effectiveVolumeFreeSpacePolicy?: number; + /** + * Current volume free space percentage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentVolumeFreeSpacePercent?: number; +} + +/** + * Status of the date policy + */ +export interface CloudTieringDatePolicyStatus { /** * Last updated timestamp * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastUpdatedTimestamp?: Date; + /** + * Most recent access time of tiered files + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tieredFilesMostRecentAccessTimestamp?: Date; +} + +/** + * Server endpoint cloud tiering status object. + */ +export interface ServerEndpointCloudTieringStatus { + /** + * Last updated timestamp + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdatedTimestamp?: Date; + /** + * Cloud tiering health state. Possible values include: 'Unavailable', 'Healthy', 'Error' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly health?: ServerEndpointHealthState; + /** + * The last updated timestamp of health state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly healthLastUpdatedTimestamp?: Date; /** * Last cloud tiering result (HResult) * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -594,6 +918,31 @@ export interface ServerEndpointCloudTieringStatus { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastSuccessTimestamp?: Date; + /** + * Information regarding how much local space cloud tiering is saving. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly spaceSavings?: CloudTieringSpaceSavings; + /** + * Information regarding how well the local cache on the server is performing. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cachePerformance?: CloudTieringCachePerformance; + /** + * Information regarding files that failed to be tiered + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly filesNotTiering?: CloudTieringFilesNotTiering; + /** + * Status of the volume free space policy + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly volumeFreeSpacePolicyStatus?: CloudTieringVolumeFreeSpacePolicyStatus; + /** + * Status of the date policy + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly datePolicyStatus?: CloudTieringDatePolicyStatus; } /** @@ -644,7 +993,7 @@ export interface ServerEndpoint extends ProxyResource { /** * Cloud Tiering. Possible values include: 'on', 'off' */ - cloudTiering?: CloudTiering2; + cloudTiering?: FeatureStatus; /** * Level of free space to be maintained by Cloud Tiering if it is enabled. */ @@ -684,7 +1033,7 @@ export interface ServerEndpoint extends ProxyResource { /** * Offline data transfer. Possible values include: 'on', 'off' */ - offlineDataTransfer?: OfflineDataTransfer2; + offlineDataTransfer?: FeatureStatus; /** * Offline data transfer storage account resource ID * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -709,6 +1058,22 @@ export interface ServerEndpoint extends ProxyResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly recallStatus?: ServerEndpointRecallStatus; + /** + * Policy for how namespace and files are recalled during FastDr. Possible values include: + * 'NamespaceOnly', 'NamespaceThenModifiedFiles', 'AvoidTieredFiles' + */ + initialDownloadPolicy?: InitialDownloadPolicy; + /** + * Policy for enabling follow-the-sun business models: link local cache to cloud behavior to + * pre-populate before local access. Possible values include: 'DownloadNewAndModifiedFiles', + * 'UpdateLocallyCachedFiles' + */ + localCacheMode?: LocalCacheMode; + /** + * Server name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serverName?: string; } /** @@ -723,22 +1088,36 @@ export interface RegisteredServer extends ProxyResource { * Registered Server Agent Version */ agentVersion?: string; + /** + * Registered Server Agent Version Status. Possible values include: 'Ok', 'NearExpiry', + * 'Expired', 'Blocked' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly agentVersionStatus?: RegisteredServerAgentVersionStatus; + /** + * Registered Server Agent Version Expiration Date + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly agentVersionExpirationDate?: Date; /** * Registered Server OS Version */ serverOSVersion?: string; /** * Registered Server Management Error Code + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - serverManagementErrorCode?: number; + readonly serverManagementErrorCode?: number; /** * Registered Server last heart beat + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastHeartBeat?: string; + readonly lastHeartBeat?: Date; /** * Registered Server Provisioning State + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - provisioningState?: string; + readonly provisioningState?: string; /** * Registered Server serverRole */ @@ -757,40 +1136,58 @@ export interface RegisteredServer extends ProxyResource { serverId?: string; /** * Registered Server storageSyncServiceUid + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageSyncServiceUid?: string; + readonly storageSyncServiceUid?: string; /** * Registered Server lastWorkflowId + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastWorkflowId?: string; + readonly lastWorkflowId?: string; /** * Resource Last Operation Name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastOperationName?: string; + readonly lastOperationName?: string; /** * Resource discoveryEndpointUri + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - discoveryEndpointUri?: string; + readonly discoveryEndpointUri?: string; /** * Resource Location + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourceLocation?: string; + readonly resourceLocation?: string; /** * Service Location + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - serviceLocation?: string; + readonly serviceLocation?: string; /** * Friendly Name */ friendlyName?: string; /** * Management Endpoint Uri + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly managementEndpointUri?: string; + /** + * Telemetry Endpoint Uri + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - managementEndpointUri?: string; + readonly monitoringEndpointUri?: string; /** * Monitoring Configuration + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - monitoringConfiguration?: string; + readonly monitoringConfiguration?: string; + /** + * Server name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serverName?: string; } /** @@ -813,25 +1210,45 @@ export interface ResourcesMoveInfo { export interface Workflow extends ProxyResource { /** * last step name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastStepName?: string; + readonly lastStepName?: string; /** * workflow status. Possible values include: 'active', 'expired', 'succeeded', 'aborted', * 'failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status?: Status; + readonly status?: WorkflowStatus; /** * operation direction. Possible values include: 'do', 'undo', 'cancel' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - operation?: Operation; + readonly operation?: OperationDirection; /** * workflow steps + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - steps?: string; + readonly steps?: string; /** * workflow last operation identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastOperationId?: string; + /** + * workflow command name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly commandName?: string; + /** + * workflow created timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdTimestamp?: Date; + /** + * workflow last status timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastOperationId?: string; + readonly lastStatusTimestamp?: Date; } /** @@ -856,6 +1273,78 @@ export interface OperationDisplayInfo { resource?: string; } +/** + * OperationResourceMetricSpecificationDimension object. + */ +export interface OperationResourceMetricSpecificationDimension { + /** + * Name of the dimension. + */ + name?: string; + /** + * Display name of the dimensions. + */ + displayName?: string; + /** + * Indicates metric should be exported for Shoebox. + */ + toBeExportedForShoebox?: boolean; +} + +/** + * Operation Display Resource object. + */ +export interface OperationResourceMetricSpecification { + /** + * Name of the metric. + */ + name?: string; + /** + * Display name for the metric. + */ + displayName?: string; + /** + * Display description for the metric. + */ + displayDescription?: string; + /** + * Unit for the metric. + */ + unit?: string; + /** + * Aggregation type for the metric. + */ + aggregationType?: string; + /** + * Fill gaps in the metric with zero. + */ + fillGapWithZero?: boolean; + /** + * Dimensions for the metric specification. + */ + dimensions?: OperationResourceMetricSpecificationDimension[]; +} + +/** + * Service specification. + */ +export interface OperationResourceServiceSpecification { + /** + * List of metric specifications. + */ + metricSpecifications?: OperationResourceMetricSpecification[]; +} + +/** + * Properties of the operations resource. + */ +export interface OperationProperties { + /** + * Service specification for the operations resource. + */ + serviceSpecification?: OperationResourceServiceSpecification; +} + /** * The operation supported by storage sync. */ @@ -872,6 +1361,10 @@ export interface OperationEntity { * The origin. */ origin?: string; + /** + * Properties of the operations resource. + */ + properties?: OperationProperties; } /** @@ -1053,9 +1546,10 @@ export interface StorageSyncServiceUpdateParameters { */ tags?: { [propertyName: string]: string }; /** - * The properties of the storage sync service. + * Incoming Traffic Policy. Possible values include: 'AllowAllTraffic', + * 'AllowVirtualNetworksOnly' */ - properties?: any; + incomingTrafficPolicy?: IncomingTrafficPolicy; } /** @@ -1083,27 +1577,68 @@ export interface OperationStatus { */ readonly endTime?: Date; /** - * Error details. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: StorageSyncApiError; +} + +/** + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource + */ +export interface AzureEntityResource extends Resource { + /** + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends Resource { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; + /** + * The private link resource Private link DNS zone name. + */ + requiredZoneNames?: string[]; +} + +/** + * A list of private link resources + */ +export interface PrivateLinkResourceListResult { + /** + * Array of private link resources */ - readonly error?: StorageSyncApiError; + value?: PrivateLinkResource[]; } /** - * The resource model definition for a Azure Resource Manager resource with an etag. + * Optional Parameters. */ -export interface AzureEntityResource extends Resource { +export interface StorageSyncServicesUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * Resource Etag. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage Sync Service resource. */ - readonly etag?: string; + parameters?: StorageSyncServiceUpdateParameters; } /** * Optional Parameters. */ -export interface StorageSyncServicesUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface StorageSyncServicesBeginUpdateOptionalParams extends msRest.RequestOptionsBase { /** * Storage Sync Service resource. */ @@ -1151,6 +1686,32 @@ export interface OperationsListHeaders { xMsCorrelationRequestId: string; } +/** + * Defines headers for Create operation. + */ +export interface StorageSyncServicesCreateHeaders { + /** + * Operation Status Location URI + */ + azureAsyncOperation: string; + /** + * Operation Status Location URI + */ + locationHeader: string; + /** + * Retry After + */ + retryAfter: string; + /** + * Request id + */ + xMsRequestId: string; + /** + * correlation request id + */ + xMsCorrelationRequestId: string; +} + /** * Defines headers for Get operation. */ @@ -1170,13 +1731,25 @@ export interface StorageSyncServicesGetHeaders { */ export interface StorageSyncServicesUpdateHeaders { /** - * request id. + * Request id */ xMsRequestId: string; /** - * correlation request id. + * correlation request id */ xMsCorrelationRequestId: string; + /** + * Operation Status Location URI + */ + azureAsyncOperation: string; + /** + * Operation Status Location URI + */ + locationHeader: string; + /** + * Retry After + */ + retryAfter: string; } /** @@ -1184,13 +1757,25 @@ export interface StorageSyncServicesUpdateHeaders { */ export interface StorageSyncServicesDeleteHeaders { /** - * request id. + * Request id */ xMsRequestId: string; /** - * correlation request id. + * correlation request id */ xMsCorrelationRequestId: string; + /** + * Operation Status Location URI + */ + azureAsyncOperation: string; + /** + * Operation Status Location URI + */ + location: string; + /** + * Retry After + */ + retryAfter: string; } /** @@ -1221,6 +1806,72 @@ export interface StorageSyncServicesListBySubscriptionHeaders { xMsCorrelationRequestId: string; } +/** + * Defines headers for Create operation. + */ +export interface PrivateEndpointConnectionsCreateHeaders { + /** + * Operation Status Location URI + */ + azureAsyncOperation: string; + /** + * Operation Status Location URI + */ + location: string; + /** + * Retry After + */ + retryAfter: string; + /** + * Request id + */ + xMsRequestId: string; + /** + * correlation request id + */ + xMsCorrelationRequestId: string; +} + +/** + * Defines headers for Delete operation. + */ +export interface PrivateEndpointConnectionsDeleteHeaders { + /** + * Operation Status Location URI + */ + azureAsyncOperation: string; + /** + * Operation Status Location URI + */ + location: string; + /** + * Retry After + */ + retryAfter: string; + /** + * Request id + */ + xMsRequestId: string; + /** + * correlation request id + */ + xMsCorrelationRequestId: string; +} + +/** + * Defines headers for ListByStorageSyncService operation. + */ +export interface PrivateEndpointConnectionsListByStorageSyncServiceHeaders { + /** + * request id. + */ + xMsRequestId: string; + /** + * correlation request id. + */ + xMsCorrelationRequestId: string; +} + /** * Defines headers for ListByStorageSyncService operation. */ @@ -1735,6 +2386,14 @@ export interface OperationEntityListResult extends Array { export interface StorageSyncServiceArray extends Array { } +/** + * @interface + * List of private endpoint connection associated with the specified storage account + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { +} + /** * @interface * Array of SyncGroup @@ -1784,135 +2443,133 @@ export interface WorkflowArray extends Array { export type Reason = 'Registered' | 'Unregistered' | 'Warned' | 'Suspended' | 'Deleted'; /** - * Defines values for ChangeDetectionMode. - * Possible values include: 'Default', 'Recursive' + * Defines values for IncomingTrafficPolicy. + * Possible values include: 'AllowAllTraffic', 'AllowVirtualNetworksOnly' * @readonly * @enum {string} */ -export type ChangeDetectionMode = 'Default' | 'Recursive'; +export type IncomingTrafficPolicy = 'AllowAllTraffic' | 'AllowVirtualNetworksOnly'; /** - * Defines values for NameAvailabilityReason. - * Possible values include: 'Invalid', 'AlreadyExists' + * Defines values for PrivateEndpointServiceConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected' * @readonly * @enum {string} */ -export type NameAvailabilityReason = 'Invalid' | 'AlreadyExists'; +export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected'; /** - * Defines values for CloudTiering. - * Possible values include: 'on', 'off' + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' * @readonly * @enum {string} */ -export type CloudTiering = 'on' | 'off'; +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; /** - * Defines values for OfflineDataTransfer. - * Possible values include: 'on', 'off' + * Defines values for ChangeDetectionMode. + * Possible values include: 'Default', 'Recursive' * @readonly * @enum {string} */ -export type OfflineDataTransfer = 'on' | 'off'; +export type ChangeDetectionMode = 'Default' | 'Recursive'; /** - * Defines values for CloudTiering1. + * Defines values for FeatureStatus. * Possible values include: 'on', 'off' * @readonly * @enum {string} */ -export type CloudTiering1 = 'on' | 'off'; +export type FeatureStatus = 'on' | 'off'; /** - * Defines values for OfflineDataTransfer1. - * Possible values include: 'on', 'off' + * Defines values for InitialDownloadPolicy. + * Possible values include: 'NamespaceOnly', 'NamespaceThenModifiedFiles', 'AvoidTieredFiles' * @readonly * @enum {string} */ -export type OfflineDataTransfer1 = 'on' | 'off'; +export type InitialDownloadPolicy = 'NamespaceOnly' | 'NamespaceThenModifiedFiles' | 'AvoidTieredFiles'; /** - * Defines values for DownloadHealth. - * Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', - * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * Defines values for LocalCacheMode. + * Possible values include: 'DownloadNewAndModifiedFiles', 'UpdateLocallyCachedFiles' * @readonly * @enum {string} */ -export type DownloadHealth = 'Healthy' | 'Error' | 'SyncBlockedForRestore' | 'SyncBlockedForChangeDetectionPostRestore' | 'NoActivity'; +export type LocalCacheMode = 'DownloadNewAndModifiedFiles' | 'UpdateLocallyCachedFiles'; /** - * Defines values for UploadHealth. - * Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', - * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * Defines values for ServerEndpointHealthState. + * Possible values include: 'Unavailable', 'Healthy', 'Error' * @readonly * @enum {string} */ -export type UploadHealth = 'Healthy' | 'Error' | 'SyncBlockedForRestore' | 'SyncBlockedForChangeDetectionPostRestore' | 'NoActivity'; +export type ServerEndpointHealthState = 'Unavailable' | 'Healthy' | 'Error'; /** - * Defines values for CombinedHealth. - * Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', - * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * Defines values for ServerEndpointSyncActivityState. + * Possible values include: 'Upload', 'Download', 'UploadAndDownload' * @readonly * @enum {string} */ -export type CombinedHealth = 'Healthy' | 'Error' | 'SyncBlockedForRestore' | 'SyncBlockedForChangeDetectionPostRestore' | 'NoActivity'; +export type ServerEndpointSyncActivityState = 'Upload' | 'Download' | 'UploadAndDownload'; /** - * Defines values for SyncActivity. - * Possible values include: 'Upload', 'Download', 'UploadAndDownload' + * Defines values for ServerEndpointSyncMode. + * Possible values include: 'Regular', 'NamespaceDownload', 'InitialUpload', 'SnapshotUpload', + * 'InitialFullDownload' * @readonly * @enum {string} */ -export type SyncActivity = 'Upload' | 'Download' | 'UploadAndDownload'; +export type ServerEndpointSyncMode = 'Regular' | 'NamespaceDownload' | 'InitialUpload' | 'SnapshotUpload' | 'InitialFullDownload'; /** - * Defines values for OfflineDataTransferStatus. + * Defines values for ServerEndpointOfflineDataTransferState. * Possible values include: 'InProgress', 'Stopping', 'NotRunning', 'Complete' * @readonly * @enum {string} */ -export type OfflineDataTransferStatus = 'InProgress' | 'Stopping' | 'NotRunning' | 'Complete'; +export type ServerEndpointOfflineDataTransferState = 'InProgress' | 'Stopping' | 'NotRunning' | 'Complete'; /** - * Defines values for Health. - * Possible values include: 'Healthy', 'Error' + * Defines values for RegisteredServerAgentVersionStatus. + * Possible values include: 'Ok', 'NearExpiry', 'Expired', 'Blocked' * @readonly * @enum {string} */ -export type Health = 'Healthy' | 'Error'; +export type RegisteredServerAgentVersionStatus = 'Ok' | 'NearExpiry' | 'Expired' | 'Blocked'; /** - * Defines values for CloudTiering2. - * Possible values include: 'on', 'off' + * Defines values for WorkflowStatus. + * Possible values include: 'active', 'expired', 'succeeded', 'aborted', 'failed' * @readonly * @enum {string} */ -export type CloudTiering2 = 'on' | 'off'; +export type WorkflowStatus = 'active' | 'expired' | 'succeeded' | 'aborted' | 'failed'; /** - * Defines values for OfflineDataTransfer2. - * Possible values include: 'on', 'off' + * Defines values for OperationDirection. + * Possible values include: 'do', 'undo', 'cancel' * @readonly * @enum {string} */ -export type OfflineDataTransfer2 = 'on' | 'off'; +export type OperationDirection = 'do' | 'undo' | 'cancel'; /** - * Defines values for Status. - * Possible values include: 'active', 'expired', 'succeeded', 'aborted', 'failed' + * Defines values for NameAvailabilityReason. + * Possible values include: 'Invalid', 'AlreadyExists' * @readonly * @enum {string} */ -export type Status = 'active' | 'expired' | 'succeeded' | 'aborted' | 'failed'; +export type NameAvailabilityReason = 'Invalid' | 'AlreadyExists'; /** - * Defines values for Operation. - * Possible values include: 'do', 'undo', 'cancel' + * Defines values for ProgressType. + * Possible values include: 'none', 'initialize', 'download', 'upload', 'recall' * @readonly * @enum {string} */ -export type Operation = 'do' | 'undo' | 'cancel'; +export type ProgressType = 'none' | 'initialize' | 'download' | 'upload' | 'recall'; /** * Contains response data for the list operation. @@ -1962,11 +2619,16 @@ export type StorageSyncServicesCheckNameAvailabilityResponse = CheckNameAvailabi /** * Contains response data for the create operation. */ -export type StorageSyncServicesCreateResponse = StorageSyncService & { +export type StorageSyncServicesCreateResponse = StorageSyncService & StorageSyncServicesCreateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: StorageSyncServicesCreateHeaders; + /** * The response body as text (string format) */ @@ -2094,6 +2756,111 @@ export type StorageSyncServicesListBySubscriptionResponse = StorageSyncServiceAr }; }; +/** + * Contains response data for the listByStorageSyncService operation. + */ +export type PrivateLinkResourcesListByStorageSyncServiceResponse = PrivateLinkResourceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResourceListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type PrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection & PrivateEndpointConnectionsCreateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PrivateEndpointConnectionsCreateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type PrivateEndpointConnectionsDeleteResponse = PrivateEndpointConnectionsDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PrivateEndpointConnectionsDeleteHeaders; + }; +}; + +/** + * Contains response data for the listByStorageSyncService operation. + */ +export type PrivateEndpointConnectionsListByStorageSyncServiceResponse = PrivateEndpointConnectionListResult & PrivateEndpointConnectionsListByStorageSyncServiceHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PrivateEndpointConnectionsListByStorageSyncServiceHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnectionListResult; + }; +}; + /** * Contains response data for the listByStorageSyncService operation. */ diff --git a/sdk/storagesync/arm-storagesync/src/models/mappers.ts b/sdk/storagesync/arm-storagesync/src/models/mappers.ts index 5a0f25e6e367..2821e35b5f1f 100644 --- a/sdk/storagesync/arm-storagesync/src/models/mappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -35,6 +35,70 @@ export const StorageSyncErrorDetails: msRest.CompositeMapper = { type: { name: "String" } + }, + requestUri: { + serializedName: "requestUri", + type: { + name: "String" + } + }, + exceptionType: { + serializedName: "exceptionType", + type: { + name: "String" + } + }, + httpMethod: { + serializedName: "httpMethod", + type: { + name: "String" + } + }, + hashedMessage: { + serializedName: "hashedMessage", + type: { + name: "String" + } + }, + httpErrorCode: { + serializedName: "httpErrorCode", + type: { + name: "String" + } + } + } + } +}; + +export const StorageSyncInnerErrorDetails: msRest.CompositeMapper = { + serializedName: "StorageSyncInnerErrorDetails", + type: { + name: "Composite", + className: "StorageSyncInnerErrorDetails", + modelProperties: { + callStack: { + serializedName: "callStack", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + innerException: { + serializedName: "innerException", + type: { + name: "String" + } + }, + innerExceptionCallStack: { + serializedName: "innerExceptionCallStack", + type: { + name: "String" + } } } } @@ -70,6 +134,13 @@ export const StorageSyncApiError: msRest.CompositeMapper = { name: "Composite", className: "StorageSyncErrorDetails" } + }, + innerError: { + serializedName: "innerError", + type: { + name: "Composite", + className: "StorageSyncInnerErrorDetails" + } } } } @@ -128,6 +199,51 @@ export const SubscriptionState: msRest.CompositeMapper = { } }; +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + export const Resource: msRest.CompositeMapper = { serializedName: "Resource", type: { @@ -159,6 +275,38 @@ export const Resource: msRest.CompositeMapper = { } }; +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + required: true, + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + export const TrackedResource: msRest.CompositeMapper = { serializedName: "TrackedResource", type: { @@ -195,6 +343,12 @@ export const StorageSyncService: msRest.CompositeMapper = { className: "StorageSyncService", modelProperties: { ...TrackedResource.type.modelProperties, + incomingTrafficPolicy: { + serializedName: "properties.incomingTrafficPolicy", + type: { + name: "String" + } + }, storageSyncServiceStatus: { readOnly: true, serializedName: "properties.storageSyncServiceStatus", @@ -208,6 +362,40 @@ export const StorageSyncService: msRest.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + lastWorkflowId: { + readOnly: true, + serializedName: "properties.lastWorkflowId", + type: { + name: "String" + } + }, + lastOperationName: { + readOnly: true, + serializedName: "properties.lastOperationName", + type: { + name: "String" + } + }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } } } } @@ -394,10 +582,10 @@ export const StorageSyncServiceCreateParameters: msRest.CompositeMapper = { } } }, - properties: { - serializedName: "properties", + incomingTrafficPolicy: { + serializedName: "properties.incomingTrafficPolicy", type: { - name: "Object" + name: "String" } } } @@ -518,6 +706,18 @@ export const ServerEndpointCreateParameters: msRest.CompositeMapper = { type: { name: "String" } + }, + initialDownloadPolicy: { + serializedName: "properties.initialDownloadPolicy", + type: { + name: "String" + } + }, + localCacheMode: { + serializedName: "properties.localCacheMode", + type: { + name: "String" + } } } } @@ -647,6 +847,12 @@ export const ServerEndpointUpdateParameters: msRest.CompositeMapper = { type: { name: "String" } + }, + localCacheMode: { + serializedName: "properties.localCacheMode", + type: { + name: "String" + } } } } @@ -758,6 +964,13 @@ export const ServerEndpointSyncSessionStatus: msRest.CompositeMapper = { } } } + }, + lastSyncMode: { + readOnly: true, + serializedName: "lastSyncMode", + type: { + name: "String" + } } } } @@ -825,6 +1038,51 @@ export const ServerEndpointSyncActivityStatus: msRest.CompositeMapper = { type: { name: "Number" } + }, + syncMode: { + readOnly: true, + serializedName: "syncMode", + type: { + name: "String" + } + } + } + } +}; + +export const ServerEndpointBackgroundDataDownloadActivity: msRest.CompositeMapper = { + serializedName: "ServerEndpointBackgroundDataDownloadActivity", + type: { + name: "Composite", + className: "ServerEndpointBackgroundDataDownloadActivity", + modelProperties: { + timestamp: { + readOnly: true, + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + percentProgress: { + readOnly: true, + serializedName: "percentProgress", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + downloadedBytes: { + readOnly: true, + serializedName: "downloadedBytes", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } } } } @@ -919,65 +1177,76 @@ export const ServerEndpointSyncStatus: msRest.CompositeMapper = { type: { name: "String" } + }, + backgroundDataDownloadActivity: { + readOnly: true, + serializedName: "backgroundDataDownloadActivity", + type: { + name: "Composite", + className: "ServerEndpointBackgroundDataDownloadActivity" + } } } } }; -export const ServerEndpointCloudTieringStatus: msRest.CompositeMapper = { - serializedName: "ServerEndpointCloudTieringStatus", +export const CloudTieringSpaceSavings: msRest.CompositeMapper = { + serializedName: "CloudTieringSpaceSavings", type: { name: "Composite", - className: "ServerEndpointCloudTieringStatus", + className: "CloudTieringSpaceSavings", modelProperties: { - health: { + lastUpdatedTimestamp: { readOnly: true, - serializedName: "health", + serializedName: "lastUpdatedTimestamp", type: { - name: "String" + name: "DateTime" } }, - lastUpdatedTimestamp: { + volumeSizeBytes: { readOnly: true, - serializedName: "lastUpdatedTimestamp", + serializedName: "volumeSizeBytes", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "DateTime" + name: "Number" } }, - lastCloudTieringResult: { + totalSizeCloudBytes: { readOnly: true, - serializedName: "lastCloudTieringResult", + serializedName: "totalSizeCloudBytes", + constraints: { + InclusiveMinimum: 0 + }, type: { name: "Number" } }, - lastSuccessTimestamp: { + cachedSizeBytes: { readOnly: true, - serializedName: "lastSuccessTimestamp", + serializedName: "cachedSizeBytes", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "DateTime" + name: "Number" } - } - } - } -}; - -export const ServerEndpointRecallError: msRest.CompositeMapper = { - serializedName: "ServerEndpointRecallError", - type: { - name: "Composite", - className: "ServerEndpointRecallError", - modelProperties: { - errorCode: { + }, + spaceSavingsPercent: { readOnly: true, - serializedName: "errorCode", + serializedName: "spaceSavingsPercent", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, type: { name: "Number" } }, - count: { + spaceSavingsBytes: { readOnly: true, - serializedName: "count", + serializedName: "spaceSavingsBytes", constraints: { InclusiveMinimum: 0 }, @@ -989,8 +1258,298 @@ export const ServerEndpointRecallError: msRest.CompositeMapper = { } }; -export const ServerEndpointRecallStatus: msRest.CompositeMapper = { - serializedName: "ServerEndpointRecallStatus", +export const CloudTieringCachePerformance: msRest.CompositeMapper = { + serializedName: "CloudTieringCachePerformance", + type: { + name: "Composite", + className: "CloudTieringCachePerformance", + modelProperties: { + lastUpdatedTimestamp: { + readOnly: true, + serializedName: "lastUpdatedTimestamp", + type: { + name: "DateTime" + } + }, + cacheHitBytes: { + readOnly: true, + serializedName: "cacheHitBytes", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + cacheMissBytes: { + readOnly: true, + serializedName: "cacheMissBytes", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + cacheHitBytesPercent: { + readOnly: true, + serializedName: "cacheHitBytesPercent", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const FilesNotTieringError: msRest.CompositeMapper = { + serializedName: "FilesNotTieringError", + type: { + name: "Composite", + className: "FilesNotTieringError", + modelProperties: { + errorCode: { + readOnly: true, + serializedName: "errorCode", + type: { + name: "Number" + } + }, + fileCount: { + readOnly: true, + serializedName: "fileCount", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const CloudTieringFilesNotTiering: msRest.CompositeMapper = { + serializedName: "CloudTieringFilesNotTiering", + type: { + name: "Composite", + className: "CloudTieringFilesNotTiering", + modelProperties: { + lastUpdatedTimestamp: { + readOnly: true, + serializedName: "lastUpdatedTimestamp", + type: { + name: "DateTime" + } + }, + totalFileCount: { + readOnly: true, + serializedName: "totalFileCount", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + errors: { + readOnly: true, + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FilesNotTieringError" + } + } + } + } + } + } +}; + +export const CloudTieringVolumeFreeSpacePolicyStatus: msRest.CompositeMapper = { + serializedName: "CloudTieringVolumeFreeSpacePolicyStatus", + type: { + name: "Composite", + className: "CloudTieringVolumeFreeSpacePolicyStatus", + modelProperties: { + lastUpdatedTimestamp: { + readOnly: true, + serializedName: "lastUpdatedTimestamp", + type: { + name: "DateTime" + } + }, + effectiveVolumeFreeSpacePolicy: { + readOnly: true, + serializedName: "effectiveVolumeFreeSpacePolicy", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + currentVolumeFreeSpacePercent: { + readOnly: true, + serializedName: "currentVolumeFreeSpacePercent", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const CloudTieringDatePolicyStatus: msRest.CompositeMapper = { + serializedName: "CloudTieringDatePolicyStatus", + type: { + name: "Composite", + className: "CloudTieringDatePolicyStatus", + modelProperties: { + lastUpdatedTimestamp: { + readOnly: true, + serializedName: "lastUpdatedTimestamp", + type: { + name: "DateTime" + } + }, + tieredFilesMostRecentAccessTimestamp: { + readOnly: true, + serializedName: "tieredFilesMostRecentAccessTimestamp", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ServerEndpointCloudTieringStatus: msRest.CompositeMapper = { + serializedName: "ServerEndpointCloudTieringStatus", + type: { + name: "Composite", + className: "ServerEndpointCloudTieringStatus", + modelProperties: { + lastUpdatedTimestamp: { + readOnly: true, + serializedName: "lastUpdatedTimestamp", + type: { + name: "DateTime" + } + }, + health: { + readOnly: true, + serializedName: "health", + type: { + name: "String" + } + }, + healthLastUpdatedTimestamp: { + readOnly: true, + serializedName: "healthLastUpdatedTimestamp", + type: { + name: "DateTime" + } + }, + lastCloudTieringResult: { + readOnly: true, + serializedName: "lastCloudTieringResult", + type: { + name: "Number" + } + }, + lastSuccessTimestamp: { + readOnly: true, + serializedName: "lastSuccessTimestamp", + type: { + name: "DateTime" + } + }, + spaceSavings: { + readOnly: true, + serializedName: "spaceSavings", + type: { + name: "Composite", + className: "CloudTieringSpaceSavings" + } + }, + cachePerformance: { + readOnly: true, + serializedName: "cachePerformance", + type: { + name: "Composite", + className: "CloudTieringCachePerformance" + } + }, + filesNotTiering: { + readOnly: true, + serializedName: "filesNotTiering", + type: { + name: "Composite", + className: "CloudTieringFilesNotTiering" + } + }, + volumeFreeSpacePolicyStatus: { + readOnly: true, + serializedName: "volumeFreeSpacePolicyStatus", + type: { + name: "Composite", + className: "CloudTieringVolumeFreeSpacePolicyStatus" + } + }, + datePolicyStatus: { + readOnly: true, + serializedName: "datePolicyStatus", + type: { + name: "Composite", + className: "CloudTieringDatePolicyStatus" + } + } + } + } +}; + +export const ServerEndpointRecallError: msRest.CompositeMapper = { + serializedName: "ServerEndpointRecallError", + type: { + name: "Composite", + className: "ServerEndpointRecallError", + modelProperties: { + errorCode: { + readOnly: true, + serializedName: "errorCode", + type: { + name: "Number" + } + }, + count: { + readOnly: true, + serializedName: "count", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const ServerEndpointRecallStatus: msRest.CompositeMapper = { + serializedName: "ServerEndpointRecallStatus", type: { name: "Composite", className: "ServerEndpointRecallStatus", @@ -1150,6 +1709,25 @@ export const ServerEndpoint: msRest.CompositeMapper = { name: "Composite", className: "ServerEndpointRecallStatus" } + }, + initialDownloadPolicy: { + serializedName: "properties.initialDownloadPolicy", + type: { + name: "String" + } + }, + localCacheMode: { + serializedName: "properties.localCacheMode", + type: { + name: "String" + } + }, + serverName: { + readOnly: true, + serializedName: "properties.serverName", + type: { + name: "String" + } } } } @@ -1174,6 +1752,20 @@ export const RegisteredServer: msRest.CompositeMapper = { name: "String" } }, + agentVersionStatus: { + readOnly: true, + serializedName: "properties.agentVersionStatus", + type: { + name: "String" + } + }, + agentVersionExpirationDate: { + readOnly: true, + serializedName: "properties.agentVersionExpirationDate", + type: { + name: "DateTime" + } + }, serverOSVersion: { serializedName: "properties.serverOSVersion", type: { @@ -1181,18 +1773,21 @@ export const RegisteredServer: msRest.CompositeMapper = { } }, serverManagementErrorCode: { + readOnly: true, serializedName: "properties.serverManagementErrorCode", type: { name: "Number" } }, lastHeartBeat: { + readOnly: true, serializedName: "properties.lastHeartBeat", type: { - name: "String" + name: "DateTime" } }, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" @@ -1223,36 +1818,42 @@ export const RegisteredServer: msRest.CompositeMapper = { } }, storageSyncServiceUid: { + readOnly: true, serializedName: "properties.storageSyncServiceUid", type: { name: "String" } }, lastWorkflowId: { + readOnly: true, serializedName: "properties.lastWorkflowId", type: { name: "String" } }, lastOperationName: { + readOnly: true, serializedName: "properties.lastOperationName", type: { name: "String" } }, discoveryEndpointUri: { + readOnly: true, serializedName: "properties.discoveryEndpointUri", type: { name: "String" } }, resourceLocation: { + readOnly: true, serializedName: "properties.resourceLocation", type: { name: "String" } }, serviceLocation: { + readOnly: true, serializedName: "properties.serviceLocation", type: { name: "String" @@ -1265,16 +1866,32 @@ export const RegisteredServer: msRest.CompositeMapper = { } }, managementEndpointUri: { + readOnly: true, serializedName: "properties.managementEndpointUri", type: { name: "String" } }, + monitoringEndpointUri: { + readOnly: true, + serializedName: "properties.monitoringEndpointUri", + type: { + name: "String" + } + }, monitoringConfiguration: { + readOnly: true, serializedName: "properties.monitoringConfiguration", type: { name: "String" } + }, + serverName: { + readOnly: true, + serializedName: "properties.serverName", + type: { + name: "String" + } } } } @@ -1315,34 +1932,60 @@ export const Workflow: msRest.CompositeMapper = { modelProperties: { ...ProxyResource.type.modelProperties, lastStepName: { + readOnly: true, serializedName: "properties.lastStepName", type: { name: "String" } }, status: { + readOnly: true, serializedName: "properties.status", type: { name: "String" } }, operation: { + readOnly: true, serializedName: "properties.operation", type: { name: "String" } }, steps: { + readOnly: true, serializedName: "properties.steps", type: { name: "String" } }, lastOperationId: { + readOnly: true, serializedName: "properties.lastOperationId", type: { name: "String" } + }, + commandName: { + readOnly: true, + serializedName: "properties.commandName", + type: { + name: "String" + } + }, + createdTimestamp: { + readOnly: true, + serializedName: "properties.createdTimestamp", + type: { + name: "DateTime" + } + }, + lastStatusTimestamp: { + readOnly: true, + serializedName: "properties.lastStatusTimestamp", + type: { + name: "DateTime" + } } } } @@ -1371,11 +2014,136 @@ export const OperationDisplayInfo: msRest.CompositeMapper = { type: { name: "String" } - }, - resource: { - serializedName: "resource", + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + } + } + } +}; + +export const OperationResourceMetricSpecificationDimension: msRest.CompositeMapper = { + serializedName: "OperationResourceMetricSpecificationDimension", + type: { + name: "Composite", + className: "OperationResourceMetricSpecificationDimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean" + } + } + } + } +}; + +export const OperationResourceMetricSpecification: msRest.CompositeMapper = { + serializedName: "OperationResourceMetricSpecification", + type: { + name: "Composite", + className: "OperationResourceMetricSpecification", + 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" + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationResourceMetricSpecificationDimension" + } + } + } + } + } + } +}; + +export const OperationResourceServiceSpecification: msRest.CompositeMapper = { + serializedName: "OperationResourceServiceSpecification", + type: { + name: "Composite", + className: "OperationResourceServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationResourceMetricSpecification" + } + } + } + } + } + } +}; + +export const OperationProperties: msRest.CompositeMapper = { + serializedName: "OperationProperties", + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", type: { - name: "String" + name: "Composite", + className: "OperationResourceServiceSpecification" } } } @@ -1406,6 +2174,13 @@ export const OperationEntity: msRest.CompositeMapper = { type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties" + } } } } @@ -1712,10 +2487,10 @@ export const StorageSyncServiceUpdateParameters: msRest.CompositeMapper = { } } }, - properties: { - serializedName: "properties", + incomingTrafficPolicy: { + serializedName: "properties.incomingTrafficPolicy", type: { - name: "Object" + name: "String" } } } @@ -1786,6 +2561,69 @@ export const AzureEntityResource: msRest.CompositeMapper = { } }; +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + groupId: { + readOnly: true, + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requiredMembers: { + readOnly: true, + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + } + } + } +}; + export const OperationsListHeaders: msRest.CompositeMapper = { serializedName: "operations-list-headers", type: { @@ -1808,6 +2646,46 @@ export const OperationsListHeaders: msRest.CompositeMapper = { } }; +export const StorageSyncServicesCreateHeaders: msRest.CompositeMapper = { + serializedName: "storagesyncservices-create-headers", + type: { + name: "Composite", + className: "StorageSyncServicesCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + }, + locationHeader: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String" + } + }, + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + xMsCorrelationRequestId: { + serializedName: "x-ms-correlation-request-id", + type: { + name: "String" + } + } + } + } +}; + export const StorageSyncServicesGetHeaders: msRest.CompositeMapper = { serializedName: "storagesyncservices-get-headers", type: { @@ -1847,6 +2725,24 @@ export const StorageSyncServicesUpdateHeaders: msRest.CompositeMapper = { type: { name: "String" } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + }, + locationHeader: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String" + } } } } @@ -1869,6 +2765,24 @@ export const StorageSyncServicesDeleteHeaders: msRest.CompositeMapper = { type: { name: "String" } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String" + } } } } @@ -1918,6 +2832,108 @@ export const StorageSyncServicesListBySubscriptionHeaders: msRest.CompositeMappe } }; +export const PrivateEndpointConnectionsCreateHeaders: msRest.CompositeMapper = { + serializedName: "privateendpointconnections-create-headers", + type: { + name: "Composite", + className: "PrivateEndpointConnectionsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String" + } + }, + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + xMsCorrelationRequestId: { + serializedName: "x-ms-correlation-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "privateendpointconnections-delete-headers", + type: { + name: "Composite", + className: "PrivateEndpointConnectionsDeleteHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String" + } + }, + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + xMsCorrelationRequestId: { + serializedName: "x-ms-correlation-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionsListByStorageSyncServiceHeaders: msRest.CompositeMapper = { + serializedName: "privateendpointconnections-listbystoragesyncservice-headers", + type: { + name: "Composite", + className: "PrivateEndpointConnectionsListByStorageSyncServiceHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + xMsCorrelationRequestId: { + serializedName: "x-ms-correlation-request-id", + type: { + name: "String" + } + } + } + } +}; + export const SyncGroupsListByStorageSyncServiceHeaders: msRest.CompositeMapper = { serializedName: "syncgroups-listbystoragesyncservice-headers", type: { @@ -2738,6 +3754,28 @@ export const StorageSyncServiceArray: msRest.CompositeMapper = { } }; +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + } + } + } +}; + export const SyncGroupArray: msRest.CompositeMapper = { serializedName: "SyncGroupArray", type: { diff --git a/sdk/storagesync/arm-storagesync/src/models/operationStatusOperationsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/operationStatusOperationsMappers.ts index 4de39529d32b..81469b8e3e2b 100644 --- a/sdk/storagesync/arm-storagesync/src/models/operationStatusOperationsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/operationStatusOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -11,5 +11,6 @@ export { OperationStatusGetHeaders, StorageSyncApiError, StorageSyncError, - StorageSyncErrorDetails + StorageSyncErrorDetails, + StorageSyncInnerErrorDetails } from "../models/mappers"; diff --git a/sdk/storagesync/arm-storagesync/src/models/operationsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/operationsMappers.ts index 0300c447523d..2db661d1b74a 100644 --- a/sdk/storagesync/arm-storagesync/src/models/operationsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -10,8 +10,13 @@ export { OperationDisplayInfo, OperationEntity, OperationEntityListResult, + OperationProperties, + OperationResourceMetricSpecification, + OperationResourceMetricSpecificationDimension, + OperationResourceServiceSpecification, OperationsListHeaders, StorageSyncApiError, StorageSyncError, - StorageSyncErrorDetails + StorageSyncErrorDetails, + StorageSyncInnerErrorDetails } from "../models/mappers"; diff --git a/sdk/storagesync/arm-storagesync/src/models/parameters.ts b/sdk/storagesync/arm-storagesync/src/models/parameters.ts index 4f73078d7bbc..b9a644fc7de2 100644 --- a/sdk/storagesync/arm-storagesync/src/models/parameters.ts +++ b/sdk/storagesync/arm-storagesync/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -74,6 +73,16 @@ export const operationId: msRest.OperationURLParameter = { } } }; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { diff --git a/sdk/storagesync/arm-storagesync/src/models/privateEndpointConnectionsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..87b16b7804ab --- /dev/null +++ b/sdk/storagesync/arm-storagesync/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,51 @@ +/* + * 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. + */ + +export { + AzureEntityResource, + BaseResource, + CloudEndpoint, + CloudEndpointCreateParameters, + CloudTieringCachePerformance, + CloudTieringDatePolicyStatus, + CloudTieringFilesNotTiering, + CloudTieringSpaceSavings, + CloudTieringVolumeFreeSpacePolicyStatus, + FilesNotTieringError, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionListResult, + PrivateEndpointConnectionsCreateHeaders, + PrivateEndpointConnectionsDeleteHeaders, + PrivateEndpointConnectionsListByStorageSyncServiceHeaders, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProxyResource, + RegisteredServer, + RegisteredServerCreateParameters, + Resource, + ServerEndpoint, + ServerEndpointBackgroundDataDownloadActivity, + ServerEndpointCloudTieringStatus, + ServerEndpointCreateParameters, + ServerEndpointFilesNotSyncingError, + ServerEndpointRecallError, + ServerEndpointRecallStatus, + ServerEndpointSyncActivityStatus, + ServerEndpointSyncSessionStatus, + ServerEndpointSyncStatus, + StorageSyncApiError, + StorageSyncError, + StorageSyncErrorDetails, + StorageSyncInnerErrorDetails, + StorageSyncService, + SyncGroup, + SyncGroupCreateParameters, + TrackedResource, + Workflow +} from "../models/mappers"; diff --git a/sdk/storagesync/arm-storagesync/src/models/privateLinkResourcesMappers.ts b/sdk/storagesync/arm-storagesync/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..820d35877e68 --- /dev/null +++ b/sdk/storagesync/arm-storagesync/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +export { + AzureEntityResource, + BaseResource, + CloudEndpoint, + CloudEndpointCreateParameters, + CloudError, + CloudTieringCachePerformance, + CloudTieringDatePolicyStatus, + CloudTieringFilesNotTiering, + CloudTieringSpaceSavings, + CloudTieringVolumeFreeSpacePolicyStatus, + FilesNotTieringError, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkResourceListResult, + PrivateLinkServiceConnectionState, + ProxyResource, + RegisteredServer, + RegisteredServerCreateParameters, + Resource, + ServerEndpoint, + ServerEndpointBackgroundDataDownloadActivity, + ServerEndpointCloudTieringStatus, + ServerEndpointCreateParameters, + ServerEndpointFilesNotSyncingError, + ServerEndpointRecallError, + ServerEndpointRecallStatus, + ServerEndpointSyncActivityStatus, + ServerEndpointSyncSessionStatus, + ServerEndpointSyncStatus, + StorageSyncService, + SyncGroup, + SyncGroupCreateParameters, + TrackedResource, + Workflow +} from "../models/mappers"; diff --git a/sdk/storagesync/arm-storagesync/src/models/registeredServersMappers.ts b/sdk/storagesync/arm-storagesync/src/models/registeredServersMappers.ts index 558aecd968b0..038282867640 100644 --- a/sdk/storagesync/arm-storagesync/src/models/registeredServersMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/registeredServersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -11,6 +11,16 @@ export { BaseResource, CloudEndpoint, CloudEndpointCreateParameters, + CloudTieringCachePerformance, + CloudTieringDatePolicyStatus, + CloudTieringFilesNotTiering, + CloudTieringSpaceSavings, + CloudTieringVolumeFreeSpacePolicyStatus, + FilesNotTieringError, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, RegisteredServer, RegisteredServerArray, @@ -22,6 +32,7 @@ export { RegisteredServersTriggerRolloverHeaders, Resource, ServerEndpoint, + ServerEndpointBackgroundDataDownloadActivity, ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, ServerEndpointFilesNotSyncingError, @@ -33,6 +44,7 @@ export { StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, + StorageSyncInnerErrorDetails, StorageSyncService, SyncGroup, SyncGroupCreateParameters, diff --git a/sdk/storagesync/arm-storagesync/src/models/serverEndpointsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/serverEndpointsMappers.ts index d2cf597bac5b..3c828de4c6b3 100644 --- a/sdk/storagesync/arm-storagesync/src/models/serverEndpointsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/serverEndpointsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -11,6 +11,16 @@ export { BaseResource, CloudEndpoint, CloudEndpointCreateParameters, + CloudTieringCachePerformance, + CloudTieringDatePolicyStatus, + CloudTieringFilesNotTiering, + CloudTieringSpaceSavings, + CloudTieringVolumeFreeSpacePolicyStatus, + FilesNotTieringError, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, RecallActionParameters, RegisteredServer, @@ -18,6 +28,7 @@ export { Resource, ServerEndpoint, ServerEndpointArray, + ServerEndpointBackgroundDataDownloadActivity, ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, ServerEndpointFilesNotSyncingError, @@ -36,6 +47,7 @@ export { StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, + StorageSyncInnerErrorDetails, StorageSyncService, SyncGroup, SyncGroupCreateParameters, diff --git a/sdk/storagesync/arm-storagesync/src/models/storageSyncServicesMappers.ts b/sdk/storagesync/arm-storagesync/src/models/storageSyncServicesMappers.ts index 2bc4aa2c18e0..71664949b43d 100644 --- a/sdk/storagesync/arm-storagesync/src/models/storageSyncServicesMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/storageSyncServicesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -14,11 +14,22 @@ export { CloudEndpoint, CloudEndpointCreateParameters, CloudError, + CloudTieringCachePerformance, + CloudTieringDatePolicyStatus, + CloudTieringFilesNotTiering, + CloudTieringSpaceSavings, + CloudTieringVolumeFreeSpacePolicyStatus, + FilesNotTieringError, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, RegisteredServer, RegisteredServerCreateParameters, Resource, ServerEndpoint, + ServerEndpointBackgroundDataDownloadActivity, ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, ServerEndpointFilesNotSyncingError, @@ -30,9 +41,11 @@ export { StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, + StorageSyncInnerErrorDetails, StorageSyncService, StorageSyncServiceArray, StorageSyncServiceCreateParameters, + StorageSyncServicesCreateHeaders, StorageSyncServicesDeleteHeaders, StorageSyncServicesGetHeaders, StorageSyncServicesListByResourceGroupHeaders, diff --git a/sdk/storagesync/arm-storagesync/src/models/syncGroupsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/syncGroupsMappers.ts index f7e5c093c068..7077010d6858 100644 --- a/sdk/storagesync/arm-storagesync/src/models/syncGroupsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/syncGroupsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -11,11 +11,22 @@ export { BaseResource, CloudEndpoint, CloudEndpointCreateParameters, + CloudTieringCachePerformance, + CloudTieringDatePolicyStatus, + CloudTieringFilesNotTiering, + CloudTieringSpaceSavings, + CloudTieringVolumeFreeSpacePolicyStatus, + FilesNotTieringError, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, RegisteredServer, RegisteredServerCreateParameters, Resource, ServerEndpoint, + ServerEndpointBackgroundDataDownloadActivity, ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, ServerEndpointFilesNotSyncingError, @@ -27,6 +38,7 @@ export { StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, + StorageSyncInnerErrorDetails, StorageSyncService, SyncGroup, SyncGroupArray, diff --git a/sdk/storagesync/arm-storagesync/src/models/workflowsMappers.ts b/sdk/storagesync/arm-storagesync/src/models/workflowsMappers.ts index cc6031cb217c..744415413e24 100644 --- a/sdk/storagesync/arm-storagesync/src/models/workflowsMappers.ts +++ b/sdk/storagesync/arm-storagesync/src/models/workflowsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -11,11 +11,22 @@ export { BaseResource, CloudEndpoint, CloudEndpointCreateParameters, + CloudTieringCachePerformance, + CloudTieringDatePolicyStatus, + CloudTieringFilesNotTiering, + CloudTieringSpaceSavings, + CloudTieringVolumeFreeSpacePolicyStatus, + FilesNotTieringError, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, RegisteredServer, RegisteredServerCreateParameters, Resource, ServerEndpoint, + ServerEndpointBackgroundDataDownloadActivity, ServerEndpointCloudTieringStatus, ServerEndpointCreateParameters, ServerEndpointFilesNotSyncingError, @@ -27,6 +38,7 @@ export { StorageSyncApiError, StorageSyncError, StorageSyncErrorDetails, + StorageSyncInnerErrorDetails, StorageSyncService, SyncGroup, SyncGroupCreateParameters, diff --git a/sdk/storagesync/arm-storagesync/src/operations/cloudEndpoints.ts b/sdk/storagesync/arm-storagesync/src/operations/cloudEndpoints.ts index 0885608e307a..ed60ae727512 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/cloudEndpoints.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/cloudEndpoints.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -440,7 +439,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsGetHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsGetHeaders } }, serializer @@ -467,7 +467,8 @@ const listBySyncGroupOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsListBySyncGroupHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsListBySyncGroupHeaders } }, serializer @@ -494,7 +495,8 @@ const restoreheartbeatOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsRestoreheartbeatHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsRestoreheartbeatHeaders } }, serializer @@ -532,7 +534,8 @@ const beginCreateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsCreateHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsCreateHeaders } }, serializer @@ -565,7 +568,8 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsDeleteHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsDeleteHeaders } }, serializer @@ -602,7 +606,8 @@ const beginPreBackupOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsPreBackupHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsPreBackupHeaders } }, serializer @@ -640,7 +645,8 @@ const beginPostBackupOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsPostBackupHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsPostBackupHeaders } }, serializer @@ -677,7 +683,8 @@ const beginPreRestoreOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsPreRestoreHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsPreRestoreHeaders } }, serializer @@ -714,7 +721,8 @@ const beginPostRestoreOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsPostRestoreHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsPostRestoreHeaders } }, serializer @@ -751,7 +759,8 @@ const beginTriggerChangeDetectionOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.CloudEndpointsTriggerChangeDetectionHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.CloudEndpointsTriggerChangeDetectionHeaders } }, serializer diff --git a/sdk/storagesync/arm-storagesync/src/operations/index.ts b/sdk/storagesync/arm-storagesync/src/operations/index.ts index d6e1eee242fe..089c08930ec8 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/index.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -10,6 +9,8 @@ export * from "./operations"; export * from "./storageSyncServices"; +export * from "./privateLinkResources"; +export * from "./privateEndpointConnections"; export * from "./syncGroups"; export * from "./cloudEndpoints"; export * from "./serverEndpoints"; diff --git a/sdk/storagesync/arm-storagesync/src/operations/operationStatusOperations.ts b/sdk/storagesync/arm-storagesync/src/operations/operationStatusOperations.ts index 5e94dc133c06..3dcd18ecaae3 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/operationStatusOperations.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/operationStatusOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -91,7 +90,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.OperationStatusGetHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.OperationStatusGetHeaders } }, serializer diff --git a/sdk/storagesync/arm-storagesync/src/operations/operations.ts b/sdk/storagesync/arm-storagesync/src/operations/operations.ts index 5e526f5a7e9c..a3942123d108 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/operations.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -96,7 +95,8 @@ const listOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.OperationsListHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.OperationsListHeaders } }, serializer @@ -109,6 +109,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -118,7 +121,8 @@ const listNextOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.OperationsListHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.OperationsListHeaders } }, serializer diff --git a/sdk/storagesync/arm-storagesync/src/operations/privateEndpointConnections.ts b/sdk/storagesync/arm-storagesync/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..a32d80f2c73a --- /dev/null +++ b/sdk/storagesync/arm-storagesync/src/operations/privateEndpointConnections.ts @@ -0,0 +1,307 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { StorageSyncManagementClientContext } from "../storageSyncManagementClientContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: StorageSyncManagementClientContext; + + /** + * Create a PrivateEndpointConnections. + * @param {StorageSyncManagementClientContext} client Reference to the service client. + */ + constructor(client: StorageSyncManagementClientContext) { + this.client = client; + } + + /** + * Gets the specified private endpoint connection associated with the storage sync service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the Azure resource + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, storageSyncServiceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the Azure resource + * @param callback The callback + */ + get(resourceGroupName: string, storageSyncServiceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the Azure resource + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, storageSyncServiceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, storageSyncServiceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + storageSyncServiceName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update the state of specified private endpoint connection associated with the storage sync + * service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the Azure resource + * @param properties The private endpoint connection properties. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, storageSyncServiceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,storageSyncServiceName,privateEndpointConnectionName,properties,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the specified private endpoint connection associated with the storage sync service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the Azure resource + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, storageSyncServiceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,storageSyncServiceName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get a PrivateEndpointConnection List. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName Name of Storage Sync Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName Name of Storage Sync Service resource. + * @param callback The callback + */ + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName Name of Storage Sync Service resource. + * @param options The optional parameters + * @param callback The callback + */ + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + storageSyncServiceName, + options + }, + listByStorageSyncServiceOperationSpec, + callback) as Promise; + } + + /** + * Update the state of specified private endpoint connection associated with the storage sync + * service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the Azure resource + * @param properties The private endpoint connection properties. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, storageSyncServiceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + storageSyncServiceName, + privateEndpointConnectionName, + properties, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Deletes the specified private endpoint connection associated with the storage sync service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the Azure resource + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, storageSyncServiceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + storageSyncServiceName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.storageSyncServiceName, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.StorageSyncError + } + }, + serializer +}; + +const listByStorageSyncServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.storageSyncServiceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult, + headersMapper: Mappers.PrivateEndpointConnectionsListByStorageSyncServiceHeaders + }, + default: { + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.PrivateEndpointConnectionsListByStorageSyncServiceHeaders + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.storageSyncServiceName, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "properties", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection, + headersMapper: Mappers.PrivateEndpointConnectionsCreateHeaders + }, + 202: { + headersMapper: Mappers.PrivateEndpointConnectionsCreateHeaders + }, + default: { + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.PrivateEndpointConnectionsCreateHeaders + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.storageSyncServiceName, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders + }, + 202: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders + }, + 204: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders + }, + default: { + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders + } + }, + serializer +}; diff --git a/sdk/storagesync/arm-storagesync/src/operations/privateLinkResources.ts b/sdk/storagesync/arm-storagesync/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..9132cd29c03b --- /dev/null +++ b/sdk/storagesync/arm-storagesync/src/operations/privateLinkResources.ts @@ -0,0 +1,89 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { StorageSyncManagementClientContext } from "../storageSyncManagementClientContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: StorageSyncManagementClientContext; + + /** + * Create a PrivateLinkResources. + * @param {StorageSyncManagementClientContext} client Reference to the service client. + */ + constructor(client: StorageSyncManagementClientContext) { + this.client = client; + } + + /** + * Gets the private link resources that need to be created for a storage sync service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param [options] The optional parameters + * @returns Promise + */ + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param callback The callback + */ + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName The name of the storage sync service name within the specified + * resource group. + * @param options The optional parameters + * @param callback The callback + */ + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByStorageSyncService(resourceGroupName: string, storageSyncServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + storageSyncServiceName, + options + }, + listByStorageSyncServiceOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByStorageSyncServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateLinkResources", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.storageSyncServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/storagesync/arm-storagesync/src/operations/registeredServers.ts b/sdk/storagesync/arm-storagesync/src/operations/registeredServers.ts index a82543597dcd..7dde283ae38c 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/registeredServers.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/registeredServers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -223,7 +222,8 @@ const listByStorageSyncServiceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.RegisteredServersListByStorageSyncServiceHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.RegisteredServersListByStorageSyncServiceHeaders } }, serializer @@ -250,7 +250,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.RegisteredServersGetHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.RegisteredServersGetHeaders } }, serializer @@ -287,7 +288,8 @@ const beginCreateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.RegisteredServersCreateHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.RegisteredServersCreateHeaders } }, serializer @@ -319,7 +321,8 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.RegisteredServersDeleteHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.RegisteredServersDeleteHeaders } }, serializer @@ -355,7 +358,8 @@ const beginTriggerRolloverOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.RegisteredServersTriggerRolloverHeaders } }, serializer diff --git a/sdk/storagesync/arm-storagesync/src/operations/serverEndpoints.ts b/sdk/storagesync/arm-storagesync/src/operations/serverEndpoints.ts index e4ebf1aa217e..a804a4f89f6d 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/serverEndpoints.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/serverEndpoints.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -278,7 +277,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ServerEndpointsGetHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.ServerEndpointsGetHeaders } }, serializer @@ -305,7 +305,8 @@ const listBySyncGroupOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ServerEndpointsListBySyncGroupHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.ServerEndpointsListBySyncGroupHeaders } }, serializer @@ -343,7 +344,8 @@ const beginCreateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ServerEndpointsCreateHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.ServerEndpointsCreateHeaders } }, serializer @@ -381,7 +383,8 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ServerEndpointsUpdateHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.ServerEndpointsUpdateHeaders } }, serializer @@ -411,7 +414,8 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ServerEndpointsDeleteHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.ServerEndpointsDeleteHeaders } }, serializer @@ -448,7 +452,8 @@ const beginRecallActionOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ServerEndpointsRecallActionHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.ServerEndpointsRecallActionHeaders } }, serializer diff --git a/sdk/storagesync/arm-storagesync/src/operations/storageSyncServices.ts b/sdk/storagesync/arm-storagesync/src/operations/storageSyncServices.ts index 4b38dbe1496f..33abd8df9cd0 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/storageSyncServices.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/storageSyncServices.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/storageSyncServicesMappers"; import * as Parameters from "../models/parameters"; @@ -66,32 +66,9 @@ export class StorageSyncServices { * @param [options] The optional parameters * @returns Promise */ - create(resourceGroupName: string, storageSyncServiceName: string, parameters: Models.StorageSyncServiceCreateParameters, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param storageSyncServiceName Name of Storage Sync Service resource. - * @param parameters Storage Sync Service resource name. - * @param callback The callback - */ - create(resourceGroupName: string, storageSyncServiceName: string, parameters: Models.StorageSyncServiceCreateParameters, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param storageSyncServiceName Name of Storage Sync Service resource. - * @param parameters Storage Sync Service resource name. - * @param options The optional parameters - * @param callback The callback - */ - create(resourceGroupName: string, storageSyncServiceName: string, parameters: Models.StorageSyncServiceCreateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, storageSyncServiceName: string, parameters: Models.StorageSyncServiceCreateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - storageSyncServiceName, - parameters, - options - }, - createOperationSpec, - callback) as Promise; + create(resourceGroupName: string, storageSyncServiceName: string, parameters: Models.StorageSyncServiceCreateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,storageSyncServiceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -133,29 +110,9 @@ export class StorageSyncServices { * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, storageSyncServiceName: string, options?: Models.StorageSyncServicesUpdateOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param storageSyncServiceName Name of Storage Sync Service resource. - * @param callback The callback - */ - update(resourceGroupName: string, storageSyncServiceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param storageSyncServiceName Name of Storage Sync Service resource. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, storageSyncServiceName: string, options: Models.StorageSyncServicesUpdateOptionalParams, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, storageSyncServiceName: string, options?: Models.StorageSyncServicesUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - storageSyncServiceName, - options - }, - updateOperationSpec, - callback) as Promise; + update(resourceGroupName: string, storageSyncServiceName: string, options?: Models.StorageSyncServicesUpdateOptionalParams): Promise { + return this.beginUpdate(resourceGroupName,storageSyncServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -165,29 +122,9 @@ export class StorageSyncServices { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, storageSyncServiceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param storageSyncServiceName Name of Storage Sync Service resource. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, storageSyncServiceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param storageSyncServiceName Name of Storage Sync Service resource. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, storageSyncServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, storageSyncServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - storageSyncServiceName, - options - }, - deleteMethodOperationSpec, - callback) as Promise; + deleteMethod(resourceGroupName: string, storageSyncServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,storageSyncServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -241,6 +178,62 @@ export class StorageSyncServices { listBySubscriptionOperationSpec, callback) as Promise; } + + /** + * Create a new StorageSyncService. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName Name of Storage Sync Service resource. + * @param parameters Storage Sync Service resource name. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, storageSyncServiceName: string, parameters: Models.StorageSyncServiceCreateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + storageSyncServiceName, + parameters, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Patch a given StorageSyncService. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName Name of Storage Sync Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, storageSyncServiceName: string, options?: Models.StorageSyncServicesBeginUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + storageSyncServiceName, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Delete a given StorageSyncService. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageSyncServiceName Name of Storage Sync Service resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, storageSyncServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + storageSyncServiceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } } // Operation Specifications @@ -276,8 +269,8 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { serializer }; -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}", urlParameters: [ Parameters.subscriptionId, @@ -290,31 +283,25 @@ const createOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.StorageSyncServiceCreateParameters, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.StorageSyncService + bodyMapper: Mappers.StorageSyncService, + headersMapper: Mappers.StorageSyncServicesGetHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.StorageSyncServicesGetHeaders } }, serializer }; -const getOperationSpec: msRest.OperationSpec = { +const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.storageSyncServiceName + Parameters.resourceGroupName ], queryParameters: [ Parameters.apiVersion @@ -324,23 +311,22 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.StorageSyncService, - headersMapper: Mappers.StorageSyncServicesGetHeaders + bodyMapper: Mappers.StorageSyncServiceArray, + headersMapper: Mappers.StorageSyncServicesListByResourceGroupHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.StorageSyncServicesListByResourceGroupHeaders } }, serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}", +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices", urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.storageSyncServiceName + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -348,27 +334,21 @@ const updateOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: [ - "options", - "parameters" - ], - mapper: Mappers.StorageSyncServiceUpdateParameters - }, responses: { 200: { - bodyMapper: Mappers.StorageSyncService, - headersMapper: Mappers.StorageSyncServicesUpdateHeaders + bodyMapper: Mappers.StorageSyncServiceArray, + headersMapper: Mappers.StorageSyncServicesListBySubscriptionHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.StorageSyncServicesListBySubscriptionHeaders } }, serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}", urlParameters: [ Parameters.subscriptionId, @@ -381,26 +361,36 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.StorageSyncServiceCreateParameters, + required: true + } + }, responses: { 200: { - headersMapper: Mappers.StorageSyncServicesDeleteHeaders + bodyMapper: Mappers.StorageSyncService, + headersMapper: Mappers.StorageSyncServicesCreateHeaders }, - 204: { - headersMapper: Mappers.StorageSyncServicesDeleteHeaders + 202: { + headersMapper: Mappers.StorageSyncServicesCreateHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.StorageSyncServicesCreateHeaders } }, serializer }; -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices", +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.storageSyncServiceName ], queryParameters: [ Parameters.apiVersion @@ -408,23 +398,36 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.StorageSyncServiceUpdateParameters + }, responses: { 200: { - bodyMapper: Mappers.StorageSyncServiceArray, - headersMapper: Mappers.StorageSyncServicesListByResourceGroupHeaders + bodyMapper: Mappers.StorageSyncService, + headersMapper: Mappers.StorageSyncServicesUpdateHeaders + }, + 202: { + headersMapper: Mappers.StorageSyncServicesUpdateHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.StorageSyncServicesUpdateHeaders } }, serializer }; -const listBySubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices", +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}", urlParameters: [ - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.storageSyncServiceName ], queryParameters: [ Parameters.apiVersion @@ -434,11 +437,17 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.StorageSyncServiceArray, - headersMapper: Mappers.StorageSyncServicesListBySubscriptionHeaders + headersMapper: Mappers.StorageSyncServicesDeleteHeaders + }, + 202: { + headersMapper: Mappers.StorageSyncServicesDeleteHeaders + }, + 204: { + headersMapper: Mappers.StorageSyncServicesDeleteHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.StorageSyncServicesDeleteHeaders } }, serializer diff --git a/sdk/storagesync/arm-storagesync/src/operations/syncGroups.ts b/sdk/storagesync/arm-storagesync/src/operations/syncGroups.ts index b8af33870b65..e2cfd020acde 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/syncGroups.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/syncGroups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -193,7 +192,8 @@ const listByStorageSyncServiceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.SyncGroupsListByStorageSyncServiceHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.SyncGroupsListByStorageSyncServiceHeaders } }, serializer @@ -227,7 +227,8 @@ const createOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.SyncGroupsCreateHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.SyncGroupsCreateHeaders } }, serializer @@ -254,7 +255,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.SyncGroupsGetHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.SyncGroupsGetHeaders } }, serializer @@ -283,7 +285,8 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.SyncGroupsDeleteHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.SyncGroupsDeleteHeaders } }, serializer diff --git a/sdk/storagesync/arm-storagesync/src/operations/workflows.ts b/sdk/storagesync/arm-storagesync/src/operations/workflows.ts index a2b8c6bbfe2d..ff41884ab8c8 100644 --- a/sdk/storagesync/arm-storagesync/src/operations/workflows.ts +++ b/sdk/storagesync/arm-storagesync/src/operations/workflows.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -153,7 +152,8 @@ const listByStorageSyncServiceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.WorkflowsListByStorageSyncServiceHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.WorkflowsListByStorageSyncServiceHeaders } }, serializer @@ -180,7 +180,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.WorkflowsGetHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.WorkflowsGetHeaders } }, serializer @@ -206,7 +207,8 @@ const abortOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.WorkflowsAbortHeaders }, default: { - bodyMapper: Mappers.StorageSyncError + bodyMapper: Mappers.StorageSyncError, + headersMapper: Mappers.WorkflowsAbortHeaders } }, serializer diff --git a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts index e8507d474340..15f3269752d7 100644 --- a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts +++ b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -19,6 +18,8 @@ class StorageSyncManagementClient extends StorageSyncManagementClientContext { // Operation groups operations: operations.Operations; storageSyncServices: operations.StorageSyncServices; + privateLinkResources: operations.PrivateLinkResources; + privateEndpointConnections: operations.PrivateEndpointConnections; syncGroups: operations.SyncGroups; cloudEndpoints: operations.CloudEndpoints; serverEndpoints: operations.ServerEndpoints; @@ -36,6 +37,8 @@ class StorageSyncManagementClient extends StorageSyncManagementClientContext { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.storageSyncServices = new operations.StorageSyncServices(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); this.syncGroups = new operations.SyncGroups(this); this.cloudEndpoints = new operations.CloudEndpoints(this); this.serverEndpoints = new operations.ServerEndpoints(this); diff --git a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts index ef8da155c09f..0f6a84408df0 100644 --- a/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts +++ b/sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -44,7 +43,7 @@ export class StorageSyncManagementClientContext extends msRestAzure.AzureService super(credentials, options); - this.apiVersion = '2019-06-01'; + this.apiVersion = '2020-09-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";