Skip to content

Commit 0045c2d

Browse files
author
SDKAuto
committed
CodeGen from PR 13061 in Azure/azure-rest-api-specs
Merge 80c62687650e204206cafdc7ee5ed23a72aef93f into 04d3607db5a71d02e90cd60b6c353ca740c8ed75
1 parent 7aa05cc commit 0045c2d

File tree

8 files changed

+313
-56
lines changed

8 files changed

+313
-56
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC
2323
volumes: operations.Volumes;
2424
snapshots: operations.Snapshots;
2525
snapshotPolicies: operations.SnapshotPolicies;
26+
volumeBackupStatus: operations.VolumeBackupStatus;
2627
accountBackups: operations.AccountBackups;
2728
backups: operations.Backups;
2829
backupPolicies: operations.BackupPolicies;
@@ -44,6 +45,7 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC
4445
this.volumes = new operations.Volumes(this);
4546
this.snapshots = new operations.Snapshots(this);
4647
this.snapshotPolicies = new operations.SnapshotPolicies(this);
48+
this.volumeBackupStatus = new operations.VolumeBackupStatus(this);
4749
this.accountBackups = new operations.AccountBackups(this);
4850
this.backups = new operations.Backups(this);
4951
this.backupPolicies = new operations.BackupPolicies(this);

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-11-01';
47+
this.apiVersion = '2020-12-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/index.ts

Lines changed: 92 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,21 @@ export interface ActiveDirectory {
274274
* Specifies whether or not the LDAP traffic needs to be secured via TLS.
275275
*/
276276
ldapOverTLS?: boolean;
277+
/**
278+
* If enabled, NFS client local users can also (in addition to LDAP users) access the NFS
279+
* volumes.
280+
*/
281+
allowLocalNfsFSUsersWithLdap?: boolean;
277282
}
278283

279284
/**
280285
* Encryption settings
281286
*/
282287
export interface AccountEncryption {
283288
/**
284-
* Encryption Key Source. Possible values are: 'Microsoft.NetApp'. Possible values include:
285-
* 'Microsoft.NetApp'
289+
* Encryption Key Source. Possible values are: 'Microsoft.NetApp'.
286290
*/
287-
keySource?: KeySource;
291+
keySource?: string;
288292
}
289293

290294
/**
@@ -823,6 +827,30 @@ export interface Volume extends BaseResource {
823827
* Encryption Key Source. Possible values are: 'Microsoft.NetApp'
824828
*/
825829
encryptionKeySource?: string;
830+
/**
831+
* Specifies whether LDAP is enabled or not for a given NFS volume. Default value: false.
832+
*/
833+
ldapEnabled?: boolean;
834+
}
835+
836+
/**
837+
* An interface representing ResourceIdentity.
838+
*/
839+
export interface ResourceIdentity {
840+
/**
841+
* Object id of the identity resource
842+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
843+
*/
844+
readonly principalId?: string;
845+
/**
846+
* The tenant id of the resource
847+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
848+
*/
849+
readonly tenantId?: string;
850+
/**
851+
* Type of Identity. Supported values are: 'None', 'SystemAssigned'
852+
*/
853+
type?: string;
826854
}
827855

