Skip to content

Commit

Permalink
Update from master
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Jul 24, 2020
1 parent 1043492 commit 5e56655
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 208 deletions.
2 changes: 1 addition & 1 deletion sdk/netapp/arm-netapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
2 changes: 1 addition & 1 deletion sdk/netapp/arm-netapp/src/models/accountsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export {
CapacityPoolPatch,
CloudError,
ExportPolicyRule,
MountTargetProperties,
MountTarget,
NetAppAccount,
NetAppAccountList,
NetAppAccountPatch,
Expand Down
96 changes: 26 additions & 70 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand Down Expand Up @@ -579,7 +602,7 @@ export interface Volume extends BaseResource {
/**
* mountTargets. List of mount targets
*/
mountTargets?: MountTargetProperties[];
mountTargets?: MountTarget[];
/**
* What type of volume is this
*/
Expand Down Expand Up @@ -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
*/
Expand Down
Loading

0 comments on commit 5e56655

Please sign in to comment.