From 3ca8286f57985042fa25620445757c65480332d1 Mon Sep 17 00:00:00 2001 From: lonegunmanb Date: Tue, 19 Nov 2024 01:59:45 +0000 Subject: [PATCH 1/3] bump containerapps sdk to 2024-03-01 --- .../services/containerapps/client/client.go | 2 +- .../2024-03-01/containerapps/README.md | 271 +++++++ .../2024-03-01/containerapps/client.go | 26 + .../2024-03-01/containerapps/constants.go | 761 ++++++++++++++++++ .../containerapps/id_containerapp.go | 130 +++ .../containerapps/id_containerappdetector.go | 139 ++++ .../containerapps/id_revisionsapirevision.go | 141 ++++ .../containerapps/method_createorupdate.go | 75 ++ .../2024-03-01/containerapps/method_delete.go | 71 ++ .../method_diagnosticsgetdetector.go | 53 ++ .../method_diagnosticsgetrevision.go | 53 ++ .../method_diagnosticsgetroot.go | 54 ++ .../method_diagnosticslistdetectors.go | 105 +++ .../method_diagnosticslistrevisions.go | 134 +++ .../2024-03-01/containerapps/method_get.go | 53 ++ .../containerapps/method_getauthtoken.go | 54 ++ .../method_listbyresourcegroup.go | 106 +++ .../method_listbysubscription.go | 106 +++ .../method_listcustomhostnameanalysis.go | 83 ++ .../containerapps/method_listsecrets.go | 54 ++ .../2024-03-01/containerapps/method_start.go | 71 ++ .../2024-03-01/containerapps/method_stop.go | 71 ++ .../2024-03-01/containerapps/method_update.go | 75 ++ .../containerapps/model_basecontainer.go | 14 + .../containerapps/model_configuration.go | 14 + .../containerapps/model_container.go | 15 + .../containerapps/model_containerapp.go | 22 + .../model_containerappauthtoken.go | 18 + .../model_containerappauthtokenproperties.go | 27 + .../containerapps/model_containerappprobe.go | 16 + .../model_containerappprobehttpget.go | 12 + ...tainerappprobehttpgethttpheadersinlined.go | 9 + .../model_containerappprobetcpsocket.go | 9 + .../model_containerappproperties.go | 19 + .../containerapps/model_containerappsecret.go | 11 + .../containerapps/model_containerresources.go | 10 + .../containerapps/model_corspolicy.go | 13 + .../containerapps/model_customdomain.go | 10 + .../model_customhostnameanalysisresult.go | 19 + ...sultcustomdomainverificationfailureinfo.go | 11 + ...inverificationfailureinfodetailsinlined.go | 10 + .../containerapps/model_customscalerule.go | 10 + .../2024-03-01/containerapps/model_dapr.go | 15 + .../model_diagnosticdataprovidermetadata.go | 9 + ...cdataprovidermetadatapropertybaginlined.go | 9 + ...model_diagnosticdatatableresponsecolumn.go | 10 + ...model_diagnosticdatatableresponseobject.go | 10 + .../model_diagnosticrendering.go | 11 + .../containerapps/model_diagnostics.go | 16 + .../model_diagnosticsdataapiresponse.go | 9 + .../model_diagnosticsdefinition.go | 16 + .../model_diagnosticsproperties.go | 11 + .../containerapps/model_diagnosticsstatus.go | 9 + .../model_diagnosticsupporttopic.go | 9 + .../containerapps/model_environmentvar.go | 10 + .../containerapps/model_extendedlocation.go | 9 + .../containerapps/model_httpscalerule.go | 9 + .../2024-03-01/containerapps/model_ingress.go | 20 + .../containerapps/model_ingressportmapping.go | 10 + .../model_ingressstickysessions.go | 8 + .../model_ipsecurityrestrictionrule.go | 11 + .../containerapps/model_queuescalerule.go | 10 + .../model_registrycredentials.go | 11 + .../containerapps/model_revision.go | 16 + .../containerapps/model_revisionproperties.go | 48 ++ .../2024-03-01/containerapps/model_scale.go | 10 + .../containerapps/model_scalerule.go | 12 + .../containerapps/model_scaleruleauth.go | 9 + .../2024-03-01/containerapps/model_secret.go | 11 + .../containerapps/model_secretscollection.go | 8 + .../containerapps/model_secretvolumeitem.go | 9 + .../2024-03-01/containerapps/model_service.go | 8 + .../containerapps/model_servicebind.go | 9 + .../containerapps/model_tcpscalerule.go | 9 + .../containerapps/model_template.go | 14 + .../containerapps/model_trafficweight.go | 11 + .../2024-03-01/containerapps/model_volume.go | 12 + .../containerapps/model_volumemount.go | 10 + .../2024-03-01/containerapps/predicates.go | 83 ++ .../2024-03-01/containerapps/version.go | 10 + vendor/modules.txt | 1 + 81 files changed, 3478 insertions(+), 1 deletion(-) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_containerapp.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_containerappdetector.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_revisionsapirevision.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetdetector.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetrevision.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetroot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistdetectors.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistrevisions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_getauthtoken.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listbysubscription.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listcustomhostnameanalysis.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listsecrets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_start.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_stop.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_update.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_basecontainer.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_configuration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_container.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerapp.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappauthtoken.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappauthtokenproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobe.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobehttpget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobetcpsocket.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappsecret.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerresources.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_corspolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customdomain.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customscalerule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_dapr.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdataprovidermetadata.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdatatableresponsecolumn.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdatatableresponseobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticrendering.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnostics.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsdataapiresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsdefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsupporttopic.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_environmentvar.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_extendedlocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_httpscalerule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingressportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingressstickysessions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ipsecurityrestrictionrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_queuescalerule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_registrycredentials.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_revision.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_revisionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scale.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scalerule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scaleruleauth.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secret.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secretscollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secretvolumeitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_service.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_servicebind.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_tcpscalerule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_template.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_trafficweight.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_volume.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_volumemount.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/version.go diff --git a/internal/services/containerapps/client/client.go b/internal/services/containerapps/client/client.go index be9f2bf04aa2..ad775204f785 100644 --- a/internal/services/containerapps/client/client.go +++ b/internal/services/containerapps/client/client.go @@ -7,11 +7,11 @@ import ( "fmt" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/README.md new file mode 100644 index 000000000000..7c73a6772cb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/README.md @@ -0,0 +1,271 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps` Documentation + +The `containerapps` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps" +``` + + +### Client Initialization + +```go +client := containerapps.NewContainerAppsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ContainerAppsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +payload := containerapps.ContainerApp{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ContainerAppsClient.Delete` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ContainerAppsClient.DiagnosticsGetDetector` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "detectorName") + +read, err := client.DiagnosticsGetDetector(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ContainerAppsClient.DiagnosticsGetRevision` + +```go +ctx := context.TODO() +id := containerapps.NewRevisionsApiRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "revisionName") + +read, err := client.DiagnosticsGetRevision(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ContainerAppsClient.DiagnosticsGetRoot` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +read, err := client.DiagnosticsGetRoot(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ContainerAppsClient.DiagnosticsListDetectors` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +// alternatively `client.DiagnosticsListDetectors(ctx, id)` can be used to do batched pagination +items, err := client.DiagnosticsListDetectorsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ContainerAppsClient.DiagnosticsListRevisions` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +// alternatively `client.DiagnosticsListRevisions(ctx, id, containerapps.DefaultDiagnosticsListRevisionsOperationOptions())` can be used to do batched pagination +items, err := client.DiagnosticsListRevisionsComplete(ctx, id, containerapps.DefaultDiagnosticsListRevisionsOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ContainerAppsClient.Get` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ContainerAppsClient.GetAuthToken` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +read, err := client.GetAuthToken(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ContainerAppsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ContainerAppsClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ContainerAppsClient.ListCustomHostNameAnalysis` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +read, err := client.ListCustomHostNameAnalysis(ctx, id, containerapps.DefaultListCustomHostNameAnalysisOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ContainerAppsClient.ListSecrets` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +read, err := client.ListSecrets(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ContainerAppsClient.Start` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +if err := client.StartThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ContainerAppsClient.Stop` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +if err := client.StopThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ContainerAppsClient.Update` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") + +payload := containerapps.ContainerApp{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/client.go new file mode 100644 index 000000000000..aed3cca9efbf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/client.go @@ -0,0 +1,26 @@ +package containerapps + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppsClient struct { + Client *resourcemanager.Client +} + +func NewContainerAppsClientWithBaseURI(sdkApi sdkEnv.Api) (*ContainerAppsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "containerapps", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ContainerAppsClient: %+v", err) + } + + return &ContainerAppsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/constants.go new file mode 100644 index 000000000000..e3a27e14d037 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/constants.go @@ -0,0 +1,761 @@ +package containerapps + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Action string + +const ( + ActionAllow Action = "Allow" + ActionDeny Action = "Deny" +) + +func PossibleValuesForAction() []string { + return []string{ + string(ActionAllow), + string(ActionDeny), + } +} + +func (s *Action) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAction(input string) (*Action, error) { + vals := map[string]Action{ + "allow": ActionAllow, + "deny": ActionDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Action(input) + return &out, nil +} + +type ActiveRevisionsMode string + +const ( + ActiveRevisionsModeMultiple ActiveRevisionsMode = "Multiple" + ActiveRevisionsModeSingle ActiveRevisionsMode = "Single" +) + +func PossibleValuesForActiveRevisionsMode() []string { + return []string{ + string(ActiveRevisionsModeMultiple), + string(ActiveRevisionsModeSingle), + } +} + +func (s *ActiveRevisionsMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseActiveRevisionsMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseActiveRevisionsMode(input string) (*ActiveRevisionsMode, error) { + vals := map[string]ActiveRevisionsMode{ + "multiple": ActiveRevisionsModeMultiple, + "single": ActiveRevisionsModeSingle, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ActiveRevisionsMode(input) + return &out, nil +} + +type Affinity string + +const ( + AffinityNone Affinity = "none" + AffinitySticky Affinity = "sticky" +) + +func PossibleValuesForAffinity() []string { + return []string{ + string(AffinityNone), + string(AffinitySticky), + } +} + +func (s *Affinity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAffinity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAffinity(input string) (*Affinity, error) { + vals := map[string]Affinity{ + "none": AffinityNone, + "sticky": AffinitySticky, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Affinity(input) + return &out, nil +} + +type AppProtocol string + +const ( + AppProtocolGrpc AppProtocol = "grpc" + AppProtocolHTTP AppProtocol = "http" +) + +func PossibleValuesForAppProtocol() []string { + return []string{ + string(AppProtocolGrpc), + string(AppProtocolHTTP), + } +} + +func (s *AppProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAppProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAppProtocol(input string) (*AppProtocol, error) { + vals := map[string]AppProtocol{ + "grpc": AppProtocolGrpc, + "http": AppProtocolHTTP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AppProtocol(input) + return &out, nil +} + +type BindingType string + +const ( + BindingTypeDisabled BindingType = "Disabled" + BindingTypeSniEnabled BindingType = "SniEnabled" +) + +func PossibleValuesForBindingType() []string { + return []string{ + string(BindingTypeDisabled), + string(BindingTypeSniEnabled), + } +} + +func (s *BindingType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBindingType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBindingType(input string) (*BindingType, error) { + vals := map[string]BindingType{ + "disabled": BindingTypeDisabled, + "snienabled": BindingTypeSniEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BindingType(input) + return &out, nil +} + +type ContainerAppProvisioningState string + +const ( + ContainerAppProvisioningStateCanceled ContainerAppProvisioningState = "Canceled" + ContainerAppProvisioningStateDeleting ContainerAppProvisioningState = "Deleting" + ContainerAppProvisioningStateFailed ContainerAppProvisioningState = "Failed" + ContainerAppProvisioningStateInProgress ContainerAppProvisioningState = "InProgress" + ContainerAppProvisioningStateSucceeded ContainerAppProvisioningState = "Succeeded" +) + +func PossibleValuesForContainerAppProvisioningState() []string { + return []string{ + string(ContainerAppProvisioningStateCanceled), + string(ContainerAppProvisioningStateDeleting), + string(ContainerAppProvisioningStateFailed), + string(ContainerAppProvisioningStateInProgress), + string(ContainerAppProvisioningStateSucceeded), + } +} + +func (s *ContainerAppProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerAppProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseContainerAppProvisioningState(input string) (*ContainerAppProvisioningState, error) { + vals := map[string]ContainerAppProvisioningState{ + "canceled": ContainerAppProvisioningStateCanceled, + "deleting": ContainerAppProvisioningStateDeleting, + "failed": ContainerAppProvisioningStateFailed, + "inprogress": ContainerAppProvisioningStateInProgress, + "succeeded": ContainerAppProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ContainerAppProvisioningState(input) + return &out, nil +} + +type DnsVerificationTestResult string + +const ( + DnsVerificationTestResultFailed DnsVerificationTestResult = "Failed" + DnsVerificationTestResultPassed DnsVerificationTestResult = "Passed" + DnsVerificationTestResultSkipped DnsVerificationTestResult = "Skipped" +) + +func PossibleValuesForDnsVerificationTestResult() []string { + return []string{ + string(DnsVerificationTestResultFailed), + string(DnsVerificationTestResultPassed), + string(DnsVerificationTestResultSkipped), + } +} + +func (s *DnsVerificationTestResult) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDnsVerificationTestResult(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDnsVerificationTestResult(input string) (*DnsVerificationTestResult, error) { + vals := map[string]DnsVerificationTestResult{ + "failed": DnsVerificationTestResultFailed, + "passed": DnsVerificationTestResultPassed, + "skipped": DnsVerificationTestResultSkipped, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DnsVerificationTestResult(input) + return &out, nil +} + +type ExtendedLocationTypes string + +const ( + ExtendedLocationTypesCustomLocation ExtendedLocationTypes = "CustomLocation" +) + +func PossibleValuesForExtendedLocationTypes() []string { + return []string{ + string(ExtendedLocationTypesCustomLocation), + } +} + +func (s *ExtendedLocationTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExtendedLocationTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExtendedLocationTypes(input string) (*ExtendedLocationTypes, error) { + vals := map[string]ExtendedLocationTypes{ + "customlocation": ExtendedLocationTypesCustomLocation, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExtendedLocationTypes(input) + return &out, nil +} + +type IngressClientCertificateMode string + +const ( + IngressClientCertificateModeAccept IngressClientCertificateMode = "accept" + IngressClientCertificateModeIgnore IngressClientCertificateMode = "ignore" + IngressClientCertificateModeRequire IngressClientCertificateMode = "require" +) + +func PossibleValuesForIngressClientCertificateMode() []string { + return []string{ + string(IngressClientCertificateModeAccept), + string(IngressClientCertificateModeIgnore), + string(IngressClientCertificateModeRequire), + } +} + +func (s *IngressClientCertificateMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIngressClientCertificateMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIngressClientCertificateMode(input string) (*IngressClientCertificateMode, error) { + vals := map[string]IngressClientCertificateMode{ + "accept": IngressClientCertificateModeAccept, + "ignore": IngressClientCertificateModeIgnore, + "require": IngressClientCertificateModeRequire, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IngressClientCertificateMode(input) + return &out, nil +} + +type IngressTransportMethod string + +const ( + IngressTransportMethodAuto IngressTransportMethod = "auto" + IngressTransportMethodHTTP IngressTransportMethod = "http" + IngressTransportMethodHTTPTwo IngressTransportMethod = "http2" + IngressTransportMethodTcp IngressTransportMethod = "tcp" +) + +func PossibleValuesForIngressTransportMethod() []string { + return []string{ + string(IngressTransportMethodAuto), + string(IngressTransportMethodHTTP), + string(IngressTransportMethodHTTPTwo), + string(IngressTransportMethodTcp), + } +} + +func (s *IngressTransportMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIngressTransportMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIngressTransportMethod(input string) (*IngressTransportMethod, error) { + vals := map[string]IngressTransportMethod{ + "auto": IngressTransportMethodAuto, + "http": IngressTransportMethodHTTP, + "http2": IngressTransportMethodHTTPTwo, + "tcp": IngressTransportMethodTcp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IngressTransportMethod(input) + return &out, nil +} + +type LogLevel string + +const ( + LogLevelDebug LogLevel = "debug" + LogLevelError LogLevel = "error" + LogLevelInfo LogLevel = "info" + LogLevelWarn LogLevel = "warn" +) + +func PossibleValuesForLogLevel() []string { + return []string{ + string(LogLevelDebug), + string(LogLevelError), + string(LogLevelInfo), + string(LogLevelWarn), + } +} + +func (s *LogLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLogLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLogLevel(input string) (*LogLevel, error) { + vals := map[string]LogLevel{ + "debug": LogLevelDebug, + "error": LogLevelError, + "info": LogLevelInfo, + "warn": LogLevelWarn, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LogLevel(input) + return &out, nil +} + +type RevisionHealthState string + +const ( + RevisionHealthStateHealthy RevisionHealthState = "Healthy" + RevisionHealthStateNone RevisionHealthState = "None" + RevisionHealthStateUnhealthy RevisionHealthState = "Unhealthy" +) + +func PossibleValuesForRevisionHealthState() []string { + return []string{ + string(RevisionHealthStateHealthy), + string(RevisionHealthStateNone), + string(RevisionHealthStateUnhealthy), + } +} + +func (s *RevisionHealthState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRevisionHealthState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRevisionHealthState(input string) (*RevisionHealthState, error) { + vals := map[string]RevisionHealthState{ + "healthy": RevisionHealthStateHealthy, + "none": RevisionHealthStateNone, + "unhealthy": RevisionHealthStateUnhealthy, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RevisionHealthState(input) + return &out, nil +} + +type RevisionProvisioningState string + +const ( + RevisionProvisioningStateDeprovisioned RevisionProvisioningState = "Deprovisioned" + RevisionProvisioningStateDeprovisioning RevisionProvisioningState = "Deprovisioning" + RevisionProvisioningStateFailed RevisionProvisioningState = "Failed" + RevisionProvisioningStateProvisioned RevisionProvisioningState = "Provisioned" + RevisionProvisioningStateProvisioning RevisionProvisioningState = "Provisioning" +) + +func PossibleValuesForRevisionProvisioningState() []string { + return []string{ + string(RevisionProvisioningStateDeprovisioned), + string(RevisionProvisioningStateDeprovisioning), + string(RevisionProvisioningStateFailed), + string(RevisionProvisioningStateProvisioned), + string(RevisionProvisioningStateProvisioning), + } +} + +func (s *RevisionProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRevisionProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRevisionProvisioningState(input string) (*RevisionProvisioningState, error) { + vals := map[string]RevisionProvisioningState{ + "deprovisioned": RevisionProvisioningStateDeprovisioned, + "deprovisioning": RevisionProvisioningStateDeprovisioning, + "failed": RevisionProvisioningStateFailed, + "provisioned": RevisionProvisioningStateProvisioned, + "provisioning": RevisionProvisioningStateProvisioning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RevisionProvisioningState(input) + return &out, nil +} + +type RevisionRunningState string + +const ( + RevisionRunningStateDegraded RevisionRunningState = "Degraded" + RevisionRunningStateFailed RevisionRunningState = "Failed" + RevisionRunningStateProcessing RevisionRunningState = "Processing" + RevisionRunningStateRunning RevisionRunningState = "Running" + RevisionRunningStateStopped RevisionRunningState = "Stopped" + RevisionRunningStateUnknown RevisionRunningState = "Unknown" +) + +func PossibleValuesForRevisionRunningState() []string { + return []string{ + string(RevisionRunningStateDegraded), + string(RevisionRunningStateFailed), + string(RevisionRunningStateProcessing), + string(RevisionRunningStateRunning), + string(RevisionRunningStateStopped), + string(RevisionRunningStateUnknown), + } +} + +func (s *RevisionRunningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRevisionRunningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRevisionRunningState(input string) (*RevisionRunningState, error) { + vals := map[string]RevisionRunningState{ + "degraded": RevisionRunningStateDegraded, + "failed": RevisionRunningStateFailed, + "processing": RevisionRunningStateProcessing, + "running": RevisionRunningStateRunning, + "stopped": RevisionRunningStateStopped, + "unknown": RevisionRunningStateUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RevisionRunningState(input) + return &out, nil +} + +type Scheme string + +const ( + SchemeHTTP Scheme = "HTTP" + SchemeHTTPS Scheme = "HTTPS" +) + +func PossibleValuesForScheme() []string { + return []string{ + string(SchemeHTTP), + string(SchemeHTTPS), + } +} + +func (s *Scheme) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScheme(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScheme(input string) (*Scheme, error) { + vals := map[string]Scheme{ + "http": SchemeHTTP, + "https": SchemeHTTPS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Scheme(input) + return &out, nil +} + +type StorageType string + +const ( + StorageTypeAzureFile StorageType = "AzureFile" + StorageTypeEmptyDir StorageType = "EmptyDir" + StorageTypeSecret StorageType = "Secret" +) + +func PossibleValuesForStorageType() []string { + return []string{ + string(StorageTypeAzureFile), + string(StorageTypeEmptyDir), + string(StorageTypeSecret), + } +} + +func (s *StorageType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseStorageType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseStorageType(input string) (*StorageType, error) { + vals := map[string]StorageType{ + "azurefile": StorageTypeAzureFile, + "emptydir": StorageTypeEmptyDir, + "secret": StorageTypeSecret, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := StorageType(input) + return &out, nil +} + +type Type string + +const ( + TypeLiveness Type = "Liveness" + TypeReadiness Type = "Readiness" + TypeStartup Type = "Startup" +) + +func PossibleValuesForType() []string { + return []string{ + string(TypeLiveness), + string(TypeReadiness), + string(TypeStartup), + } +} + +func (s *Type) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseType(input string) (*Type, error) { + vals := map[string]Type{ + "liveness": TypeLiveness, + "readiness": TypeReadiness, + "startup": TypeStartup, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Type(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_containerapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_containerapp.go new file mode 100644 index 000000000000..fcbbf0087d66 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_containerapp.go @@ -0,0 +1,130 @@ +package containerapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ContainerAppId{}) +} + +var _ resourceids.ResourceId = &ContainerAppId{} + +// ContainerAppId is a struct representing the Resource ID for a Container App +type ContainerAppId struct { + SubscriptionId string + ResourceGroupName string + ContainerAppName string +} + +// NewContainerAppID returns a new ContainerAppId struct +func NewContainerAppID(subscriptionId string, resourceGroupName string, containerAppName string) ContainerAppId { + return ContainerAppId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ContainerAppName: containerAppName, + } +} + +// ParseContainerAppID parses 'input' into a ContainerAppId +func ParseContainerAppID(input string) (*ContainerAppId, error) { + parser := resourceids.NewParserFromResourceIdType(&ContainerAppId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ContainerAppId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseContainerAppIDInsensitively parses 'input' case-insensitively into a ContainerAppId +// note: this method should only be used for API response data and not user input +func ParseContainerAppIDInsensitively(input string) (*ContainerAppId, error) { + parser := resourceids.NewParserFromResourceIdType(&ContainerAppId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ContainerAppId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ContainerAppId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ContainerAppName, ok = input.Parsed["containerAppName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", input) + } + + return nil +} + +// ValidateContainerAppID checks that 'input' can be parsed as a Container App ID +func ValidateContainerAppID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseContainerAppID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Container App ID +func (id ContainerAppId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/containerApps/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ContainerAppName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Container App ID +func (id ContainerAppId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), + resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), + resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), + } +} + +// String returns a human-readable description of this Container App ID +func (id ContainerAppId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Container App Name: %q", id.ContainerAppName), + } + return fmt.Sprintf("Container App (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_containerappdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_containerappdetector.go new file mode 100644 index 000000000000..e44277b4bafd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_containerappdetector.go @@ -0,0 +1,139 @@ +package containerapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ContainerAppDetectorId{}) +} + +var _ resourceids.ResourceId = &ContainerAppDetectorId{} + +// ContainerAppDetectorId is a struct representing the Resource ID for a Container App Detector +type ContainerAppDetectorId struct { + SubscriptionId string + ResourceGroupName string + ContainerAppName string + DetectorName string +} + +// NewContainerAppDetectorID returns a new ContainerAppDetectorId struct +func NewContainerAppDetectorID(subscriptionId string, resourceGroupName string, containerAppName string, detectorName string) ContainerAppDetectorId { + return ContainerAppDetectorId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ContainerAppName: containerAppName, + DetectorName: detectorName, + } +} + +// ParseContainerAppDetectorID parses 'input' into a ContainerAppDetectorId +func ParseContainerAppDetectorID(input string) (*ContainerAppDetectorId, error) { + parser := resourceids.NewParserFromResourceIdType(&ContainerAppDetectorId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ContainerAppDetectorId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseContainerAppDetectorIDInsensitively parses 'input' case-insensitively into a ContainerAppDetectorId +// note: this method should only be used for API response data and not user input +func ParseContainerAppDetectorIDInsensitively(input string) (*ContainerAppDetectorId, error) { + parser := resourceids.NewParserFromResourceIdType(&ContainerAppDetectorId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ContainerAppDetectorId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ContainerAppDetectorId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ContainerAppName, ok = input.Parsed["containerAppName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", input) + } + + if id.DetectorName, ok = input.Parsed["detectorName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "detectorName", input) + } + + return nil +} + +// ValidateContainerAppDetectorID checks that 'input' can be parsed as a Container App Detector ID +func ValidateContainerAppDetectorID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseContainerAppDetectorID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Container App Detector ID +func (id ContainerAppDetectorId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/containerApps/%s/detectors/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ContainerAppName, id.DetectorName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Container App Detector ID +func (id ContainerAppDetectorId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), + resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), + resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), + resourceids.StaticSegment("staticDetectors", "detectors", "detectors"), + resourceids.UserSpecifiedSegment("detectorName", "detectorName"), + } +} + +// String returns a human-readable description of this Container App Detector ID +func (id ContainerAppDetectorId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Container App Name: %q", id.ContainerAppName), + fmt.Sprintf("Detector Name: %q", id.DetectorName), + } + return fmt.Sprintf("Container App Detector (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_revisionsapirevision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_revisionsapirevision.go new file mode 100644 index 000000000000..6597dd0e46a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/id_revisionsapirevision.go @@ -0,0 +1,141 @@ +package containerapps + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RevisionsApiRevisionId{}) +} + +var _ resourceids.ResourceId = &RevisionsApiRevisionId{} + +// RevisionsApiRevisionId is a struct representing the Resource ID for a Revisions Api Revision +type RevisionsApiRevisionId struct { + SubscriptionId string + ResourceGroupName string + ContainerAppName string + RevisionName string +} + +// NewRevisionsApiRevisionID returns a new RevisionsApiRevisionId struct +func NewRevisionsApiRevisionID(subscriptionId string, resourceGroupName string, containerAppName string, revisionName string) RevisionsApiRevisionId { + return RevisionsApiRevisionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ContainerAppName: containerAppName, + RevisionName: revisionName, + } +} + +// ParseRevisionsApiRevisionID parses 'input' into a RevisionsApiRevisionId +func ParseRevisionsApiRevisionID(input string) (*RevisionsApiRevisionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RevisionsApiRevisionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RevisionsApiRevisionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRevisionsApiRevisionIDInsensitively parses 'input' case-insensitively into a RevisionsApiRevisionId +// note: this method should only be used for API response data and not user input +func ParseRevisionsApiRevisionIDInsensitively(input string) (*RevisionsApiRevisionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RevisionsApiRevisionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RevisionsApiRevisionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RevisionsApiRevisionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ContainerAppName, ok = input.Parsed["containerAppName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", input) + } + + if id.RevisionName, ok = input.Parsed["revisionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "revisionName", input) + } + + return nil +} + +// ValidateRevisionsApiRevisionID checks that 'input' can be parsed as a Revisions Api Revision ID +func ValidateRevisionsApiRevisionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRevisionsApiRevisionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Revisions Api Revision ID +func (id RevisionsApiRevisionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/containerApps/%s/detectorProperties/revisionsApi/revisions/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ContainerAppName, id.RevisionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Revisions Api Revision ID +func (id RevisionsApiRevisionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), + resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), + resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), + resourceids.StaticSegment("staticDetectorProperties", "detectorProperties", "detectorProperties"), + resourceids.StaticSegment("staticRevisionsApi", "revisionsApi", "revisionsApi"), + resourceids.StaticSegment("staticRevisions", "revisions", "revisions"), + resourceids.UserSpecifiedSegment("revisionName", "revisionName"), + } +} + +// String returns a human-readable description of this Revisions Api Revision ID +func (id RevisionsApiRevisionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Container App Name: %q", id.ContainerAppName), + fmt.Sprintf("Revision Name: %q", id.RevisionName), + } + return fmt.Sprintf("Revisions Api Revision (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_createorupdate.go new file mode 100644 index 000000000000..5db046461291 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_createorupdate.go @@ -0,0 +1,75 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ContainerApp +} + +// CreateOrUpdate ... +func (c ContainerAppsClient) CreateOrUpdate(ctx context.Context, id ContainerAppId, input ContainerApp) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ContainerAppsClient) CreateOrUpdateThenPoll(ctx context.Context, id ContainerAppId, input ContainerApp) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_delete.go new file mode 100644 index 000000000000..049bcddb7058 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_delete.go @@ -0,0 +1,71 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ContainerAppsClient) Delete(ctx context.Context, id ContainerAppId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ContainerAppsClient) DeleteThenPoll(ctx context.Context, id ContainerAppId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetdetector.go new file mode 100644 index 000000000000..0a9e86c2cd68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetdetector.go @@ -0,0 +1,53 @@ +package containerapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsGetDetectorOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Diagnostics +} + +// DiagnosticsGetDetector ... +func (c ContainerAppsClient) DiagnosticsGetDetector(ctx context.Context, id ContainerAppDetectorId) (result DiagnosticsGetDetectorOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Diagnostics + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetrevision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetrevision.go new file mode 100644 index 000000000000..968db6baceb8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetrevision.go @@ -0,0 +1,53 @@ +package containerapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsGetRevisionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Revision +} + +// DiagnosticsGetRevision ... +func (c ContainerAppsClient) DiagnosticsGetRevision(ctx context.Context, id RevisionsApiRevisionId) (result DiagnosticsGetRevisionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Revision + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetroot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetroot.go new file mode 100644 index 000000000000..8c9904e53952 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticsgetroot.go @@ -0,0 +1,54 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsGetRootOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ContainerApp +} + +// DiagnosticsGetRoot ... +func (c ContainerAppsClient) DiagnosticsGetRoot(ctx context.Context, id ContainerAppId) (result DiagnosticsGetRootOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/detectorProperties/rootApi", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ContainerApp + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistdetectors.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistdetectors.go new file mode 100644 index 000000000000..987ae49a3b11 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistdetectors.go @@ -0,0 +1,105 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsListDetectorsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Diagnostics +} + +type DiagnosticsListDetectorsCompleteResult struct { + LatestHttpResponse *http.Response + Items []Diagnostics +} + +type DiagnosticsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// DiagnosticsListDetectors ... +func (c ContainerAppsClient) DiagnosticsListDetectors(ctx context.Context, id ContainerAppId) (result DiagnosticsListDetectorsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &DiagnosticsListDetectorsCustomPager{}, + Path: fmt.Sprintf("%s/detectors", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Diagnostics `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// DiagnosticsListDetectorsComplete retrieves all the results into a single object +func (c ContainerAppsClient) DiagnosticsListDetectorsComplete(ctx context.Context, id ContainerAppId) (DiagnosticsListDetectorsCompleteResult, error) { + return c.DiagnosticsListDetectorsCompleteMatchingPredicate(ctx, id, DiagnosticsOperationPredicate{}) +} + +// DiagnosticsListDetectorsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ContainerAppsClient) DiagnosticsListDetectorsCompleteMatchingPredicate(ctx context.Context, id ContainerAppId, predicate DiagnosticsOperationPredicate) (result DiagnosticsListDetectorsCompleteResult, err error) { + items := make([]Diagnostics, 0) + + resp, err := c.DiagnosticsListDetectors(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = DiagnosticsListDetectorsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistrevisions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistrevisions.go new file mode 100644 index 000000000000..6d8d5523fbd9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistrevisions.go @@ -0,0 +1,134 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsListRevisionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Revision +} + +type DiagnosticsListRevisionsCompleteResult struct { + LatestHttpResponse *http.Response + Items []Revision +} + +type DiagnosticsListRevisionsOperationOptions struct { + Filter *string +} + +func DefaultDiagnosticsListRevisionsOperationOptions() DiagnosticsListRevisionsOperationOptions { + return DiagnosticsListRevisionsOperationOptions{} +} + +func (o DiagnosticsListRevisionsOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DiagnosticsListRevisionsOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DiagnosticsListRevisionsOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + return &out +} + +type DiagnosticsListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DiagnosticsListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// DiagnosticsListRevisions ... +func (c ContainerAppsClient) DiagnosticsListRevisions(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions) (result DiagnosticsListRevisionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &DiagnosticsListRevisionsCustomPager{}, + Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Revision `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// DiagnosticsListRevisionsComplete retrieves all the results into a single object +func (c ContainerAppsClient) DiagnosticsListRevisionsComplete(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions) (DiagnosticsListRevisionsCompleteResult, error) { + return c.DiagnosticsListRevisionsCompleteMatchingPredicate(ctx, id, options, RevisionOperationPredicate{}) +} + +// DiagnosticsListRevisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ContainerAppsClient) DiagnosticsListRevisionsCompleteMatchingPredicate(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions, predicate RevisionOperationPredicate) (result DiagnosticsListRevisionsCompleteResult, err error) { + items := make([]Revision, 0) + + resp, err := c.DiagnosticsListRevisions(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = DiagnosticsListRevisionsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_get.go new file mode 100644 index 000000000000..b17e455e9232 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_get.go @@ -0,0 +1,53 @@ +package containerapps + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ContainerApp +} + +// Get ... +func (c ContainerAppsClient) Get(ctx context.Context, id ContainerAppId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ContainerApp + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_getauthtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_getauthtoken.go new file mode 100644 index 000000000000..7203313fe747 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_getauthtoken.go @@ -0,0 +1,54 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAuthTokenOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ContainerAppAuthToken +} + +// GetAuthToken ... +func (c ContainerAppsClient) GetAuthToken(ctx context.Context, id ContainerAppId) (result GetAuthTokenOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getAuthtoken", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ContainerAppAuthToken + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listbyresourcegroup.go new file mode 100644 index 000000000000..1b2010cc3430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ContainerApp +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []ContainerApp +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.App/containerApps", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ContainerApp `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c ContainerAppsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, ContainerAppOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ContainerAppsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ContainerAppOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]ContainerApp, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listbysubscription.go new file mode 100644 index 000000000000..e80ef0ec67e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listbysubscription.go @@ -0,0 +1,106 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ContainerApp +} + +type ListBySubscriptionCompleteResult struct { + LatestHttpResponse *http.Response + Items []ContainerApp +} + +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListBySubscription ... +func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.App/containerApps", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ContainerApp `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBySubscriptionComplete retrieves all the results into a single object +func (c ContainerAppsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error) { + return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, ContainerAppOperationPredicate{}) +} + +// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ContainerAppsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ContainerAppOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { + items := make([]ContainerApp, 0) + + resp, err := c.ListBySubscription(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBySubscriptionCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listcustomhostnameanalysis.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listcustomhostnameanalysis.go new file mode 100644 index 000000000000..17119ef149eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listcustomhostnameanalysis.go @@ -0,0 +1,83 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListCustomHostNameAnalysisOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CustomHostnameAnalysisResult +} + +type ListCustomHostNameAnalysisOperationOptions struct { + CustomHostname *string +} + +func DefaultListCustomHostNameAnalysisOperationOptions() ListCustomHostNameAnalysisOperationOptions { + return ListCustomHostNameAnalysisOperationOptions{} +} + +func (o ListCustomHostNameAnalysisOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListCustomHostNameAnalysisOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListCustomHostNameAnalysisOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.CustomHostname != nil { + out.Append("customHostname", fmt.Sprintf("%v", *o.CustomHostname)) + } + return &out +} + +// ListCustomHostNameAnalysis ... +func (c ContainerAppsClient) ListCustomHostNameAnalysis(ctx context.Context, id ContainerAppId, options ListCustomHostNameAnalysisOperationOptions) (result ListCustomHostNameAnalysisOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Path: fmt.Sprintf("%s/listCustomHostNameAnalysis", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model CustomHostnameAnalysisResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listsecrets.go new file mode 100644 index 000000000000..8c35814e73fa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_listsecrets.go @@ -0,0 +1,54 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSecretsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecretsCollection +} + +// ListSecrets ... +func (c ContainerAppsClient) ListSecrets(ctx context.Context, id ContainerAppId) (result ListSecretsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listSecrets", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecretsCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_start.go new file mode 100644 index 000000000000..5e3e3cd7b7ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_start.go @@ -0,0 +1,71 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ContainerApp +} + +// Start ... +func (c ContainerAppsClient) Start(ctx context.Context, id ContainerAppId) (result StartOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/start", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartThenPoll performs Start then polls until it's completed +func (c ContainerAppsClient) StartThenPoll(ctx context.Context, id ContainerAppId) error { + result, err := c.Start(ctx, id) + if err != nil { + return fmt.Errorf("performing Start: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Start: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_stop.go new file mode 100644 index 000000000000..7b29fa28f8e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_stop.go @@ -0,0 +1,71 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ContainerApp +} + +// Stop ... +func (c ContainerAppsClient) Stop(ctx context.Context, id ContainerAppId) (result StopOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StopThenPoll performs Stop then polls until it's completed +func (c ContainerAppsClient) StopThenPoll(ctx context.Context, id ContainerAppId) error { + result, err := c.Stop(ctx, id) + if err != nil { + return fmt.Errorf("performing Stop: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Stop: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_update.go new file mode 100644 index 000000000000..4b1978373325 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/method_update.go @@ -0,0 +1,75 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ContainerApp +} + +// Update ... +func (c ContainerAppsClient) Update(ctx context.Context, id ContainerAppId, input ContainerApp) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c ContainerAppsClient) UpdateThenPoll(ctx context.Context, id ContainerAppId, input ContainerApp) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_basecontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_basecontainer.go new file mode 100644 index 000000000000..3190b1630ca0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_basecontainer.go @@ -0,0 +1,14 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BaseContainer struct { + Args *[]string `json:"args,omitempty"` + Command *[]string `json:"command,omitempty"` + Env *[]EnvironmentVar `json:"env,omitempty"` + Image *string `json:"image,omitempty"` + Name *string `json:"name,omitempty"` + Resources *ContainerResources `json:"resources,omitempty"` + VolumeMounts *[]VolumeMount `json:"volumeMounts,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_configuration.go new file mode 100644 index 000000000000..199878bdae15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_configuration.go @@ -0,0 +1,14 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Configuration struct { + ActiveRevisionsMode *ActiveRevisionsMode `json:"activeRevisionsMode,omitempty"` + Dapr *Dapr `json:"dapr,omitempty"` + Ingress *Ingress `json:"ingress,omitempty"` + MaxInactiveRevisions *int64 `json:"maxInactiveRevisions,omitempty"` + Registries *[]RegistryCredentials `json:"registries,omitempty"` + Secrets *[]Secret `json:"secrets,omitempty"` + Service *Service `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_container.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_container.go new file mode 100644 index 000000000000..eacb62148fd5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_container.go @@ -0,0 +1,15 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Container struct { + Args *[]string `json:"args,omitempty"` + Command *[]string `json:"command,omitempty"` + Env *[]EnvironmentVar `json:"env,omitempty"` + Image *string `json:"image,omitempty"` + Name *string `json:"name,omitempty"` + Probes *[]ContainerAppProbe `json:"probes,omitempty"` + Resources *ContainerResources `json:"resources,omitempty"` + VolumeMounts *[]VolumeMount `json:"volumeMounts,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerapp.go new file mode 100644 index 000000000000..0c382ed58675 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerapp.go @@ -0,0 +1,22 @@ +package containerapps + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerApp struct { + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` + Location string `json:"location"` + ManagedBy *string `json:"managedBy,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ContainerAppProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappauthtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappauthtoken.go new file mode 100644 index 000000000000..89b63f9e3692 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappauthtoken.go @@ -0,0 +1,18 @@ +package containerapps + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppAuthToken struct { + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *ContainerAppAuthTokenProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappauthtokenproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappauthtokenproperties.go new file mode 100644 index 000000000000..243fce5c07e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappauthtokenproperties.go @@ -0,0 +1,27 @@ +package containerapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppAuthTokenProperties struct { + Expires *string `json:"expires,omitempty"` + Token *string `json:"token,omitempty"` +} + +func (o *ContainerAppAuthTokenProperties) GetExpiresAsTime() (*time.Time, error) { + if o.Expires == nil { + return nil, nil + } + return dates.ParseAsFormat(o.Expires, "2006-01-02T15:04:05Z07:00") +} + +func (o *ContainerAppAuthTokenProperties) SetExpiresAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.Expires = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobe.go new file mode 100644 index 000000000000..a704b4ab897e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobe.go @@ -0,0 +1,16 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppProbe struct { + FailureThreshold *int64 `json:"failureThreshold,omitempty"` + HTTPGet *ContainerAppProbeHTTPGet `json:"httpGet,omitempty"` + InitialDelaySeconds *int64 `json:"initialDelaySeconds,omitempty"` + PeriodSeconds *int64 `json:"periodSeconds,omitempty"` + SuccessThreshold *int64 `json:"successThreshold,omitempty"` + TcpSocket *ContainerAppProbeTcpSocket `json:"tcpSocket,omitempty"` + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` + TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"` + Type *Type `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobehttpget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobehttpget.go new file mode 100644 index 000000000000..7f78b0e62719 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobehttpget.go @@ -0,0 +1,12 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppProbeHTTPGet struct { + HTTPHeaders *[]ContainerAppProbeHTTPGetHTTPHeadersInlined `json:"httpHeaders,omitempty"` + Host *string `json:"host,omitempty"` + Path *string `json:"path,omitempty"` + Port int64 `json:"port"` + Scheme *Scheme `json:"scheme,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go new file mode 100644 index 000000000000..d97ce91ffab4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppProbeHTTPGetHTTPHeadersInlined struct { + Name string `json:"name"` + Value string `json:"value"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobetcpsocket.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobetcpsocket.go new file mode 100644 index 000000000000..94d442c5fdd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappprobetcpsocket.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppProbeTcpSocket struct { + Host *string `json:"host,omitempty"` + Port int64 `json:"port"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappproperties.go new file mode 100644 index 000000000000..5dab8083bdc2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappproperties.go @@ -0,0 +1,19 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppProperties struct { + Configuration *Configuration `json:"configuration,omitempty"` + CustomDomainVerificationId *string `json:"customDomainVerificationId,omitempty"` + EnvironmentId *string `json:"environmentId,omitempty"` + EventStreamEndpoint *string `json:"eventStreamEndpoint,omitempty"` + LatestReadyRevisionName *string `json:"latestReadyRevisionName,omitempty"` + LatestRevisionFqdn *string `json:"latestRevisionFqdn,omitempty"` + LatestRevisionName *string `json:"latestRevisionName,omitempty"` + ManagedEnvironmentId *string `json:"managedEnvironmentId,omitempty"` + OutboundIPAddresses *[]string `json:"outboundIpAddresses,omitempty"` + ProvisioningState *ContainerAppProvisioningState `json:"provisioningState,omitempty"` + Template *Template `json:"template,omitempty"` + WorkloadProfileName *string `json:"workloadProfileName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappsecret.go new file mode 100644 index 000000000000..757144a4dab5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerappsecret.go @@ -0,0 +1,11 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppSecret struct { + Identity *string `json:"identity,omitempty"` + KeyVaultURL *string `json:"keyVaultUrl,omitempty"` + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerresources.go new file mode 100644 index 000000000000..3d55e9ef4224 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_containerresources.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerResources struct { + Cpu *float64 `json:"cpu,omitempty"` + EphemeralStorage *string `json:"ephemeralStorage,omitempty"` + Memory *string `json:"memory,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_corspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_corspolicy.go new file mode 100644 index 000000000000..414eae004705 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_corspolicy.go @@ -0,0 +1,13 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CorsPolicy struct { + AllowCredentials *bool `json:"allowCredentials,omitempty"` + AllowedHeaders *[]string `json:"allowedHeaders,omitempty"` + AllowedMethods *[]string `json:"allowedMethods,omitempty"` + AllowedOrigins []string `json:"allowedOrigins"` + ExposeHeaders *[]string `json:"exposeHeaders,omitempty"` + MaxAge *int64 `json:"maxAge,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customdomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customdomain.go new file mode 100644 index 000000000000..aeab69111fc9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customdomain.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDomain struct { + BindingType *BindingType `json:"bindingType,omitempty"` + CertificateId *string `json:"certificateId,omitempty"` + Name string `json:"name"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresult.go new file mode 100644 index 000000000000..e6108a841480 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresult.go @@ -0,0 +1,19 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomHostnameAnalysisResult struct { + ARecords *[]string `json:"aRecords,omitempty"` + AlternateCNameRecords *[]string `json:"alternateCNameRecords,omitempty"` + AlternateTxtRecords *[]string `json:"alternateTxtRecords,omitempty"` + CNameRecords *[]string `json:"cNameRecords,omitempty"` + ConflictWithEnvironmentCustomDomain *bool `json:"conflictWithEnvironmentCustomDomain,omitempty"` + ConflictingContainerAppResourceId *string `json:"conflictingContainerAppResourceId,omitempty"` + CustomDomainVerificationFailureInfo *CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo `json:"customDomainVerificationFailureInfo,omitempty"` + CustomDomainVerificationTest *DnsVerificationTestResult `json:"customDomainVerificationTest,omitempty"` + HasConflictOnManagedEnvironment *bool `json:"hasConflictOnManagedEnvironment,omitempty"` + HostName *string `json:"hostName,omitempty"` + IsHostnameAlreadyVerified *bool `json:"isHostnameAlreadyVerified,omitempty"` + TxtRecords *[]string `json:"txtRecords,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go new file mode 100644 index 000000000000..490a78264ab3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go @@ -0,0 +1,11 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo struct { + Code *string `json:"code,omitempty"` + Details *[]CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsInlined `json:"details,omitempty"` + Message *string `json:"message,omitempty"` + Target *string `json:"target,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go new file mode 100644 index 000000000000..1a9643ffafab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsInlined struct { + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Target *string `json:"target,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customscalerule.go new file mode 100644 index 000000000000..6b51d48a3e26 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_customscalerule.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomScaleRule struct { + Auth *[]ScaleRuleAuth `json:"auth,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_dapr.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_dapr.go new file mode 100644 index 000000000000..be3e090812be --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_dapr.go @@ -0,0 +1,15 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Dapr struct { + AppId *string `json:"appId,omitempty"` + AppPort *int64 `json:"appPort,omitempty"` + AppProtocol *AppProtocol `json:"appProtocol,omitempty"` + EnableApiLogging *bool `json:"enableApiLogging,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + HTTPMaxRequestSize *int64 `json:"httpMaxRequestSize,omitempty"` + HTTPReadBufferSize *int64 `json:"httpReadBufferSize,omitempty"` + LogLevel *LogLevel `json:"logLevel,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdataprovidermetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdataprovidermetadata.go new file mode 100644 index 000000000000..4f49cfc12683 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdataprovidermetadata.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticDataProviderMetadata struct { + PropertyBag *[]DiagnosticDataProviderMetadataPropertyBagInlined `json:"propertyBag,omitempty"` + ProviderName *string `json:"providerName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go new file mode 100644 index 000000000000..bb3c8371f295 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticDataProviderMetadataPropertyBagInlined struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdatatableresponsecolumn.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdatatableresponsecolumn.go new file mode 100644 index 000000000000..f0da0d4af5ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdatatableresponsecolumn.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticDataTableResponseColumn struct { + ColumnName *string `json:"columnName,omitempty"` + ColumnType *string `json:"columnType,omitempty"` + DataType *string `json:"dataType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdatatableresponseobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdatatableresponseobject.go new file mode 100644 index 000000000000..f5ab6cef03a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticdatatableresponseobject.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticDataTableResponseObject struct { + Columns *[]DiagnosticDataTableResponseColumn `json:"columns,omitempty"` + Rows *[]interface{} `json:"rows,omitempty"` + TableName *string `json:"tableName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticrendering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticrendering.go new file mode 100644 index 000000000000..febf8f4bc441 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticrendering.go @@ -0,0 +1,11 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticRendering struct { + Description *string `json:"description,omitempty"` + IsVisible *bool `json:"isVisible,omitempty"` + Title *string `json:"title,omitempty"` + Type *int64 `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnostics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnostics.go new file mode 100644 index 000000000000..332b9e6e8a78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnostics.go @@ -0,0 +1,16 @@ +package containerapps + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Diagnostics struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *DiagnosticsProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsdataapiresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsdataapiresponse.go new file mode 100644 index 000000000000..8a4e162a0f14 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsdataapiresponse.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsDataApiResponse struct { + RenderingProperties *DiagnosticRendering `json:"renderingProperties,omitempty"` + Table *DiagnosticDataTableResponseObject `json:"table,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsdefinition.go new file mode 100644 index 000000000000..01d57bd28c29 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsdefinition.go @@ -0,0 +1,16 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsDefinition struct { + AnalysisTypes *[]string `json:"analysisTypes,omitempty"` + Author *string `json:"author,omitempty"` + Category *string `json:"category,omitempty"` + Description *string `json:"description,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Score *float64 `json:"score,omitempty"` + SupportTopicList *[]DiagnosticSupportTopic `json:"supportTopicList,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsproperties.go new file mode 100644 index 000000000000..5606b01916ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsproperties.go @@ -0,0 +1,11 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsProperties struct { + DataProviderMetadata *DiagnosticDataProviderMetadata `json:"dataProviderMetadata,omitempty"` + Dataset *[]DiagnosticsDataApiResponse `json:"dataset,omitempty"` + Metadata *DiagnosticsDefinition `json:"metadata,omitempty"` + Status *DiagnosticsStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsstatus.go new file mode 100644 index 000000000000..ff2dafc6e9e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsstatus.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsStatus struct { + Message *string `json:"message,omitempty"` + StatusId *int64 `json:"statusId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsupporttopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsupporttopic.go new file mode 100644 index 000000000000..36d9fb7fe24c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_diagnosticsupporttopic.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticSupportTopic struct { + Id *string `json:"id,omitempty"` + PesId *string `json:"pesId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_environmentvar.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_environmentvar.go new file mode 100644 index 000000000000..e25ec6c8bc89 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_environmentvar.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EnvironmentVar struct { + Name *string `json:"name,omitempty"` + SecretRef *string `json:"secretRef,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_extendedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_extendedlocation.go new file mode 100644 index 000000000000..20073b0ba295 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_extendedlocation.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExtendedLocation struct { + Name *string `json:"name,omitempty"` + Type *ExtendedLocationTypes `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_httpscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_httpscalerule.go new file mode 100644 index 000000000000..429b7ee23031 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_httpscalerule.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HTTPScaleRule struct { + Auth *[]ScaleRuleAuth `json:"auth,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingress.go new file mode 100644 index 000000000000..8b20fd57cf72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingress.go @@ -0,0 +1,20 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Ingress struct { + AdditionalPortMappings *[]IngressPortMapping `json:"additionalPortMappings,omitempty"` + AllowInsecure *bool `json:"allowInsecure,omitempty"` + ClientCertificateMode *IngressClientCertificateMode `json:"clientCertificateMode,omitempty"` + CorsPolicy *CorsPolicy `json:"corsPolicy,omitempty"` + CustomDomains *[]CustomDomain `json:"customDomains,omitempty"` + ExposedPort *int64 `json:"exposedPort,omitempty"` + External *bool `json:"external,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + IPSecurityRestrictions *[]IPSecurityRestrictionRule `json:"ipSecurityRestrictions,omitempty"` + StickySessions *IngressStickySessions `json:"stickySessions,omitempty"` + TargetPort *int64 `json:"targetPort,omitempty"` + Traffic *[]TrafficWeight `json:"traffic,omitempty"` + Transport *IngressTransportMethod `json:"transport,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingressportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingressportmapping.go new file mode 100644 index 000000000000..f7f84d45faa0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingressportmapping.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IngressPortMapping struct { + ExposedPort *int64 `json:"exposedPort,omitempty"` + External bool `json:"external"` + TargetPort int64 `json:"targetPort"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingressstickysessions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingressstickysessions.go new file mode 100644 index 000000000000..48b18e0ee171 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ingressstickysessions.go @@ -0,0 +1,8 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IngressStickySessions struct { + Affinity *Affinity `json:"affinity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ipsecurityrestrictionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ipsecurityrestrictionrule.go new file mode 100644 index 000000000000..959c43b6cbb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_ipsecurityrestrictionrule.go @@ -0,0 +1,11 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPSecurityRestrictionRule struct { + Action Action `json:"action"` + Description *string `json:"description,omitempty"` + IPAddressRange string `json:"ipAddressRange"` + Name string `json:"name"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_queuescalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_queuescalerule.go new file mode 100644 index 000000000000..b8cbc96d3a0e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_queuescalerule.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type QueueScaleRule struct { + Auth *[]ScaleRuleAuth `json:"auth,omitempty"` + QueueLength *int64 `json:"queueLength,omitempty"` + QueueName *string `json:"queueName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_registrycredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_registrycredentials.go new file mode 100644 index 000000000000..bab9a7f8a4c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_registrycredentials.go @@ -0,0 +1,11 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RegistryCredentials struct { + Identity *string `json:"identity,omitempty"` + PasswordSecretRef *string `json:"passwordSecretRef,omitempty"` + Server *string `json:"server,omitempty"` + Username *string `json:"username,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_revision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_revision.go new file mode 100644 index 000000000000..02d416846200 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_revision.go @@ -0,0 +1,16 @@ +package containerapps + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Revision struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RevisionProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_revisionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_revisionproperties.go new file mode 100644 index 000000000000..2fc409ae580b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_revisionproperties.go @@ -0,0 +1,48 @@ +package containerapps + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RevisionProperties struct { + Active *bool `json:"active,omitempty"` + CreatedTime *string `json:"createdTime,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + HealthState *RevisionHealthState `json:"healthState,omitempty"` + LastActiveTime *string `json:"lastActiveTime,omitempty"` + ProvisioningError *string `json:"provisioningError,omitempty"` + ProvisioningState *RevisionProvisioningState `json:"provisioningState,omitempty"` + Replicas *int64 `json:"replicas,omitempty"` + RunningState *RevisionRunningState `json:"runningState,omitempty"` + Template *Template `json:"template,omitempty"` + TrafficWeight *int64 `json:"trafficWeight,omitempty"` +} + +func (o *RevisionProperties) GetCreatedTimeAsTime() (*time.Time, error) { + if o.CreatedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CreatedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *RevisionProperties) SetCreatedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CreatedTime = &formatted +} + +func (o *RevisionProperties) GetLastActiveTimeAsTime() (*time.Time, error) { + if o.LastActiveTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastActiveTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *RevisionProperties) SetLastActiveTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastActiveTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scale.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scale.go new file mode 100644 index 000000000000..a8f54d89b3fa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scale.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Scale struct { + MaxReplicas *int64 `json:"maxReplicas,omitempty"` + MinReplicas *int64 `json:"minReplicas,omitempty"` + Rules *[]ScaleRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scalerule.go new file mode 100644 index 000000000000..93c358a6fa7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scalerule.go @@ -0,0 +1,12 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScaleRule struct { + AzureQueue *QueueScaleRule `json:"azureQueue,omitempty"` + Custom *CustomScaleRule `json:"custom,omitempty"` + HTTP *HTTPScaleRule `json:"http,omitempty"` + Name *string `json:"name,omitempty"` + Tcp *TcpScaleRule `json:"tcp,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scaleruleauth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scaleruleauth.go new file mode 100644 index 000000000000..46e5a92ad03a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_scaleruleauth.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScaleRuleAuth struct { + SecretRef *string `json:"secretRef,omitempty"` + TriggerParameter *string `json:"triggerParameter,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secret.go new file mode 100644 index 000000000000..61a516725a04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secret.go @@ -0,0 +1,11 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Secret struct { + Identity *string `json:"identity,omitempty"` + KeyVaultURL *string `json:"keyVaultUrl,omitempty"` + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secretscollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secretscollection.go new file mode 100644 index 000000000000..5244f0aabe7d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secretscollection.go @@ -0,0 +1,8 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecretsCollection struct { + Value []ContainerAppSecret `json:"value"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secretvolumeitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secretvolumeitem.go new file mode 100644 index 000000000000..09096efbdd0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_secretvolumeitem.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecretVolumeItem struct { + Path *string `json:"path,omitempty"` + SecretRef *string `json:"secretRef,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_service.go new file mode 100644 index 000000000000..f66b3642bfc5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_service.go @@ -0,0 +1,8 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Service struct { + Type string `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_servicebind.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_servicebind.go new file mode 100644 index 000000000000..29229a27ecea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_servicebind.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceBind struct { + Name *string `json:"name,omitempty"` + ServiceId *string `json:"serviceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_tcpscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_tcpscalerule.go new file mode 100644 index 000000000000..4a970c61e67d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_tcpscalerule.go @@ -0,0 +1,9 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TcpScaleRule struct { + Auth *[]ScaleRuleAuth `json:"auth,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_template.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_template.go new file mode 100644 index 000000000000..03f13f079804 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_template.go @@ -0,0 +1,14 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Template struct { + Containers *[]Container `json:"containers,omitempty"` + InitContainers *[]BaseContainer `json:"initContainers,omitempty"` + RevisionSuffix *string `json:"revisionSuffix,omitempty"` + Scale *Scale `json:"scale,omitempty"` + ServiceBinds *[]ServiceBind `json:"serviceBinds,omitempty"` + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` + Volumes *[]Volume `json:"volumes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_trafficweight.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_trafficweight.go new file mode 100644 index 000000000000..63d06f5fdcb8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_trafficweight.go @@ -0,0 +1,11 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficWeight struct { + Label *string `json:"label,omitempty"` + LatestRevision *bool `json:"latestRevision,omitempty"` + RevisionName *string `json:"revisionName,omitempty"` + Weight *int64 `json:"weight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_volume.go new file mode 100644 index 000000000000..422cdf3ec3d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_volume.go @@ -0,0 +1,12 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Volume struct { + MountOptions *string `json:"mountOptions,omitempty"` + Name *string `json:"name,omitempty"` + Secrets *[]SecretVolumeItem `json:"secrets,omitempty"` + StorageName *string `json:"storageName,omitempty"` + StorageType *StorageType `json:"storageType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_volumemount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_volumemount.go new file mode 100644 index 000000000000..c59e9fc682d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/model_volumemount.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VolumeMount struct { + MountPath *string `json:"mountPath,omitempty"` + SubPath *string `json:"subPath,omitempty"` + VolumeName *string `json:"volumeName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/predicates.go new file mode 100644 index 000000000000..2f9822c394b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/predicates.go @@ -0,0 +1,83 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerAppOperationPredicate struct { + Id *string + Location *string + ManagedBy *string + Name *string + Type *string +} + +func (p ContainerAppOperationPredicate) Matches(input ContainerApp) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && *p.Location != input.Location { + return false + } + + if p.ManagedBy != nil && (input.ManagedBy == nil || *p.ManagedBy != *input.ManagedBy) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type DiagnosticsOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p DiagnosticsOperationPredicate) Matches(input Diagnostics) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type RevisionOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p RevisionOperationPredicate) Matches(input Revision) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/version.go new file mode 100644 index 000000000000..35ae3e5a6300 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps/version.go @@ -0,0 +1,10 @@ +package containerapps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/containerapps/2024-03-01" +} diff --git a/vendor/modules.txt b/vendor/modules.txt index fed2e9b0e646..547328a6ef87 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -362,6 +362,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/dapr github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs +github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview From b94dfb83371543b5adca7bdf81320d3e7b000466 Mon Sep 17 00:00:00 2001 From: Zijie He Date: Wed, 20 Nov 2024 17:20:59 +0800 Subject: [PATCH 2/3] bump containerapps api version to 2024-03-01 --- .../container_app_custom_domain_resource.go | 2 +- ...ntainer_app_custom_domain_resource_test.go | 2 +- .../container_app_data_source.go | 2 +- .../containerapps/container_app_resource.go | 2 +- .../container_app_resource_test.go | 57 +++++++++++++++++-- .../containerapps/helpers/container_apps.go | 2 +- 6 files changed, 57 insertions(+), 10 deletions(-) diff --git a/internal/services/containerapps/container_app_custom_domain_resource.go b/internal/services/containerapps/container_app_custom_domain_resource.go index 06b142c0266b..1e65d22b9f17 100644 --- a/internal/services/containerapps/container_app_custom_domain_resource.go +++ b/internal/services/containerapps/container_app_custom_domain_resource.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/helpers" diff --git a/internal/services/containerapps/container_app_custom_domain_resource_test.go b/internal/services/containerapps/container_app_custom_domain_resource_test.go index 74f93e87be55..723f319aed69 100644 --- a/internal/services/containerapps/container_app_custom_domain_resource_test.go +++ b/internal/services/containerapps/container_app_custom_domain_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/containerapps/container_app_data_source.go b/internal/services/containerapps/container_app_data_source.go index 615cf64f7d5c..6e9b763bc788 100644 --- a/internal/services/containerapps/container_app_data_source.go +++ b/internal/services/containerapps/container_app_data_source.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/helpers" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/containerapps/container_app_resource.go b/internal/services/containerapps/container_app_resource.go index 1b77862144b1..875c51f1fd53 100644 --- a/internal/services/containerapps/container_app_resource.go +++ b/internal/services/containerapps/container_app_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/helpers" diff --git a/internal/services/containerapps/container_app_resource_test.go b/internal/services/containerapps/container_app_resource_test.go index 657c64553226..3c42c8f8a64f 100644 --- a/internal/services/containerapps/container_app_resource_test.go +++ b/internal/services/containerapps/container_app_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -68,24 +68,23 @@ func TestAccContainerAppResource_smallerGranularityCPUMemoryCombinations(t *test func TestAccContainerAppResource_workloadProfileUpdate(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_container_app", "test") r := ContainerAppResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.basic(data), + Config: r.withMultipleWorkloadProfiles(data, 0), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), }, data.ImportStep(), { - Config: r.withWorkloadProfile(data), + Config: r.withMultipleWorkloadProfiles(data, 1), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), }, data.ImportStep(), { - Config: r.basic(data), + Config: r.withMultipleWorkloadProfiles(data, 0), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), @@ -1470,6 +1469,50 @@ resource "azurerm_container_app" "test" { `, r.templateWorkloadProfile(data), data.RandomInteger) } +func (r ContainerAppResource) withMultipleWorkloadProfiles(data acceptance.TestData, workloadProfileIndex int) string { + return fmt.Sprintf(` +%s + +locals { + workload_profiles = tolist(azurerm_container_app_environment.test.workload_profile) +} + +resource "azurerm_container_app" "test" { + name = "acctest-capp-%[2]d" + resource_group_name = azurerm_resource_group.test.name + container_app_environment_id = azurerm_container_app_environment.test.id + revision_mode = "Single" + + workload_profile_name = local.workload_profiles.%[3]d.name + + template { + container { + name = "acctest-cont-%[2]d" + image = "jackofallops/azure-containerapps-python-acctest:v0.0.1" + cpu = 0.25 + memory = "0.5Gi" + } + } + + ingress { + allow_insecure_connections = true + external_enabled = true + target_port = 5000 + transport = "http" + traffic_weight { + latest_revision = true + percentage = 100 + } + } + + tags = { + foo = "Bar" + accTest = "1" + } +} +`, r.templateMultipleWorkloadProfiles(data), data.RandomInteger, workloadProfileIndex) +} + func (r ContainerAppResource) withSmallerGranularityCPUMemoryCombinations(data acceptance.TestData) string { return fmt.Sprintf(` %s @@ -2658,6 +2701,10 @@ func (ContainerAppResource) templateWorkloadProfile(data acceptance.TestData) st return ContainerAppEnvironmentResource{}.complete(data) } +func (ContainerAppResource) templateMultipleWorkloadProfiles(data acceptance.TestData) string { + return ContainerAppEnvironmentResource{}.completeMultipleWorkloadProfiles(data) +} + func (ContainerAppResource) templateWithVnet(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/containerapps/helpers/container_apps.go b/internal/services/containerapps/helpers/container_apps.go index 10d1e1337a11..8a99c54f347d 100644 --- a/internal/services/containerapps/helpers/container_apps.go +++ b/internal/services/containerapps/helpers/container_apps.go @@ -9,8 +9,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/containerapps" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/validate" From 97c8292307109ddae3428709e029b3c7ad8a020e Mon Sep 17 00:00:00 2001 From: lonegunmanb Date: Wed, 20 Nov 2024 10:43:43 +0000 Subject: [PATCH 3/3] go mod vendor --- .../2023-05-01/containerapps/README.md | 271 ------- .../2023-05-01/containerapps/client.go | 26 - .../2023-05-01/containerapps/constants.go | 761 ------------------ .../containerapps/id_containerapp.go | 130 --- .../2023-05-01/containerapps/id_detector.go | 139 ---- .../containerapps/id_revisionsapirevision.go | 141 ---- .../containerapps/method_createorupdate.go | 75 -- .../2023-05-01/containerapps/method_delete.go | 71 -- .../method_diagnosticsgetdetector.go | 53 -- .../method_diagnosticsgetrevision.go | 53 -- .../method_diagnosticsgetroot.go | 54 -- .../method_diagnosticslistdetectors.go | 105 --- .../method_diagnosticslistrevisions.go | 134 --- .../2023-05-01/containerapps/method_get.go | 53 -- .../containerapps/method_getauthtoken.go | 54 -- .../method_listbyresourcegroup.go | 106 --- .../method_listbysubscription.go | 106 --- .../method_listcustomhostnameanalysis.go | 83 -- .../containerapps/method_listsecrets.go | 54 -- .../2023-05-01/containerapps/method_start.go | 71 -- .../2023-05-01/containerapps/method_stop.go | 71 -- .../2023-05-01/containerapps/method_update.go | 75 -- .../containerapps/model_basecontainer.go | 14 - .../containerapps/model_configuration.go | 14 - .../containerapps/model_container.go | 15 - .../containerapps/model_containerapp.go | 22 - .../model_containerappauthtoken.go | 18 - .../model_containerappauthtokenproperties.go | 27 - .../containerapps/model_containerappprobe.go | 16 - .../model_containerappprobehttpget.go | 12 - ...tainerappprobehttpgethttpheadersinlined.go | 9 - .../model_containerappprobetcpsocket.go | 9 - .../model_containerappproperties.go | 19 - .../containerapps/model_containerappsecret.go | 11 - .../containerapps/model_containerresources.go | 10 - .../containerapps/model_corspolicy.go | 13 - .../containerapps/model_customdomain.go | 10 - .../model_customhostnameanalysisresult.go | 19 - ...sultcustomdomainverificationfailureinfo.go | 11 - ...inverificationfailureinfodetailsinlined.go | 10 - .../containerapps/model_customscalerule.go | 10 - .../2023-05-01/containerapps/model_dapr.go | 15 - .../model_diagnosticdataprovidermetadata.go | 9 - ...cdataprovidermetadatapropertybaginlined.go | 9 - ...model_diagnosticdatatableresponsecolumn.go | 10 - ...model_diagnosticdatatableresponseobject.go | 10 - .../model_diagnosticrendering.go | 11 - .../containerapps/model_diagnostics.go | 16 - .../model_diagnosticsdataapiresponse.go | 9 - .../model_diagnosticsdefinition.go | 16 - .../model_diagnosticsproperties.go | 11 - .../containerapps/model_diagnosticsstatus.go | 9 - .../model_diagnosticsupporttopic.go | 9 - .../containerapps/model_environmentvar.go | 10 - .../containerapps/model_extendedlocation.go | 9 - .../containerapps/model_httpscalerule.go | 9 - .../2023-05-01/containerapps/model_ingress.go | 19 - .../model_ingressstickysessions.go | 8 - .../model_ipsecurityrestrictionrule.go | 11 - .../containerapps/model_queuescalerule.go | 10 - .../model_registrycredentials.go | 11 - .../containerapps/model_revision.go | 16 - .../containerapps/model_revisionproperties.go | 48 -- .../2023-05-01/containerapps/model_scale.go | 10 - .../containerapps/model_scalerule.go | 12 - .../containerapps/model_scaleruleauth.go | 9 - .../2023-05-01/containerapps/model_secret.go | 11 - .../containerapps/model_secretscollection.go | 8 - .../containerapps/model_secretvolumeitem.go | 9 - .../2023-05-01/containerapps/model_service.go | 8 - .../containerapps/model_servicebind.go | 9 - .../containerapps/model_tcpscalerule.go | 9 - .../containerapps/model_template.go | 14 - .../containerapps/model_trafficweight.go | 11 - .../2023-05-01/containerapps/model_volume.go | 12 - .../containerapps/model_volumemount.go | 10 - .../2023-05-01/containerapps/predicates.go | 83 -- .../2023-05-01/containerapps/version.go | 10 - vendor/modules.txt | 1 - 79 files changed, 3466 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_start.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_stop.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_update.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_basecontainer.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_configuration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_container.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerapp.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtoken.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtokenproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobe.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobetcpsocket.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappsecret.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerresources.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_corspolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customdomain.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customscalerule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_dapr.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadata.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponsecolumn.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponseobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticrendering.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnostics.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdataapiresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdefinition.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsupporttopic.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_environmentvar.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_extendedlocation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_httpscalerule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingressstickysessions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ipsecurityrestrictionrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_queuescalerule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_registrycredentials.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revision.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revisionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scale.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scalerule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scaleruleauth.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secret.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretscollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretvolumeitem.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_service.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_servicebind.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_tcpscalerule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_template.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_trafficweight.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volume.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volumemount.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md deleted file mode 100644 index 80a05d80f21c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md +++ /dev/null @@ -1,271 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps` Documentation - -The `containerapps` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" -``` - - -### Client Initialization - -```go -client := containerapps.NewContainerAppsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ContainerAppsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -payload := containerapps.ContainerApp{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ContainerAppsClient.Delete` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ContainerAppsClient.DiagnosticsGetDetector` - -```go -ctx := context.TODO() -id := containerapps.NewDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "detectorName") - -read, err := client.DiagnosticsGetDetector(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ContainerAppsClient.DiagnosticsGetRevision` - -```go -ctx := context.TODO() -id := containerapps.NewRevisionsApiRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "revisionName") - -read, err := client.DiagnosticsGetRevision(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ContainerAppsClient.DiagnosticsGetRoot` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -read, err := client.DiagnosticsGetRoot(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ContainerAppsClient.DiagnosticsListDetectors` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -// alternatively `client.DiagnosticsListDetectors(ctx, id)` can be used to do batched pagination -items, err := client.DiagnosticsListDetectorsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ContainerAppsClient.DiagnosticsListRevisions` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -// alternatively `client.DiagnosticsListRevisions(ctx, id, containerapps.DefaultDiagnosticsListRevisionsOperationOptions())` can be used to do batched pagination -items, err := client.DiagnosticsListRevisionsComplete(ctx, id, containerapps.DefaultDiagnosticsListRevisionsOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ContainerAppsClient.Get` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ContainerAppsClient.GetAuthToken` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -read, err := client.GetAuthToken(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ContainerAppsClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ContainerAppsClient.ListBySubscription` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination -items, err := client.ListBySubscriptionComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ContainerAppsClient.ListCustomHostNameAnalysis` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -read, err := client.ListCustomHostNameAnalysis(ctx, id, containerapps.DefaultListCustomHostNameAnalysisOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ContainerAppsClient.ListSecrets` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -read, err := client.ListSecrets(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ContainerAppsClient.Start` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -if err := client.StartThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ContainerAppsClient.Stop` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -if err := client.StopThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ContainerAppsClient.Update` - -```go -ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") - -payload := containerapps.ContainerApp{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go deleted file mode 100644 index aed3cca9efbf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package containerapps - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppsClient struct { - Client *resourcemanager.Client -} - -func NewContainerAppsClientWithBaseURI(sdkApi sdkEnv.Api) (*ContainerAppsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "containerapps", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ContainerAppsClient: %+v", err) - } - - return &ContainerAppsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/constants.go deleted file mode 100644 index e3a27e14d037..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/constants.go +++ /dev/null @@ -1,761 +0,0 @@ -package containerapps - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Action string - -const ( - ActionAllow Action = "Allow" - ActionDeny Action = "Deny" -) - -func PossibleValuesForAction() []string { - return []string{ - string(ActionAllow), - string(ActionDeny), - } -} - -func (s *Action) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAction(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAction(input string) (*Action, error) { - vals := map[string]Action{ - "allow": ActionAllow, - "deny": ActionDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Action(input) - return &out, nil -} - -type ActiveRevisionsMode string - -const ( - ActiveRevisionsModeMultiple ActiveRevisionsMode = "Multiple" - ActiveRevisionsModeSingle ActiveRevisionsMode = "Single" -) - -func PossibleValuesForActiveRevisionsMode() []string { - return []string{ - string(ActiveRevisionsModeMultiple), - string(ActiveRevisionsModeSingle), - } -} - -func (s *ActiveRevisionsMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseActiveRevisionsMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseActiveRevisionsMode(input string) (*ActiveRevisionsMode, error) { - vals := map[string]ActiveRevisionsMode{ - "multiple": ActiveRevisionsModeMultiple, - "single": ActiveRevisionsModeSingle, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ActiveRevisionsMode(input) - return &out, nil -} - -type Affinity string - -const ( - AffinityNone Affinity = "none" - AffinitySticky Affinity = "sticky" -) - -func PossibleValuesForAffinity() []string { - return []string{ - string(AffinityNone), - string(AffinitySticky), - } -} - -func (s *Affinity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAffinity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAffinity(input string) (*Affinity, error) { - vals := map[string]Affinity{ - "none": AffinityNone, - "sticky": AffinitySticky, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Affinity(input) - return &out, nil -} - -type AppProtocol string - -const ( - AppProtocolGrpc AppProtocol = "grpc" - AppProtocolHTTP AppProtocol = "http" -) - -func PossibleValuesForAppProtocol() []string { - return []string{ - string(AppProtocolGrpc), - string(AppProtocolHTTP), - } -} - -func (s *AppProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAppProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAppProtocol(input string) (*AppProtocol, error) { - vals := map[string]AppProtocol{ - "grpc": AppProtocolGrpc, - "http": AppProtocolHTTP, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AppProtocol(input) - return &out, nil -} - -type BindingType string - -const ( - BindingTypeDisabled BindingType = "Disabled" - BindingTypeSniEnabled BindingType = "SniEnabled" -) - -func PossibleValuesForBindingType() []string { - return []string{ - string(BindingTypeDisabled), - string(BindingTypeSniEnabled), - } -} - -func (s *BindingType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseBindingType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseBindingType(input string) (*BindingType, error) { - vals := map[string]BindingType{ - "disabled": BindingTypeDisabled, - "snienabled": BindingTypeSniEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := BindingType(input) - return &out, nil -} - -type ContainerAppProvisioningState string - -const ( - ContainerAppProvisioningStateCanceled ContainerAppProvisioningState = "Canceled" - ContainerAppProvisioningStateDeleting ContainerAppProvisioningState = "Deleting" - ContainerAppProvisioningStateFailed ContainerAppProvisioningState = "Failed" - ContainerAppProvisioningStateInProgress ContainerAppProvisioningState = "InProgress" - ContainerAppProvisioningStateSucceeded ContainerAppProvisioningState = "Succeeded" -) - -func PossibleValuesForContainerAppProvisioningState() []string { - return []string{ - string(ContainerAppProvisioningStateCanceled), - string(ContainerAppProvisioningStateDeleting), - string(ContainerAppProvisioningStateFailed), - string(ContainerAppProvisioningStateInProgress), - string(ContainerAppProvisioningStateSucceeded), - } -} - -func (s *ContainerAppProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseContainerAppProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseContainerAppProvisioningState(input string) (*ContainerAppProvisioningState, error) { - vals := map[string]ContainerAppProvisioningState{ - "canceled": ContainerAppProvisioningStateCanceled, - "deleting": ContainerAppProvisioningStateDeleting, - "failed": ContainerAppProvisioningStateFailed, - "inprogress": ContainerAppProvisioningStateInProgress, - "succeeded": ContainerAppProvisioningStateSucceeded, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ContainerAppProvisioningState(input) - return &out, nil -} - -type DnsVerificationTestResult string - -const ( - DnsVerificationTestResultFailed DnsVerificationTestResult = "Failed" - DnsVerificationTestResultPassed DnsVerificationTestResult = "Passed" - DnsVerificationTestResultSkipped DnsVerificationTestResult = "Skipped" -) - -func PossibleValuesForDnsVerificationTestResult() []string { - return []string{ - string(DnsVerificationTestResultFailed), - string(DnsVerificationTestResultPassed), - string(DnsVerificationTestResultSkipped), - } -} - -func (s *DnsVerificationTestResult) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDnsVerificationTestResult(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDnsVerificationTestResult(input string) (*DnsVerificationTestResult, error) { - vals := map[string]DnsVerificationTestResult{ - "failed": DnsVerificationTestResultFailed, - "passed": DnsVerificationTestResultPassed, - "skipped": DnsVerificationTestResultSkipped, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DnsVerificationTestResult(input) - return &out, nil -} - -type ExtendedLocationTypes string - -const ( - ExtendedLocationTypesCustomLocation ExtendedLocationTypes = "CustomLocation" -) - -func PossibleValuesForExtendedLocationTypes() []string { - return []string{ - string(ExtendedLocationTypesCustomLocation), - } -} - -func (s *ExtendedLocationTypes) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExtendedLocationTypes(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExtendedLocationTypes(input string) (*ExtendedLocationTypes, error) { - vals := map[string]ExtendedLocationTypes{ - "customlocation": ExtendedLocationTypesCustomLocation, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExtendedLocationTypes(input) - return &out, nil -} - -type IngressClientCertificateMode string - -const ( - IngressClientCertificateModeAccept IngressClientCertificateMode = "accept" - IngressClientCertificateModeIgnore IngressClientCertificateMode = "ignore" - IngressClientCertificateModeRequire IngressClientCertificateMode = "require" -) - -func PossibleValuesForIngressClientCertificateMode() []string { - return []string{ - string(IngressClientCertificateModeAccept), - string(IngressClientCertificateModeIgnore), - string(IngressClientCertificateModeRequire), - } -} - -func (s *IngressClientCertificateMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIngressClientCertificateMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIngressClientCertificateMode(input string) (*IngressClientCertificateMode, error) { - vals := map[string]IngressClientCertificateMode{ - "accept": IngressClientCertificateModeAccept, - "ignore": IngressClientCertificateModeIgnore, - "require": IngressClientCertificateModeRequire, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IngressClientCertificateMode(input) - return &out, nil -} - -type IngressTransportMethod string - -const ( - IngressTransportMethodAuto IngressTransportMethod = "auto" - IngressTransportMethodHTTP IngressTransportMethod = "http" - IngressTransportMethodHTTPTwo IngressTransportMethod = "http2" - IngressTransportMethodTcp IngressTransportMethod = "tcp" -) - -func PossibleValuesForIngressTransportMethod() []string { - return []string{ - string(IngressTransportMethodAuto), - string(IngressTransportMethodHTTP), - string(IngressTransportMethodHTTPTwo), - string(IngressTransportMethodTcp), - } -} - -func (s *IngressTransportMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIngressTransportMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIngressTransportMethod(input string) (*IngressTransportMethod, error) { - vals := map[string]IngressTransportMethod{ - "auto": IngressTransportMethodAuto, - "http": IngressTransportMethodHTTP, - "http2": IngressTransportMethodHTTPTwo, - "tcp": IngressTransportMethodTcp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IngressTransportMethod(input) - return &out, nil -} - -type LogLevel string - -const ( - LogLevelDebug LogLevel = "debug" - LogLevelError LogLevel = "error" - LogLevelInfo LogLevel = "info" - LogLevelWarn LogLevel = "warn" -) - -func PossibleValuesForLogLevel() []string { - return []string{ - string(LogLevelDebug), - string(LogLevelError), - string(LogLevelInfo), - string(LogLevelWarn), - } -} - -func (s *LogLevel) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLogLevel(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLogLevel(input string) (*LogLevel, error) { - vals := map[string]LogLevel{ - "debug": LogLevelDebug, - "error": LogLevelError, - "info": LogLevelInfo, - "warn": LogLevelWarn, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LogLevel(input) - return &out, nil -} - -type RevisionHealthState string - -const ( - RevisionHealthStateHealthy RevisionHealthState = "Healthy" - RevisionHealthStateNone RevisionHealthState = "None" - RevisionHealthStateUnhealthy RevisionHealthState = "Unhealthy" -) - -func PossibleValuesForRevisionHealthState() []string { - return []string{ - string(RevisionHealthStateHealthy), - string(RevisionHealthStateNone), - string(RevisionHealthStateUnhealthy), - } -} - -func (s *RevisionHealthState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRevisionHealthState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRevisionHealthState(input string) (*RevisionHealthState, error) { - vals := map[string]RevisionHealthState{ - "healthy": RevisionHealthStateHealthy, - "none": RevisionHealthStateNone, - "unhealthy": RevisionHealthStateUnhealthy, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RevisionHealthState(input) - return &out, nil -} - -type RevisionProvisioningState string - -const ( - RevisionProvisioningStateDeprovisioned RevisionProvisioningState = "Deprovisioned" - RevisionProvisioningStateDeprovisioning RevisionProvisioningState = "Deprovisioning" - RevisionProvisioningStateFailed RevisionProvisioningState = "Failed" - RevisionProvisioningStateProvisioned RevisionProvisioningState = "Provisioned" - RevisionProvisioningStateProvisioning RevisionProvisioningState = "Provisioning" -) - -func PossibleValuesForRevisionProvisioningState() []string { - return []string{ - string(RevisionProvisioningStateDeprovisioned), - string(RevisionProvisioningStateDeprovisioning), - string(RevisionProvisioningStateFailed), - string(RevisionProvisioningStateProvisioned), - string(RevisionProvisioningStateProvisioning), - } -} - -func (s *RevisionProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRevisionProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRevisionProvisioningState(input string) (*RevisionProvisioningState, error) { - vals := map[string]RevisionProvisioningState{ - "deprovisioned": RevisionProvisioningStateDeprovisioned, - "deprovisioning": RevisionProvisioningStateDeprovisioning, - "failed": RevisionProvisioningStateFailed, - "provisioned": RevisionProvisioningStateProvisioned, - "provisioning": RevisionProvisioningStateProvisioning, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RevisionProvisioningState(input) - return &out, nil -} - -type RevisionRunningState string - -const ( - RevisionRunningStateDegraded RevisionRunningState = "Degraded" - RevisionRunningStateFailed RevisionRunningState = "Failed" - RevisionRunningStateProcessing RevisionRunningState = "Processing" - RevisionRunningStateRunning RevisionRunningState = "Running" - RevisionRunningStateStopped RevisionRunningState = "Stopped" - RevisionRunningStateUnknown RevisionRunningState = "Unknown" -) - -func PossibleValuesForRevisionRunningState() []string { - return []string{ - string(RevisionRunningStateDegraded), - string(RevisionRunningStateFailed), - string(RevisionRunningStateProcessing), - string(RevisionRunningStateRunning), - string(RevisionRunningStateStopped), - string(RevisionRunningStateUnknown), - } -} - -func (s *RevisionRunningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRevisionRunningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRevisionRunningState(input string) (*RevisionRunningState, error) { - vals := map[string]RevisionRunningState{ - "degraded": RevisionRunningStateDegraded, - "failed": RevisionRunningStateFailed, - "processing": RevisionRunningStateProcessing, - "running": RevisionRunningStateRunning, - "stopped": RevisionRunningStateStopped, - "unknown": RevisionRunningStateUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RevisionRunningState(input) - return &out, nil -} - -type Scheme string - -const ( - SchemeHTTP Scheme = "HTTP" - SchemeHTTPS Scheme = "HTTPS" -) - -func PossibleValuesForScheme() []string { - return []string{ - string(SchemeHTTP), - string(SchemeHTTPS), - } -} - -func (s *Scheme) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseScheme(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseScheme(input string) (*Scheme, error) { - vals := map[string]Scheme{ - "http": SchemeHTTP, - "https": SchemeHTTPS, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Scheme(input) - return &out, nil -} - -type StorageType string - -const ( - StorageTypeAzureFile StorageType = "AzureFile" - StorageTypeEmptyDir StorageType = "EmptyDir" - StorageTypeSecret StorageType = "Secret" -) - -func PossibleValuesForStorageType() []string { - return []string{ - string(StorageTypeAzureFile), - string(StorageTypeEmptyDir), - string(StorageTypeSecret), - } -} - -func (s *StorageType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseStorageType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseStorageType(input string) (*StorageType, error) { - vals := map[string]StorageType{ - "azurefile": StorageTypeAzureFile, - "emptydir": StorageTypeEmptyDir, - "secret": StorageTypeSecret, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := StorageType(input) - return &out, nil -} - -type Type string - -const ( - TypeLiveness Type = "Liveness" - TypeReadiness Type = "Readiness" - TypeStartup Type = "Startup" -) - -func PossibleValuesForType() []string { - return []string{ - string(TypeLiveness), - string(TypeReadiness), - string(TypeStartup), - } -} - -func (s *Type) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseType(input string) (*Type, error) { - vals := map[string]Type{ - "liveness": TypeLiveness, - "readiness": TypeReadiness, - "startup": TypeStartup, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Type(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go deleted file mode 100644 index fcbbf0087d66..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go +++ /dev/null @@ -1,130 +0,0 @@ -package containerapps - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ContainerAppId{}) -} - -var _ resourceids.ResourceId = &ContainerAppId{} - -// ContainerAppId is a struct representing the Resource ID for a Container App -type ContainerAppId struct { - SubscriptionId string - ResourceGroupName string - ContainerAppName string -} - -// NewContainerAppID returns a new ContainerAppId struct -func NewContainerAppID(subscriptionId string, resourceGroupName string, containerAppName string) ContainerAppId { - return ContainerAppId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ContainerAppName: containerAppName, - } -} - -// ParseContainerAppID parses 'input' into a ContainerAppId -func ParseContainerAppID(input string) (*ContainerAppId, error) { - parser := resourceids.NewParserFromResourceIdType(&ContainerAppId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ContainerAppId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseContainerAppIDInsensitively parses 'input' case-insensitively into a ContainerAppId -// note: this method should only be used for API response data and not user input -func ParseContainerAppIDInsensitively(input string) (*ContainerAppId, error) { - parser := resourceids.NewParserFromResourceIdType(&ContainerAppId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ContainerAppId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ContainerAppId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ContainerAppName, ok = input.Parsed["containerAppName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", input) - } - - return nil -} - -// ValidateContainerAppID checks that 'input' can be parsed as a Container App ID -func ValidateContainerAppID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseContainerAppID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Container App ID -func (id ContainerAppId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/containerApps/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ContainerAppName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Container App ID -func (id ContainerAppId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), - resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), - resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), - } -} - -// String returns a human-readable description of this Container App ID -func (id ContainerAppId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Container App Name: %q", id.ContainerAppName), - } - return fmt.Sprintf("Container App (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go deleted file mode 100644 index 0ce38d3ca620..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go +++ /dev/null @@ -1,139 +0,0 @@ -package containerapps - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&DetectorId{}) -} - -var _ resourceids.ResourceId = &DetectorId{} - -// DetectorId is a struct representing the Resource ID for a Detector -type DetectorId struct { - SubscriptionId string - ResourceGroupName string - ContainerAppName string - DetectorName string -} - -// NewDetectorID returns a new DetectorId struct -func NewDetectorID(subscriptionId string, resourceGroupName string, containerAppName string, detectorName string) DetectorId { - return DetectorId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ContainerAppName: containerAppName, - DetectorName: detectorName, - } -} - -// ParseDetectorID parses 'input' into a DetectorId -func ParseDetectorID(input string) (*DetectorId, error) { - parser := resourceids.NewParserFromResourceIdType(&DetectorId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := DetectorId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseDetectorIDInsensitively parses 'input' case-insensitively into a DetectorId -// note: this method should only be used for API response data and not user input -func ParseDetectorIDInsensitively(input string) (*DetectorId, error) { - parser := resourceids.NewParserFromResourceIdType(&DetectorId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := DetectorId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *DetectorId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ContainerAppName, ok = input.Parsed["containerAppName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", input) - } - - if id.DetectorName, ok = input.Parsed["detectorName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "detectorName", input) - } - - return nil -} - -// ValidateDetectorID checks that 'input' can be parsed as a Detector ID -func ValidateDetectorID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseDetectorID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Detector ID -func (id DetectorId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/containerApps/%s/detectors/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ContainerAppName, id.DetectorName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Detector ID -func (id DetectorId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), - resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), - resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), - resourceids.StaticSegment("staticDetectors", "detectors", "detectors"), - resourceids.UserSpecifiedSegment("detectorName", "detectorName"), - } -} - -// String returns a human-readable description of this Detector ID -func (id DetectorId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Container App Name: %q", id.ContainerAppName), - fmt.Sprintf("Detector Name: %q", id.DetectorName), - } - return fmt.Sprintf("Detector (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go deleted file mode 100644 index 6597dd0e46a9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go +++ /dev/null @@ -1,141 +0,0 @@ -package containerapps - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RevisionsApiRevisionId{}) -} - -var _ resourceids.ResourceId = &RevisionsApiRevisionId{} - -// RevisionsApiRevisionId is a struct representing the Resource ID for a Revisions Api Revision -type RevisionsApiRevisionId struct { - SubscriptionId string - ResourceGroupName string - ContainerAppName string - RevisionName string -} - -// NewRevisionsApiRevisionID returns a new RevisionsApiRevisionId struct -func NewRevisionsApiRevisionID(subscriptionId string, resourceGroupName string, containerAppName string, revisionName string) RevisionsApiRevisionId { - return RevisionsApiRevisionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ContainerAppName: containerAppName, - RevisionName: revisionName, - } -} - -// ParseRevisionsApiRevisionID parses 'input' into a RevisionsApiRevisionId -func ParseRevisionsApiRevisionID(input string) (*RevisionsApiRevisionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RevisionsApiRevisionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RevisionsApiRevisionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRevisionsApiRevisionIDInsensitively parses 'input' case-insensitively into a RevisionsApiRevisionId -// note: this method should only be used for API response data and not user input -func ParseRevisionsApiRevisionIDInsensitively(input string) (*RevisionsApiRevisionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RevisionsApiRevisionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RevisionsApiRevisionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RevisionsApiRevisionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ContainerAppName, ok = input.Parsed["containerAppName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", input) - } - - if id.RevisionName, ok = input.Parsed["revisionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "revisionName", input) - } - - return nil -} - -// ValidateRevisionsApiRevisionID checks that 'input' can be parsed as a Revisions Api Revision ID -func ValidateRevisionsApiRevisionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRevisionsApiRevisionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Revisions Api Revision ID -func (id RevisionsApiRevisionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/containerApps/%s/detectorProperties/revisionsApi/revisions/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ContainerAppName, id.RevisionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Revisions Api Revision ID -func (id RevisionsApiRevisionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), - resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), - resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), - resourceids.StaticSegment("staticDetectorProperties", "detectorProperties", "detectorProperties"), - resourceids.StaticSegment("staticRevisionsApi", "revisionsApi", "revisionsApi"), - resourceids.StaticSegment("staticRevisions", "revisions", "revisions"), - resourceids.UserSpecifiedSegment("revisionName", "revisionName"), - } -} - -// String returns a human-readable description of this Revisions Api Revision ID -func (id RevisionsApiRevisionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Container App Name: %q", id.ContainerAppName), - fmt.Sprintf("Revision Name: %q", id.RevisionName), - } - return fmt.Sprintf("Revisions Api Revision (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_createorupdate.go deleted file mode 100644 index 5db046461291..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ContainerApp -} - -// CreateOrUpdate ... -func (c ContainerAppsClient) CreateOrUpdate(ctx context.Context, id ContainerAppId, input ContainerApp) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c ContainerAppsClient) CreateOrUpdateThenPoll(ctx context.Context, id ContainerAppId, input ContainerApp) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_delete.go deleted file mode 100644 index 049bcddb7058..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c ContainerAppsClient) Delete(ctx context.Context, id ContainerAppId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c ContainerAppsClient) DeleteThenPoll(ctx context.Context, id ContainerAppId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector.go deleted file mode 100644 index f298d8ffc48a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector.go +++ /dev/null @@ -1,53 +0,0 @@ -package containerapps - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticsGetDetectorOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *Diagnostics -} - -// DiagnosticsGetDetector ... -func (c ContainerAppsClient) DiagnosticsGetDetector(ctx context.Context, id DetectorId) (result DiagnosticsGetDetectorOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model Diagnostics - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision.go deleted file mode 100644 index 968db6baceb8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision.go +++ /dev/null @@ -1,53 +0,0 @@ -package containerapps - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticsGetRevisionOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *Revision -} - -// DiagnosticsGetRevision ... -func (c ContainerAppsClient) DiagnosticsGetRevision(ctx context.Context, id RevisionsApiRevisionId) (result DiagnosticsGetRevisionOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model Revision - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot.go deleted file mode 100644 index 8c9904e53952..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot.go +++ /dev/null @@ -1,54 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticsGetRootOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ContainerApp -} - -// DiagnosticsGetRoot ... -func (c ContainerAppsClient) DiagnosticsGetRoot(ctx context.Context, id ContainerAppId) (result DiagnosticsGetRootOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/detectorProperties/rootApi", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ContainerApp - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors.go deleted file mode 100644 index 987ae49a3b11..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors.go +++ /dev/null @@ -1,105 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticsListDetectorsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]Diagnostics -} - -type DiagnosticsListDetectorsCompleteResult struct { - LatestHttpResponse *http.Response - Items []Diagnostics -} - -type DiagnosticsListDetectorsCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *DiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// DiagnosticsListDetectors ... -func (c ContainerAppsClient) DiagnosticsListDetectors(ctx context.Context, id ContainerAppId) (result DiagnosticsListDetectorsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &DiagnosticsListDetectorsCustomPager{}, - Path: fmt.Sprintf("%s/detectors", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]Diagnostics `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// DiagnosticsListDetectorsComplete retrieves all the results into a single object -func (c ContainerAppsClient) DiagnosticsListDetectorsComplete(ctx context.Context, id ContainerAppId) (DiagnosticsListDetectorsCompleteResult, error) { - return c.DiagnosticsListDetectorsCompleteMatchingPredicate(ctx, id, DiagnosticsOperationPredicate{}) -} - -// DiagnosticsListDetectorsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ContainerAppsClient) DiagnosticsListDetectorsCompleteMatchingPredicate(ctx context.Context, id ContainerAppId, predicate DiagnosticsOperationPredicate) (result DiagnosticsListDetectorsCompleteResult, err error) { - items := make([]Diagnostics, 0) - - resp, err := c.DiagnosticsListDetectors(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = DiagnosticsListDetectorsCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go deleted file mode 100644 index 6d8d5523fbd9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go +++ /dev/null @@ -1,134 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticsListRevisionsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]Revision -} - -type DiagnosticsListRevisionsCompleteResult struct { - LatestHttpResponse *http.Response - Items []Revision -} - -type DiagnosticsListRevisionsOperationOptions struct { - Filter *string -} - -func DefaultDiagnosticsListRevisionsOperationOptions() DiagnosticsListRevisionsOperationOptions { - return DiagnosticsListRevisionsOperationOptions{} -} - -func (o DiagnosticsListRevisionsOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o DiagnosticsListRevisionsOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DiagnosticsListRevisionsOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Filter != nil { - out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) - } - return &out -} - -type DiagnosticsListRevisionsCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *DiagnosticsListRevisionsCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// DiagnosticsListRevisions ... -func (c ContainerAppsClient) DiagnosticsListRevisions(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions) (result DiagnosticsListRevisionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &DiagnosticsListRevisionsCustomPager{}, - Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]Revision `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// DiagnosticsListRevisionsComplete retrieves all the results into a single object -func (c ContainerAppsClient) DiagnosticsListRevisionsComplete(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions) (DiagnosticsListRevisionsCompleteResult, error) { - return c.DiagnosticsListRevisionsCompleteMatchingPredicate(ctx, id, options, RevisionOperationPredicate{}) -} - -// DiagnosticsListRevisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ContainerAppsClient) DiagnosticsListRevisionsCompleteMatchingPredicate(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions, predicate RevisionOperationPredicate) (result DiagnosticsListRevisionsCompleteResult, err error) { - items := make([]Revision, 0) - - resp, err := c.DiagnosticsListRevisions(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = DiagnosticsListRevisionsCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get.go deleted file mode 100644 index b17e455e9232..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package containerapps - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ContainerApp -} - -// Get ... -func (c ContainerAppsClient) Get(ctx context.Context, id ContainerAppId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ContainerApp - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken.go deleted file mode 100644 index 7203313fe747..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken.go +++ /dev/null @@ -1,54 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetAuthTokenOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ContainerAppAuthToken -} - -// GetAuthToken ... -func (c ContainerAppsClient) GetAuthToken(ctx context.Context, id ContainerAppId) (result GetAuthTokenOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getAuthtoken", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ContainerAppAuthToken - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup.go deleted file mode 100644 index 1b2010cc3430..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup.go +++ /dev/null @@ -1,106 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListByResourceGroupOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ContainerApp -} - -type ListByResourceGroupCompleteResult struct { - LatestHttpResponse *http.Response - Items []ContainerApp -} - -type ListByResourceGroupCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListByResourceGroup ... -func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListByResourceGroupCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.App/containerApps", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ContainerApp `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListByResourceGroupComplete retrieves all the results into a single object -func (c ContainerAppsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { - return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, ContainerAppOperationPredicate{}) -} - -// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ContainerAppsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ContainerAppOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { - items := make([]ContainerApp, 0) - - resp, err := c.ListByResourceGroup(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListByResourceGroupCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription.go deleted file mode 100644 index e80ef0ec67e6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription.go +++ /dev/null @@ -1,106 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListBySubscriptionOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ContainerApp -} - -type ListBySubscriptionCompleteResult struct { - LatestHttpResponse *http.Response - Items []ContainerApp -} - -type ListBySubscriptionCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListBySubscription ... -func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListBySubscriptionCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.App/containerApps", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ContainerApp `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListBySubscriptionComplete retrieves all the results into a single object -func (c ContainerAppsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error) { - return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, ContainerAppOperationPredicate{}) -} - -// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ContainerAppsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ContainerAppOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { - items := make([]ContainerApp, 0) - - resp, err := c.ListBySubscription(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListBySubscriptionCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go deleted file mode 100644 index 17119ef149eb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go +++ /dev/null @@ -1,83 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListCustomHostNameAnalysisOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *CustomHostnameAnalysisResult -} - -type ListCustomHostNameAnalysisOperationOptions struct { - CustomHostname *string -} - -func DefaultListCustomHostNameAnalysisOperationOptions() ListCustomHostNameAnalysisOperationOptions { - return ListCustomHostNameAnalysisOperationOptions{} -} - -func (o ListCustomHostNameAnalysisOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListCustomHostNameAnalysisOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListCustomHostNameAnalysisOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.CustomHostname != nil { - out.Append("customHostname", fmt.Sprintf("%v", *o.CustomHostname)) - } - return &out -} - -// ListCustomHostNameAnalysis ... -func (c ContainerAppsClient) ListCustomHostNameAnalysis(ctx context.Context, id ContainerAppId, options ListCustomHostNameAnalysisOperationOptions) (result ListCustomHostNameAnalysisOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - OptionsObject: options, - Path: fmt.Sprintf("%s/listCustomHostNameAnalysis", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model CustomHostnameAnalysisResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets.go deleted file mode 100644 index 8c35814e73fa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets.go +++ /dev/null @@ -1,54 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListSecretsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *SecretsCollection -} - -// ListSecrets ... -func (c ContainerAppsClient) ListSecrets(ctx context.Context, id ContainerAppId) (result ListSecretsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSecrets", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model SecretsCollection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_start.go deleted file mode 100644 index 5e3e3cd7b7ed..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_start.go +++ /dev/null @@ -1,71 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StartOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ContainerApp -} - -// Start ... -func (c ContainerAppsClient) Start(ctx context.Context, id ContainerAppId) (result StartOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/start", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// StartThenPoll performs Start then polls until it's completed -func (c ContainerAppsClient) StartThenPoll(ctx context.Context, id ContainerAppId) error { - result, err := c.Start(ctx, id) - if err != nil { - return fmt.Errorf("performing Start: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Start: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_stop.go deleted file mode 100644 index 7b29fa28f8e6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_stop.go +++ /dev/null @@ -1,71 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StopOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ContainerApp -} - -// Stop ... -func (c ContainerAppsClient) Stop(ctx context.Context, id ContainerAppId) (result StopOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stop", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// StopThenPoll performs Stop then polls until it's completed -func (c ContainerAppsClient) StopThenPoll(ctx context.Context, id ContainerAppId) error { - result, err := c.Stop(ctx, id) - if err != nil { - return fmt.Errorf("performing Stop: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Stop: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_update.go deleted file mode 100644 index 4b1978373325..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_update.go +++ /dev/null @@ -1,75 +0,0 @@ -package containerapps - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ContainerApp -} - -// Update ... -func (c ContainerAppsClient) Update(ctx context.Context, id ContainerAppId, input ContainerApp) (result UpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// UpdateThenPoll performs Update then polls until it's completed -func (c ContainerAppsClient) UpdateThenPoll(ctx context.Context, id ContainerAppId, input ContainerApp) error { - result, err := c.Update(ctx, id, input) - if err != nil { - return fmt.Errorf("performing Update: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Update: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_basecontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_basecontainer.go deleted file mode 100644 index 3190b1630ca0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_basecontainer.go +++ /dev/null @@ -1,14 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BaseContainer struct { - Args *[]string `json:"args,omitempty"` - Command *[]string `json:"command,omitempty"` - Env *[]EnvironmentVar `json:"env,omitempty"` - Image *string `json:"image,omitempty"` - Name *string `json:"name,omitempty"` - Resources *ContainerResources `json:"resources,omitempty"` - VolumeMounts *[]VolumeMount `json:"volumeMounts,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_configuration.go deleted file mode 100644 index 199878bdae15..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_configuration.go +++ /dev/null @@ -1,14 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Configuration struct { - ActiveRevisionsMode *ActiveRevisionsMode `json:"activeRevisionsMode,omitempty"` - Dapr *Dapr `json:"dapr,omitempty"` - Ingress *Ingress `json:"ingress,omitempty"` - MaxInactiveRevisions *int64 `json:"maxInactiveRevisions,omitempty"` - Registries *[]RegistryCredentials `json:"registries,omitempty"` - Secrets *[]Secret `json:"secrets,omitempty"` - Service *Service `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_container.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_container.go deleted file mode 100644 index eacb62148fd5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_container.go +++ /dev/null @@ -1,15 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Container struct { - Args *[]string `json:"args,omitempty"` - Command *[]string `json:"command,omitempty"` - Env *[]EnvironmentVar `json:"env,omitempty"` - Image *string `json:"image,omitempty"` - Name *string `json:"name,omitempty"` - Probes *[]ContainerAppProbe `json:"probes,omitempty"` - Resources *ContainerResources `json:"resources,omitempty"` - VolumeMounts *[]VolumeMount `json:"volumeMounts,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerapp.go deleted file mode 100644 index 0c382ed58675..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerapp.go +++ /dev/null @@ -1,22 +0,0 @@ -package containerapps - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerApp struct { - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` - Location string `json:"location"` - ManagedBy *string `json:"managedBy,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ContainerAppProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtoken.go deleted file mode 100644 index 89b63f9e3692..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtoken.go +++ /dev/null @@ -1,18 +0,0 @@ -package containerapps - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppAuthToken struct { - Id *string `json:"id,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties *ContainerAppAuthTokenProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtokenproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtokenproperties.go deleted file mode 100644 index 243fce5c07e4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtokenproperties.go +++ /dev/null @@ -1,27 +0,0 @@ -package containerapps - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppAuthTokenProperties struct { - Expires *string `json:"expires,omitempty"` - Token *string `json:"token,omitempty"` -} - -func (o *ContainerAppAuthTokenProperties) GetExpiresAsTime() (*time.Time, error) { - if o.Expires == nil { - return nil, nil - } - return dates.ParseAsFormat(o.Expires, "2006-01-02T15:04:05Z07:00") -} - -func (o *ContainerAppAuthTokenProperties) SetExpiresAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.Expires = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobe.go deleted file mode 100644 index a704b4ab897e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobe.go +++ /dev/null @@ -1,16 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppProbe struct { - FailureThreshold *int64 `json:"failureThreshold,omitempty"` - HTTPGet *ContainerAppProbeHTTPGet `json:"httpGet,omitempty"` - InitialDelaySeconds *int64 `json:"initialDelaySeconds,omitempty"` - PeriodSeconds *int64 `json:"periodSeconds,omitempty"` - SuccessThreshold *int64 `json:"successThreshold,omitempty"` - TcpSocket *ContainerAppProbeTcpSocket `json:"tcpSocket,omitempty"` - TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` - TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"` - Type *Type `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpget.go deleted file mode 100644 index 7f78b0e62719..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpget.go +++ /dev/null @@ -1,12 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppProbeHTTPGet struct { - HTTPHeaders *[]ContainerAppProbeHTTPGetHTTPHeadersInlined `json:"httpHeaders,omitempty"` - Host *string `json:"host,omitempty"` - Path *string `json:"path,omitempty"` - Port int64 `json:"port"` - Scheme *Scheme `json:"scheme,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go deleted file mode 100644 index d97ce91ffab4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppProbeHTTPGetHTTPHeadersInlined struct { - Name string `json:"name"` - Value string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobetcpsocket.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobetcpsocket.go deleted file mode 100644 index 94d442c5fdd7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobetcpsocket.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppProbeTcpSocket struct { - Host *string `json:"host,omitempty"` - Port int64 `json:"port"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappproperties.go deleted file mode 100644 index 5dab8083bdc2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappproperties.go +++ /dev/null @@ -1,19 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppProperties struct { - Configuration *Configuration `json:"configuration,omitempty"` - CustomDomainVerificationId *string `json:"customDomainVerificationId,omitempty"` - EnvironmentId *string `json:"environmentId,omitempty"` - EventStreamEndpoint *string `json:"eventStreamEndpoint,omitempty"` - LatestReadyRevisionName *string `json:"latestReadyRevisionName,omitempty"` - LatestRevisionFqdn *string `json:"latestRevisionFqdn,omitempty"` - LatestRevisionName *string `json:"latestRevisionName,omitempty"` - ManagedEnvironmentId *string `json:"managedEnvironmentId,omitempty"` - OutboundIPAddresses *[]string `json:"outboundIpAddresses,omitempty"` - ProvisioningState *ContainerAppProvisioningState `json:"provisioningState,omitempty"` - Template *Template `json:"template,omitempty"` - WorkloadProfileName *string `json:"workloadProfileName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappsecret.go deleted file mode 100644 index 757144a4dab5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappsecret.go +++ /dev/null @@ -1,11 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppSecret struct { - Identity *string `json:"identity,omitempty"` - KeyVaultURL *string `json:"keyVaultUrl,omitempty"` - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerresources.go deleted file mode 100644 index 3d55e9ef4224..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerresources.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerResources struct { - Cpu *float64 `json:"cpu,omitempty"` - EphemeralStorage *string `json:"ephemeralStorage,omitempty"` - Memory *string `json:"memory,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_corspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_corspolicy.go deleted file mode 100644 index 414eae004705..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_corspolicy.go +++ /dev/null @@ -1,13 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CorsPolicy struct { - AllowCredentials *bool `json:"allowCredentials,omitempty"` - AllowedHeaders *[]string `json:"allowedHeaders,omitempty"` - AllowedMethods *[]string `json:"allowedMethods,omitempty"` - AllowedOrigins []string `json:"allowedOrigins"` - ExposeHeaders *[]string `json:"exposeHeaders,omitempty"` - MaxAge *int64 `json:"maxAge,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customdomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customdomain.go deleted file mode 100644 index aeab69111fc9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customdomain.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomDomain struct { - BindingType *BindingType `json:"bindingType,omitempty"` - CertificateId *string `json:"certificateId,omitempty"` - Name string `json:"name"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresult.go deleted file mode 100644 index e6108a841480..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresult.go +++ /dev/null @@ -1,19 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomHostnameAnalysisResult struct { - ARecords *[]string `json:"aRecords,omitempty"` - AlternateCNameRecords *[]string `json:"alternateCNameRecords,omitempty"` - AlternateTxtRecords *[]string `json:"alternateTxtRecords,omitempty"` - CNameRecords *[]string `json:"cNameRecords,omitempty"` - ConflictWithEnvironmentCustomDomain *bool `json:"conflictWithEnvironmentCustomDomain,omitempty"` - ConflictingContainerAppResourceId *string `json:"conflictingContainerAppResourceId,omitempty"` - CustomDomainVerificationFailureInfo *CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo `json:"customDomainVerificationFailureInfo,omitempty"` - CustomDomainVerificationTest *DnsVerificationTestResult `json:"customDomainVerificationTest,omitempty"` - HasConflictOnManagedEnvironment *bool `json:"hasConflictOnManagedEnvironment,omitempty"` - HostName *string `json:"hostName,omitempty"` - IsHostnameAlreadyVerified *bool `json:"isHostnameAlreadyVerified,omitempty"` - TxtRecords *[]string `json:"txtRecords,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go deleted file mode 100644 index 490a78264ab3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go +++ /dev/null @@ -1,11 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo struct { - Code *string `json:"code,omitempty"` - Details *[]CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsInlined `json:"details,omitempty"` - Message *string `json:"message,omitempty"` - Target *string `json:"target,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go deleted file mode 100644 index 1a9643ffafab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsInlined struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Target *string `json:"target,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customscalerule.go deleted file mode 100644 index 6b51d48a3e26..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customscalerule.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomScaleRule struct { - Auth *[]ScaleRuleAuth `json:"auth,omitempty"` - Metadata *map[string]string `json:"metadata,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_dapr.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_dapr.go deleted file mode 100644 index be3e090812be..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_dapr.go +++ /dev/null @@ -1,15 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Dapr struct { - AppId *string `json:"appId,omitempty"` - AppPort *int64 `json:"appPort,omitempty"` - AppProtocol *AppProtocol `json:"appProtocol,omitempty"` - EnableApiLogging *bool `json:"enableApiLogging,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - HTTPMaxRequestSize *int64 `json:"httpMaxRequestSize,omitempty"` - HTTPReadBufferSize *int64 `json:"httpReadBufferSize,omitempty"` - LogLevel *LogLevel `json:"logLevel,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadata.go deleted file mode 100644 index 4f49cfc12683..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadata.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticDataProviderMetadata struct { - PropertyBag *[]DiagnosticDataProviderMetadataPropertyBagInlined `json:"propertyBag,omitempty"` - ProviderName *string `json:"providerName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go deleted file mode 100644 index bb3c8371f295..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticDataProviderMetadataPropertyBagInlined struct { - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponsecolumn.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponsecolumn.go deleted file mode 100644 index f0da0d4af5ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponsecolumn.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticDataTableResponseColumn struct { - ColumnName *string `json:"columnName,omitempty"` - ColumnType *string `json:"columnType,omitempty"` - DataType *string `json:"dataType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponseobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponseobject.go deleted file mode 100644 index f5ab6cef03a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponseobject.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticDataTableResponseObject struct { - Columns *[]DiagnosticDataTableResponseColumn `json:"columns,omitempty"` - Rows *[]interface{} `json:"rows,omitempty"` - TableName *string `json:"tableName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticrendering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticrendering.go deleted file mode 100644 index febf8f4bc441..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticrendering.go +++ /dev/null @@ -1,11 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticRendering struct { - Description *string `json:"description,omitempty"` - IsVisible *bool `json:"isVisible,omitempty"` - Title *string `json:"title,omitempty"` - Type *int64 `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnostics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnostics.go deleted file mode 100644 index 332b9e6e8a78..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnostics.go +++ /dev/null @@ -1,16 +0,0 @@ -package containerapps - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Diagnostics struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *DiagnosticsProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdataapiresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdataapiresponse.go deleted file mode 100644 index 8a4e162a0f14..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdataapiresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticsDataApiResponse struct { - RenderingProperties *DiagnosticRendering `json:"renderingProperties,omitempty"` - Table *DiagnosticDataTableResponseObject `json:"table,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdefinition.go deleted file mode 100644 index 01d57bd28c29..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdefinition.go +++ /dev/null @@ -1,16 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticsDefinition struct { - AnalysisTypes *[]string `json:"analysisTypes,omitempty"` - Author *string `json:"author,omitempty"` - Category *string `json:"category,omitempty"` - Description *string `json:"description,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Score *float64 `json:"score,omitempty"` - SupportTopicList *[]DiagnosticSupportTopic `json:"supportTopicList,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsproperties.go deleted file mode 100644 index 5606b01916ef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticsProperties struct { - DataProviderMetadata *DiagnosticDataProviderMetadata `json:"dataProviderMetadata,omitempty"` - Dataset *[]DiagnosticsDataApiResponse `json:"dataset,omitempty"` - Metadata *DiagnosticsDefinition `json:"metadata,omitempty"` - Status *DiagnosticsStatus `json:"status,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsstatus.go deleted file mode 100644 index ff2dafc6e9e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsstatus.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticsStatus struct { - Message *string `json:"message,omitempty"` - StatusId *int64 `json:"statusId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsupporttopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsupporttopic.go deleted file mode 100644 index 36d9fb7fe24c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsupporttopic.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DiagnosticSupportTopic struct { - Id *string `json:"id,omitempty"` - PesId *string `json:"pesId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_environmentvar.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_environmentvar.go deleted file mode 100644 index e25ec6c8bc89..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_environmentvar.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EnvironmentVar struct { - Name *string `json:"name,omitempty"` - SecretRef *string `json:"secretRef,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_extendedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_extendedlocation.go deleted file mode 100644 index 20073b0ba295..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_extendedlocation.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExtendedLocation struct { - Name *string `json:"name,omitempty"` - Type *ExtendedLocationTypes `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_httpscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_httpscalerule.go deleted file mode 100644 index 429b7ee23031..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_httpscalerule.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HTTPScaleRule struct { - Auth *[]ScaleRuleAuth `json:"auth,omitempty"` - Metadata *map[string]string `json:"metadata,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingress.go deleted file mode 100644 index 1941dc5835df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingress.go +++ /dev/null @@ -1,19 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Ingress struct { - AllowInsecure *bool `json:"allowInsecure,omitempty"` - ClientCertificateMode *IngressClientCertificateMode `json:"clientCertificateMode,omitempty"` - CorsPolicy *CorsPolicy `json:"corsPolicy,omitempty"` - CustomDomains *[]CustomDomain `json:"customDomains,omitempty"` - ExposedPort *int64 `json:"exposedPort,omitempty"` - External *bool `json:"external,omitempty"` - Fqdn *string `json:"fqdn,omitempty"` - IPSecurityRestrictions *[]IPSecurityRestrictionRule `json:"ipSecurityRestrictions,omitempty"` - StickySessions *IngressStickySessions `json:"stickySessions,omitempty"` - TargetPort *int64 `json:"targetPort,omitempty"` - Traffic *[]TrafficWeight `json:"traffic,omitempty"` - Transport *IngressTransportMethod `json:"transport,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingressstickysessions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingressstickysessions.go deleted file mode 100644 index 48b18e0ee171..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingressstickysessions.go +++ /dev/null @@ -1,8 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IngressStickySessions struct { - Affinity *Affinity `json:"affinity,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ipsecurityrestrictionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ipsecurityrestrictionrule.go deleted file mode 100644 index 959c43b6cbb4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ipsecurityrestrictionrule.go +++ /dev/null @@ -1,11 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPSecurityRestrictionRule struct { - Action Action `json:"action"` - Description *string `json:"description,omitempty"` - IPAddressRange string `json:"ipAddressRange"` - Name string `json:"name"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_queuescalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_queuescalerule.go deleted file mode 100644 index b8cbc96d3a0e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_queuescalerule.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type QueueScaleRule struct { - Auth *[]ScaleRuleAuth `json:"auth,omitempty"` - QueueLength *int64 `json:"queueLength,omitempty"` - QueueName *string `json:"queueName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_registrycredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_registrycredentials.go deleted file mode 100644 index bab9a7f8a4c0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_registrycredentials.go +++ /dev/null @@ -1,11 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RegistryCredentials struct { - Identity *string `json:"identity,omitempty"` - PasswordSecretRef *string `json:"passwordSecretRef,omitempty"` - Server *string `json:"server,omitempty"` - Username *string `json:"username,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revision.go deleted file mode 100644 index 02d416846200..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revision.go +++ /dev/null @@ -1,16 +0,0 @@ -package containerapps - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Revision struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RevisionProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revisionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revisionproperties.go deleted file mode 100644 index 2fc409ae580b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revisionproperties.go +++ /dev/null @@ -1,48 +0,0 @@ -package containerapps - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RevisionProperties struct { - Active *bool `json:"active,omitempty"` - CreatedTime *string `json:"createdTime,omitempty"` - Fqdn *string `json:"fqdn,omitempty"` - HealthState *RevisionHealthState `json:"healthState,omitempty"` - LastActiveTime *string `json:"lastActiveTime,omitempty"` - ProvisioningError *string `json:"provisioningError,omitempty"` - ProvisioningState *RevisionProvisioningState `json:"provisioningState,omitempty"` - Replicas *int64 `json:"replicas,omitempty"` - RunningState *RevisionRunningState `json:"runningState,omitempty"` - Template *Template `json:"template,omitempty"` - TrafficWeight *int64 `json:"trafficWeight,omitempty"` -} - -func (o *RevisionProperties) GetCreatedTimeAsTime() (*time.Time, error) { - if o.CreatedTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.CreatedTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *RevisionProperties) SetCreatedTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.CreatedTime = &formatted -} - -func (o *RevisionProperties) GetLastActiveTimeAsTime() (*time.Time, error) { - if o.LastActiveTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.LastActiveTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *RevisionProperties) SetLastActiveTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.LastActiveTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scale.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scale.go deleted file mode 100644 index a8f54d89b3fa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scale.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Scale struct { - MaxReplicas *int64 `json:"maxReplicas,omitempty"` - MinReplicas *int64 `json:"minReplicas,omitempty"` - Rules *[]ScaleRule `json:"rules,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scalerule.go deleted file mode 100644 index 93c358a6fa7b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scalerule.go +++ /dev/null @@ -1,12 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ScaleRule struct { - AzureQueue *QueueScaleRule `json:"azureQueue,omitempty"` - Custom *CustomScaleRule `json:"custom,omitempty"` - HTTP *HTTPScaleRule `json:"http,omitempty"` - Name *string `json:"name,omitempty"` - Tcp *TcpScaleRule `json:"tcp,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scaleruleauth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scaleruleauth.go deleted file mode 100644 index 46e5a92ad03a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scaleruleauth.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ScaleRuleAuth struct { - SecretRef *string `json:"secretRef,omitempty"` - TriggerParameter *string `json:"triggerParameter,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secret.go deleted file mode 100644 index 61a516725a04..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secret.go +++ /dev/null @@ -1,11 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Secret struct { - Identity *string `json:"identity,omitempty"` - KeyVaultURL *string `json:"keyVaultUrl,omitempty"` - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretscollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretscollection.go deleted file mode 100644 index 5244f0aabe7d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretscollection.go +++ /dev/null @@ -1,8 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecretsCollection struct { - Value []ContainerAppSecret `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretvolumeitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretvolumeitem.go deleted file mode 100644 index 09096efbdd0f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretvolumeitem.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecretVolumeItem struct { - Path *string `json:"path,omitempty"` - SecretRef *string `json:"secretRef,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_service.go deleted file mode 100644 index f66b3642bfc5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_service.go +++ /dev/null @@ -1,8 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Service struct { - Type string `json:"type"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_servicebind.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_servicebind.go deleted file mode 100644 index 29229a27ecea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_servicebind.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceBind struct { - Name *string `json:"name,omitempty"` - ServiceId *string `json:"serviceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_tcpscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_tcpscalerule.go deleted file mode 100644 index 4a970c61e67d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_tcpscalerule.go +++ /dev/null @@ -1,9 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TcpScaleRule struct { - Auth *[]ScaleRuleAuth `json:"auth,omitempty"` - Metadata *map[string]string `json:"metadata,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_template.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_template.go deleted file mode 100644 index 03f13f079804..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_template.go +++ /dev/null @@ -1,14 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Template struct { - Containers *[]Container `json:"containers,omitempty"` - InitContainers *[]BaseContainer `json:"initContainers,omitempty"` - RevisionSuffix *string `json:"revisionSuffix,omitempty"` - Scale *Scale `json:"scale,omitempty"` - ServiceBinds *[]ServiceBind `json:"serviceBinds,omitempty"` - TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` - Volumes *[]Volume `json:"volumes,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_trafficweight.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_trafficweight.go deleted file mode 100644 index 63d06f5fdcb8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_trafficweight.go +++ /dev/null @@ -1,11 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficWeight struct { - Label *string `json:"label,omitempty"` - LatestRevision *bool `json:"latestRevision,omitempty"` - RevisionName *string `json:"revisionName,omitempty"` - Weight *int64 `json:"weight,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volume.go deleted file mode 100644 index 422cdf3ec3d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volume.go +++ /dev/null @@ -1,12 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Volume struct { - MountOptions *string `json:"mountOptions,omitempty"` - Name *string `json:"name,omitempty"` - Secrets *[]SecretVolumeItem `json:"secrets,omitempty"` - StorageName *string `json:"storageName,omitempty"` - StorageType *StorageType `json:"storageType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volumemount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volumemount.go deleted file mode 100644 index c59e9fc682d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volumemount.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VolumeMount struct { - MountPath *string `json:"mountPath,omitempty"` - SubPath *string `json:"subPath,omitempty"` - VolumeName *string `json:"volumeName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/predicates.go deleted file mode 100644 index 2f9822c394b4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/predicates.go +++ /dev/null @@ -1,83 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerAppOperationPredicate struct { - Id *string - Location *string - ManagedBy *string - Name *string - Type *string -} - -func (p ContainerAppOperationPredicate) Matches(input ContainerApp) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && *p.Location != input.Location { - return false - } - - if p.ManagedBy != nil && (input.ManagedBy == nil || *p.ManagedBy != *input.ManagedBy) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type DiagnosticsOperationPredicate struct { - Id *string - Name *string - Type *string -} - -func (p DiagnosticsOperationPredicate) Matches(input Diagnostics) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type RevisionOperationPredicate struct { - Id *string - Name *string - Type *string -} - -func (p RevisionOperationPredicate) Matches(input Revision) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go deleted file mode 100644 index d1525032b4b6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package containerapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/containerapps/2023-05-01" -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 547328a6ef87..dffc3e72b18d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -356,7 +356,6 @@ github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmac github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates -github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments