Skip to content

Commit 5454250

Browse files
author
SDKAuto
committed
CodeGen from PR 12875 in Azure/azure-rest-api-specs
Merge 8030c94920fdb96a32c6f1a1b2da21460566da9c into bbbf1ccbf0e4a5e630c8fa9e57fd7bc0b4f1da7a
1 parent 849472a commit 5454250

File tree

10 files changed

+217
-257
lines changed

10 files changed

+217
-257
lines changed

sdk/storagecache/arm-storagecache/src/models/ascOperationsMappers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
export {
10-
discriminators,
1110
AscOperation,
1211
CloudError,
1312
ErrorResponse

sdk/storagecache/arm-storagecache/src/models/cachesMappers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
*/
88

99
export {
10-
discriminators,
1110
BaseResource,
11+
BlobNfsTarget,
1212
Cache,
1313
CacheActiveDirectorySettings,
1414
CacheActiveDirectorySettingsCredentials,
@@ -25,6 +25,7 @@ export {
2525
CacheUsernameDownloadSettingsCredentials,
2626
ClfsTarget,
2727
CloudError,
28+
Condition,
2829
KeyVaultKeyReference,
2930
KeyVaultKeyReferenceSourceVault,
3031
NamespaceJunction,

sdk/storagecache/arm-storagecache/src/models/index.ts

Lines changed: 61 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export interface AscOperation {
196196
*/
197197
error?: ErrorResponse;
198198
/**
199-
* Additional Operation Specific Properties
199+
* Additional operation-specific output.
200200
*/
201201
output?: { [propertyName: string]: any };
202202
}
@@ -248,11 +248,27 @@ export interface SystemData {
248248
*/
249249
lastModifiedByType?: CreatedByType;
250250
/**
251-
* The type of identity that last modified the resource.
251+
* The timestamp of resource last modification (UTC)
252252
*/
253253
lastModifiedAt?: Date;
254254
}
255255

256+
/**
257+
* Outstanding conditions that will need to be resolved.
258+
*/
259+
export interface Condition {
260+
/**
261+
* The time when the condition was raised.
262+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
263+
*/
264+
readonly timestamp?: Date;
265+
/**
266+
* The issue requiring attention.
267+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
268+
*/
269+
readonly message?: string;
270+
}
271+
256272
/**
257273
* An indication of Cache health. Gives more information about health than just that related to
258274
* provisioning.
@@ -267,6 +283,11 @@ export interface CacheHealth {
267283
* Describes explanation of state.
268284
*/
269285
statusDescription?: string;
286+
/**
287+
* Outstanding conditions that need to be investigated and resolved.
288+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
289+
*/
290+
readonly conditions?: Condition[];
270291
}
271292

272293
/**
@@ -315,6 +336,19 @@ export interface CacheNetworkSettings {
315336
* **NOTE: This property will not be serialized. It can only be populated by the server.**
316337
*/
317338
readonly utilityAddresses?: string[];
339+
/**
340+
* DNS servers for the cache to use. It will be set from the network configuration if no value
341+
* is provided.
342+
*/
343+
dnsServers?: string[];
344+
/**
345+
* DNS search domain
346+
*/
347+
dnsSearchDomain?: string;
348+
/**
349+
* NTP server IP Address or FQDN for the cache to use. The default is time.windows.com.
350+
*/
351+
ntpServer?: string;
318352
}
319353

320354
/**
@@ -387,11 +421,12 @@ export interface NfsAccessRule {
387421
*/
388422
rootSquash?: boolean;
389423
/**
390-
* UID value that replaces 0 when rootSquash is true. Default value: '-2'.
424+
* UID value that replaces 0 when rootSquash is true. 65534 will be used if not provided.
391425
*/
392426
anonymousUID?: string;
393427
/**
394-
* GID value that replaces 0 when rootSquash is true. Default value: '-2'.
428+
* GID value that replaces 0 when rootSquash is true. This will use the value of anonymousUID if
429+
* not provided.
395430
*/
396431
anonymousGID?: string;
397432
}
@@ -584,9 +619,9 @@ export interface CacheSku {
584619
*/
585620
export interface Cache extends BaseResource {
586621
/**
587-
* ARM tags as name/value pairs.
622+
* Resource tags.
588623
*/
589-
tags?: any;
624+
tags?: { [propertyName: string]: string };
590625
/**
591626
* Resource ID of the Cache.
592627
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -697,8 +732,7 @@ export interface Nfs3Target {
697732
*/
698733
target?: string;
699734
/**
700-
* Identifies the usage model to be used for this Storage Target. Get choices from
701-
* .../usageModels
735+
* Identifies the StorageCache usage model to be used for this storage target.
702736
*/
703737
usageModel?: string;
704738
}
@@ -720,45 +754,21 @@ export interface UnknownTarget {
720754
/**
721755
* Dictionary of string->string pairs containing information about the Storage Target.
722756
*/
723-
unknownMap?: { [propertyName: string]: string };
757+
attributes?: { [propertyName: string]: string };
724758
}
725759

726760
/**
727-
* Contains the possible cases for StorageTargetProperties.
728-
*/
729-
export type StorageTargetPropertiesUnion = StorageTargetProperties | Nfs3TargetProperties | ClfsTargetProperties | UnknownTargetProperties;
730-
731-
/**
732-
* Properties of the Storage Target.
761+
* Properties pertaining to the BlobNfsTarget.
733762
*/
734-
export interface StorageTargetProperties {
735-
/**
736-
* Polymorphic Discriminator
737-
*/
738-
targetType: "StorageTargetProperties";
739-
/**
740-
* List of Cache namespace junctions to target for namespace associations.
741-
*/
742-
junctions?: NamespaceJunction[];
743-
/**
744-
* ARM provisioning state, see
745-
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
746-
* Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Creating', 'Deleting',
747-
* 'Updating'
748-
*/
749-
provisioningState?: ProvisioningStateType;
763+
export interface BlobNfsTarget {
750764
/**
751-
* Properties when targetType is nfs3.
765+
* Resource ID of the storage container.
752766
*/
753-
nfs3?: Nfs3Target;
754-
/**
755-
* Properties when targetType is clfs.
756-
*/
757-
clfs?: ClfsTarget;
767+
target?: string;
758768
/**
759-
* Properties when targetType is unknown.
769+
* Identifies the StorageCache usage model to be used for this storage target.
760770
*/
761-
unknown?: UnknownTarget;
771+
usageModel?: string;
762772
}
763773

764774
/**
@@ -801,42 +811,9 @@ export interface StorageTarget extends StorageTargetResource {
801811
*/
802812
junctions?: NamespaceJunction[];
803813
/**
804-
* ARM provisioning state, see
805-
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
806-
* Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Creating', 'Deleting',
807-
* 'Updating'
808-
*/
809-
provisioningState?: ProvisioningStateType;
810-
/**
811-
* Properties when targetType is nfs3.
814+
* Type of the Storage Target. Possible values include: 'nfs3', 'clfs', 'unknown', 'blobNfs'
812815
*/
813-
nfs3?: Nfs3Target;
814-
/**
815-
* Properties when targetType is clfs.
816-
*/
817-
clfs?: ClfsTarget;
818-
/**
819-
* Properties when targetType is unknown.
820-
*/
821-
unknown?: UnknownTarget;
822-
/**
823-
* Polymorphic Discriminator
824-
*/
825-
targetType: string;
826-
}
827-
828-
/**
829-
* An NFSv3 mount point for use as a Storage Target.
830-
*/
831-
export interface Nfs3TargetProperties {
832-
/**
833-
* Polymorphic Discriminator
834-
*/
835-
targetType: "nfs3";
836-
/**
837-
* List of Cache namespace junctions to target for namespace associations.
838-
*/
839-
junctions?: NamespaceJunction[];
816+
targetType: StorageTargetType;
840817
/**
841818
* ARM provisioning state, see
842819
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
@@ -856,72 +833,10 @@ export interface Nfs3TargetProperties {
856833
* Properties when targetType is unknown.
857834
*/
858835
unknown?: UnknownTarget;
859-
}
860-
861-
/**
862-
* Storage container for use as a CLFS Storage Target.
863-
*/
864-
export interface ClfsTargetProperties {
865-
/**
866-
* Polymorphic Discriminator
867-
*/
868-
targetType: "clfs";
869-
/**
870-
* List of Cache namespace junctions to target for namespace associations.
871-
*/
872-
junctions?: NamespaceJunction[];
873-
/**
874-
* ARM provisioning state, see
875-
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
876-
* Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Creating', 'Deleting',
877-
* 'Updating'
878-
*/
879-
provisioningState?: ProvisioningStateType;
880836
/**
881-
* Properties when targetType is nfs3.
837+
* Properties when targetType is blobNfs.
882838
*/
883-
nfs3?: Nfs3Target;
884-
/**
885-
* Properties when targetType is clfs.
886-
*/
887-
clfs?: ClfsTarget;
888-
/**
889-
* Properties when targetType is unknown.
890-
*/
891-
unknown?: UnknownTarget;
892-
}
893-
894-
/**
895-
* Storage container for use as an Unknown Storage Target.
896-
*/
897-
export interface UnknownTargetProperties {
898-
/**
899-
* Polymorphic Discriminator
900-
*/
901-
targetType: "unknown";
902-
/**
903-
* List of Cache namespace junctions to target for namespace associations.
904-
*/
905-
junctions?: NamespaceJunction[];
906-
/**
907-
* ARM provisioning state, see
908-
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
909-
* Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Creating', 'Deleting',
910-
* 'Updating'
911-
*/
912-
provisioningState?: ProvisioningStateType;
913-
/**
914-
* Properties when targetType is nfs3.
915-
*/
916-
nfs3?: Nfs3Target;
917-
/**
918-
* Properties when targetType is clfs.
919-
*/
920-
clfs?: ClfsTarget;
921-
/**
922-
* Properties when targetType is unknown.
923-
*/
924-
unknown?: UnknownTarget;
839+
blobNfs?: BlobNfsTarget;
925840
}
926841

927842
/**
@@ -1250,6 +1165,14 @@ export type UsernameSource = 'AD' | 'LDAP' | 'File' | 'None';
12501165
*/
12511166
export type UsernameDownloadedType = 'Yes' | 'No' | 'Error';
12521167

1168+
/**
1169+
* Defines values for StorageTargetType.
1170+
* Possible values include: 'nfs3', 'clfs', 'unknown', 'blobNfs'
1171+
* @readonly
1172+
* @enum {string}
1173+
*/
1174+
export type StorageTargetType = 'nfs3' | 'clfs' | 'unknown' | 'blobNfs';
1175+
12531176
/**
12541177
* Defines values for ReasonCode.
12551178
* Possible values include: 'QuotaId', 'NotAvailableForSubscription'

0 commit comments

Comments
 (0)