/
models.go
3723 lines (2773 loc) · 117 KB
/
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
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
//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. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armappcontainers
import "time"
// AllowedAudiencesValidation - The configuration settings of the Allowed Audiences validation flow.
type AllowedAudiencesValidation struct {
// The configuration settings of the allowed list of audiences from which to validate the JWT token.
AllowedAudiences []*string
}
// AllowedPrincipals - The configuration settings of the Azure Active Directory allowed principals.
type AllowedPrincipals struct {
// The list of the allowed groups.
Groups []*string
// The list of the allowed identities.
Identities []*string
}
// AppInsightsConfiguration - Configuration of Application Insights
type AppInsightsConfiguration struct {
// Application Insights connection string
ConnectionString *string
}
// AppLogsConfiguration - Configuration of application logs
type AppLogsConfiguration struct {
// Logs destination, can be 'log-analytics', 'azure-monitor' or 'none'
Destination *string
// Log Analytics configuration, must only be provided when destination is configured as 'log-analytics'
LogAnalyticsConfiguration *LogAnalyticsConfiguration
}
// AppRegistration - The configuration settings of the app registration for providers that have app ids and app secrets
type AppRegistration struct {
// The App ID of the app used for login.
AppID *string
// The app setting name that contains the app secret.
AppSecretSettingName *string
}
// AppResiliency - Configuration to setup App Resiliency
type AppResiliency struct {
// App Resiliency resource specific properties
Properties *AppResiliencyProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// AppResiliencyCollection - Collection of AppResiliency policies
type AppResiliencyCollection struct {
// REQUIRED; Collection of resources.
Value []*AppResiliency
// READ-ONLY; Link to next page of resources.
NextLink *string
}
// AppResiliencyProperties - App Resiliency resource specific properties
type AppResiliencyProperties struct {
// Policy that defines circuit breaker conditions
CircuitBreakerPolicy *CircuitBreakerPolicy
// Defines parameters for http connection pooling
HTTPConnectionPool *HTTPConnectionPool
// Policy that defines http request retry conditions
HTTPRetryPolicy *HTTPRetryPolicy
// Defines parameters for tcp connection pooling
TCPConnectionPool *TCPConnectionPool
// Policy that defines tcp request retry conditions
TCPRetryPolicy *TCPRetryPolicy
// Policy to set request timeouts
TimeoutPolicy *TimeoutPolicy
}
// Apple - The configuration settings of the Apple provider.
type Apple struct {
// false if the Apple provider should not be enabled despite the set registration; otherwise, true.
Enabled *bool
// The configuration settings of the login flow.
Login *LoginScopes
// The configuration settings of the Apple registration.
Registration *AppleRegistration
}
// AppleRegistration - The configuration settings of the registration for the Apple provider
type AppleRegistration struct {
// The Client ID of the app used for login.
ClientID *string
// The app setting name that contains the client secret.
ClientSecretSettingName *string
}
// AuthConfig - Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature.
type AuthConfig struct {
// AuthConfig resource specific properties
Properties *AuthConfigProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// AuthConfigCollection - AuthConfig collection ARM resource.
type AuthConfigCollection struct {
// REQUIRED; Collection of resources.
Value []*AuthConfig
// READ-ONLY; Link to next page of resources.
NextLink *string
}
// AuthConfigProperties - AuthConfig resource specific properties
type AuthConfigProperties struct {
// The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service Authentication/Authorization.
EncryptionSettings *EncryptionSettings
// The configuration settings that determines the validation flow of users using Service Authentication/Authorization.
GlobalValidation *GlobalValidation
// The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp
// Service Authentication/Authorization.
HTTPSettings *HTTPSettings
// The configuration settings of each of the identity providers used to configure ContainerApp Service Authentication/Authorization.
IdentityProviders *IdentityProviders
// The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.
Login *Login
// The configuration settings of the platform of ContainerApp Service Authentication/Authorization.
Platform *AuthPlatform
}
// AuthPlatform - The configuration settings of the platform of ContainerApp Service Authentication/Authorization.
type AuthPlatform struct {
// true if the Authentication / Authorization feature is enabled for the current app; otherwise, false.
Enabled *bool
// The RuntimeVersion of the Authentication / Authorization feature in use for the current app. The setting in this value
// can control the behavior of certain features in the Authentication /
// Authorization module.
RuntimeVersion *string
}
// AvailableOperations - Available operations of the service
type AvailableOperations struct {
// URL client should use to fetch the next page (per server side paging). It's null for now, added for future use.
NextLink *string
// Collection of available operation details
Value []*OperationDetail
}
// AvailableWorkloadProfile - A workload profile with specific hardware configure to run container apps.
type AvailableWorkloadProfile struct {
// Region of the workload profile.
Location *string
// Revision resource specific properties
Properties *AvailableWorkloadProfileProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// AvailableWorkloadProfileProperties - Revision resource specific properties
type AvailableWorkloadProfileProperties struct {
// indicates whether the profile is default for the location.
Applicability *Applicability
// Used to categorize workload profiles.
Category *string
// Number of cores in CPU.
Cores *int32
// The everyday name of the workload profile.
DisplayName *string
// Number of GPUs.
Gpus *int32
// Memory in GiB.
MemoryGiB *int32
}
// AvailableWorkloadProfilesCollection - Collection of available workload profiles in the location.
type AvailableWorkloadProfilesCollection struct {
// REQUIRED; Collection of workload profiles.
Value []*AvailableWorkloadProfile
// READ-ONLY; Link to next page of resources.
NextLink *string
}
// AzureActiveDirectory - The configuration settings of the Azure Active directory provider.
type AzureActiveDirectory struct {
// false if the Azure Active Directory provider should not be enabled despite the set registration; otherwise, true.
Enabled *bool
// Gets a value indicating whether the Azure AD configuration was auto-provisioned using 1st party tooling. This is an internal
// flag primarily intended to support the Azure Management Portal. Users
// should not read or write to this property.
IsAutoProvisioned *bool
// The configuration settings of the Azure Active Directory login flow.
Login *AzureActiveDirectoryLogin
// The configuration settings of the Azure Active Directory app registration.
Registration *AzureActiveDirectoryRegistration
// The configuration settings of the Azure Active Directory token validation flow.
Validation *AzureActiveDirectoryValidation
}
// AzureActiveDirectoryLogin - The configuration settings of the Azure Active Directory login flow.
type AzureActiveDirectoryLogin struct {
// true if the www-authenticate provider should be omitted from the request; otherwise, false.
DisableWWWAuthenticate *bool
// Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the
// form "key=value".
LoginParameters []*string
}
// AzureActiveDirectoryRegistration - The configuration settings of the Azure Active Directory app registration.
type AzureActiveDirectoryRegistration struct {
// The Client ID of this relying party application, known as the clientid. This setting is required for enabling OpenID Connection
// authentication with Azure Active Directory or other 3rd party OpenID
// Connect providers. More information on OpenID Connect: http://openid.net/specs/openid-connect-core-10.html
ClientID *string
// An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property
// acts as a replacement for the Client Secret Certificate Thumbprint. It is
// also optional.
ClientSecretCertificateIssuer *string
// An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing
// purposes. This property acts as a replacement for the Client Secret Certificate
// Thumbprint. It is also optional.
ClientSecretCertificateSubjectAlternativeName *string
// An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts
// as a replacement for the Client Secret. It is also optional.
ClientSecretCertificateThumbprint *string
// The app setting name that contains the client secret of the relying party application.
ClientSecretSettingName *string
// The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. When using Azure
// Active Directory, this value is the URI of the directory tenant, e.g.
// https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a case-sensitive identifier for the token issuer. More
// information on OpenID Connect Discovery:
// http://openid.net/specs/openid-connect-discovery-1_0.html
OpenIDIssuer *string
}
// AzureActiveDirectoryValidation - The configuration settings of the Azure Active Directory token validation flow.
type AzureActiveDirectoryValidation struct {
// The list of audiences that can make successful authentication/authorization requests.
AllowedAudiences []*string
// The configuration settings of the default authorization policy.
DefaultAuthorizationPolicy *DefaultAuthorizationPolicy
// The configuration settings of the checks that should be made while validating the JWT Claims.
JwtClaimChecks *JwtClaimChecks
}
// AzureCredentials - Container App credentials.
type AzureCredentials struct {
// Client Id.
ClientID *string
// Client Secret.
ClientSecret *string
// Kind of auth github does for deploying the template
Kind *string
// Subscription Id.
SubscriptionID *string
// Tenant Id.
TenantID *string
}
// AzureFileProperties - Azure File Properties.
type AzureFileProperties struct {
// Access mode for storage
AccessMode *AccessMode
// Storage account key for azure file.
AccountKey *string
// Storage account name for azure file.
AccountName *string
// Azure file share name.
ShareName *string
}
// AzureStaticWebApps - The configuration settings of the Azure Static Web Apps provider.
type AzureStaticWebApps struct {
// false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true.
Enabled *bool
// The configuration settings of the Azure Static Web Apps registration.
Registration *AzureStaticWebAppsRegistration
}
// AzureStaticWebAppsRegistration - The configuration settings of the registration for the Azure Static Web Apps provider
type AzureStaticWebAppsRegistration struct {
// The Client ID of the app used for login.
ClientID *string
}
// BaseContainer - Container App base container definition.
type BaseContainer struct {
// Container start command arguments.
Args []*string
// Container start command.
Command []*string
// Container environment variables.
Env []*EnvironmentVar
// Container image tag.
Image *string
// Custom container name.
Name *string
// Container resource requirements.
Resources *ContainerResources
// Container volume mounts.
VolumeMounts []*VolumeMount
}
// BillingMeter - Billing meter.
type BillingMeter struct {
// Region for the billing meter.
Location *string
// Revision resource specific properties
Properties *BillingMeterProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// BillingMeterCollection - Collection of billing meters.
type BillingMeterCollection struct {
// REQUIRED; Collection of billing meters.
Value []*BillingMeter
}
// BillingMeterProperties - Revision resource specific properties
type BillingMeterProperties struct {
// Used to categorize billing meters.
Category *string
// The everyday name of the billing meter.
DisplayName *string
// Billing meter type.
MeterType *string
}
// BlobStorageTokenStore - The configuration settings of the storage of the tokens if blob storage is used.
type BlobStorageTokenStore struct {
// REQUIRED; The name of the app secrets containing the SAS URL of the blob storage containing the tokens.
SasURLSettingName *string
}
// BuildCollection - The response of a BuildResource list operation.
type BuildCollection struct {
// REQUIRED; The BuildResource items on this page
Value []*BuildResource
// The link to the next page of items
NextLink *string
}
// BuildConfiguration - Configuration of the build.
type BuildConfiguration struct {
// Base OS used to build and run the app.
BaseOs *string
// List of environment variables to be passed to the build, secrets should not be used in environment variable.
EnvironmentVariables []*EnvironmentVariable
// Platform to be used to build and run the app.
Platform *string
// Platform version to be used to build and run the app.
PlatformVersion *string
// List of steps to perform before the build.
PreBuildSteps []*PreBuildStep
}
// BuildProperties - The build properties.
type BuildProperties struct {
// Configuration of the build.
Configuration *BuildConfiguration
// Container registry that the final image will be uploaded to.
DestinationContainerRegistry *ContainerRegistryWithCustomImage
// READ-ONLY; Status of the build once it has been provisioned.
BuildStatus *BuildStatus
// READ-ONLY; Endpoint from which the build logs can be streamed.
LogStreamEndpoint *string
// READ-ONLY; Build provisioning state.
ProvisioningState *BuildProvisioningState
// READ-ONLY; Endpoint to use to retrieve an authentication token for log streaming and uploading source code.
TokenEndpoint *string
// READ-ONLY; Endpoint to which the source code should be uploaded.
UploadEndpoint *string
}
// BuildResource - Information pertaining to an individual build.
type BuildResource struct {
// The resource-specific properties for this resource.
Properties *BuildProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// BuildToken - Build Auth Token.
type BuildToken struct {
// READ-ONLY; Token expiration date.
Expires *time.Time
// READ-ONLY; Authentication token.
Token *string
}
// BuilderCollection - The response of a BuilderResource list operation.
type BuilderCollection struct {
// REQUIRED; The BuilderResource items on this page
Value []*BuilderResource
// The link to the next page of items
NextLink *string
}
// BuilderProperties - The builder properties.
type BuilderProperties struct {
// REQUIRED; Resource ID of the container apps environment that the builder is associated with.
EnvironmentID *string
// List of mappings of container registries and the managed identity used to connect to it.
ContainerRegistries []*ContainerRegistry
// READ-ONLY; Provisioning state of a builder resource.
ProvisioningState *BuilderProvisioningState
}
// BuilderResource - Information about the SourceToCloud builder resource.
type BuilderResource struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The managed service identities assigned to this resource.
Identity *ManagedServiceIdentity
// The resource-specific properties for this resource.
Properties *BuilderProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// BuilderResourceUpdate - The type used for update operations of the BuilderResource.
type BuilderResourceUpdate struct {
// The managed service identities assigned to this resource.
Identity *ManagedServiceIdentity
// The updatable properties of the BuilderResource.
Properties *BuilderResourceUpdateProperties
// Resource tags.
Tags map[string]*string
}
// BuilderResourceUpdateProperties - The updatable properties of the BuilderResource.
type BuilderResourceUpdateProperties struct {
// Resource ID of the container apps environment that the builder is associated with.
EnvironmentID *string
}
// Certificate used for Custom Domain bindings of Container Apps in a Managed Environment
type Certificate struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Certificate resource specific properties
Properties *CertificateProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// CertificateCollection - Collection of Certificates.
type CertificateCollection struct {
// REQUIRED; Collection of resources.
Value []*Certificate
// READ-ONLY; Link to next page of resources.
NextLink *string
}
// CertificateKeyVaultProperties - Properties for a certificate stored in a Key Vault.
type CertificateKeyVaultProperties struct {
// Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.
Identity *string
// URL pointing to the Azure Key Vault secret that holds the certificate.
KeyVaultURL *string
}
// CertificatePatch - A certificate to update
type CertificatePatch struct {
// Application-specific metadata in the form of key-value pairs.
Tags map[string]*string
}
// CertificateProperties - Certificate resource specific properties
type CertificateProperties struct {
// Properties for a certificate stored in a Key Vault.
CertificateKeyVaultProperties *CertificateKeyVaultProperties
// The type of the certificate. Allowed values are ServerSSLCertificate and ImagePullTrustedCA
CertificateType *CertificateType
// Certificate password.
Password *string
// PFX or PEM blob
Value []byte
// READ-ONLY; Certificate expiration date.
ExpirationDate *time.Time
// READ-ONLY; Certificate issue Date.
IssueDate *time.Time
// READ-ONLY; Certificate issuer.
Issuer *string
// READ-ONLY; Provisioning state of the certificate.
ProvisioningState *CertificateProvisioningState
// READ-ONLY; Public key hash.
PublicKeyHash *string
// READ-ONLY; Subject alternative names the certificate applies to.
SubjectAlternativeNames []*string
// READ-ONLY; Subject name of the certificate.
SubjectName *string
// READ-ONLY; Certificate thumbprint.
Thumbprint *string
// READ-ONLY; Is the certificate valid?.
Valid *bool
}
// CheckNameAvailabilityRequest - The check availability request body.
type CheckNameAvailabilityRequest struct {
// The name of the resource for which availability needs to be checked.
Name *string
// The resource type.
Type *string
}
// CheckNameAvailabilityResponse - The check availability result.
type CheckNameAvailabilityResponse struct {
// Detailed reason why the given name is available.
Message *string
// Indicates if the resource name is available.
NameAvailable *bool
// The reason why the given name is not available.
Reason *CheckNameAvailabilityReason
}
// CircuitBreakerPolicy - Policy that defines circuit breaker conditions
type CircuitBreakerPolicy struct {
// Number of consecutive errors before the circuit breaker opens
ConsecutiveErrors *int32
// The time interval, in seconds, between endpoint checks. This can result in opening the circuit breaker if the check fails
// as well as closing the circuit breaker if the check succeeds. Defaults to 10s.
IntervalInSeconds *int32
// Maximum percentage of hosts that will be ejected after failure threshold has been met
MaxEjectionPercent *int32
}
// ClientRegistration - The configuration settings of the app registration for providers that have client ids and client secrets
type ClientRegistration struct {
// The Client ID of the app used for login.
ClientID *string
// The app setting name that contains the client secret.
ClientSecretSettingName *string
}
// Configuration - Non versioned Container App configuration properties that define the mutable settings of a Container app
type Configuration struct {
// ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple revisions can be
// active.Single: Only one revision can be active at a time. Revision weights can
// not be used in this mode. If no value if provided, this is the default.
ActiveRevisionsMode *ActiveRevisionsMode
// Dapr configuration for the Container App.
Dapr *Dapr
// Ingress configurations.
Ingress *Ingress
// Optional. Max inactive revisions a Container App can have.
MaxInactiveRevisions *int32
// Collection of private container registry credentials for containers used by the Container app
Registries []*RegistryCredentials
// Collection of secrets used by a Container app
Secrets []*Secret
// Container App to be a dev Container App Service
Service *Service
}
// ConnectedEnvironment - An environment for Kubernetes cluster specialized for web workloads by Azure App Service
type ConnectedEnvironment struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The complex type of the extended location.
ExtendedLocation *ExtendedLocation
// ConnectedEnvironment resource specific properties
Properties *ConnectedEnvironmentProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// ConnectedEnvironmentCollection - Collection of connectedEnvironments
type ConnectedEnvironmentCollection struct {
// Collection of resources.
Value []*ConnectedEnvironment
// READ-ONLY; Link to next page of resources.
NextLink *string
}
// ConnectedEnvironmentProperties - ConnectedEnvironment resource specific properties
type ConnectedEnvironmentProperties struct {
// Custom domain configuration for the environment
CustomDomainConfiguration *CustomDomainConfiguration
// Application Insights connection string used by Dapr to export Service to Service communication telemetry
DaprAIConnectionString *string
// Static IP of the connectedEnvironment
StaticIP *string
// READ-ONLY; Default Domain Name for the cluster
DefaultDomain *string
// READ-ONLY; Any errors that occurred during deployment or deployment validation
DeploymentErrors *string
// READ-ONLY; Provisioning state of the Kubernetes Environment.
ProvisioningState *ConnectedEnvironmentProvisioningState
}
// ConnectedEnvironmentStorage - Storage resource for connectedEnvironment.
type ConnectedEnvironmentStorage struct {
// Storage properties
Properties *ConnectedEnvironmentStorageProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// ConnectedEnvironmentStorageProperties - Storage properties
type ConnectedEnvironmentStorageProperties struct {
// Azure file properties
AzureFile *AzureFileProperties
}
// ConnectedEnvironmentStoragesCollection - Collection of Storage for Environments
type ConnectedEnvironmentStoragesCollection struct {
// REQUIRED; Collection of storage resources.
Value []*ConnectedEnvironmentStorage
}
// Container App container definition
type Container struct {
// Container start command arguments.
Args []*string
// Container start command.
Command []*string
// Container environment variables.
Env []*EnvironmentVar
// Container image tag.
Image *string
// Custom container name.
Name *string
// List of probes for the container.
Probes []*ContainerAppProbe
// Container resource requirements.
Resources *ContainerResources
// Container volume mounts.
VolumeMounts []*VolumeMount
}
// ContainerApp - Container App.
type ContainerApp struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The complex type of the extended location.
ExtendedLocation *ExtendedLocation
// managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials
// in code.
Identity *ManagedServiceIdentity
// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another
// Azure resource. If this is present, complete mode deployment will not
// delete the resource if it is removed from the template since it is managed by another resource.
ManagedBy *string
// ContainerApp resource specific properties
Properties *ContainerAppProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// ContainerAppAuthToken - Container App Auth Token.
type ContainerAppAuthToken struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Container App auth token resource specific properties
Properties *ContainerAppAuthTokenProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// ContainerAppAuthTokenProperties - Container App auth token resource specific properties
type ContainerAppAuthTokenProperties struct {
// READ-ONLY; Token expiration date.
Expires *time.Time
// READ-ONLY; Auth token value.
Token *string
}
// ContainerAppCollection - Container App collection ARM resource.
type ContainerAppCollection struct {
// REQUIRED; Collection of resources.
Value []*ContainerApp
// READ-ONLY; Link to next page of resources.
NextLink *string
}
// ContainerAppJobExecutions - Container App executions collection ARM resource.
type ContainerAppJobExecutions struct {
// REQUIRED; Collection of resources.
Value []*JobExecution
// READ-ONLY; Link to next page of resources.
NextLink *string
}
// ContainerAppProbe - Probe describes a health check to be performed against a container to determine whether it is alive
// or ready to receive traffic.
type ContainerAppProbe struct {
// Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value
// is 1. Maximum value is 10.
FailureThreshold *int32
// HTTPGet specifies the http request to perform.
HTTPGet *ContainerAppProbeHTTPGet
// Number of seconds after the container has started before liveness probes are initiated. Minimum value is 1. Maximum value
// is 60.
InitialDelaySeconds *int32
// How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.
PeriodSeconds *int32
// Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for
// liveness and startup. Minimum value is 1. Maximum value is 10.
SuccessThreshold *int32
// TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.
TCPSocket *ContainerAppProbeTCPSocket
// Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration
// in seconds after the processes running in the pod are sent a termination signal
// and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup
// time for your process. If this value is nil, the pod's
// terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must
// be non-negative integer. The value zero indicates stop immediately via the
// kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature
// gate. Maximum value is 3600 seconds (1 hour)
TerminationGracePeriodSeconds *int64
// Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 240.
TimeoutSeconds *int32
// The type of probe.
Type *Type
}
// ContainerAppProbeHTTPGet - HTTPGet specifies the http request to perform.
type ContainerAppProbeHTTPGet struct {
// REQUIRED; Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an
// IANASVCNAME.
Port *int32
// Custom headers to set in the request. HTTP allows repeated headers.
HTTPHeaders []*ContainerAppProbeHTTPGetHTTPHeadersItem
// Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
Host *string
// Path to access on the HTTP server.
Path *string
// Scheme to use for connecting to the host. Defaults to HTTP.
Scheme *Scheme
}
// ContainerAppProbeHTTPGetHTTPHeadersItem - HTTPHeader describes a custom header to be used in HTTP probes
type ContainerAppProbeHTTPGetHTTPHeadersItem struct {
// REQUIRED; The header field name
Name *string