Skip to content

Commit

Permalink
CodeGen from PR 12388 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge edd409321bd44a93476e10c5988fbc7364f53417 into 8afb86737a4e792aa5d90280461e3cca4a2a9f52
  • Loading branch information
SDKAuto committed Jan 20, 2021
1 parent e942aca commit 381cce2
Show file tree
Hide file tree
Showing 16 changed files with 309 additions and 60 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) 2020 Microsoft
Copyright (c) 2021 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
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-09-01';
this.apiVersion = '2020-11-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
2 changes: 2 additions & 0 deletions sdk/netapp/arm-netapp/src/models/accountBackupsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

export {
AccountEncryption,
ActiveDirectory,
Backup,
BackupPatch,
Expand All @@ -28,6 +29,7 @@ export {
ReplicationObject,
Snapshot,
SnapshotPolicy,
SystemData,
Vault,
Volume,
VolumeBackupProperties,
Expand Down
2 changes: 2 additions & 0 deletions sdk/netapp/arm-netapp/src/models/accountsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

export {
AccountEncryption,
ActiveDirectory,
Backup,
BackupPatch,
Expand All @@ -28,6 +29,7 @@ export {
ReplicationObject,
Snapshot,
SnapshotPolicy,
SystemData,
Vault,
Volume,
VolumeBackupProperties,
Expand Down
2 changes: 2 additions & 0 deletions sdk/netapp/arm-netapp/src/models/backupPoliciesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

export {
AccountEncryption,
ActiveDirectory,
Backup,
BackupPatch,
Expand All @@ -28,6 +29,7 @@ export {
ReplicationObject,
Snapshot,
SnapshotPolicy,
SystemData,
Vault,
Volume,
VolumeBackupProperties,
Expand Down
2 changes: 2 additions & 0 deletions sdk/netapp/arm-netapp/src/models/backupsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

export {
AccountEncryption,
ActiveDirectory,
Backup,
BackupPatch,
Expand All @@ -28,6 +29,7 @@ export {
ReplicationObject,
Snapshot,
SnapshotPolicy,
SystemData,
Vault,
Volume,
VolumeBackupProperties,
Expand Down
125 changes: 117 additions & 8 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export interface QuotaAvailabilityRequest {
*/
export interface ActiveDirectory {
/**
* Id of the Active Directory
* Id of the Active Directory. Default value: 'guid id'.
*/
activeDirectoryId?: string;
/**
Expand Down Expand Up @@ -228,7 +228,8 @@ export interface ActiveDirectory {
*/
smbServerName?: string;
/**
* The Organizational Unit (OU) within the Windows Active Directory
* The Organizational Unit (OU) within the Windows Active Directory. Default value:
* 'CN=Computers'.
*/
organizationalUnit?: string;
/**
Expand Down Expand Up @@ -269,6 +270,52 @@ export interface ActiveDirectory {
* Continuously available shares for SQL). A list of unique usernames without domain specifier
*/
securityOperators?: string[];
/**
* Specifies whether or not the LDAP traffic needs to be secured via TLS.
*/
ldapOverTLS?: boolean;
}

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

/**
* Metadata pertaining to creation and last modification of the resource.
*/
export interface SystemData {
/**
* The identity that created the resource.
*/
createdBy?: string;
/**
* The type of identity that created the resource. Possible values include: 'User',
* 'Application', 'ManagedIdentity', 'Key'
*/
createdByType?: CreatedByType;
/**
* The timestamp of resource creation (UTC).
*/
createdAt?: Date;
/**
* The identity that last modified the resource.
*/
lastModifiedBy?: string;
/**
* The type of identity that last modified the resource. Possible values include: 'User',
* 'Application', 'ManagedIdentity', 'Key'
*/
lastModifiedByType?: CreatedByType;
/**
* The type of identity that last modified the resource.
*/
lastModifiedAt?: Date;
}

/**
Expand Down Expand Up @@ -307,6 +354,15 @@ export interface NetAppAccount extends BaseResource {
* Active Directories
*/
activeDirectories?: ActiveDirectory[];
/**
* Encryption settings
*/
encryption?: AccountEncryption;
/**
* The system meta data relating to this resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly systemData?: SystemData;
}

/**
Expand Down Expand Up @@ -345,6 +401,10 @@ export interface NetAppAccountPatch extends BaseResource {
* Active Directories
*/
activeDirectories?: ActiveDirectory[];
/**
* Encryption settings
*/
encryption?: AccountEncryption;
}

/**
Expand Down Expand Up @@ -664,6 +724,11 @@ export interface Volume extends BaseResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly fileSystemId?: string;
/**
* Resource name
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name1?: string;
/**
* Creation Token or File Path. A unique file path for the volume. Used when creating mount
* targets
Expand All @@ -685,7 +750,7 @@ export interface Volume extends BaseResource {
*/
exportPolicy?: VolumePropertiesExportPolicy;
/**
* protocolTypes. Set of protocol types
* protocolTypes. Set of protocol types, default NFSv3, CIFS fro SMB protocol
*/
protocolTypes?: string[];
/**
Expand Down Expand Up @@ -713,8 +778,9 @@ export interface Volume extends BaseResource {
subnetId: string;
/**
* mountTargets. List of mount targets
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
mountTargets?: MountTargetProperties[];
readonly mountTargets?: MountTargetProperties[];
/**
* What type of volume is this
*/
Expand All @@ -729,8 +795,8 @@ export interface Volume extends BaseResource {
*/
isRestoring?: boolean;
/**
* If enabled (true) the volume will contain a read-only .snapshot directory which provides
* access to each of the volume's snapshots (default to true).
* If enabled (true) the volume will contain a read-only snapshot directory which provides access
* to each of the volume's snapshots (default to true). Default value: true.
*/
snapshotDirectoryVisible?: boolean;
/**
Expand All @@ -739,7 +805,8 @@ export interface Volume extends BaseResource {
*/
kerberosEnabled?: boolean;
/**
* The security style of volume. Possible values include: 'ntfs', 'unix'
* The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS
* protocol. Possible values include: 'ntfs', 'unix'. Default value: 'unix'.
*/
securityStyle?: SecurityStyle;
/**
Expand All @@ -753,9 +820,13 @@ export interface Volume extends BaseResource {
*/
smbContinuouslyAvailable?: boolean;
/**
* Maximum throughput in Mibps that can be achieved by this volume.
* Maximum throughput in Mibps that can be achieved by this volume. Default value: 0.
*/
throughputMibps?: number;
/**
* Encryption Key Source. Possible values are: 'Microsoft.NetApp'
*/
encryptionKeySource?: string;
}

/**
Expand Down Expand Up @@ -1319,6 +1390,11 @@ export interface Backup extends BaseResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly backupType?: string;
/**
* Failure reason
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly failureReason?: string;
}

/**
Expand Down Expand Up @@ -1358,6 +1434,11 @@ export interface BackupPatch extends BaseResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly backupType?: string;
/**
* Failure reason
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly failureReason?: string;
}

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

/**
* Defines values for CreatedByType.
* Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
* @readonly
* @enum {string}
*/
export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key';

/**
* Defines values for ServiceLevel.
* Possible values include: 'Standard', 'Premium', 'Ultra'
Expand Down Expand Up @@ -2582,6 +2671,26 @@ export type SnapshotPoliciesListVolumesResponse = SnapshotPolicyVolumeList & {
};
};

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

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

0 comments on commit 381cce2

Please sign in to comment.