Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR @azure/arm-netapp] Fix property of mountTarget #8418

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand All @@ -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;
}
}
Expand Down
30 changes: 20 additions & 10 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,26 @@ export interface MountTarget {
* **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
*/
Expand Down Expand Up @@ -679,16 +699,6 @@ export interface VolumePatch extends BaseResource {
exportPolicy?: VolumePatchPropertiesExportPolicy;
}

/**
* List of Mount Targets
*/
export interface MountTargetList {
/**
* A list of Mount targets
*/
value?: MountTarget[];
}

/**
* Snapshot of a Volume
*/
Expand Down
52 changes: 30 additions & 22 deletions sdk/netapp/arm-netapp/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,36 @@ export const MountTarget: msRest.CompositeMapper = {
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: {
Expand Down Expand Up @@ -1139,28 +1169,6 @@ export const VolumePatch: msRest.CompositeMapper = {
}
};

export const MountTargetList: msRest.CompositeMapper = {
serializedName: "mountTargetList",
type: {
name: "Composite",
className: "MountTargetList",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "MountTarget"
}
}
}
}
}
}
};

export const Snapshot: msRest.CompositeMapper = {
serializedName: "snapshot",
type: {
Expand Down