/
index.ts
4350 lines (3822 loc) · 149 KB
/
index.ts
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
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
export type CustomPersistentDiskPropertiesUnion =
| CustomPersistentDiskProperties
| AzureFileVolume;
export type StoragePropertiesUnion = StorageProperties | StorageAccount;
export type CertificatePropertiesUnion =
| CertificateProperties
| KeyVaultCertificateProperties
| ContentCertificateProperties;
export type UserSourceInfoUnion =
| UserSourceInfo
| UploadedUserSourceInfoUnion
| BuildResultUserSourceInfo
| CustomContainerUserSourceInfo;
export type ProbeActionUnion =
| ProbeAction
| HttpGetAction
| ExecAction
| TCPSocketAction;
export type UploadedUserSourceInfoUnion =
| UploadedUserSourceInfo
| JarUploadedUserSourceInfo
| SourceUploadedUserSourceInfo
| NetCoreZipUploadedUserSourceInfo;
/** Service properties payload */
export interface ClusterResourceProperties {
/**
* Provisioning state of the Service
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ProvisioningState;
/** Network profile of the Service */
networkProfile?: NetworkProfile;
/** Additional Service settings in vnet injection instance */
vnetAddons?: ServiceVNetAddons;
/**
* Version of the Service
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly version?: number;
/**
* ServiceInstanceEntity GUID which uniquely identifies a created resource
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly serviceId?: string;
/**
* Power state of the Service
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly powerState?: PowerState;
zoneRedundant?: boolean;
/**
* Fully qualified dns name of the service instance
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly fqdn?: string;
/** Purchasing 3rd party product of the Service resource. */
marketplaceResource?: MarketplaceResource;
}
/** Service network profile payload */
export interface NetworkProfile {
/** Fully qualified resource Id of the subnet to host Azure Spring Apps Service Runtime */
serviceRuntimeSubnetId?: string;
/** Fully qualified resource Id of the subnet to host customer apps in Azure Spring Apps */
appSubnetId?: string;
/** Azure Spring Apps service reserved CIDR */
serviceCidr?: string;
/** Name of the resource group containing network resources of Azure Spring Apps Service Runtime */
serviceRuntimeNetworkResourceGroup?: string;
/** Name of the resource group containing network resources for customer apps in Azure Spring Apps */
appNetworkResourceGroup?: string;
/**
* Desired outbound IP resources for Azure Spring Apps resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly outboundIPs?: NetworkProfileOutboundIPs;
/**
* Required inbound or outbound traffics for Azure Spring Apps resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly requiredTraffics?: RequiredTraffic[];
/** Ingress configuration payload for Azure Spring Apps resource. */
ingressConfig?: IngressConfig;
/** The egress traffic type of Azure Spring Apps VNet instances. */
outboundType?: string;
}
/** Desired outbound IP resources for Azure Spring Apps resource. */
export interface NetworkProfileOutboundIPs {
/**
* A list of public IP addresses.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly publicIPs?: string[];
}
/** Required inbound or outbound traffic for Azure Spring Apps resource. */
export interface RequiredTraffic {
/**
* The protocol of required traffic
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly protocol?: string;
/**
* The port of required traffic
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly port?: number;
/**
* The ip list of required traffic
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly ips?: string[];
/**
* The FQDN list of required traffic
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly fqdns?: string[];
/**
* The direction of required traffic
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly direction?: TrafficDirection;
}
/** Ingress configuration payload for Azure Spring Apps resource. */
export interface IngressConfig {
/** Ingress read time out in seconds. */
readTimeoutInSeconds?: number;
}
/** Additional Service settings in vnet injection instance */
export interface ServiceVNetAddons {
/** Indicates whether the log stream in vnet injection instance could be accessed from internet. */
logStreamPublicEndpoint?: boolean;
}
/** Purchasing 3rd Party product for one Azure Spring Apps instance */
export interface MarketplaceResource {
/** The plan id of the 3rd Party Artifact that is being procured. */
plan?: string;
/** The publisher id of the 3rd Party Artifact that is being bought. */
publisher?: string;
/** The 3rd Party artifact that is being procured. */
product?: string;
}
/** Sku of Azure Spring Apps */
export interface Sku {
/** Name of the Sku */
name?: string;
/** Tier of the Sku */
tier?: string;
/** Current capacity of the target resource */
capacity?: number;
}
/** The core properties of ARM resources. */
export interface Resource {
/**
* Fully qualified resource Id for the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* The name of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* The type of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/**
* Metadata pertaining to creation and last modification of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly systemData?: SystemData;
}
/** 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. */
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. */
lastModifiedByType?: LastModifiedByType;
/** The timestamp of resource modification (UTC). */
lastModifiedAt?: Date;
}
/** An error response from the service. */
export interface CloudError {
/** An error response from the service. */
error?: CloudErrorBody;
}
/** An error response from the service. */
export interface CloudErrorBody {
/** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */
code?: string;
/** A message describing the error, intended to be suitable for display in a user interface. */
message?: string;
/** The target of the particular error. For example, the name of the property in error. */
target?: string;
/** A list of additional details about the error. */
details?: CloudErrorBody[];
}
/** Test keys payload */
export interface TestKeys {
/** Primary key */
primaryKey?: string;
/** Secondary key */
secondaryKey?: string;
/** Primary test endpoint */
primaryTestEndpoint?: string;
/** Secondary test endpoint */
secondaryTestEndpoint?: string;
/** Indicates whether the test endpoint feature enabled or not */
enabled?: boolean;
}
/** Regenerate test key request payload */
export interface RegenerateTestKeyRequestPayload {
/** Type of the test key */
keyType: TestKeyType;
}
/** Config server git properties payload */
export interface ConfigServerProperties {
/**
* State of the config server.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ConfigServerState;
/** Error when apply config server settings. */
error?: ErrorModel;
/** Settings of config server. */
configServer?: ConfigServerSettings;
}
/** The error code compose of code and message. */
export interface ErrorModel {
/** The code of error. */
code?: string;
/** The message of error. */
message?: string;
}
/** The settings of config server. */
export interface ConfigServerSettings {
/** Property of git environment. */
gitProperty?: ConfigServerGitProperty;
}
/** Property of git. */
export interface ConfigServerGitProperty {
/** Repositories of git. */
repositories?: GitPatternRepository[];
/** URI of the repository */
uri: string;
/** Label of the repository */
label?: string;
/** Searching path of the repository */
searchPaths?: string[];
/** Username of git repository basic auth. */
username?: string;
/** Password of git repository basic auth. */
password?: string;
/** Public sshKey of git repository. */
hostKey?: string;
/** SshKey algorithm of git repository. */
hostKeyAlgorithm?: string;
/** Private sshKey algorithm of git repository. */
privateKey?: string;
/** Strict host key checking or not. */
strictHostKeyChecking?: boolean;
}
/** Git repository property payload for config server */
export interface GitPatternRepository {
/** Name of the repository */
name: string;
/** Collection of pattern of the repository */
pattern?: string[];
/** URI of the repository */
uri: string;
/** Label of the repository */
label?: string;
/** Searching path of the repository */
searchPaths?: string[];
/** Username of git repository basic auth. */
username?: string;
/** Password of git repository basic auth. */
password?: string;
/** Public sshKey of git repository. */
hostKey?: string;
/** SshKey algorithm of git repository. */
hostKeyAlgorithm?: string;
/** Private sshKey algorithm of git repository. */
privateKey?: string;
/** Strict host key checking or not. */
strictHostKeyChecking?: boolean;
}
/** Validation result for config server settings */
export interface ConfigServerSettingsValidateResult {
/** Indicate if the config server settings are valid */
isValid?: boolean;
/** The detail validation results */
details?: ConfigServerSettingsErrorRecord[];
}
/** Error record of the config server settings */
export interface ConfigServerSettingsErrorRecord {
/** The name of the config server settings error record */
name?: string;
/** The uri of the config server settings error record */
uri?: string;
/** The detail error messages of the record */
messages?: string[];
}
/** Application Configuration Service properties payload */
export interface ConfigurationServiceProperties {
/**
* State of the Application Configuration Service.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ConfigurationServiceProvisioningState;
/**
* The requested resource quantity for required CPU and Memory.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly resourceRequests?: ConfigurationServiceResourceRequests;
/**
* Collection of instances belong to Application Configuration Service.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly instances?: ConfigurationServiceInstance[];
/** The settings of Application Configuration Service. */
settings?: ConfigurationServiceSettings;
}
/** Resource request payload of Application Configuration Service */
export interface ConfigurationServiceResourceRequests {
/**
* Cpu allocated to each Application Configuration Service instance
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly cpu?: string;
/**
* Memory allocated to each Application Configuration Service instance
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly memory?: string;
/**
* Instance count of the Application Configuration Service
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly instanceCount?: number;
}
/** Collection of instances belong to the Application Configuration Service */
export interface ConfigurationServiceInstance {
/**
* Name of the Application Configuration Service instance
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* Status of the Application Configuration Service instance
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly status?: string;
}
/** The settings of Application Configuration Service. */
export interface ConfigurationServiceSettings {
/** Property of git environment. */
gitProperty?: ConfigurationServiceGitProperty;
}
/** Property of git environment. */
export interface ConfigurationServiceGitProperty {
/** Repositories of Application Configuration Service git property. */
repositories?: ConfigurationServiceGitRepository[];
}
/** Git repository property payload for Application Configuration Service */
export interface ConfigurationServiceGitRepository {
/** Name of the repository */
name: string;
/** Collection of patterns of the repository */
patterns: string[];
/** URI of the repository */
uri: string;
/** Label of the repository */
label: string;
/** Searching path of the repository */
searchPaths?: string[];
/** Username of git repository basic auth. */
username?: string;
/** Password of git repository basic auth. */
password?: string;
/** Public sshKey of git repository. */
hostKey?: string;
/** SshKey algorithm of git repository. */
hostKeyAlgorithm?: string;
/** Private sshKey algorithm of git repository. */
privateKey?: string;
/** Strict host key checking or not. */
strictHostKeyChecking?: boolean;
}
/** Object that includes an array of configuration service resources and a possible link for next set */
export interface ConfigurationServiceResourceCollection {
/** Collection of configuration service resources */
value?: ConfigurationServiceResource[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Validation result for configuration service settings */
export interface ConfigurationServiceSettingsValidateResult {
/** Validation result for configuration service settings */
gitPropertyValidationResult?: ConfigurationServiceGitPropertyValidateResult;
}
/** Validation result for configuration service settings */
export interface ConfigurationServiceGitPropertyValidateResult {
/** Indicate if the configuration service settings are valid */
isValid?: boolean;
/** The detail validation results */
gitReposValidationResult?: ValidationMessages[];
}
/** Validate messages of the configuration service git repositories */
export interface ValidationMessages {
/** The name of the configuration service git repository. */
name?: string;
/** Detailed validation messages. */
messages?: string[];
}
/** Service Registry properties payload */
export interface ServiceRegistryProperties {
/**
* State of the Service Registry.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ServiceRegistryProvisioningState;
/**
* The requested resource quantity for required CPU and Memory.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly resourceRequests?: ServiceRegistryResourceRequests;
/**
* Collection of instances belong to Service Registry.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly instances?: ServiceRegistryInstance[];
}
/** Resource request payload of Service Registry */
export interface ServiceRegistryResourceRequests {
/**
* Cpu allocated to each Service Registry instance
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly cpu?: string;
/**
* Memory allocated to each Service Registry instance
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly memory?: string;
/**
* Instance count of the Service Registry
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly instanceCount?: number;
}
/** Collection of instances belong to the Service Registry */
export interface ServiceRegistryInstance {
/**
* Name of the Service Registry instance
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* Status of the Service Registry instance
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly status?: string;
}
/** Object that includes an array of Service Registry resources and a possible link for next set */
export interface ServiceRegistryResourceCollection {
/** Collection of Service Registry resources */
value?: ServiceRegistryResource[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Object that includes an array of Build service resources and a possible link for next set */
export interface BuildServiceCollection {
/** Collection of Build service resources */
value?: BuildService[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Build service resource properties payload */
export interface BuildServiceProperties {
/** The installed KPack version in this build service. */
kPackVersion?: string;
/**
* Provisioning state of the KPack build result
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: BuildServiceProvisioningState;
/** The runtime resource configuration of this build service. */
resourceRequests?: BuildServicePropertiesResourceRequests;
}
/** The runtime resource configuration of this build service. */
export interface BuildServicePropertiesResourceRequests {
/**
* vCPU allocated to the entire build service node pool.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly cpu?: string;
/**
* Memory allocated to the entire build service node pool.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly memory?: string;
}
/** Object that includes an array of Build resources and a possible link for next set */
export interface BuildCollection {
/** Collection of Build resources */
value?: Build[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Build resource properties payload */
export interface BuildProperties {
/** The relative path of source code */
relativePath?: string;
/** The resource id of builder to build the source code */
builder?: string;
/** The resource id of agent pool */
agentPool?: string;
/**
* Provisioning state of the KPack build result
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: BuildProvisioningState;
/** The environment variables for this build */
env?: { [propertyName: string]: string };
/**
* The build result triggered by this build
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly triggeredBuildResult?: TriggeredBuildResult;
/** The customized build resource for this build */
resourceRequests?: BuildResourceRequests;
}
/** The build result triggered by a build */
export interface TriggeredBuildResult {
/** The unique build id of this build result */
id?: string;
}
/** Resource request payload of Build Resource. */
export interface BuildResourceRequests {
/**
* Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m.
* The default value is 1, this should not exceed build service agent pool cpu size.
*/
cpu?: string;
/**
* Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi.
* The default value is 2Gi, this should not exceed build service agent pool memory size.
*/
memory?: string;
}
/** Properties of a buildpack binding */
export interface BuildpackBindingProperties {
/** Buildpack Binding Type */
bindingType?: BindingType;
/**
* State of the Buildpack Binding.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: BuildpackBindingProvisioningState;
/** The object describes the buildpack binding launch properties */
launchProperties?: BuildpackBindingLaunchProperties;
}
/** Buildpack Binding Launch Properties */
export interface BuildpackBindingLaunchProperties {
/** Non-sensitive properties for launchProperties */
properties?: { [propertyName: string]: string };
/** Sensitive properties for launchProperties */
secrets?: { [propertyName: string]: string };
}
/** Object that includes an array of BuildpackBinding resources and a possible link for next set */
export interface BuildpackBindingResourceCollection {
/** Collection of BuildpackBinding resources */
value?: BuildpackBindingResource[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Object that includes an array of Build result resources and a possible link for next set */
export interface BuildResultCollection {
/** Collection of Build result resources */
value?: BuildResult[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Build result resource properties payload */
export interface BuildResultProperties {
/** The name of this build result */
name?: string;
/**
* Provisioning state of the KPack build result
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: BuildResultProvisioningState;
/** The build pod name which can be used to get the build log streaming. */
buildPodName?: string;
/**
* All of the build stage (init-container and container) resources in build pod.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly buildStages?: BuildStageProperties[];
}
/** The build stage (init-container and container) resources in build pod. */
export interface BuildStageProperties {
/**
* The name of this build stage resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* The provisioning state of this build stage resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly status?: KPackBuildStageProvisioningState;
}
/** Build result log resource properties payload */
export interface BuildResultLog {
/** The public download URL of this build result log */
blobUrl?: string;
}
/** KPack Builder properties payload */
export interface BuilderProperties {
/**
* Builder provision status.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: BuilderProvisioningState;
/** Builder cluster stack property. */
stack?: StackProperties;
/** Builder buildpack groups. */
buildpackGroups?: BuildpacksGroupProperties[];
}
/** KPack ClusterStack properties payload */
export interface StackProperties {
/** Id of the ClusterStack. */
id?: string;
/** Version of the ClusterStack */
version?: string;
}
/** Buildpack group properties of the Builder */
export interface BuildpacksGroupProperties {
/** Buildpack group name */
name?: string;
/** Buildpacks in the buildpack group */
buildpacks?: BuildpackProperties[];
}
/** Buildpack properties payload */
export interface BuildpackProperties {
/** Id of the buildpack */
id?: string;
}
/** Object that includes an array of Builder resources and a possible link for next set */
export interface BuilderResourceCollection {
/** Collection of Builder resources */
value?: BuilderResource[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Resource upload definition payload */
export interface ResourceUploadDefinition {
/** Source relative path */
relativePath?: string;
/** Upload URL */
uploadUrl?: string;
}
/** Object that includes an array of supported buildpacks resources and a possible link for next set */
export interface SupportedBuildpacksCollection {
/** Collection of supported buildpacks resources */
value?: SupportedBuildpackResource[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Supported buildpack resource properties */
export interface SupportedBuildpackResourceProperties {
/** The id of supported buildpack */
buildpackId?: string;
}
/** Object that includes an array of supported stacks resources and a possible link for next set */
export interface SupportedStacksCollection {
/** Collection of supported stacks resources */
value?: SupportedStackResource[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Supported stack resource properties */
export interface SupportedStackResourceProperties {
/** The id of supported stack */
stackId?: string;
/** The version of supported stack */
version?: string;
}
/** Object that includes an array of build service agent pool resources and a possible link for next set */
export interface BuildServiceAgentPoolResourceCollection {
/** Collection of build service agent pool resource */
value?: BuildServiceAgentPoolResource[];
/**
* URL client should use to fetch the next page (per server side paging).
* It's null for now, added for future use.
*/
nextLink?: string;
}
/** Build service agent pool properties */
export interface BuildServiceAgentPoolProperties {
/**
* Provisioning state of the build service agent pool
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: string;
/** build service agent pool size properties */
poolSize?: BuildServiceAgentPoolSizeProperties;
}
/** Build service agent pool size properties */
export interface BuildServiceAgentPoolSizeProperties {
/** The name of build service agent pool size */
name?: string;
/**
* The cpu property of build service agent pool size
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly cpu?: string;
/**
* The memory property of build service agent pool size
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly memory?: string;
}
/** Monitoring Setting properties payload */
export interface MonitoringSettingProperties {
/**
* State of the Monitoring Setting.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: MonitoringSettingState;
/** Error when apply Monitoring Setting changes. */
error?: ErrorModel;
/** Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not */
traceEnabled?: boolean;
/** Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings */
appInsightsInstrumentationKey?: string;
/** Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0] */
appInsightsSamplingRate?: number;
/** Indicates the versions of application insight agent */
appInsightsAgentVersions?: ApplicationInsightsAgentVersions;
}
/** Application Insights agent versions properties payload */
export interface ApplicationInsightsAgentVersions {
/**
* Indicates the version of application insight java agent
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly java?: string;
}
/** App resource properties payload */
export interface AppResourceProperties {
/** Indicates whether the App exposes public endpoint */
public?: boolean;
/**
* URL of the App
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly url?: string;
/** Collection of addons */
addonConfigs?: {
[propertyName: string]: { [propertyName: string]: Record<string, unknown> };
};
/**
* Provisioning state of the App
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: AppResourceProvisioningState;
/**
* Fully qualified dns Name.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly fqdn?: string;
/** Indicate if only https is allowed. */
httpsOnly?: boolean;
/** Temporary disk settings */
temporaryDisk?: TemporaryDisk;
/** Persistent disk settings */
persistentDisk?: PersistentDisk;
/** List of custom persistent disks */
customPersistentDisks?: CustomPersistentDiskResource[];
/** Indicate if end to end TLS is enabled. */
enableEndToEndTLS?: boolean;
/** Collection of loaded certificates */
loadedCertificates?: LoadedCertificate[];
/** Additional App settings in vnet injection instance */
vnetAddons?: AppVNetAddons;
/** App ingress settings payload. */
ingressSettings?: IngressSettings;
}
/** Temporary disk payload */
export interface TemporaryDisk {
/** Size of the temporary disk in GB */
sizeInGB?: number;
/** Mount path of the temporary disk */
mountPath?: string;
}
/** Persistent disk payload */
export interface PersistentDisk {
/** Size of the persistent disk in GB */
sizeInGB?: number;
/**
* Size of the used persistent disk in GB
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly usedInGB?: number;
/** Mount path of the persistent disk */
mountPath?: string;
}
/** Custom persistent disk resource payload. */
export interface CustomPersistentDiskResource {
/** Properties of the custom persistent disk resource payload. */
customPersistentDiskProperties?: CustomPersistentDiskPropertiesUnion;
/** The resource id of Azure Spring Apps Storage resource. */
storageId: string;
}
/** Custom persistent disk resource payload. */
export interface CustomPersistentDiskProperties {
/** Polymorphic discriminator, which specifies the different types this object can be */
type: "AzureFileVolume";
/** The mount path of the persistent disk. */
mountPath: string;
/** Indicates whether the persistent disk is a readOnly one. */
readOnly?: boolean;
/** These are the mount options for a persistent disk. */
mountOptions?: string[];
}
/** Loaded certificate payload */
export interface LoadedCertificate {
/** Resource Id of loaded certificate */
resourceId: string;
/** Indicate whether the certificate will be loaded into default trust store, only work for Java runtime. */
loadTrustStore?: boolean;
}
/** Additional App settings in vnet injection instance */
export interface AppVNetAddons {
/** Indicates whether the App in vnet injection instance exposes endpoint which could be accessed from internet. */
publicEndpoint?: boolean;
/**
* URL of the App in vnet injection instance which could be accessed from internet
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly publicEndpointUrl?: string;
}
/** App ingress settings payload. */
export interface IngressSettings {
/** Ingress read time out in seconds. */
readTimeoutInSeconds?: number;
/** Ingress send time out in seconds. */
sendTimeoutInSeconds?: number;
/** Type of the affinity, set this to Cookie to enable session affinity. */
sessionAffinity?: SessionAffinity;
/** Time in seconds until the cookie expires. */
sessionCookieMaxAge?: number;
/** How ingress should communicate with this app backend service. */
backendProtocol?: BackendProtocol;
/** Client-Certification Authentication. */
clientAuth?: IngressSettingsClientAuth;
}
/** Client-Certification Authentication. */
export interface IngressSettingsClientAuth {
/** Collection of certificate resource id. */
certificates?: string[];
}
/** Managed identity properties retrieved from ARM request headers. */
export interface ManagedIdentityProperties {
/** Type of the managed identity */
type?: ManagedIdentityType;
/** Principal Id of system-assigned managed identity. */
principalId?: string;
/** Tenant Id of system-assigned managed identity. */
tenantId?: string;
/** Properties of user-assigned managed identities */
userAssignedIdentities?: {
[propertyName: string]: UserAssignedManagedIdentity;
};
}
/** The details of the user-assigned managed identity assigned to an App. */
export interface UserAssignedManagedIdentity {
/**
* Principal Id of user-assigned managed identity.