Skip to content
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 @@ -23,6 +23,7 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC
volumes: operations.Volumes;
snapshots: operations.Snapshots;
snapshotPolicies: operations.SnapshotPolicies;
volumeBackupStatus: operations.VolumeBackupStatus;
accountBackups: operations.AccountBackups;
backups: operations.Backups;
backupPolicies: operations.BackupPolicies;
Expand All @@ -44,6 +45,7 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC
this.volumes = new operations.Volumes(this);
this.snapshots = new operations.Snapshots(this);
this.snapshotPolicies = new operations.SnapshotPolicies(this);
this.volumeBackupStatus = new operations.VolumeBackupStatus(this);
this.accountBackups = new operations.AccountBackups(this);
this.backups = new operations.Backups(this);
this.backupPolicies = new operations.BackupPolicies(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.apiVersion = '2020-11-01';
this.apiVersion = '2020-12-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
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
134 changes: 104 additions & 30 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,17 +274,21 @@ export interface ActiveDirectory {
* Specifies whether or not the LDAP traffic needs to be secured via TLS.
*/
ldapOverTLS?: boolean;
/**
* If enabled, NFS client local users can also (in addition to LDAP users) access the NFS
* volumes.
*/
allowLocalNfsUsersWithLdap?: boolean;
}

/**
* Encryption settings
*/
export interface AccountEncryption {
/**
* Encryption Key Source. Possible values are: 'Microsoft.NetApp'. Possible values include:
* 'Microsoft.NetApp'
* Encryption Key Source. Possible values are: 'Microsoft.NetApp'.
*/
keySource?: KeySource;
keySource?: string;
}

/**
Expand Down Expand Up @@ -823,6 +827,30 @@ export interface Volume extends BaseResource {
* Encryption Key Source. Possible values are: 'Microsoft.NetApp'
*/
encryptionKeySource?: string;
/**
* Specifies whether LDAP is enabled or not for a given NFS volume. Default value: false.
*/
ldapEnabled?: boolean;
}

/**
* An interface representing ResourceIdentity.
*/
export interface ResourceIdentity {
/**
* Object id of the identity resource
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly principalId?: string;
/**
* The tenant id of the resource
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly tenantId?: string;
/**
* Type of Identity. Supported values are: 'None', 'SystemAssigned'
*/
type?: string;
}

/**
Expand Down Expand Up @@ -1133,11 +1161,6 @@ export interface SnapshotPolicy extends BaseResource {
* Resource tags
*/
tags?: { [propertyName: string]: string };
/**
* Snapshot policy name
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name1?: string;
/**
* hourlySchedule. Schedule for hourly snapshots
*/
Expand Down Expand Up @@ -1192,11 +1215,6 @@ export interface SnapshotPolicyDetails {
* Resource tags
*/
tags?: { [propertyName: string]: string };
/**
* Snapshot policy name
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name1?: string;
/**
* hourlySchedule. Schedule for hourly snapshots
*/
Expand Down Expand Up @@ -1251,11 +1269,6 @@ export interface SnapshotPolicyPatch {
* Resource tags
*/
tags?: { [propertyName: string]: string };
/**
* Snapshot policy name
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name1?: string;
/**
* hourlySchedule. Schedule for hourly snapshots
*/
Expand Down Expand Up @@ -1382,15 +1395,20 @@ export interface Backup extends BaseResource {
*/
label?: string;
/**
* Type of backup adhoc or scheduled
* backupType. Type of backup Manual or Scheduled. Possible values include: 'Manual', 'Scheduled'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly backupType?: string;
readonly backupType?: BackupType;
/**
* Failure reason
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly failureReason?: string;
/**
* Volume name
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly volumeName?: string;
}

/**
Expand Down Expand Up @@ -1426,15 +1444,20 @@ export interface BackupPatch extends BaseResource {
*/
label?: string;
/**
* Type of backup adhoc or scheduled
* backupType. Type of backup Manual or Scheduled. Possible values include: 'Manual', 'Scheduled'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly backupType?: string;
readonly backupType?: BackupType;
/**
* Failure reason
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly failureReason?: string;
/**
* Volume name
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly volumeName?: string;
}

/**
Expand Down Expand Up @@ -1685,6 +1708,37 @@ export interface Vault extends BaseResource {
vaultName?: string;
}

/**
* Backup status
*/
export interface BackupStatus {
/**
* Backup health status
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly healthy?: boolean;
/**
* Status of the backup mirror relationship. Possible values include: 'Idle', 'Transferring'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly relationshipStatus?: RelationshipStatus;
/**
* The status of the backup. Possible values include: 'Uninitialized', 'Mirrored', 'Broken'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly mirrorState?: MirrorState;
/**
* Reason for the unhealthy backup relationship
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly unhealthyReason?: string;
/**
* Displays error message if the backup is in an error state
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly errorMessage?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1925,14 +1979,6 @@ export type CheckQuotaNameResourceTypes = 'Microsoft.NetApp/netAppAccounts' | 'M
*/
export type ActiveDirectoryStatus = 'Created' | 'InUse' | 'Deleted' | 'Error' | 'Updating';

/**
* Defines values for KeySource.
* Possible values include: 'Microsoft.NetApp'
* @readonly
* @enum {string}
*/
export type KeySource = 'Microsoft.NetApp';

/**
* Defines values for CreatedByType.
* Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
Expand Down Expand Up @@ -1997,6 +2043,14 @@ export type RelationshipStatus = 'Idle' | 'Transferring';
*/
export type MirrorState = 'Uninitialized' | 'Mirrored' | 'Broken';

/**
* Defines values for BackupType.
* Possible values include: 'Manual', 'Scheduled'
* @readonly
* @enum {string}
*/
export type BackupType = 'Manual' | 'Scheduled';

/**
* Contains response data for the list operation.
*/
Expand Down Expand Up @@ -2757,6 +2811,26 @@ export type SnapshotPoliciesBeginUpdateResponse = SnapshotPolicy & {
};
};

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

/**
* Contains response data for the list operation.
*/
Expand Down
Loading