828856
/**
@@ -1133,11 +1161,6 @@ export interface SnapshotPolicy extends BaseResource {
11331161
* Resource tags
11341162
*/
11351163
tags?: { [propertyName: string]: string };
1136-
/**
1137-
* Snapshot policy name
1138-
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1139-
*/
1140-
readonly name1?: string;
11411164
/**
11421165
* hourlySchedule. Schedule for hourly snapshots
11431166
*/
@@ -1192,11 +1215,6 @@ export interface SnapshotPolicyDetails {
11921215
* Resource tags
11931216
*/
11941217
tags?: { [propertyName: string]: string };
1195-
/**
1196-
* Snapshot policy name
1197-
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1198-
*/
1199-
readonly name1?: string;
12001218
/**
12011219
* hourlySchedule. Schedule for hourly snapshots
12021220
*/
@@ -1251,11 +1269,6 @@ export interface SnapshotPolicyPatch {
12511269
* Resource tags
12521270
*/
12531271
tags?: { [propertyName: string]: string };
1254-
/**
1255-
* Snapshot policy name
1256-
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1257-
*/
1258-
readonly name1?: string;
12591272
/**
12601273
* hourlySchedule. Schedule for hourly snapshots
12611274
*/
@@ -1391,6 +1404,11 @@ export interface Backup extends BaseResource {
13911404
* **NOTE: This property will not be serialized. It can only be populated by the server.**
13921405
*/
13931406
readonly failureReason?: string;
1407+
/**
1408+
* Volume name
1409+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1410+
*/
1411+
readonly volumeName?: string;
13941412
}
13951413

13961414
/**
@@ -1435,6 +1453,11 @@ export interface BackupPatch extends BaseResource {
14351453
* **NOTE: This property will not be serialized. It can only be populated by the server.**
14361454
*/
14371455
readonly failureReason?: string;
1456+
/**
1457+
* Volume name
1458+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1459+
*/
1460+
readonly volumeName?: string;
14381461
}
14391462

14401463
/**
@@ -1685,6 +1708,37 @@ export interface Vault extends BaseResource {
16851708
vaultName?: string;
16861709
}
16871710

1711+
/**
1712+
* Backup status
1713+
*/
1714+
export interface BackupStatus {
1715+
/**
1716+
* Backup health status
1717+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1718+
*/
1719+
readonly healthy?: boolean;
1720+
/**
1721+
* Status of the backup mirror relationship. Possible values include: 'Idle', 'Transferring'
1722+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1723+
*/
1724+
readonly relationshipStatus?: RelationshipStatus;
1725+
/**
1726+
* The status of the backup. Possible values include: 'Uninitialized', 'Mirrored', 'Broken'
1727+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1728+
*/
1729+
readonly mirrorState?: MirrorState;
1730+
/**
1731+
* Reason for the unhealthy backup relationship
1732+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1733+
*/
1734+
readonly unhealthyReason?: string;
1735+
/**
1736+
* Displays error message if the backup is in an error state
1737+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
1738+
*/
1739+
readonly errorMessage?: string;
1740+
}
1741+
16881742
/**
16891743
* Optional Parameters.
16901744
*/
@@ -1925,14 +1979,6 @@ export type CheckQuotaNameResourceTypes = 'Microsoft.NetApp/netAppAccounts' | 'M
19251979
*/
19261980
export type ActiveDirectoryStatus = 'Created' | 'InUse' | 'Deleted' | 'Error' | 'Updating';
19271981

1928-
/**
1929-
* Defines values for KeySource.
1930-
* Possible values include: 'Microsoft.NetApp'
1931-
* @readonly
1932-
* @enum {string}
1933-
*/
1934-
export type KeySource = 'Microsoft.NetApp';
1935-
19361982
/**
19371983
* Defines values for CreatedByType.
19381984
* Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
@@ -2757,6 +2803,26 @@ export type SnapshotPoliciesBeginUpdateResponse = SnapshotPolicy & {
27572803
};
27582804
};
27592805

2806+
/**
2807+
* Contains response data for the get operation.
2808+
*/
2809+
export type VolumeBackupStatusGetResponse = BackupStatus & {
2810+
/**
2811+
* The underlying HTTP response.
2812+
*/
2813+
_response: msRest.HttpResponse & {
2814+
/**
2815+
* The response body as text (string format)
2816+
*/
2817+
bodyAsText: string;
2818+
2819+
/**
2820+
* The response body as parsed JSON or XML
2821+
*/
2822+
parsedBody: BackupStatus;
2823+
};
2824+
};
2825+
27602826
/**
27612827
* Contains response data for the list operation.
27622828
*/

0 commit comments

Comments
 (0)