Skip to content

Commit 9d0c3ab

Browse files
author
SDKAuto
committed
CodeGen from PR 13814 in Azure/azure-rest-api-specs
Merge d72c9fff3ad979a09f78709e449ce251710fee4e into a9bba35673e7a6e9d3f9331f9e8856830a071d3b
1 parent 4218b21 commit 9d0c3ab

File tree

12 files changed

+218
-241
lines changed

12 files changed

+218
-241
lines changed

sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC
2323
volumes: operations.Volumes;
2424
snapshots: operations.Snapshots;
2525
snapshotPolicies: operations.SnapshotPolicies;
26-
volumeBackupStatus: operations.VolumeBackupStatus;
27-
accountBackups: operations.AccountBackups;
2826
backups: operations.Backups;
27+
accountBackups: operations.AccountBackups;
2928
backupPolicies: operations.BackupPolicies;
3029
vaults: operations.Vaults;
3130

@@ -45,9 +44,8 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC
4544
this.volumes = new operations.Volumes(this);
4645
this.snapshots = new operations.Snapshots(this);
4746
this.snapshotPolicies = new operations.SnapshotPolicies(this);
48-
this.volumeBackupStatus = new operations.VolumeBackupStatus(this);
49-
this.accountBackups = new operations.AccountBackups(this);
5047
this.backups = new operations.Backups(this);
48+
this.accountBackups = new operations.AccountBackups(this);
5149
this.backupPolicies = new operations.BackupPolicies(this);
5250
this.vaults = new operations.Vaults(this);
5351
}

sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe
3737
if (!options) {
3838
options = {};
3939
}
40-
if (!options.userAgent) {
40+
if(!options.userAgent) {
4141
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4242
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4343
}
4444

4545
super(credentials, options);
4646

47-
this.apiVersion = '2020-12-01';
47+
this.apiVersion = '2021-02-01';
4848
this.acceptLanguage = 'en-US';
4949
this.longRunningOperationRetryTimeout = 30;
5050
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
5151
this.requestContentType = "application/json; charset=utf-8";
5252
this.credentials = credentials;
5353
this.subscriptionId = subscriptionId;
5454

55-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
55+
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
5656
this.acceptLanguage = options.acceptLanguage;
5757
}
58-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
58+
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
5959
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6060
}
6161
}

sdk/netapp/arm-netapp/src/models/backupsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export {
1515
BackupPolicyDetails,
1616
BackupPolicyPatch,
1717
BackupsList,
18+
BackupStatus,
1819
BaseResource,
1920
CapacityPool,
2021
CapacityPoolPatch,

sdk/netapp/arm-netapp/src/models/index.ts

Lines changed: 70 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ export interface Volume extends BaseResource {
750750
*/
751751
exportPolicy?: VolumePropertiesExportPolicy;
752752
/**
753-
* protocolTypes. Set of protocol types, default NFSv3, CIFS fro SMB protocol
753+
* protocolTypes. Set of protocol types, default NFSv3, CIFS for SMB protocol
754754
*/
755755
protocolTypes?: string[];
756756
/**
@@ -834,7 +834,7 @@ export interface Volume extends BaseResource {
834834
}
835835

836836
/**
837-
* An interface representing ResourceIdentity.
837+
* Identity for the resource.
838838
*/
839839
export interface ResourceIdentity {
840840
/**
@@ -899,6 +899,10 @@ export interface VolumePatchPropertiesDataProtection {
899899
* Backup. Backup Properties
900900
*/
901901
backup?: VolumeBackupProperties;
902+
/**
903+
* Snapshot. Snapshot properties.
904+
*/
905+
snapshot?: VolumeSnapshotProperties;
902906
}
903907

904908
/**
@@ -1395,10 +1399,10 @@ export interface Backup extends BaseResource {
13951399
*/
13961400
label?: string;
13971401
/**
1398-
* Type of backup adhoc or scheduled
1402+
* backupType. Type of backup Manual or Scheduled. Possible values include: 'Manual', 'Scheduled'
13991403
* **NOTE: This property will not be serialized. It can only be populated by the server.**
14001404
*/
1401-
readonly backupType?: string;
1405+
readonly backupType?: BackupType;
14021406
/**
14031407
* Failure reason
14041408
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -1409,6 +1413,11 @@ export interface Backup extends BaseResource {
14091413
* **NOTE: This property will not be serialized. It can only be populated by the server.**
14101414
*/
14111415
readonly volumeName?: string;
1416+
/**
1417+
* Manual backup an already existing snapshot. This will always be false for scheduled backups
1418+
* and true/false for manual backups. Default value: false.
1419+
*/
1420+
useExistingSnapshot?: boolean;
14121421
}
14131422

14141423
/**
@@ -1444,10 +1453,10 @@ export interface BackupPatch extends BaseResource {
14441453
*/
14451454
label?: string;
14461455
/**
1447-
* Type of backup adhoc or scheduled
1456+
* backupType. Type of backup Manual or Scheduled. Possible values include: 'Manual', 'Scheduled'
14481457
* **NOTE: This property will not be serialized. It can only be populated by the server.**
14491458
*/
1450-
readonly backupType?: string;
1459+
readonly backupType?: BackupType;
14511460
/**
14521461
* Failure reason
14531462
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -1458,6 +1467,11 @@ export interface BackupPatch extends BaseResource {
14581467
* **NOTE: This property will not be serialized. It can only be populated by the server.**
14591468
*/
14601469
readonly volumeName?: string;
1470+
/**
1471+
* Manual backup an already existing snapshot. This will always be false for scheduled backups
1472+
* and true/false for manual backups. Default value: false.
1473+
*/
1474+
useExistingSnapshot?: boolean;
14611475
}
14621476

