diff --git a/sdk/netapp/arm-netapp/LICENSE.txt b/sdk/netapp/arm-netapp/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/netapp/arm-netapp/LICENSE.txt +++ b/sdk/netapp/arm-netapp/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2020 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/netapp/arm-netapp/src/models/accountsMappers.ts b/sdk/netapp/arm-netapp/src/models/accountsMappers.ts index 3cfcfa2a19f6..85ee9a99ad54 100644 --- a/sdk/netapp/arm-netapp/src/models/accountsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/accountsMappers.ts @@ -13,6 +13,8 @@ export { CapacityPoolPatch, CloudError, ExportPolicyRule, + MountTarget, + MountTargetList, NetAppAccount, NetAppAccountList, NetAppAccountPatch, diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index 2feca57b415d..728b74f90f43 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -415,6 +415,78 @@ export interface VolumePropertiesExportPolicy { rules?: ExportPolicyRule[]; } +/** + * 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; + /** + * Azure lifecycle management + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; +} + /** * Replication properties */ @@ -531,7 +603,7 @@ export interface Volume extends BaseResource { /** * mountTargets. List of mount targets */ - mountTargets?: any; + mountTargets?: MountTargetList[]; /** * What type of volume is this */ @@ -628,78 +700,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; - /** - * Azure lifecycle management - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: 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 a33d7d77cf91..46399a3ce9cd 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -675,6 +675,129 @@ export const VolumePropertiesExportPolicy: 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" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + export const ReplicationObject: msRest.CompositeMapper = { serializedName: "replicationObject", type: { @@ -875,7 +998,13 @@ export const Volume: msRest.CompositeMapper = { mountTargets: { serializedName: "properties.mountTargets", type: { - name: "Object" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MountTargetList" + } + } } }, volumeType: { @@ -1036,129 +1165,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" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - 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 4f827d921bb9..7952e7b92f12 100644 --- a/sdk/netapp/arm-netapp/src/models/poolsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/poolsMappers.ts @@ -14,6 +14,8 @@ export { CapacityPoolPatch, CloudError, ExportPolicyRule, + MountTarget, + MountTargetList, NetAppAccount, NetAppAccountPatch, ReplicationObject, diff --git a/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts b/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts index 05cf00cde0c6..95d3163d1f37 100644 --- a/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts @@ -13,6 +13,8 @@ export { CapacityPoolPatch, CloudError, ExportPolicyRule, + MountTarget, + MountTargetList, NetAppAccount, NetAppAccountPatch, ReplicationObject, diff --git a/sdk/netapp/arm-netapp/src/models/volumesMappers.ts b/sdk/netapp/arm-netapp/src/models/volumesMappers.ts index 2d5984890d09..3f00e29d5005 100644 --- a/sdk/netapp/arm-netapp/src/models/volumesMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/volumesMappers.ts @@ -14,6 +14,8 @@ export { CapacityPoolPatch, CloudError, ExportPolicyRule, + MountTarget, + MountTargetList, NetAppAccount, NetAppAccountPatch, ReplicationObject,