Skip to content

Commit

Permalink
Generated from f78bc95e9694aee5d246d84de0a08eb7fe9232cc
Browse files Browse the repository at this point in the history
Merge pull request #46 from leonardbf/ANF-567-add-API-2019-11-01

ANF-567 add API 2019-11-01
  • Loading branch information
SDK Automation committed Jan 17, 2020
1 parent 88585ac commit ad3fc30
Show file tree
Hide file tree
Showing 15 changed files with 198 additions and 284 deletions.
2 changes: 1 addition & 1 deletion sdk/netapp/arm-netapp/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC
accounts: operations.Accounts;
pools: operations.Pools;
volumes: operations.Volumes;
mountTargets: operations.MountTargets;
snapshots: operations.Snapshots;

/**
Expand All @@ -39,7 +38,6 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC
this.accounts = new operations.Accounts(this);
this.pools = new operations.Pools(this);
this.volumes = new operations.Volumes(this);
this.mountTargets = new operations.MountTargets(this);
this.snapshots = new operations.Snapshots(this);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe

super(credentials, options);

this.apiVersion = '2019-10-01';
this.apiVersion = '2019-11-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
1 change: 0 additions & 1 deletion sdk/netapp/arm-netapp/src/models/accountsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export {
NetAppAccountPatch,
ReplicationObject,
Snapshot,
SnapshotPatch,
Volume,
VolumePatch,
VolumePatchPropertiesExportPolicy,
Expand Down
105 changes: 41 additions & 64 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ export interface ActiveDirectory {
* The Organizational Unit (OU) within the Windows Active Directory
*/
organizationalUnit?: string;
/**
* The Active Directory site the service will limit Domain Controller discovery to
*/
site?: string;
}

/**
Expand Down Expand Up @@ -669,35 +673,20 @@ 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
*/
smbServerFqdn?: string;
}

/**
* List of Mount Targets
*/
export interface MountTargetList {
/**
* Azure lifecycle management
* **NOTE: This property will not be serialized. It can only be populated by the server.**
* A list of Mount targets
*/
readonly provisioningState?: string;
value?: MountTarget[];
}

/**
Expand All @@ -723,10 +712,6 @@ export interface Snapshot extends BaseResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* Resource tags
*/
tags?: { [propertyName: string]: string };
/**
* snapshotId. UUID v4 used to identify the Snapshot
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand All @@ -749,43 +734,63 @@ export interface Snapshot extends BaseResource {
}

/**
* Snapshot patch
* revert a volume to the snapshot
*/
export interface SnapshotPatch extends BaseResource {
export interface VolumeRevert {
/**
* Resource tags
* Resource id of the snapshot
*/
tags?: { [propertyName: string]: string };
snapshotId?: string;
}

/**
* Authorize request
*/
export interface AuthorizeRequest {
/**
* Resource id
* Resource id of the remote volume
*/
remoteVolumeResourceId?: string;
}

/**
* Optional Parameters.
*/
export interface VolumesRevertOptionalParams extends msRest.RequestOptionsBase {
/**
* Resource id of the snapshot
*/
snapshotId?: string;
}

/**
* Optional Parameters.
*/
export interface VolumesAuthorizeReplicationOptionalParams extends msRest.RequestOptionsBase {
/**
* Resource id
* Resource id of the remote volume
*/
remoteVolumeResourceId?: string;
}

/**
* Optional Parameters.
*/
export interface SnapshotsUpdateOptionalParams extends msRest.RequestOptionsBase {
export interface SnapshotsCreateOptionalParams extends msRest.RequestOptionsBase {
/**
* Resource tags
* fileSystemId UUID v4 used to identify the FileSystem
*/
tags?: { [propertyName: string]: string };
fileSystemId?: string;
}

/**
* Optional Parameters.
*/
export interface SnapshotsBeginCreateOptionalParams extends msRest.RequestOptionsBase {
/**
* fileSystemId UUID v4 used to identify the FileSystem
*/
fileSystemId?: string;
}

/**
Expand Down Expand Up @@ -828,14 +833,6 @@ export interface CapacityPoolList extends Array<CapacityPool> {
export interface VolumeList extends Array<Volume> {
}

/**
* @interface
* List of Mount Targets
* @extends Array<MountTarget>
*/
export interface MountTargetList extends Array<MountTarget> {
}

/**
* @interface
* List of Snapshots
Expand Down Expand Up @@ -1283,26 +1280,6 @@ export type VolumesBeginCreateOrUpdateResponse = Volume & {
};
};

/**
* Contains response data for the list operation.
*/
export type MountTargetsListResponse = MountTargetList & {
/**
* 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: MountTargetList;
};
};

/**
* Contains response data for the list operation.
*/
Expand Down
116 changes: 37 additions & 79 deletions sdk/netapp/arm-netapp/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ export const ActiveDirectory: msRest.CompositeMapper = {
type: {
name: "String"
}
},
site: {
serializedName: "site",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -794,6 +800,11 @@ export const Volume: msRest.CompositeMapper = {
creationToken: {
required: true,
serializedName: "properties.creationToken",
constraints: {
MaxLength: 80,
MinLength: 1,
Pattern: /^[a-zA-Z][a-zA-Z0-9\-]{0,79}$/
},
type: {
name: "String"
}
Expand Down Expand Up @@ -1112,47 +1123,32 @@ 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: {
name: "String"
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
}
}
}
};

export const MountTargetList: msRest.CompositeMapper = {
serializedName: "mountTargetList",
type: {
name: "Composite",
className: "MountTargetList",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "String"
name: "Sequence",
element: {
type: {
name: "Composite",
className: "MountTarget"
}
}
}
}
}
Expand Down Expand Up @@ -1193,17 +1189,6 @@ export const Snapshot: msRest.CompositeMapper = {
name: "String"
}
},
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
},
snapshotId: {
readOnly: true,
serializedName: "properties.snapshotId",
Expand Down Expand Up @@ -1245,21 +1230,16 @@ export const Snapshot: msRest.CompositeMapper = {
}
};

export const SnapshotPatch: msRest.CompositeMapper = {
serializedName: "snapshotPatch",
export const VolumeRevert: msRest.CompositeMapper = {
serializedName: "volumeRevert",
type: {
name: "Composite",
className: "SnapshotPatch",
className: "VolumeRevert",
modelProperties: {
tags: {
serializedName: "tags",
snapshotId: {
serializedName: "snapshotId",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
name: "String"
}
}
}
Expand Down Expand Up @@ -1370,28 +1350,6 @@ export const VolumeList: msRest.CompositeMapper = {
}
};

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

export const SnapshotsList: msRest.CompositeMapper = {
serializedName: "snapshotsList",
type: {
Expand Down
Loading

0 comments on commit ad3fc30

Please sign in to comment.