14631477
/**
@@ -1801,52 +1815,24 @@ export interface VolumesBeginAuthorizeReplicationOptionalParams extends msRest.R
18011815
remoteVolumeResourceId?: string;
18021816
}
18031817

1804-
/**
1805-
* Optional Parameters.
1806-
*/
1807-
export interface BackupsCreateOptionalParams extends msRest.RequestOptionsBase {
1808-
/**
1809-
* Label for backup
1810-
*/
1811-
label?: string;
1812-
}
1813-
18141818
/**
18151819
* Optional Parameters.
18161820
*/
18171821
export interface BackupsUpdateOptionalParams extends msRest.RequestOptionsBase {
18181822
/**
1819-
* Resource tags
1820-
*/
1821-
tags?: { [propertyName: string]: string };
1822-
/**
1823-
* Label for backup
1824-
*/
1825-
label?: string;
1826-
}
1827-
1828-
/**
1829-
* Optional Parameters.
1830-
*/
1831-
export interface BackupsBeginCreateOptionalParams extends msRest.RequestOptionsBase {
1832-
/**
1833-
* Label for backup
1823+
* Backup object supplied in the body of the operation.
18341824
*/
1835-
label?: string;
1825+
body?: BackupPatch;
18361826
}
18371827

18381828
/**
18391829
* Optional Parameters.
18401830
*/
18411831
export interface BackupsBeginUpdateOptionalParams extends msRest.RequestOptionsBase {
18421832
/**
1843-
* Resource tags
1844-
*/
1845-
tags?: { [propertyName: string]: string };
1846-
/**
1847-
* Label for backup
1833+
* Backup object supplied in the body of the operation.
18481834
*/
1849-
label?: string;
1835+
body?: BackupPatch;
18501836
}
18511837

18521838
/**
@@ -2043,6 +2029,14 @@ export type RelationshipStatus = 'Idle' | 'Transferring';
20432029
*/
20442030
export type MirrorState = 'Uninitialized' | 'Mirrored' | 'Broken';
20452031

2032+
/**
2033+
* Defines values for BackupType.
2034+
* Possible values include: 'Manual', 'Scheduled'
2035+
* @readonly
2036+
* @enum {string}
2037+
*/
2038+
export type BackupType = 'Manual' | 'Scheduled';
2039+
20462040
/**
20472041
* Contains response data for the list operation.
20482042
*/
@@ -2804,9 +2798,9 @@ export type SnapshotPoliciesBeginUpdateResponse = SnapshotPolicy & {
28042798
};
28052799

