Skip to content

Commit e4aeb82

Browse files
author
SDKAuto
committed
CodeGen from PR 12367 in Azure/azure-rest-api-specs
Merge 94413113b3dd7b366ec0350514a058b541170c22 into 4ac3bbf09ebb741fd56445c668566b56e80fbcae
1 parent 81d37fa commit e4aeb82

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

sdk/netapp/arm-netapp/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ 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
}
@@ -52,10 +52,10 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe
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: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export interface QuotaAvailabilityRequest {
192192
*/
193193
export interface ActiveDirectory {
194194
/**
195-
* Id of the Active Directory
195+
* Id of the Active Directory. Default value: 'guid id'.
196196
*/
197197
activeDirectoryId?: string;
198198
/**
@@ -228,7 +228,8 @@ export interface ActiveDirectory {
228228
*/
229229
smbServerName?: string;
230230
/**
231-
* The Organizational Unit (OU) within the Windows Active Directory
231+
* The Organizational Unit (OU) within the Windows Active Directory. Default value:
232+
* 'CN=Computers'.
232233
*/
233234
organizationalUnit?: string;
234235
/**
@@ -497,7 +498,7 @@ export interface ExportPolicyRule {
497498
*/
498499
kerberos5pReadWrite?: boolean;
499500
/**
500-
* Allows CIFS protocol
501+
* Allows CIFS protocol. Default value: false.
501502
*/
502503
cifs?: boolean;
503504
/**
@@ -664,6 +665,11 @@ export interface Volume extends BaseResource {
664665
* **NOTE: This property will not be serialized. It can only be populated by the server.**
665666
*/
666667
readonly fileSystemId?: string;
668+
/**
669+
* Resource name
670+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
671+
*/
672+
readonly name1?: string;
667673
/**
668674
* Creation Token or File Path. A unique file path for the volume. Used when creating mount
669675
* targets
@@ -685,7 +691,7 @@ export interface Volume extends BaseResource {
685691
*/
686692
exportPolicy?: VolumePropertiesExportPolicy;
687693
/**
688-
* protocolTypes. Set of protocol types
694+
* protocolTypes. Set of protocol types, default NFSv3, CIFS for SMB protocol
689695
*/
690696
protocolTypes?: string[];
691697
/**
@@ -713,8 +719,9 @@ export interface Volume extends BaseResource {
713719
subnetId: string;
714720
/**
715721
* mountTargets. List of mount targets
722+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
716723
*/
717-
mountTargets?: MountTargetProperties[];
724+
readonly mountTargets?: MountTargetProperties[];
718725
/**
719726
* What type of volume is this
720727
*/
@@ -730,7 +737,7 @@ export interface Volume extends BaseResource {
730737
isRestoring?: boolean;
731738
/**
732739
* If enabled (true) the volume will contain a read-only .snapshot directory which provides
733-
* access to each of the volume's snapshots (default to true).
740+
* access to each of the volume's snapshots (default to true). Default value: true.
734741
*/
735742
snapshotDirectoryVisible?: boolean;
736743
/**
@@ -739,7 +746,8 @@ export interface Volume extends BaseResource {
739746
*/
740747
kerberosEnabled?: boolean;
741748
/**
742-
* The security style of volume. Possible values include: 'ntfs', 'unix'
749+
* The security style of volume, default unix, ntfs for dual protocol or CIFS protocol. Possible
750+
* values include: 'ntfs', 'unix'. Default value: 'unix'.
743751
*/
744752
securityStyle?: SecurityStyle;
745753
/**
@@ -753,7 +761,7 @@ export interface Volume extends BaseResource {
753761
*/
754762
smbContinuouslyAvailable?: boolean;
755763
/**
756-
* Maximum throughput in Mibps that can be achieved by this volume.
764+
* Maximum throughput in Mibps that can be achieved by this volume. Default value: 0.
757765
*/
758766
throughputMibps?: number;
759767
}

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ export const ActiveDirectory: msRest.CompositeMapper = {
294294
modelProperties: {
295295
activeDirectoryId: {
296296
serializedName: "activeDirectoryId",
297+
defaultValue: 'guid id',
297298
type: {
298299
name: "String"
299300
}
@@ -347,6 +348,7 @@ export const ActiveDirectory: msRest.CompositeMapper = {
347348
},
348349
organizationalUnit: {
349350
serializedName: "organizationalUnit",
351+
defaultValue: 'CN=Computers',
350352
type: {
351353
name: "String"
352354
}
@@ -801,6 +803,7 @@ export const ExportPolicyRule: msRest.CompositeMapper = {
801803
},
802804
cifs: {
803805
serializedName: "cifs",
806+
defaultValue: false,
804807
type: {
805808
name: "Boolean"
806809
}
@@ -1083,6 +1086,13 @@ export const Volume: msRest.CompositeMapper = {
10831086
name: "String"
10841087
}
10851088
},
1089+
name1: {
1090+
readOnly: true,
1091+
serializedName: "properties.name",
1092+
type: {
1093+
name: "String"
1094+
}
1095+
},
10861096
creationToken: {
10871097
required: true,
10881098
serializedName: "properties.creationToken",
@@ -1140,6 +1150,7 @@ export const Volume: msRest.CompositeMapper = {
11401150
}
11411151
},
11421152
snapshotId: {
1153+
nullable: true,
11431154
serializedName: "properties.snapshotId",
11441155
constraints: {
11451156
MaxLength: 36,
@@ -1176,6 +1187,7 @@ export const Volume: msRest.CompositeMapper = {
11761187
}
11771188
},
11781189
mountTargets: {
1190+
readOnly: true,
11791191
serializedName: "properties.mountTargets",
11801192
type: {
11811193
name: "Sequence",
@@ -1208,6 +1220,7 @@ export const Volume: msRest.CompositeMapper = {
12081220
},
12091221
snapshotDirectoryVisible: {
12101222
serializedName: "properties.snapshotDirectoryVisible",
1223+
defaultValue: true,
12111224
type: {
12121225
name: "Boolean"
12131226
}
@@ -1221,6 +1234,7 @@ export const Volume: msRest.CompositeMapper = {
12211234
},
12221235
securityStyle: {
12231236
serializedName: "properties.securityStyle",
1237+
defaultValue: 'unix',
12241238
type: {
12251239
name: "String"
12261240
}
@@ -1241,9 +1255,10 @@ export const Volume: msRest.CompositeMapper = {
12411255
},
12421256
throughputMibps: {
12431257
serializedName: "properties.throughputMibps",
1258+
defaultValue: 0,
12441259
constraints: {
12451260
InclusiveMaximum: 4500,
1246-
InclusiveMinimum: 1,
1261+
InclusiveMinimum: 0,
12471262
MultipleOf: 0.001
12481263
},
12491264
type: {

0 commit comments

Comments
 (0)