diff --git a/sdk/netapp/arm-netapp/package.json b/sdk/netapp/arm-netapp/package.json index 6f087b7164ab..6a1769af9017 100644 --- a/sdk/netapp/arm-netapp/package.json +++ b/sdk/netapp/arm-netapp/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-netapp", "author": "Microsoft Corporation", "description": "AzureNetAppFilesManagementClient Library with typescript type definitions for node.js and browser.", - "version": "10.0.0", + "version": "8.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts index 142635725ac4..14fa1793f7d1 100644 --- a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts +++ b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-netapp"; -const packageVersion = "10.0.0"; +const packageVersion = "8.0.0"; export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -38,7 +38,7 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -53,10 +53,10 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/netapp/arm-netapp/src/models/accountsMappers.ts b/sdk/netapp/arm-netapp/src/models/accountsMappers.ts index 587c55d2eedb..996b978b7718 100644 --- a/sdk/netapp/arm-netapp/src/models/accountsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/accountsMappers.ts @@ -13,7 +13,7 @@ export { CapacityPoolPatch, CloudError, ExportPolicyRule, - MountTargetProperties, + MountTarget, NetAppAccount, NetAppAccountList, NetAppAccountPatch, diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index 4dff80d9ae66..c73843ade621 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -420,9 +420,32 @@ export interface VolumePropertiesExportPolicy { } /** - * Mount target properties + * Mount Target */ -export interface MountTargetProperties { +export interface MountTarget { + /** + * Resource location + */ + location: string; + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; /** * mountTargetId. UUID v4 used to identify the MountTarget * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -579,7 +602,7 @@ export interface Volume extends BaseResource { /** * mountTargets. List of mount targets */ - mountTargets?: MountTargetProperties[]; + mountTargets?: MountTarget[]; /** * What type of volume is this */ @@ -676,73 +699,6 @@ export interface VolumePatch extends BaseResource { exportPolicy?: VolumePatchPropertiesExportPolicy; } -/** - * Mount Target - */ -export interface MountTarget { - /** - * Resource location - */ - location: string; - /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Resource tags - */ - tags?: { [propertyName: string]: string }; - /** - * mountTargetId. UUID v4 used to identify the MountTarget - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly mountTargetId?: string; - /** - * fileSystemId. UUID v4 used to identify the MountTarget - */ - fileSystemId: string; - /** - * ipAddress. The mount target's IPv4 address - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly ipAddress?: string; - /** - * subnet. The subnet - */ - subnet?: string; - /** - * startIp. The start of IPv4 address range to use when creating a new mount target - */ - startIp?: string; - /** - * endIp. The end of IPv4 address range to use when creating a new mount target - */ - endIp?: string; - /** - * gateway. The gateway of the IPv4 address range to use when creating a new mount target - */ - gateway?: string; - /** - * netmask. The netmask of the IPv4 address range to use when creating a new mount target - */ - netmask?: string; - /** - * smbServerFQDN. The SMB server's Fully Qualified Domain Name, FQDN - */ - smbServerFqdn?: string; -} - /** * Snapshot of a Volume */ diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index 34bd742b40db..8136b93ee618 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -681,15 +681,54 @@ export const VolumePropertiesExportPolicy: msRest.CompositeMapper = { } }; -export const MountTargetProperties: msRest.CompositeMapper = { - serializedName: "mountTargetProperties", +export const MountTarget: msRest.CompositeMapper = { + serializedName: "mountTarget", type: { name: "Composite", - className: "MountTargetProperties", + className: "MountTarget", modelProperties: { + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, mountTargetId: { readOnly: true, - serializedName: "mountTargetId", + serializedName: "properties.mountTargetId", constraints: { MaxLength: 36, MinLength: 36, @@ -701,7 +740,7 @@ export const MountTargetProperties: msRest.CompositeMapper = { }, fileSystemId: { required: true, - serializedName: "fileSystemId", + serializedName: "properties.fileSystemId", constraints: { MaxLength: 36, MinLength: 36, @@ -713,43 +752,43 @@ export const MountTargetProperties: msRest.CompositeMapper = { }, ipAddress: { readOnly: true, - serializedName: "ipAddress", + serializedName: "properties.ipAddress", type: { name: "String" } }, subnet: { - serializedName: "subnet", + serializedName: "properties.subnet", type: { name: "String" } }, startIp: { - serializedName: "startIp", + serializedName: "properties.startIp", type: { name: "String" } }, endIp: { - serializedName: "endIp", + serializedName: "properties.endIp", type: { name: "String" } }, gateway: { - serializedName: "gateway", + serializedName: "properties.gateway", type: { name: "String" } }, netmask: { - serializedName: "netmask", + serializedName: "properties.netmask", type: { name: "String" } }, smbServerFqdn: { - serializedName: "smbServerFqdn", + serializedName: "properties.smbServerFqdn", type: { name: "String" } @@ -967,7 +1006,7 @@ export const Volume: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "MountTargetProperties" + className: "MountTarget" } } } @@ -1130,122 +1169,6 @@ export const VolumePatch: msRest.CompositeMapper = { } }; -export const MountTarget: msRest.CompositeMapper = { - serializedName: "mountTarget", - type: { - name: "Composite", - className: "MountTarget", - modelProperties: { - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - }, - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - mountTargetId: { - readOnly: true, - serializedName: "properties.mountTargetId", - constraints: { - MaxLength: 36, - MinLength: 36, - Pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/ - }, - type: { - name: "String" - } - }, - fileSystemId: { - required: true, - serializedName: "properties.fileSystemId", - constraints: { - MaxLength: 36, - MinLength: 36, - Pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/ - }, - type: { - name: "String" - } - }, - ipAddress: { - readOnly: true, - serializedName: "properties.ipAddress", - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "String" - } - }, - startIp: { - serializedName: "properties.startIp", - type: { - name: "String" - } - }, - endIp: { - serializedName: "properties.endIp", - type: { - name: "String" - } - }, - gateway: { - serializedName: "properties.gateway", - type: { - name: "String" - } - }, - netmask: { - serializedName: "properties.netmask", - type: { - name: "String" - } - }, - smbServerFqdn: { - serializedName: "properties.smbServerFqdn", - type: { - name: "String" - } - } - } - } -}; - export const Snapshot: msRest.CompositeMapper = { serializedName: "snapshot", type: { diff --git a/sdk/netapp/arm-netapp/src/models/poolsMappers.ts b/sdk/netapp/arm-netapp/src/models/poolsMappers.ts index e50bdf260d22..a2ce76177536 100644 --- a/sdk/netapp/arm-netapp/src/models/poolsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/poolsMappers.ts @@ -14,7 +14,7 @@ export { CapacityPoolPatch, CloudError, ExportPolicyRule, - MountTargetProperties, + MountTarget, NetAppAccount, NetAppAccountPatch, ReplicationObject, diff --git a/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts b/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts index db83bb018f12..80554b0453b2 100644 --- a/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts @@ -13,7 +13,7 @@ export { CapacityPoolPatch, CloudError, ExportPolicyRule, - MountTargetProperties, + MountTarget, NetAppAccount, NetAppAccountPatch, ReplicationObject, diff --git a/sdk/netapp/arm-netapp/src/models/volumesMappers.ts b/sdk/netapp/arm-netapp/src/models/volumesMappers.ts index e3ca24d90b89..44dfbc8331f8 100644 --- a/sdk/netapp/arm-netapp/src/models/volumesMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/volumesMappers.ts @@ -14,7 +14,7 @@ export { CapacityPoolPatch, CloudError, ExportPolicyRule, - MountTargetProperties, + MountTarget, NetAppAccount, NetAppAccountPatch, ReplicationObject,