/
zz_generated_models.go
916 lines (697 loc) · 35.8 KB
/
zz_generated_models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armstoragecache
import "time"
// APIOperation - REST API operation description: see https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/openapi-authoring-automated-guidelines.md#r3023-operationsapiimplementation
type APIOperation struct {
// The object that represents the operation.
Display *APIOperationDisplay `json:"display,omitempty"`
// The flag that indicates whether the operation applies to data plane.
IsDataAction *bool `json:"isDataAction,omitempty"`
// Operation name: {provider}/{resource}/{operation}
Name *string `json:"name,omitempty"`
// Origin of the operation.
Origin *string `json:"origin,omitempty"`
// Additional details about an operation.
Properties *APIOperationProperties `json:"properties,omitempty"`
}
// APIOperationDisplay - The object that represents the operation.
type APIOperationDisplay struct {
// The description of the operation
Description *string `json:"description,omitempty"`
// Operation type: Read, write, delete, etc.
Operation *string `json:"operation,omitempty"`
// Service provider: Microsoft.StorageCache
Provider *string `json:"provider,omitempty"`
// Resource on which the operation is performed: Cache, etc.
Resource *string `json:"resource,omitempty"`
}
// APIOperationListResult - Result of the request to list Resource Provider operations. It contains a list of operations and
// a URL link to get the next set of results.
type APIOperationListResult struct {
// URL to get the next set of operation list results if there are any.
NextLink *string `json:"nextLink,omitempty"`
// List of Resource Provider operations supported by the Microsoft.StorageCache resource provider.
Value []*APIOperation `json:"value,omitempty"`
}
// APIOperationProperties - Additional details about an operation.
type APIOperationProperties struct {
// Specification of the all the metrics provided for a resource type.
ServiceSpecification *APIOperationPropertiesServiceSpecification `json:"serviceSpecification,omitempty"`
}
// APIOperationPropertiesServiceSpecification - Specification of the all the metrics provided for a resource type.
type APIOperationPropertiesServiceSpecification struct {
// Details about operations related to metrics.
MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"`
}
// AscOperation - The status of operation.
type AscOperation struct {
// The end time of the operation.
EndTime *string `json:"endTime,omitempty"`
// The error detail of the operation if any.
Error *ErrorResponse `json:"error,omitempty"`
// The operation Id.
ID *string `json:"id,omitempty"`
// The operation name.
Name *string `json:"name,omitempty"`
// Additional operation-specific properties
Properties *AscOperationProperties `json:"properties,omitempty"`
// The start time of the operation.
StartTime *string `json:"startTime,omitempty"`
// The status of the operation.
Status *string `json:"status,omitempty"`
}
// AscOperationProperties - Additional operation-specific output.
type AscOperationProperties struct {
// Additional operation-specific output.
Output map[string]interface{} `json:"output,omitempty"`
}
// AscOperationsClientGetOptions contains the optional parameters for the AscOperationsClient.Get method.
type AscOperationsClientGetOptions struct {
// placeholder for future optional parameters
}
// AscUsagesClientListOptions contains the optional parameters for the AscUsagesClient.List method.
type AscUsagesClientListOptions struct {
// placeholder for future optional parameters
}
// BlobNfsTarget - Properties pertaining to the BlobNfsTarget.
type BlobNfsTarget struct {
// Resource ID of the storage container.
Target *string `json:"target,omitempty"`
// Identifies the StorageCache usage model to be used for this storage target.
UsageModel *string `json:"usageModel,omitempty"`
}
// Cache - A Cache instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md
type Cache struct {
// The identity of the cache, if configured.
Identity *CacheIdentity `json:"identity,omitempty"`
// Region name string.
Location *string `json:"location,omitempty"`
// Properties of the Cache.
Properties *CacheProperties `json:"properties,omitempty"`
// SKU for the Cache.
SKU *CacheSKU `json:"sku,omitempty"`
// Resource tags.
Tags map[string]*string `json:"tags,omitempty"`
// READ-ONLY; Resource ID of the Cache.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Name of Cache.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The system meta data relating to this resource.
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; Type of the Cache; Microsoft.StorageCache/Cache
Type *string `json:"type,omitempty" azure:"ro"`
}
// CacheActiveDirectorySettings - Active Directory settings used to join a cache to a domain.
type CacheActiveDirectorySettings struct {
// REQUIRED; The NetBIOS name to assign to the HPC Cache when it joins the Active Directory domain as a server. Length must
// 1-15 characters from the class [-0-9a-zA-Z].
CacheNetBiosName *string `json:"cacheNetBiosName,omitempty"`
// REQUIRED; The fully qualified domain name of the Active Directory domain controller.
DomainName *string `json:"domainName,omitempty"`
// REQUIRED; The Active Directory domain's NetBIOS name.
DomainNetBiosName *string `json:"domainNetBiosName,omitempty"`
// REQUIRED; Primary DNS IP address used to resolve the Active Directory domain controller's fully qualified domain name.
PrimaryDNSIPAddress *string `json:"primaryDnsIpAddress,omitempty"`
// Active Directory admin credentials used to join the HPC Cache to a domain.
Credentials *CacheActiveDirectorySettingsCredentials `json:"credentials,omitempty"`
// Secondary DNS IP address used to resolve the Active Directory domain controller's fully qualified domain name.
SecondaryDNSIPAddress *string `json:"secondaryDnsIpAddress,omitempty"`
// READ-ONLY; True if the HPC Cache is joined to the Active Directory domain.
DomainJoined *DomainJoinedType `json:"domainJoined,omitempty" azure:"ro"`
}
// CacheActiveDirectorySettingsCredentials - Active Directory admin credentials used to join the HPC Cache to a domain.
type CacheActiveDirectorySettingsCredentials struct {
// REQUIRED; Plain text password of the Active Directory domain administrator. This value is stored encrypted and not returned
// on response.
Password *string `json:"password,omitempty"`
// REQUIRED; Username of the Active Directory domain administrator. This value is stored encrypted and not returned on response.
Username *string `json:"username,omitempty"`
}
// CacheDirectorySettings - Cache Directory Services settings.
type CacheDirectorySettings struct {
// Specifies settings for joining the HPC Cache to an Active Directory domain.
ActiveDirectory *CacheActiveDirectorySettings `json:"activeDirectory,omitempty"`
// Specifies settings for Extended Groups. Extended Groups allows users to be members of more than 16 groups.
UsernameDownload *CacheUsernameDownloadSettings `json:"usernameDownload,omitempty"`
}
// CacheEncryptionSettings - Cache encryption settings.
type CacheEncryptionSettings struct {
// Specifies the location of the key encryption key in Key Vault.
KeyEncryptionKey *KeyVaultKeyReference `json:"keyEncryptionKey,omitempty"`
// Specifies whether the service will automatically rotate to the newest version of the key in the Key Vault.
RotationToLatestKeyVersionEnabled *bool `json:"rotationToLatestKeyVersionEnabled,omitempty"`
}
// CacheHealth - An indication of Cache health. Gives more information about health than just that related to provisioning.
type CacheHealth struct {
// List of Cache health states.
State *HealthStateType `json:"state,omitempty"`
// Describes explanation of state.
StatusDescription *string `json:"statusDescription,omitempty"`
// READ-ONLY; Outstanding conditions that need to be investigated and resolved.
Conditions []*Condition `json:"conditions,omitempty" azure:"ro"`
}
// CacheIdentity - Cache identity properties.
type CacheIdentity struct {
// The type of identity used for the cache
Type *CacheIdentityType `json:"type,omitempty"`
// A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.
UserAssignedIdentities map[string]*UserAssignedIdentitiesValue `json:"userAssignedIdentities,omitempty"`
// READ-ONLY; The principal ID for the system-assigned identity of the cache.
PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
// READ-ONLY; The tenant ID associated with the cache.
TenantID *string `json:"tenantId,omitempty" azure:"ro"`
}
// CacheNetworkSettings - Cache network settings.
type CacheNetworkSettings struct {
// DNS search domain
DNSSearchDomain *string `json:"dnsSearchDomain,omitempty"`
// DNS servers for the cache to use. It will be set from the network configuration if no value is provided.
DNSServers []*string `json:"dnsServers,omitempty"`
// The IPv4 maximum transmission unit configured for the subnet.
Mtu *int32 `json:"mtu,omitempty"`
// NTP server IP Address or FQDN for the cache to use. The default is time.windows.com.
NtpServer *string `json:"ntpServer,omitempty"`
// READ-ONLY; Array of additional IP addresses used by this Cache.
UtilityAddresses []*string `json:"utilityAddresses,omitempty" azure:"ro"`
}
// CacheProperties - Properties of the Cache.
type CacheProperties struct {
// The size of this Cache, in GB.
CacheSizeGB *int32 `json:"cacheSizeGB,omitempty"`
// Specifies Directory Services settings of the cache.
DirectoryServicesSettings *CacheDirectorySettings `json:"directoryServicesSettings,omitempty"`
// Specifies encryption settings of the cache.
EncryptionSettings *CacheEncryptionSettings `json:"encryptionSettings,omitempty"`
// Specifies network settings of the cache.
NetworkSettings *CacheNetworkSettings `json:"networkSettings,omitempty"`
// Specifies security settings of the cache.
SecuritySettings *CacheSecuritySettings `json:"securitySettings,omitempty"`
// Subnet used for the Cache.
Subnet *string `json:"subnet,omitempty"`
// Availability zones for resources. This field should only contain a single element in the array.
Zones []*string `json:"zones,omitempty"`
// READ-ONLY; Health of the Cache.
Health *CacheHealth `json:"health,omitempty" azure:"ro"`
// READ-ONLY; Array of IP addresses that can be used by clients mounting this Cache.
MountAddresses []*string `json:"mountAddresses,omitempty" azure:"ro"`
// READ-ONLY; ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property
ProvisioningState *ProvisioningStateType `json:"provisioningState,omitempty" azure:"ro"`
// READ-ONLY; Upgrade status of the Cache.
UpgradeStatus *CacheUpgradeStatus `json:"upgradeStatus,omitempty" azure:"ro"`
}
// CacheSKU - SKU for the Cache.
type CacheSKU struct {
// SKU name for this Cache.
Name *string `json:"name,omitempty"`
}
// CacheSecuritySettings - Cache security settings.
type CacheSecuritySettings struct {
// NFS access policies defined for this cache.
AccessPolicies []*NfsAccessPolicy `json:"accessPolicies,omitempty"`
}
// CacheUpgradeStatus - Properties describing the software upgrade state of the Cache.
type CacheUpgradeStatus struct {
// READ-ONLY; Version string of the firmware currently installed on this Cache.
CurrentFirmwareVersion *string `json:"currentFirmwareVersion,omitempty" azure:"ro"`
// READ-ONLY; Time at which the pending firmware update will automatically be installed on the Cache.
FirmwareUpdateDeadline *time.Time `json:"firmwareUpdateDeadline,omitempty" azure:"ro"`
// READ-ONLY; True if there is a firmware update ready to install on this Cache. The firmware will automatically be installed
// after firmwareUpdateDeadline if not triggered earlier via the upgrade operation.
FirmwareUpdateStatus *FirmwareStatusType `json:"firmwareUpdateStatus,omitempty" azure:"ro"`
// READ-ONLY; Time of the last successful firmware update.
LastFirmwareUpdate *time.Time `json:"lastFirmwareUpdate,omitempty" azure:"ro"`
// READ-ONLY; When firmwareUpdateAvailable is true, this field holds the version string for the update.
PendingFirmwareVersion *string `json:"pendingFirmwareVersion,omitempty" azure:"ro"`
}
// CacheUsernameDownloadSettings - Settings for Extended Groups username and group download.
type CacheUsernameDownloadSettings struct {
// Determines if the certificate should be automatically downloaded. This applies to 'caCertificateURI' only if 'requireValidCertificate'
// is true.
AutoDownloadCertificate *bool `json:"autoDownloadCertificate,omitempty"`
// The URI of the CA certificate to validate the LDAP secure connection. This field must be populated when 'requireValidCertificate'
// is set to true.
CaCertificateURI *string `json:"caCertificateURI,omitempty"`
// When present, these are the credentials for the secure LDAP connection.
Credentials *CacheUsernameDownloadSettingsCredentials `json:"credentials,omitempty"`
// Whether or not the LDAP connection should be encrypted.
EncryptLdapConnection *bool `json:"encryptLdapConnection,omitempty"`
// Whether or not Extended Groups is enabled.
ExtendedGroups *bool `json:"extendedGroups,omitempty"`
// The URI of the file containing group information (in /etc/group file format). This field must be populated when 'usernameSource'
// is set to 'File'.
GroupFileURI *string `json:"groupFileURI,omitempty"`
// The base distinguished name for the LDAP domain.
LdapBaseDN *string `json:"ldapBaseDN,omitempty"`
// The fully qualified domain name or IP address of the LDAP server to use.
LdapServer *string `json:"ldapServer,omitempty"`
// Determines if the certificates must be validated by a certificate authority. When true, caCertificateURI must be provided.
RequireValidCertificate *bool `json:"requireValidCertificate,omitempty"`
// The URI of the file containing user information (in /etc/passwd file format). This field must be populated when 'usernameSource'
// is set to 'File'.
UserFileURI *string `json:"userFileURI,omitempty"`
// This setting determines how the cache gets username and group names for clients.
UsernameSource *UsernameSource `json:"usernameSource,omitempty"`
// READ-ONLY; Indicates whether or not the HPC Cache has performed the username download successfully.
UsernameDownloaded *UsernameDownloadedType `json:"usernameDownloaded,omitempty" azure:"ro"`
}
// CacheUsernameDownloadSettingsCredentials - When present, these are the credentials for the secure LDAP connection.
type CacheUsernameDownloadSettingsCredentials struct {
// The Bind Distinguished Name identity to be used in the secure LDAP connection. This value is stored encrypted and not returned
// on response.
BindDn *string `json:"bindDn,omitempty"`
// The Bind password to be used in the secure LDAP connection. This value is stored encrypted and not returned on response.
BindPassword *string `json:"bindPassword,omitempty"`
}
// CachesClientBeginCreateOrUpdateOptions contains the optional parameters for the CachesClient.BeginCreateOrUpdate method.
type CachesClientBeginCreateOrUpdateOptions struct {
// Object containing the user-selectable properties of the new Cache. If read-only properties are included, they must match
// the existing values of those properties.
Cache *Cache
// Resumes the LRO from the provided token.
ResumeToken string
}
// CachesClientBeginDebugInfoOptions contains the optional parameters for the CachesClient.BeginDebugInfo method.
type CachesClientBeginDebugInfoOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// CachesClientBeginDeleteOptions contains the optional parameters for the CachesClient.BeginDelete method.
type CachesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// CachesClientBeginFlushOptions contains the optional parameters for the CachesClient.BeginFlush method.
type CachesClientBeginFlushOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// CachesClientBeginStartOptions contains the optional parameters for the CachesClient.BeginStart method.
type CachesClientBeginStartOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// CachesClientBeginStopOptions contains the optional parameters for the CachesClient.BeginStop method.
type CachesClientBeginStopOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// CachesClientBeginUpgradeFirmwareOptions contains the optional parameters for the CachesClient.BeginUpgradeFirmware method.
type CachesClientBeginUpgradeFirmwareOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// CachesClientGetOptions contains the optional parameters for the CachesClient.Get method.
type CachesClientGetOptions struct {
// placeholder for future optional parameters
}
// CachesClientListByResourceGroupOptions contains the optional parameters for the CachesClient.ListByResourceGroup method.
type CachesClientListByResourceGroupOptions struct {
// placeholder for future optional parameters
}
// CachesClientListOptions contains the optional parameters for the CachesClient.List method.
type CachesClientListOptions struct {
// placeholder for future optional parameters
}
// CachesClientUpdateOptions contains the optional parameters for the CachesClient.Update method.
type CachesClientUpdateOptions struct {
// Object containing the user-selectable properties of the Cache. If read-only properties are included, they must match the
// existing values of those properties.
Cache *Cache
}
// CachesListResult - Result of the request to list Caches. It contains a list of Caches and a URL link to get the next set
// of results.
type CachesListResult struct {
// URL to get the next set of Cache list results, if there are any.
NextLink *string `json:"nextLink,omitempty"`
// List of Caches.
Value []*Cache `json:"value,omitempty"`
}
// ClfsTarget - Properties pertaining to the ClfsTarget
type ClfsTarget struct {
// Resource ID of storage container.
Target *string `json:"target,omitempty"`
}
// CloudError - An error response.
type CloudError struct {
// The body of the error.
Error *CloudErrorBody `json:"error,omitempty"`
}
// CloudErrorBody - An error response.
type CloudErrorBody struct {
// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
Code *string `json:"code,omitempty"`
// A list of additional details about the error.
Details []*CloudErrorBody `json:"details,omitempty"`
// A message describing the error, intended to be suitable for display in a user interface.
Message *string `json:"message,omitempty"`
// The target of the particular error. For example, the name of the property in error.
Target *string `json:"target,omitempty"`
}
// Condition - Outstanding conditions that will need to be resolved.
type Condition struct {
// READ-ONLY; The issue requiring attention.
Message *string `json:"message,omitempty" azure:"ro"`
// READ-ONLY; The time when the condition was raised.
Timestamp *time.Time `json:"timestamp,omitempty" azure:"ro"`
}
// ErrorResponse - Describes the format of Error response.
type ErrorResponse struct {
// Error code
Code *string `json:"code,omitempty"`
// Error message indicating why the operation failed.
Message *string `json:"message,omitempty"`
}
// KeyVaultKeyReference - Describes a reference to Key Vault Key.
type KeyVaultKeyReference struct {
// REQUIRED; The URL referencing a key encryption key in Key Vault.
KeyURL *string `json:"keyUrl,omitempty"`
// REQUIRED; Describes a resource Id to source Key Vault.
SourceVault *KeyVaultKeyReferenceSourceVault `json:"sourceVault,omitempty"`
}
// KeyVaultKeyReferenceSourceVault - Describes a resource Id to source Key Vault.
type KeyVaultKeyReferenceSourceVault struct {
// Resource Id.
ID *string `json:"id,omitempty"`
}
// MetricDimension - Specifications of the Dimension of metrics.
type MetricDimension struct {
// Localized friendly display name of the dimension
DisplayName *string `json:"displayName,omitempty"`
// Internal name of the dimension.
InternalName *string `json:"internalName,omitempty"`
// Name of the dimension
Name *string `json:"name,omitempty"`
// To be exported to shoe box.
ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"`
}
// MetricSpecification - Details about operation related to metrics.
type MetricSpecification struct {
// The type of metric aggregation.
AggregationType *string `json:"aggregationType,omitempty"`
// Dimensions of the metric
Dimensions []*MetricDimension `json:"dimensions,omitempty"`
// The description of the metric.
DisplayDescription *string `json:"displayDescription,omitempty"`
// Localized display name of the metric.
DisplayName *string `json:"displayName,omitempty"`
// Type of metrics.
MetricClass *string `json:"metricClass,omitempty"`
// The name of the metric.
Name *string `json:"name,omitempty"`
// Support metric aggregation type.
SupportedAggregationTypes []*MetricAggregationType `json:"supportedAggregationTypes,omitempty"`
// The unit that the metric is measured in.
Unit *string `json:"unit,omitempty"`
}
// NamespaceJunction - A namespace junction.
type NamespaceJunction struct {
// Namespace path on a Cache for a Storage Target.
NamespacePath *string `json:"namespacePath,omitempty"`
// Name of the access policy applied to this junction.
NfsAccessPolicy *string `json:"nfsAccessPolicy,omitempty"`
// NFS export where targetPath exists.
NfsExport *string `json:"nfsExport,omitempty"`
// Path in Storage Target to which namespacePath points.
TargetPath *string `json:"targetPath,omitempty"`
}
// Nfs3Target - Properties pertaining to the Nfs3Target
type Nfs3Target struct {
// IP address or host name of an NFSv3 host (e.g., 10.0.44.44).
Target *string `json:"target,omitempty"`
// Identifies the StorageCache usage model to be used for this storage target.
UsageModel *string `json:"usageModel,omitempty"`
}
// NfsAccessPolicy - A set of rules describing access policies applied to NFSv3 clients of the cache.
type NfsAccessPolicy struct {
// REQUIRED; The set of rules describing client accesses allowed under this policy.
AccessRules []*NfsAccessRule `json:"accessRules,omitempty"`
// REQUIRED; Name identifying this policy. Access Policy names are not case sensitive.
Name *string `json:"name,omitempty"`
}
// NfsAccessRule - Rule to place restrictions on portions of the cache namespace being presented to clients.
type NfsAccessRule struct {
// REQUIRED; Access allowed by this rule.
Access *NfsAccessRuleAccess `json:"access,omitempty"`
// REQUIRED; Scope for this rule. The scope and filter determine which clients match the rule.
Scope *NfsAccessRuleScope `json:"scope,omitempty"`
// GID value that replaces 0 when rootSquash is true. This will use the value of anonymousUID if not provided.
AnonymousGID *string `json:"anonymousGID,omitempty"`
// UID value that replaces 0 when rootSquash is true. 65534 will be used if not provided.
AnonymousUID *string `json:"anonymousUID,omitempty"`
// Filter applied to the scope for this rule. The filter's format depends on its scope. 'default' scope matches all clients
// and has no filter value. 'network' scope takes a filter in CIDR format (for
// example, 10.99.1.0/24). 'host' takes an IP address or fully qualified domain name as filter. If a client does not match
// any filter rule and there is no default rule, access is denied.
Filter *string `json:"filter,omitempty"`
// Map root accesses to anonymousUID and anonymousGID.
RootSquash *bool `json:"rootSquash,omitempty"`
// For the default policy, allow access to subdirectories under the root export. If this is set to no, clients can only mount
// the path '/'. If set to yes, clients can mount a deeper path, like '/a/b'.
SubmountAccess *bool `json:"submountAccess,omitempty"`
// Allow SUID semantics.
Suid *bool `json:"suid,omitempty"`
}
// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListOptions struct {
// placeholder for future optional parameters
}
// ResourceSKU - A resource SKU.
type ResourceSKU struct {
// A list of capabilities of this SKU, such as throughput or ops/sec.
Capabilities []*ResourceSKUCapabilities `json:"capabilities,omitempty"`
// The set of locations where the SKU is available.
LocationInfo []*ResourceSKULocationInfo `json:"locationInfo,omitempty"`
// The name of this SKU.
Name *string `json:"name,omitempty"`
// The restrictions preventing this SKU from being used. This is empty if there are no restrictions.
Restrictions []*Restriction `json:"restrictions,omitempty"`
// READ-ONLY; The set of locations where the SKU is available. This is the supported and registered Azure Geo Regions (e.g.,
// West US, East US, Southeast Asia, etc.).
Locations []*string `json:"locations,omitempty" azure:"ro"`
// READ-ONLY; The type of resource the SKU applies to.
ResourceType *string `json:"resourceType,omitempty" azure:"ro"`
}
// ResourceSKUCapabilities - A resource SKU capability.
type ResourceSKUCapabilities struct {
// Name of a capability, such as ops/sec.
Name *string `json:"name,omitempty"`
// Quantity, if the capability is measured by quantity.
Value *string `json:"value,omitempty"`
}
// ResourceSKULocationInfo - Resource SKU location information.
type ResourceSKULocationInfo struct {
// Location where this SKU is available.
Location *string `json:"location,omitempty"`
// Zones if any.
Zones []*string `json:"zones,omitempty"`
}
// ResourceSKUsResult - The response from the List Cache SKUs operation.
type ResourceSKUsResult struct {
// The URI to fetch the next page of Cache SKUs.
NextLink *string `json:"nextLink,omitempty"`
// READ-ONLY; The list of SKUs available for the subscription.
Value []*ResourceSKU `json:"value,omitempty" azure:"ro"`
}
// ResourceUsage - The usage and limit (quota) for a resource.
type ResourceUsage struct {
// READ-ONLY; The current usage of this resource.
CurrentValue *int32 `json:"currentValue,omitempty" azure:"ro"`
// READ-ONLY; The limit (quota) for this resource.
Limit *int32 `json:"limit,omitempty" azure:"ro"`
// READ-ONLY; Naming information for this resource type.
Name *ResourceUsageName `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Unit that the limit and usages are expressed in, such as 'Count'.
Unit *string `json:"unit,omitempty" azure:"ro"`
}
// ResourceUsageName - Naming information for this resource type.
type ResourceUsageName struct {
// Localized name for this resource type.
LocalizedValue *string `json:"localizedValue,omitempty"`
// Canonical name for this resource type.
Value *string `json:"value,omitempty"`
}
// ResourceUsagesListResult - Result of the request to list resource usages. It contains a list of resource usages & limits
// and a URL link to get the next set of results.
type ResourceUsagesListResult struct {
// READ-ONLY; URL to get the next set of resource usage list results if there are any.
NextLink *string `json:"nextLink,omitempty" azure:"ro"`
// READ-ONLY; List of usages and limits for resources controlled by the Microsoft.StorageCache resource provider.
Value []*ResourceUsage `json:"value,omitempty" azure:"ro"`
}
// Restriction - The restrictions preventing this SKU from being used.
type Restriction struct {
// The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when
// the SKU has requiredQuotas parameter as the subscription does not belong to that
// quota. "NotAvailableForSubscription" is related to capacity at the datacenter.
ReasonCode *ReasonCode `json:"reasonCode,omitempty"`
// READ-ONLY; The type of restrictions. In this version, the only possible value for this is location.
Type *string `json:"type,omitempty" azure:"ro"`
// READ-ONLY; The value of restrictions. If the restriction type is set to location, then this would be the different locations
// where the SKU is restricted.
Values []*string `json:"values,omitempty" azure:"ro"`
}
// SKUsClientListOptions contains the optional parameters for the SKUsClient.List method.
type SKUsClientListOptions struct {
// placeholder for future optional parameters
}
// StorageTarget - Type of the Storage Target.
type StorageTarget struct {
// StorageTarget properties
Properties *StorageTargetProperties `json:"properties,omitempty"`
// READ-ONLY; Resource ID of the Storage Target.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Region name string.
Location *string `json:"location,omitempty" azure:"ro"`
// READ-ONLY; Name of the Storage Target.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The system meta data relating to this resource.
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; Type of the Storage Target; Microsoft.StorageCache/Cache/StorageTarget
Type *string `json:"type,omitempty" azure:"ro"`
}
// StorageTargetClientBeginFlushOptions contains the optional parameters for the StorageTargetClient.BeginFlush method.
type StorageTargetClientBeginFlushOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// StorageTargetClientBeginInvalidateOptions contains the optional parameters for the StorageTargetClient.BeginInvalidate
// method.
type StorageTargetClientBeginInvalidateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// StorageTargetClientBeginResumeOptions contains the optional parameters for the StorageTargetClient.BeginResume method.
type StorageTargetClientBeginResumeOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// StorageTargetClientBeginSuspendOptions contains the optional parameters for the StorageTargetClient.BeginSuspend method.
type StorageTargetClientBeginSuspendOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// StorageTargetProperties - Properties of the Storage Target.
type StorageTargetProperties struct {
// REQUIRED; Type of the Storage Target.
TargetType *StorageTargetType `json:"targetType,omitempty"`
// Properties when targetType is blobNfs.
BlobNfs *BlobNfsTarget `json:"blobNfs,omitempty"`
// Properties when targetType is clfs.
Clfs *ClfsTarget `json:"clfs,omitempty"`
// List of Cache namespace junctions to target for namespace associations.
Junctions []*NamespaceJunction `json:"junctions,omitempty"`
// Properties when targetType is nfs3.
Nfs3 *Nfs3Target `json:"nfs3,omitempty"`
// Storage target operational state.
State *OperationalStateType `json:"state,omitempty"`
// Properties when targetType is unknown.
Unknown *UnknownTarget `json:"unknown,omitempty"`
// READ-ONLY; ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property
ProvisioningState *ProvisioningStateType `json:"provisioningState,omitempty" azure:"ro"`
}
// StorageTargetResource - Resource used by a Cache.
type StorageTargetResource struct {
// READ-ONLY; Resource ID of the Storage Target.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Region name string.
Location *string `json:"location,omitempty" azure:"ro"`
// READ-ONLY; Name of the Storage Target.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The system meta data relating to this resource.
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; Type of the Storage Target; Microsoft.StorageCache/Cache/StorageTarget
Type *string `json:"type,omitempty" azure:"ro"`
}
// StorageTargetsClientBeginCreateOrUpdateOptions contains the optional parameters for the StorageTargetsClient.BeginCreateOrUpdate
// method.
type StorageTargetsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
// Object containing the definition of a Storage Target.
Storagetarget *StorageTarget
}
// StorageTargetsClientBeginDNSRefreshOptions contains the optional parameters for the StorageTargetsClient.BeginDNSRefresh
// method.
type StorageTargetsClientBeginDNSRefreshOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// StorageTargetsClientBeginDeleteOptions contains the optional parameters for the StorageTargetsClient.BeginDelete method.
type StorageTargetsClientBeginDeleteOptions struct {
// Boolean value requesting the force delete operation for a storage target. Force delete discards unwritten-data in the cache
// instead of flushing it to back-end storage.
Force *string
// Resumes the LRO from the provided token.
ResumeToken string
}
// StorageTargetsClientGetOptions contains the optional parameters for the StorageTargetsClient.Get method.
type StorageTargetsClientGetOptions struct {
// placeholder for future optional parameters
}
// StorageTargetsClientListByCacheOptions contains the optional parameters for the StorageTargetsClient.ListByCache method.
type StorageTargetsClientListByCacheOptions struct {
// placeholder for future optional parameters
}
// StorageTargetsResult - A list of Storage Targets.
type StorageTargetsResult struct {
// The URI to fetch the next page of Storage Targets.
NextLink *string `json:"nextLink,omitempty"`
// The list of Storage Targets defined for the Cache.
Value []*StorageTarget `json:"value,omitempty"`
}
// SystemData - Metadata pertaining to creation and last modification of the resource.
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time `json:"createdAt,omitempty"`
// The identity that created the resource.
CreatedBy *string `json:"createdBy,omitempty"`
// The type of identity that created the resource.
CreatedByType *CreatedByType `json:"createdByType,omitempty"`
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"`
// The identity that last modified the resource.
LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"`
}
// UnknownTarget - Properties pertaining to the UnknownTarget
type UnknownTarget struct {
// Dictionary of string->string pairs containing information about the Storage Target.
Attributes map[string]*string `json:"attributes,omitempty"`
}
// UsageModel - A usage model.
type UsageModel struct {
// Localized information describing this usage model.
Display *UsageModelDisplay `json:"display,omitempty"`
// Non-localized keyword name for this usage model.
ModelName *string `json:"modelName,omitempty"`
// The type of Storage Target to which this model is applicable (only nfs3 as of this version).
TargetType *string `json:"targetType,omitempty"`
}
// UsageModelDisplay - Localized information describing this usage model.
type UsageModelDisplay struct {
// String to display for this usage model.
Description *string `json:"description,omitempty"`
}
// UsageModelsClientListOptions contains the optional parameters for the UsageModelsClient.List method.
type UsageModelsClientListOptions struct {
// placeholder for future optional parameters
}
// UsageModelsResult - A list of Cache usage models.
type UsageModelsResult struct {
// The URI to fetch the next page of Cache usage models.
NextLink *string `json:"nextLink,omitempty"`
// The list of usage models available for the subscription.
Value []*UsageModel `json:"value,omitempty"`
}
type UserAssignedIdentitiesValue struct {
// READ-ONLY; The client ID of the user-assigned identity.
ClientID *string `json:"clientId,omitempty" azure:"ro"`
// READ-ONLY; The principal ID of the user-assigned identity.
PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
}