Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-netapp] [NetAppFiles] Fix protocolType example #4207

Closed
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 @@ -37,7 +37,7 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -52,10 +52,10 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe
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
18 changes: 13 additions & 5 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ export interface Volume extends BaseResource {
*/
exportPolicy?: VolumePropertiesExportPolicy;
/**
* protocolTypes. Set of protocol types, default NFSv3, CIFS fro SMB protocol
* protocolTypes. Set of protocol types, default NFSv3, CIFS for SMB protocol
*/
protocolTypes?: string[];
/**
Expand Down Expand Up @@ -1395,10 +1395,10 @@ 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.**
Expand Down Expand Up @@ -1444,10 +1444,10 @@ 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.**
Expand Down Expand Up @@ -2043,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