28062800
/**
2807-
* Contains response data for the get operation.
2801+
* Contains response data for the getStatus operation.
28082802
*/
2809-
export type VolumeBackupStatusGetResponse = BackupStatus & {
2803+
export type BackupsGetStatusResponse = BackupStatus & {
28102804
/**
28112805
* The underlying HTTP response.
28122806
*/
@@ -2826,7 +2820,7 @@ export type VolumeBackupStatusGetResponse = BackupStatus & {
28262820
/**
28272821
* Contains response data for the list operation.
28282822
*/
2829-
export type AccountBackupsListResponse = BackupsList & {
2823+
export type BackupsListResponse = BackupsList & {
28302824
/**
28312825
* The underlying HTTP response.
28322826
*/
@@ -2846,7 +2840,7 @@ export type AccountBackupsListResponse = BackupsList & {
28462840
/**
28472841
* Contains response data for the get operation.
28482842
*/
2849-
export type AccountBackupsGetResponse = Backup & {
2843+
export type BackupsGetResponse = Backup & {
28502844
/**
28512845
* The underlying HTTP response.
28522846
*/
@@ -2864,9 +2858,9 @@ export type AccountBackupsGetResponse = Backup & {
28642858
};
28652859

28662860
/**
2867-
* Contains response data for the list operation.
2861+
* Contains response data for the create operation.
28682862
*/
2869-
export type BackupsListResponse = BackupsList & {
2863+
export type BackupsCreateResponse = Backup & {
28702864
/**
28712865
* The underlying HTTP response.
28722866
*/
@@ -2879,14 +2873,14 @@ export type BackupsListResponse = BackupsList & {
28792873
/**
28802874
* The response body as parsed JSON or XML
28812875
*/
2882-
parsedBody: BackupsList;
2876+
parsedBody: Backup;
28832877
};
28842878
};
28852879

28862880
/**
2887-
* Contains response data for the get operation.
2881+
* Contains response data for the update operation.
28882882
*/
2889-
export type BackupsGetResponse = Backup & {
2883+
export type BackupsUpdateResponse = Backup & {
28902884
/**
28912885
* The underlying HTTP response.
28922886
*/
@@ -2904,9 +2898,9 @@ export type BackupsGetResponse = Backup & {
29042898
};
29052899

29062900
/**
2907-
* Contains response data for the create operation.
2901+
* Contains response data for the beginCreate operation.
29082902
*/
2909-
export type BackupsCreateResponse = Backup & {
2903+
export type BackupsBeginCreateResponse = Backup & {
29102904
/**
29112905
* The underlying HTTP response.
29122906
*/
@@ -2924,9 +2918,9 @@ export type BackupsCreateResponse = Backup & {
29242918
};
29252919

29262920
/**
2927-
* Contains response data for the update operation.
2921+
* Contains response data for the beginUpdate operation.
29282922
*/
2929-
export type BackupsUpdateResponse = Backup & {
2923+
export type BackupsBeginUpdateResponse = Backup & {
29302924
/**
29312925
* The underlying HTTP response.
29322926
*/
@@ -2944,9 +2938,9 @@ export type BackupsUpdateResponse = Backup & {
29442938
};
29452939

29462940
/**
2947-
* Contains response data for the beginCreate operation.
2941+
* Contains response data for the list operation.
29482942
*/
2949-
export type BackupsBeginCreateResponse = Backup & {
2943+
export type AccountBackupsListResponse = BackupsList & {
29502944
/**
29512945
* The underlying HTTP response.
29522946
*/
@@ -2959,14 +2953,14 @@ export type BackupsBeginCreateResponse = Backup & {
29592953
/**
29602954
* The response body as parsed JSON or XML
29612955
*/
2962-
parsedBody: Backup;
2956+
parsedBody: BackupsList;
29632957
};
29642958
};
29652959

29662960
/**
2967-
* Contains response data for the beginUpdate operation.
2961+
* Contains response data for the get operation.
29682962
*/
2969-
export type BackupsBeginUpdateResponse = Backup & {
2963+
export type AccountBackupsGetResponse = Backup & {
29702964
/**
29712965
* The underlying HTTP response.
29722966
*/
@@ -3083,6 +3077,26 @@ export type BackupPoliciesBeginCreateResponse = BackupPolicy & {
30833077
};
30843078
};
30853079

3080+
/**
3081+
* Contains response data for the beginUpdate operation.
3082+
*/
3083+
export type BackupPoliciesBeginUpdateResponse = BackupPolicy & {
3084+
/**
3085+
* The underlying HTTP response.
3086+
*/
3087+
_response: msRest.HttpResponse & {
3088+
/**
3089+
* The response body as text (string format)
3090+
*/
3091+
bodyAsText: string;
3092+
3093+
/**
3094+
* The response body as parsed JSON or XML
3095+
*/
3096+
parsedBody: BackupPolicy;
3097+
};
3098+
};
3099+
30863100
/**
30873101
* Contains response data for the list operation.
30883102
*/

sdk/netapp/arm-netapp/src/models/mappers.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,6 +1473,13 @@ export const VolumePatchPropertiesDataProtection: msRest.CompositeMapper = {
14731473
name: "Composite",
14741474
className: "VolumeBackupProperties"
14751475
}
1476+
},
1477+
snapshot: {
1478+
serializedName: "snapshot",
1479+
type: {
1480+
name: "Composite",
1481+
className: "VolumeSnapshotProperties"
1482+
}
14761483
}
14771484
}
14781485
}
@@ -2307,6 +2314,13 @@ export const Backup: msRest.CompositeMapper = {
23072314
type: {
23082315
name: "String"
23092316
}
2317+
},
2318+
useExistingSnapshot: {
2319+
serializedName: "properties.useExistingSnapshot",
2320+
defaultValue: false,
2321+
type: {
2322+
name: "Boolean"
2323+
}
23102324
}
23112325
}
23122326
}
@@ -2388,6 +2402,13 @@ export const BackupPatch: msRest.CompositeMapper = {
23882402
type: {
23892403
name: "String"
23902404
}
2405+
},
2406+
useExistingSnapshot: {
2407+
serializedName: "properties.useExistingSnapshot",
2408+
defaultValue: false,
2409+
type: {
2410+
name: "Boolean"
2411+
}
23912412
}
23922413
}
23932414
}

0 commit comments

Comments
 (0)