From 4ca93ab8e2115c996a3430e4e3aabdfb43978c01 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 3 Aug 2023 12:03:27 +0200 Subject: [PATCH 1/4] dependencies: updating to `v0.20230803.1095722` of `github.com/hashicorp/go-azure-sdk` --- go.mod | 2 +- go.sum | 4 ++-- .../hashicorp/go-azure-sdk/sdk/environments/environment.go | 2 +- vendor/modules.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 22c79ca38cf5..7641ccae282e 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/google/go-cmp v0.5.9 github.com/google/uuid v1.3.0 github.com/hashicorp/go-azure-helpers v0.57.0 - github.com/hashicorp/go-azure-sdk v0.20230802.1115742 + github.com/hashicorp/go-azure-sdk v0.20230803.1095722 github.com/hashicorp/go-hclog v1.4.0 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-uuid v1.0.3 diff --git a/go.sum b/go.sum index 42f541d8c761..a90498693b5f 100644 --- a/go.sum +++ b/go.sum @@ -121,8 +121,8 @@ github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv github.com/hashicorp/go-azure-helpers v0.12.0/go.mod h1:Zc3v4DNeX6PDdy7NljlYpnrdac1++qNW0I4U+ofGwpg= github.com/hashicorp/go-azure-helpers v0.57.0 h1:85CWEUtIjMtx8DaXisFbEb2GCWR4S2UZlYvJpSPYoZ4= github.com/hashicorp/go-azure-helpers v0.57.0/go.mod h1:BQUQp5udwbJ8pnzl0wByCLVEEyPMAFpJ9vOREiCzObo= -github.com/hashicorp/go-azure-sdk v0.20230802.1115742 h1:/2W3xmkxhcT+VkZqYITlHv2dbhIo1nMgcxXMLaFFBNk= -github.com/hashicorp/go-azure-sdk v0.20230802.1115742/go.mod h1:iZrpp7qJSZxocEkr4SjslzxpDrhuRLmedyVGGcCPbhk= +github.com/hashicorp/go-azure-sdk v0.20230803.1095722 h1:7q4DEAriywcH6BsE2XczLzwY8Y3x9vqh65d0RxVnjak= +github.com/hashicorp/go-azure-sdk v0.20230803.1095722/go.mod h1:iZrpp7qJSZxocEkr4SjslzxpDrhuRLmedyVGGcCPbhk= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= diff --git a/vendor/github.com/hashicorp/go-azure-sdk/sdk/environments/environment.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/environments/environment.go index eb149b8e523e..3c33b9b4c141 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/environments/environment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/environments/environment.go @@ -166,7 +166,7 @@ func (e *ApiEndpoint) withResourceIdentifier(identifier string) *ApiEndpoint { } func (e *ApiEndpoint) Available() bool { - return e != nil && e.endpoint != nil + return e != nil && (e.resourceIdentifier != nil || e.endpoint != nil) } func (e *ApiEndpoint) DomainSuffix() (*string, bool) { diff --git a/vendor/modules.txt b/vendor/modules.txt index 56be2277a462..cfc8c212eb80 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -130,7 +130,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/tags github.com/hashicorp/go-azure-helpers/resourcemanager/zones github.com/hashicorp/go-azure-helpers/sender github.com/hashicorp/go-azure-helpers/storage -# github.com/hashicorp/go-azure-sdk v0.20230802.1115742 +# github.com/hashicorp/go-azure-sdk v0.20230803.1095722 ## explicit; go 1.19 github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview From 66b4e630652648bb0e71f043521a5cfb7907dec3 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 3 Aug 2023 12:01:34 +0200 Subject: [PATCH 2/4] `containerapps`: updating to API version `2022-03-01` --- internal/services/containerapps/client/client.go | 12 ++++++------ .../containerapps/container_app_data_source.go | 4 ++-- ...tainer_app_environment_certificate_data_source.go | 2 +- ...container_app_environment_certificate_resource.go | 4 ++-- ...iner_app_environment_certificate_resource_test.go | 2 +- ...tainer_app_environment_dapr_component_resource.go | 2 +- ...r_app_environment_dapr_component_resource_test.go | 2 +- .../container_app_environment_data_source.go | 2 +- .../container_app_environment_resource.go | 2 +- .../container_app_environment_resource_test.go | 2 +- .../container_app_environment_storage_resource.go | 2 +- ...ontainer_app_environment_storage_resource_test.go | 2 +- .../services/containerapps/container_app_resource.go | 4 ++-- .../containerapps/container_app_resource_test.go | 2 +- .../services/containerapps/helpers/container_apps.go | 6 +++--- 15 files changed, 25 insertions(+), 25 deletions(-) diff --git a/internal/services/containerapps/client/client.go b/internal/services/containerapps/client/client.go index 30703667ec97..c7a5e0726a77 100644 --- a/internal/services/containerapps/client/client.go +++ b/internal/services/containerapps/client/client.go @@ -4,12 +4,12 @@ package client import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages" + "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" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/containerapps/container_app_data_source.go b/internal/services/containerapps/container_app_data_source.go index b8249b39ac3a..cf8abced4163 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/2022-03-01/containerapps" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments" + "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/terraform-plugin-sdk/v2/helper/schema" "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_environment_certificate_data_source.go b/internal/services/containerapps/container_app_environment_certificate_data_source.go index ecf6120976d6..a97647580778 100644 --- a/internal/services/containerapps/container_app_environment_certificate_data_source.go +++ b/internal/services/containerapps/container_app_environment_certificate_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/containerapps/container_app_environment_certificate_resource.go b/internal/services/containerapps/container_app_environment_certificate_resource.go index 8b3685f86e37..89062c0e65e1 100644 --- a/internal/services/containerapps/container_app_environment_certificate_resource.go +++ b/internal/services/containerapps/container_app_environment_certificate_resource.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments" + "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/managedenvironments" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/containerapps/container_app_environment_certificate_resource_test.go b/internal/services/containerapps/container_app_environment_certificate_resource_test.go index 57b71789f665..b1f925820982 100644 --- a/internal/services/containerapps/container_app_environment_certificate_resource_test.go +++ b/internal/services/containerapps/container_app_environment_certificate_resource_test.go @@ -10,7 +10,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/2022-03-01/certificates" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates" "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_environment_dapr_component_resource.go b/internal/services/containerapps/container_app_environment_dapr_component_resource.go index 69274e22e1f3..6ffe8538b74c 100644 --- a/internal/services/containerapps/container_app_environment_dapr_component_resource.go +++ b/internal/services/containerapps/container_app_environment_dapr_component_resource.go @@ -10,7 +10,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/2022-03-01/daprcomponents" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents" "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/services/containerapps/validate" diff --git a/internal/services/containerapps/container_app_environment_dapr_component_resource_test.go b/internal/services/containerapps/container_app_environment_dapr_component_resource_test.go index ad9fa4b8a47c..2d14bc2cc4d3 100644 --- a/internal/services/containerapps/container_app_environment_dapr_component_resource_test.go +++ b/internal/services/containerapps/container_app_environment_dapr_component_resource_test.go @@ -10,7 +10,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/2022-03-01/daprcomponents" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents" "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_environment_data_source.go b/internal/services/containerapps/container_app_environment_data_source.go index 60086f241f6f..9f5281c38adf 100644 --- a/internal/services/containerapps/container_app_environment_data_source.go +++ b/internal/services/containerapps/container_app_environment_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "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/2022-03-01/managedenvironments" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/containerapps/container_app_environment_resource.go b/internal/services/containerapps/container_app_environment_resource.go index c915e7bed6a2..e03e08efb839 100644 --- a/internal/services/containerapps/container_app_environment_resource.go +++ b/internal/services/containerapps/container_app_environment_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "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/2022-03-01/managedenvironments" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments" "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/validate" diff --git a/internal/services/containerapps/container_app_environment_resource_test.go b/internal/services/containerapps/container_app_environment_resource_test.go index 15a0990e373d..323ae5dd2b11 100644 --- a/internal/services/containerapps/container_app_environment_resource_test.go +++ b/internal/services/containerapps/container_app_environment_resource_test.go @@ -10,7 +10,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/2022-03-01/managedenvironments" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments" "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_environment_storage_resource.go b/internal/services/containerapps/container_app_environment_storage_resource.go index 52096a95bc8c..ce2bdf2332d2 100644 --- a/internal/services/containerapps/container_app_environment_storage_resource.go +++ b/internal/services/containerapps/container_app_environment_storage_resource.go @@ -10,7 +10,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/2022-03-01/managedenvironmentsstorages" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/validate" storageValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" diff --git a/internal/services/containerapps/container_app_environment_storage_resource_test.go b/internal/services/containerapps/container_app_environment_storage_resource_test.go index f54c6bd43bfe..1bb100f92204 100644 --- a/internal/services/containerapps/container_app_environment_storage_resource_test.go +++ b/internal/services/containerapps/container_app_environment_storage_resource_test.go @@ -10,7 +10,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/2022-03-01/managedenvironmentsstorages" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages" "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_resource.go b/internal/services/containerapps/container_app_resource.go index 272c8520de26..a117f56789c6 100644 --- a/internal/services/containerapps/container_app_resource.go +++ b/internal/services/containerapps/container_app_resource.go @@ -15,8 +15,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/2022-03-01/containerapps" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments" + "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/terraform-plugin-sdk/v2/helper/schema" "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 05f00e35846d..ade9bad6aac0 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/2022-03-01/containerapps" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/helpers/container_apps.go b/internal/services/containerapps/helpers/container_apps.go index dd034ddbbe3a..7f61fd3fd2c9 100644 --- a/internal/services/containerapps/helpers/container_apps.go +++ b/internal/services/containerapps/helpers/container_apps.go @@ -8,9 +8,9 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments" + "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/2023-05-01/managedenvironments" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" From b984b62853fd390206371c3bec6e2f91e819fc03 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 3 Aug 2023 12:08:50 +0200 Subject: [PATCH 3/4] go mod vendor --- .../2022-03-01/certificates/README.md | 111 ---- .../2022-03-01/containerapps/constants.go | 276 --------- .../containerapps/model_configuration.go | 12 - .../containerapps/model_containerapp.go | 20 - .../2022-03-01/containerapps/model_dapr.go | 11 - .../2022-03-01/containerapps/model_ingress.go | 14 - .../containerapps/model_template.go | 11 - .../2022-03-01/containerapps/model_volume.go | 10 - .../2022-03-01/containerapps/predicates.go | 32 -- .../containerappsrevisions/model_template.go | 11 - .../2022-03-01/daprcomponents/README.md | 106 ---- .../model_daprcomponentproperties.go | 14 - .../model_managedenvironmentproperties.go | 16 - .../2023-05-01/certificates/README.md | 202 +++++++ .../certificates/client.go | 0 .../certificates/constants.go | 0 .../certificates/id_certificate.go | 0 .../certificates/id_connectedenvironment.go | 127 +++++ .../id_connectedenvironmentcertificate.go | 140 +++++ .../certificates/id_managedenvironment.go | 0 ...entscertificatescreateorupdate_autorest.go | 69 +++ ...environmentscertificatesdelete_autorest.go | 66 +++ ...tedenvironmentscertificatesget_autorest.go | 68 +++ ...edenvironmentscertificateslist_autorest.go | 186 ++++++ ...environmentscertificatesupdate_autorest.go | 69 +++ .../method_createorupdate_autorest.go | 0 .../certificates/method_delete_autorest.go | 0 .../certificates/method_get_autorest.go | 0 .../certificates/method_list_autorest.go | 0 .../certificates/method_update_autorest.go | 0 .../certificates/model_certificate.go | 0 .../certificates/model_certificatepatch.go | 0 .../model_certificateproperties.go | 21 +- .../certificates/predicates.go | 0 .../certificates/version.go | 2 +- .../containerapps/README.md | 128 ++++- .../containerapps/client.go | 0 .../2023-05-01/containerapps/constants.go | 536 ++++++++++++++++++ .../containerapps/id_containerapp.go | 0 .../2023-05-01/containerapps/id_detector.go | 140 +++++ .../containerapps/id_revisionsapirevision.go | 142 +++++ .../method_createorupdate_autorest.go | 0 .../containerapps/method_delete_autorest.go | 0 .../method_diagnosticsgetdetector_autorest.go | 68 +++ .../method_diagnosticsgetrevision_autorest.go | 68 +++ .../method_diagnosticsgetroot_autorest.go | 69 +++ ...ethod_diagnosticslistdetectors_autorest.go | 186 ++++++ ...ethod_diagnosticslistrevisions_autorest.go | 215 +++++++ .../containerapps/method_get_autorest.go | 0 .../method_getauthtoken_autorest.go | 69 +++ .../method_listbyresourcegroup_autorest.go | 0 .../method_listbysubscription_autorest.go | 0 ...hod_listcustomhostnameanalysis_autorest.go | 0 .../method_listsecrets_autorest.go | 0 .../containerapps/method_start_autorest.go | 78 +++ .../containerapps/method_stop_autorest.go | 78 +++ .../containerapps/method_update_autorest.go | 0 .../containerapps/model_basecontainer.go | 14 + .../containerapps/model_configuration.go | 14 + .../containerapps/model_container.go | 0 .../containerapps/model_containerapp.go | 22 + .../model_containerappauthtoken.go | 18 + .../model_containerappauthtokenproperties.go | 27 + .../containerapps/model_containerappprobe.go | 0 .../model_containerappprobehttpget.go | 0 ...tainerappprobehttpgethttpheadersinlined.go | 0 .../model_containerappprobetcpsocket.go | 0 .../model_containerappproperties.go | 4 + .../containerapps/model_containerappsecret.go | 11 + .../containerapps/model_containerresources.go | 0 .../containerapps/model_corspolicy.go | 13 + .../containerapps/model_customdomain.go | 0 .../model_customhostnameanalysisresult.go | 0 ...sultcustomdomainverificationfailureinfo.go | 0 ...inverificationfailureinfodetailsinlined.go | 0 .../containerapps/model_customscalerule.go | 0 .../2023-05-01/containerapps/model_dapr.go | 15 + .../model_diagnosticdataprovidermetadata.go | 9 + ...dataprovidermetadatapropertybaginlined.go} | 2 +- ...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 | 0 .../containerapps/model_extendedlocation.go | 9 + .../containerapps/model_httpscalerule.go | 0 .../2023-05-01/containerapps/model_ingress.go | 19 + .../model_ingressstickysessions.go} | 7 +- .../model_ipsecurityrestrictionrule.go | 11 + .../containerapps/model_queuescalerule.go | 0 .../model_registrycredentials.go | 0 .../containerapps/model_revision.go | 16 + .../containerapps/model_revisionproperties.go | 48 ++ .../containerapps/model_scale.go | 0 .../containerapps/model_scalerule.go | 1 + .../containerapps/model_scaleruleauth.go | 0 .../2023-05-01/containerapps/model_secret.go | 11 + .../containerapps/model_secretscollection.go | 0 .../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 | 0 .../2023-05-01/containerapps/model_volume.go | 12 + .../containerapps/model_volumemount.go | 1 + .../2023-05-01/containerapps/predicates.go | 83 +++ .../containerapps/version.go | 2 +- .../containerappsrevisions/README.md | 6 +- .../containerappsrevisions/client.go | 0 .../containerappsrevisions/constants.go | 43 ++ .../containerappsrevisions/id_containerapp.go | 0 .../containerappsrevisions/id_revision.go | 0 .../method_activaterevision_autorest.go | 0 .../method_deactivaterevision_autorest.go | 0 .../method_getrevision_autorest.go | 0 .../method_listrevisions_autorest.go | 0 .../method_restartrevision_autorest.go | 0 .../model_basecontainer.go | 14 + .../containerappsrevisions/model_container.go | 0 .../model_containerappprobe.go | 0 .../model_containerappprobehttpget.go | 0 ...tainerappprobehttpgethttpheadersinlined.go | 0 .../model_containerappprobetcpsocket.go | 0 .../model_containerresources.go | 0 .../model_customscalerule.go | 0 .../model_environmentvar.go | 0 .../model_httpscalerule.go | 0 .../model_queuescalerule.go | 0 .../containerappsrevisions/model_revision.go | 0 .../model_revisionproperties.go | 14 + .../containerappsrevisions/model_scale.go | 0 .../containerappsrevisions/model_scalerule.go | 1 + .../model_scaleruleauth.go | 0 .../model_secretvolumeitem.go | 9 + .../model_servicebind.go | 9 + .../model_tcpscalerule.go} | 7 +- .../containerappsrevisions/model_template.go | 14 + .../containerappsrevisions/model_volume.go | 12 + .../model_volumemount.go | 1 + .../containerappsrevisions/predicates.go | 0 .../containerappsrevisions/version.go | 2 +- .../2023-05-01/daprcomponents/README.md | 192 +++++++ .../daprcomponents/client.go | 0 .../daprcomponents/id_connectedenvironment.go | 127 +++++ .../id_connectedenvironmentdaprcomponent.go | 140 +++++ .../daprcomponents/id_daprcomponent.go | 0 .../daprcomponents/id_managedenvironment.go | 0 ...tsdaprcomponentscreateorupdate_autorest.go | 69 +++ ...vironmentsdaprcomponentsdelete_autorest.go | 66 +++ ...denvironmentsdaprcomponentsget_autorest.go | 68 +++ ...environmentsdaprcomponentslist_autorest.go | 186 ++++++ ...mentsdaprcomponentslistsecrets_autorest.go | 69 +++ .../method_createorupdate_autorest.go | 0 .../daprcomponents/method_delete_autorest.go | 0 .../daprcomponents/method_get_autorest.go | 0 .../daprcomponents/method_list_autorest.go | 0 .../method_listsecrets_autorest.go | 0 .../daprcomponents/model_daprcomponent.go | 0 .../model_daprcomponentproperties.go | 15 + .../daprcomponents/model_daprmetadata.go | 0 .../daprcomponents/model_daprsecret.go | 0 .../model_daprsecretscollection.go | 0 .../2023-05-01/daprcomponents/model_secret.go | 11 + .../daprcomponents/predicates.go | 0 .../daprcomponents/version.go | 2 +- .../managedenvironments/README.md | 174 +++++- .../managedenvironments/client.go | 0 .../managedenvironments/constants.go | 31 + .../managedenvironments/id_certificate.go | 0 .../id_managedcertificate.go | 140 +++++ .../id_managedenvironment.go | 0 .../id_managedenvironmentdetector.go | 140 +++++ ...hod_certificatescreateorupdate_autorest.go | 0 .../method_certificatesdelete_autorest.go | 0 .../method_certificatesget_autorest.go | 0 .../method_certificateslist_autorest.go | 0 .../method_certificatesupdate_autorest.go | 0 .../method_createorupdate_autorest.go | 0 .../method_delete_autorest.go | 0 .../method_diagnosticsgetroot_autorest.go | 69 +++ .../method_get_autorest.go | 0 .../method_getauthtoken_autorest.go | 69 +++ .../method_listbyresourcegroup_autorest.go | 0 .../method_listbysubscription_autorest.go | 0 ...thod_listworkloadprofilestates_autorest.go | 186 ++++++ ...agedcertificatescreateorupdate_autorest.go | 79 +++ ...thod_managedcertificatesdelete_autorest.go | 66 +++ .../method_managedcertificatesget_autorest.go | 68 +++ ...method_managedcertificateslist_autorest.go | 186 ++++++ ...thod_managedcertificatesupdate_autorest.go | 69 +++ ...ironmentdiagnosticsgetdetector_autorest.go | 68 +++ ...onmentdiagnosticslistdetectors_autorest.go | 69 +++ ...amespaceschecknameavailability_autorest.go | 0 .../method_update_autorest.go | 0 .../model_applogsconfiguration.go | 0 .../managedenvironments/model_certificate.go | 0 .../model_certificatepatch.go | 0 .../model_certificateproperties.go | 21 +- .../model_checknameavailabilityrequest.go | 0 .../model_checknameavailabilityresponse.go | 0 .../model_customdomainconfiguration.go | 32 ++ .../model_daprconfiguration.go | 8 + .../model_diagnosticdataprovidermetadata.go | 9 + ...dataprovidermetadatapropertybaginlined.go} | 4 +- ...model_diagnosticdatatableresponsecolumn.go | 10 + ...model_diagnosticdatatableresponseobject.go | 10 + .../model_diagnosticrendering.go | 11 + .../managedenvironments/model_diagnostics.go | 16 + .../model_diagnosticscollection.go | 9 + .../model_diagnosticsdataapiresponse.go | 9 + .../model_diagnosticsdefinition.go | 16 + .../model_diagnosticsproperties.go | 11 + .../model_diagnosticsstatus.go | 9 + .../model_diagnosticsupporttopic.go | 9 + .../model_environmentauthtoken.go | 18 + .../model_environmentauthtokenproperties.go | 27 + .../model_kedaconfiguration.go | 8 + .../model_loganalyticsconfiguration.go | 0 .../model_managedcertificate.go | 18 + .../model_managedcertificatepatch.go | 8 + .../model_managedcertificateproperties.go | 12 + .../model_managedenvironment.go | 1 + .../model_managedenvironmentproperties.go | 23 + ...environmentpropertiespeerauthentication.go | 8 + .../managedenvironments/model_mtls.go | 8 + .../model_vnetconfiguration.go | 1 - .../model_workloadprofile.go | 11 + .../model_workloadprofilestates.go | 16 + .../model_workloadprofilestatesproperties.go | 10 + .../managedenvironments/predicates.go | 56 ++ .../managedenvironments/version.go | 2 +- .../managedenvironmentsstorages/README.md | 6 +- .../managedenvironmentsstorages/client.go | 0 .../managedenvironmentsstorages/constants.go | 0 .../id_managedenvironment.go | 0 .../managedenvironmentsstorages/id_storage.go | 0 .../method_createorupdate_autorest.go | 0 .../method_delete_autorest.go | 0 .../method_get_autorest.go | 0 .../method_list_autorest.go | 0 .../model_azurefileproperties.go | 0 .../model_managedenvironmentstorage.go | 0 ...del_managedenvironmentstorageproperties.go | 0 ...el_managedenvironmentstoragescollection.go | 0 .../managedenvironmentsstorages/version.go | 2 +- vendor/modules.txt | 12 +- 252 files changed, 6112 insertions(+), 700 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_configuration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerapp.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_dapr.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_ingress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_template.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_volume.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_template.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprcomponentproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_managedenvironmentproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/id_certificate.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironmentcertificate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/id_managedenvironment.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatescreateorupdate_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesdelete_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesget_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificateslist_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesupdate_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/method_update_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/model_certificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/model_certificatepatch.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/model_certificateproperties.go (51%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/certificates/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/README.md (51%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/client.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/constants.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/id_containerapp.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/method_delete_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/method_get_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/method_listbyresourcegroup_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/method_listbysubscription_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/method_listcustomhostnameanalysis_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/method_listsecrets_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_start_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_stop_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/method_update_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_basecontainer.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_configuration.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_container.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerapp.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtoken.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappauthtokenproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_containerappprobe.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_containerappprobehttpget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_containerappprobehttpgethttpheadersinlined.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_containerappprobetcpsocket.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_containerappproperties.go (71%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappsecret.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_containerresources.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_corspolicy.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_customdomain.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_customhostnameanalysisresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_customscalerule.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_dapr.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadata.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01/containerapps/model_secret.go => 2023-05-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go} (80%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponsecolumn.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdatatableresponseobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticrendering.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnostics.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdataapiresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsdefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticsupporttopic.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_environmentvar.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_extendedlocation.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_httpscalerule.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingress.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01/daprcomponents/model_secret.go => 2023-05-01/containerapps/model_ingressstickysessions.go} (56%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ipsecurityrestrictionrule.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_queuescalerule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_registrycredentials.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revision.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_revisionproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_scale.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_scalerule.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_scaleruleauth.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secret.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_secretscollection.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretvolumeitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_service.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_servicebind.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_tcpscalerule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_template.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_trafficweight.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volume.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/model_volumemount.go (86%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/predicates.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerapps/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/constants.go (74%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/id_containerapp.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/id_revision.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/method_activaterevision_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/method_deactivaterevision_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/method_getrevision_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/method_listrevisions_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/method_restartrevision_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_basecontainer.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_container.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_containerappprobe.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_containerappprobehttpget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_containerappprobehttpgethttpheadersinlined.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_containerappprobetcpsocket.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_containerresources.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_customscalerule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_environmentvar.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_httpscalerule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_queuescalerule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_revision.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_revisionproperties.go (71%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_scale.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_scalerule.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_scaleruleauth.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_secretvolumeitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_servicebind.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01/containerappsrevisions/model_volume.go => 2023-05-01/containerappsrevisions/model_tcpscalerule.go} (50%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_template.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_volume.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/model_volumemount.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/containerappsrevisions/version.go (89%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/README.md rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/client.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironmentdaprcomponent.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/id_daprcomponent.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/id_managedenvironment.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentscreateorupdate_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsdelete_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsget_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslistsecrets_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/method_listsecrets_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/model_daprcomponent.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprcomponentproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/model_daprmetadata.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/model_daprsecret.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/model_daprsecretscollection.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_secret.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/daprcomponents/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/README.md (54%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/constants.go (81%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/id_certificate.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedcertificate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/id_managedenvironment.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironmentdetector.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_certificatescreateorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_certificatesdelete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_certificatesget_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_certificateslist_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_certificatesupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_delete_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_diagnosticsgetroot_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_get_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_getauthtoken_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_listbyresourcegroup_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_listbysubscription_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_listworkloadprofilestates_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatescreateorupdate_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesdelete_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesget_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificateslist_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesupdate_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_namespaceschecknameavailability_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/method_update_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/model_applogsconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/model_certificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/model_certificatepatch.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/model_certificateproperties.go (51%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/model_checknameavailabilityrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/model_checknameavailabilityresponse.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_customdomainconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_daprconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdataprovidermetadata.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01/containerapps/model_containerappsecret.go => 2023-05-01/managedenvironments/model_diagnosticdataprovidermetadatapropertybaginlined.go} (72%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdatatableresponsecolumn.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdatatableresponseobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticrendering.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnostics.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticscollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsdataapiresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsdefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsupporttopic.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_environmentauthtoken.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_environmentauthtokenproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_kedaconfiguration.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/model_loganalyticsconfiguration.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificatepatch.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificateproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/model_managedenvironment.go (92%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironmentproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironmentpropertiespeerauthentication.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_mtls.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/model_vnetconfiguration.go (89%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofilestates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofilestatesproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/predicates.go (53%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironments/version.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/id_managedenvironment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/id_storage.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/model_azurefileproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/model_managedenvironmentstorage.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/model_managedenvironmentstorageproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/model_managedenvironmentstoragescollection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/{2022-03-01 => 2023-05-01}/managedenvironmentsstorages/version.go (89%) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/README.md deleted file mode 100644 index 2babae42ce65..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/README.md +++ /dev/null @@ -1,111 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates` Documentation - -The `certificates` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2022-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-sdk/resource-manager/containerapps/2022-03-01/certificates" -``` - - -### Client Initialization - -```go -client := certificates.NewCertificatesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CertificatesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") - -payload := certificates.Certificate{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CertificatesClient.Delete` - -```go -ctx := context.TODO() -id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") - -read, err := client.Delete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CertificatesClient.Get` - -```go -ctx := context.TODO() -id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") - -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: `CertificatesClient.List` - -```go -ctx := context.TODO() -id := certificates.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CertificatesClient.Update` - -```go -ctx := context.TODO() -id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") - -payload := certificates.CertificatePatch{ - // ... -} - - -read, err := client.Update(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/constants.go deleted file mode 100644 index 72596fcfc937..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/constants.go +++ /dev/null @@ -1,276 +0,0 @@ -package containerapps - -import "strings" - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ActiveRevisionsMode string - -const ( - ActiveRevisionsModeMultiple ActiveRevisionsMode = "Multiple" - ActiveRevisionsModeSingle ActiveRevisionsMode = "Single" -) - -func PossibleValuesForActiveRevisionsMode() []string { - return []string{ - string(ActiveRevisionsModeMultiple), - string(ActiveRevisionsModeSingle), - } -} - -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 AppProtocol string - -const ( - AppProtocolGrpc AppProtocol = "grpc" - AppProtocolHTTP AppProtocol = "http" -) - -func PossibleValuesForAppProtocol() []string { - return []string{ - string(AppProtocolGrpc), - string(AppProtocolHTTP), - } -} - -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 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 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 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 IngressTransportMethod string - -const ( - IngressTransportMethodAuto IngressTransportMethod = "auto" - IngressTransportMethodHTTP IngressTransportMethod = "http" - IngressTransportMethodHTTPTwo IngressTransportMethod = "http2" -) - -func PossibleValuesForIngressTransportMethod() []string { - return []string{ - string(IngressTransportMethodAuto), - string(IngressTransportMethodHTTP), - string(IngressTransportMethodHTTPTwo), - } -} - -func parseIngressTransportMethod(input string) (*IngressTransportMethod, error) { - vals := map[string]IngressTransportMethod{ - "auto": IngressTransportMethodAuto, - "http": IngressTransportMethodHTTP, - "http2": IngressTransportMethodHTTPTwo, - } - 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 Scheme string - -const ( - SchemeHTTP Scheme = "HTTP" - SchemeHTTPS Scheme = "HTTPS" -) - -func PossibleValuesForScheme() []string { - return []string{ - string(SchemeHTTP), - string(SchemeHTTPS), - } -} - -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" -) - -func PossibleValuesForStorageType() []string { - return []string{ - string(StorageTypeAzureFile), - string(StorageTypeEmptyDir), - } -} - -func parseStorageType(input string) (*StorageType, error) { - vals := map[string]StorageType{ - "azurefile": StorageTypeAzureFile, - "emptydir": StorageTypeEmptyDir, - } - 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 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/2022-03-01/containerapps/model_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_configuration.go deleted file mode 100644 index 4522d21ae9bc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_configuration.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 Configuration struct { - ActiveRevisionsMode *ActiveRevisionsMode `json:"activeRevisionsMode,omitempty"` - Dapr *Dapr `json:"dapr,omitempty"` - Ingress *Ingress `json:"ingress,omitempty"` - Registries *[]RegistryCredentials `json:"registries,omitempty"` - Secrets *[]Secret `json:"secrets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerapp.go deleted file mode 100644 index 23a9510e0bb5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerapp.go +++ /dev/null @@ -1,20 +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 { - Id *string `json:"id,omitempty"` - Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` - Location string `json:"location"` - 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/2022-03-01/containerapps/model_dapr.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_dapr.go deleted file mode 100644 index 666f11e6b10d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_dapr.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 Dapr struct { - AppId *string `json:"appId,omitempty"` - AppPort *int64 `json:"appPort,omitempty"` - AppProtocol *AppProtocol `json:"appProtocol,omitempty"` - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_ingress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_ingress.go deleted file mode 100644 index 18f6f703dd8b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_ingress.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 Ingress struct { - AllowInsecure *bool `json:"allowInsecure,omitempty"` - CustomDomains *[]CustomDomain `json:"customDomains,omitempty"` - External *bool `json:"external,omitempty"` - Fqdn *string `json:"fqdn,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/2022-03-01/containerapps/model_template.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_template.go deleted file mode 100644 index 866a7d6cec0d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_template.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 Template struct { - Containers *[]Container `json:"containers,omitempty"` - RevisionSuffix *string `json:"revisionSuffix,omitempty"` - Scale *Scale `json:"scale,omitempty"` - Volumes *[]Volume `json:"volumes,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_volume.go deleted file mode 100644 index 6bc10f6a829d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_volume.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 Volume struct { - Name *string `json:"name,omitempty"` - StorageName *string `json:"storageName,omitempty"` - StorageType *StorageType `json:"storageType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/predicates.go deleted file mode 100644 index c6d7b602461a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/predicates.go +++ /dev/null @@ -1,32 +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 - 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.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/2022-03-01/containerappsrevisions/model_template.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_template.go deleted file mode 100644 index ecf3d02a34f7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_template.go +++ /dev/null @@ -1,11 +0,0 @@ -package containerappsrevisions - -// 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"` - RevisionSuffix *string `json:"revisionSuffix,omitempty"` - Scale *Scale `json:"scale,omitempty"` - Volumes *[]Volume `json:"volumes,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/README.md deleted file mode 100644 index b3ff41d48e78..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/README.md +++ /dev/null @@ -1,106 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents` Documentation - -The `daprcomponents` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2022-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-sdk/resource-manager/containerapps/2022-03-01/daprcomponents" -``` - - -### Client Initialization - -```go -client := daprcomponents.NewDaprComponentsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `DaprComponentsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") - -payload := daprcomponents.DaprComponent{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `DaprComponentsClient.Delete` - -```go -ctx := context.TODO() -id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") - -read, err := client.Delete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `DaprComponentsClient.Get` - -```go -ctx := context.TODO() -id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") - -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: `DaprComponentsClient.List` - -```go -ctx := context.TODO() -id := daprcomponents.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `DaprComponentsClient.ListSecrets` - -```go -ctx := context.TODO() -id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") - -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 -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprcomponentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprcomponentproperties.go deleted file mode 100644 index d7a9fb1d6acf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprcomponentproperties.go +++ /dev/null @@ -1,14 +0,0 @@ -package daprcomponents - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DaprComponentProperties struct { - ComponentType *string `json:"componentType,omitempty"` - IgnoreErrors *bool `json:"ignoreErrors,omitempty"` - InitTimeout *string `json:"initTimeout,omitempty"` - Metadata *[]DaprMetadata `json:"metadata,omitempty"` - Scopes *[]string `json:"scopes,omitempty"` - Secrets *[]Secret `json:"secrets,omitempty"` - Version *string `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_managedenvironmentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_managedenvironmentproperties.go deleted file mode 100644 index 813ce767ba85..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_managedenvironmentproperties.go +++ /dev/null @@ -1,16 +0,0 @@ -package managedenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ManagedEnvironmentProperties struct { - AppLogsConfiguration *AppLogsConfiguration `json:"appLogsConfiguration,omitempty"` - DaprAIConnectionString *string `json:"daprAIConnectionString,omitempty"` - DaprAIInstrumentationKey *string `json:"daprAIInstrumentationKey,omitempty"` - DefaultDomain *string `json:"defaultDomain,omitempty"` - DeploymentErrors *string `json:"deploymentErrors,omitempty"` - ProvisioningState *EnvironmentProvisioningState `json:"provisioningState,omitempty"` - StaticIP *string `json:"staticIp,omitempty"` - VnetConfiguration *VnetConfiguration `json:"vnetConfiguration,omitempty"` - ZoneRedundant *bool `json:"zoneRedundant,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/README.md new file mode 100644 index 000000000000..43ed8b751ef7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/README.md @@ -0,0 +1,202 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates` Documentation + +The `certificates` SDK allows for interaction with the Azure Resource Manager Service `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-sdk/resource-manager/containerapps/2023-05-01/certificates" +``` + + +### Client Initialization + +```go +client := certificates.NewCertificatesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CertificatesClient.ConnectedEnvironmentsCertificatesCreateOrUpdate` + +```go +ctx := context.TODO() +id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue") + +payload := certificates.Certificate{ + // ... +} + + +read, err := client.ConnectedEnvironmentsCertificatesCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificatesClient.ConnectedEnvironmentsCertificatesDelete` + +```go +ctx := context.TODO() +id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue") + +read, err := client.ConnectedEnvironmentsCertificatesDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificatesClient.ConnectedEnvironmentsCertificatesGet` + +```go +ctx := context.TODO() +id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue") + +read, err := client.ConnectedEnvironmentsCertificatesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificatesClient.ConnectedEnvironmentsCertificatesList` + +```go +ctx := context.TODO() +id := certificates.NewConnectedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue") + +// alternatively `client.ConnectedEnvironmentsCertificatesList(ctx, id)` can be used to do batched pagination +items, err := client.ConnectedEnvironmentsCertificatesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CertificatesClient.ConnectedEnvironmentsCertificatesUpdate` + +```go +ctx := context.TODO() +id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue") + +payload := certificates.CertificatePatch{ + // ... +} + + +read, err := client.ConnectedEnvironmentsCertificatesUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificatesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") + +payload := certificates.Certificate{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificatesClient.Delete` + +```go +ctx := context.TODO() +id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") + +read, err := client.Delete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificatesClient.Get` + +```go +ctx := context.TODO() +id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") + +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: `CertificatesClient.List` + +```go +ctx := context.TODO() +id := certificates.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CertificatesClient.Update` + +```go +ctx := context.TODO() +id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") + +payload := certificates.CertificatePatch{ + // ... +} + + +read, err := client.Update(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_certificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/id_certificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_certificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironment.go new file mode 100644 index 000000000000..2a6232f173ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironment.go @@ -0,0 +1,127 @@ +package certificates + +import ( + "fmt" + "strings" + + "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. + +var _ resourceids.ResourceId = ConnectedEnvironmentId{} + +// ConnectedEnvironmentId is a struct representing the Resource ID for a Connected Environment +type ConnectedEnvironmentId struct { + SubscriptionId string + ResourceGroupName string + ConnectedEnvironmentName string +} + +// NewConnectedEnvironmentID returns a new ConnectedEnvironmentId struct +func NewConnectedEnvironmentID(subscriptionId string, resourceGroupName string, connectedEnvironmentName string) ConnectedEnvironmentId { + return ConnectedEnvironmentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ConnectedEnvironmentName: connectedEnvironmentName, + } +} + +// ParseConnectedEnvironmentID parses 'input' into a ConnectedEnvironmentId +func ParseConnectedEnvironmentID(input string) (*ConnectedEnvironmentId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectedEnvironmentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ConnectedEnvironmentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ConnectedEnvironmentName, ok = parsed.Parsed["connectedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "connectedEnvironmentName", *parsed) + } + + return &id, nil +} + +// ParseConnectedEnvironmentIDInsensitively parses 'input' case-insensitively into a ConnectedEnvironmentId +// note: this method should only be used for API response data and not user input +func ParseConnectedEnvironmentIDInsensitively(input string) (*ConnectedEnvironmentId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectedEnvironmentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ConnectedEnvironmentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ConnectedEnvironmentName, ok = parsed.Parsed["connectedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "connectedEnvironmentName", *parsed) + } + + return &id, nil +} + +// ValidateConnectedEnvironmentID checks that 'input' can be parsed as a Connected Environment ID +func ValidateConnectedEnvironmentID(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 := ParseConnectedEnvironmentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connected Environment ID +func (id ConnectedEnvironmentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/connectedEnvironments/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ConnectedEnvironmentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connected Environment ID +func (id ConnectedEnvironmentId) 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("staticConnectedEnvironments", "connectedEnvironments", "connectedEnvironments"), + resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentValue"), + } +} + +// String returns a human-readable description of this Connected Environment ID +func (id ConnectedEnvironmentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Connected Environment Name: %q", id.ConnectedEnvironmentName), + } + return fmt.Sprintf("Connected Environment (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironmentcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironmentcertificate.go new file mode 100644 index 000000000000..85a6c7db3d2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironmentcertificate.go @@ -0,0 +1,140 @@ +package certificates + +import ( + "fmt" + "strings" + + "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. + +var _ resourceids.ResourceId = ConnectedEnvironmentCertificateId{} + +// ConnectedEnvironmentCertificateId is a struct representing the Resource ID for a Connected Environment Certificate +type ConnectedEnvironmentCertificateId struct { + SubscriptionId string + ResourceGroupName string + ConnectedEnvironmentName string + CertificateName string +} + +// NewConnectedEnvironmentCertificateID returns a new ConnectedEnvironmentCertificateId struct +func NewConnectedEnvironmentCertificateID(subscriptionId string, resourceGroupName string, connectedEnvironmentName string, certificateName string) ConnectedEnvironmentCertificateId { + return ConnectedEnvironmentCertificateId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ConnectedEnvironmentName: connectedEnvironmentName, + CertificateName: certificateName, + } +} + +// ParseConnectedEnvironmentCertificateID parses 'input' into a ConnectedEnvironmentCertificateId +func ParseConnectedEnvironmentCertificateID(input string) (*ConnectedEnvironmentCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectedEnvironmentCertificateId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ConnectedEnvironmentCertificateId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ConnectedEnvironmentName, ok = parsed.Parsed["connectedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "connectedEnvironmentName", *parsed) + } + + if id.CertificateName, ok = parsed.Parsed["certificateName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "certificateName", *parsed) + } + + return &id, nil +} + +// ParseConnectedEnvironmentCertificateIDInsensitively parses 'input' case-insensitively into a ConnectedEnvironmentCertificateId +// note: this method should only be used for API response data and not user input +func ParseConnectedEnvironmentCertificateIDInsensitively(input string) (*ConnectedEnvironmentCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectedEnvironmentCertificateId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ConnectedEnvironmentCertificateId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ConnectedEnvironmentName, ok = parsed.Parsed["connectedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "connectedEnvironmentName", *parsed) + } + + if id.CertificateName, ok = parsed.Parsed["certificateName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "certificateName", *parsed) + } + + return &id, nil +} + +// ValidateConnectedEnvironmentCertificateID checks that 'input' can be parsed as a Connected Environment Certificate ID +func ValidateConnectedEnvironmentCertificateID(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 := ParseConnectedEnvironmentCertificateID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connected Environment Certificate ID +func (id ConnectedEnvironmentCertificateId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/connectedEnvironments/%s/certificates/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ConnectedEnvironmentName, id.CertificateName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connected Environment Certificate ID +func (id ConnectedEnvironmentCertificateId) 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("staticConnectedEnvironments", "connectedEnvironments", "connectedEnvironments"), + resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentValue"), + resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), + resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + } +} + +// String returns a human-readable description of this Connected Environment Certificate ID +func (id ConnectedEnvironmentCertificateId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Connected Environment Name: %q", id.ConnectedEnvironmentName), + fmt.Sprintf("Certificate Name: %q", id.CertificateName), + } + return fmt.Sprintf("Connected Environment Certificate (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/id_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_managedenvironment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/id_managedenvironment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_managedenvironment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatescreateorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatescreateorupdate_autorest.go new file mode 100644 index 000000000000..250309b3ab67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatescreateorupdate_autorest.go @@ -0,0 +1,69 @@ +package certificates + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsCertificatesCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + Model *Certificate +} + +// ConnectedEnvironmentsCertificatesCreateOrUpdate ... +func (c CertificatesClient) ConnectedEnvironmentsCertificatesCreateOrUpdate(ctx context.Context, id ConnectedEnvironmentCertificateId, input Certificate) (result ConnectedEnvironmentsCertificatesCreateOrUpdateOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsCertificatesCreateOrUpdate(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesCreateOrUpdate", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesCreateOrUpdate", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsCertificatesCreateOrUpdate(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesCreateOrUpdate", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForConnectedEnvironmentsCertificatesCreateOrUpdate prepares the ConnectedEnvironmentsCertificatesCreateOrUpdate request. +func (c CertificatesClient) preparerForConnectedEnvironmentsCertificatesCreateOrUpdate(ctx context.Context, id ConnectedEnvironmentCertificateId, input Certificate) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsCertificatesCreateOrUpdate handles the response to the ConnectedEnvironmentsCertificatesCreateOrUpdate request. The method always +// closes the http.Response Body. +func (c CertificatesClient) responderForConnectedEnvironmentsCertificatesCreateOrUpdate(resp *http.Response) (result ConnectedEnvironmentsCertificatesCreateOrUpdateOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesdelete_autorest.go new file mode 100644 index 000000000000..41afe4fd94a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesdelete_autorest.go @@ -0,0 +1,66 @@ +package certificates + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsCertificatesDeleteOperationResponse struct { + HttpResponse *http.Response +} + +// ConnectedEnvironmentsCertificatesDelete ... +func (c CertificatesClient) ConnectedEnvironmentsCertificatesDelete(ctx context.Context, id ConnectedEnvironmentCertificateId) (result ConnectedEnvironmentsCertificatesDeleteOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsCertificatesDelete(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesDelete", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesDelete", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsCertificatesDelete(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesDelete", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForConnectedEnvironmentsCertificatesDelete prepares the ConnectedEnvironmentsCertificatesDelete request. +func (c CertificatesClient) preparerForConnectedEnvironmentsCertificatesDelete(ctx context.Context, id ConnectedEnvironmentCertificateId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsDelete(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsCertificatesDelete handles the response to the ConnectedEnvironmentsCertificatesDelete request. The method always +// closes the http.Response Body. +func (c CertificatesClient) responderForConnectedEnvironmentsCertificatesDelete(resp *http.Response) (result ConnectedEnvironmentsCertificatesDeleteOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusNoContent, http.StatusOK), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesget_autorest.go new file mode 100644 index 000000000000..0a76e34bac8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesget_autorest.go @@ -0,0 +1,68 @@ +package certificates + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsCertificatesGetOperationResponse struct { + HttpResponse *http.Response + Model *Certificate +} + +// ConnectedEnvironmentsCertificatesGet ... +func (c CertificatesClient) ConnectedEnvironmentsCertificatesGet(ctx context.Context, id ConnectedEnvironmentCertificateId) (result ConnectedEnvironmentsCertificatesGetOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsCertificatesGet(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesGet", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesGet", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsCertificatesGet(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesGet", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForConnectedEnvironmentsCertificatesGet prepares the ConnectedEnvironmentsCertificatesGet request. +func (c CertificatesClient) preparerForConnectedEnvironmentsCertificatesGet(ctx context.Context, id ConnectedEnvironmentCertificateId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsCertificatesGet handles the response to the ConnectedEnvironmentsCertificatesGet request. The method always +// closes the http.Response Body. +func (c CertificatesClient) responderForConnectedEnvironmentsCertificatesGet(resp *http.Response) (result ConnectedEnvironmentsCertificatesGetOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificateslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificateslist_autorest.go new file mode 100644 index 000000000000..fe9afa257c46 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificateslist_autorest.go @@ -0,0 +1,186 @@ +package certificates + +import ( + "context" + "fmt" + "net/http" + "net/url" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsCertificatesListOperationResponse struct { + HttpResponse *http.Response + Model *[]Certificate + + nextLink *string + nextPageFunc func(ctx context.Context, nextLink string) (ConnectedEnvironmentsCertificatesListOperationResponse, error) +} + +type ConnectedEnvironmentsCertificatesListCompleteResult struct { + Items []Certificate +} + +func (r ConnectedEnvironmentsCertificatesListOperationResponse) HasMore() bool { + return r.nextLink != nil +} + +func (r ConnectedEnvironmentsCertificatesListOperationResponse) LoadMore(ctx context.Context) (resp ConnectedEnvironmentsCertificatesListOperationResponse, err error) { + if !r.HasMore() { + err = fmt.Errorf("no more pages returned") + return + } + return r.nextPageFunc(ctx, *r.nextLink) +} + +// ConnectedEnvironmentsCertificatesList ... +func (c CertificatesClient) ConnectedEnvironmentsCertificatesList(ctx context.Context, id ConnectedEnvironmentId) (resp ConnectedEnvironmentsCertificatesListOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsCertificatesList(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesList", nil, "Failure preparing request") + return + } + + resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesList", resp.HttpResponse, "Failure sending request") + return + } + + resp, err = c.responderForConnectedEnvironmentsCertificatesList(resp.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesList", resp.HttpResponse, "Failure responding to request") + return + } + return +} + +// preparerForConnectedEnvironmentsCertificatesList prepares the ConnectedEnvironmentsCertificatesList request. +func (c CertificatesClient) preparerForConnectedEnvironmentsCertificatesList(ctx context.Context, id ConnectedEnvironmentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/certificates", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// preparerForConnectedEnvironmentsCertificatesListWithNextLink prepares the ConnectedEnvironmentsCertificatesList request with the given nextLink token. +func (c CertificatesClient) preparerForConnectedEnvironmentsCertificatesListWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { + uri, err := url.Parse(nextLink) + if err != nil { + return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) + } + queryParameters := map[string]interface{}{} + for k, v := range uri.Query() { + if len(v) == 0 { + continue + } + val := v[0] + val = autorest.Encode("query", val) + queryParameters[k] = val + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(uri.Path), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsCertificatesList handles the response to the ConnectedEnvironmentsCertificatesList request. The method always +// closes the http.Response Body. +func (c CertificatesClient) responderForConnectedEnvironmentsCertificatesList(resp *http.Response) (result ConnectedEnvironmentsCertificatesListOperationResponse, err error) { + type page struct { + Values []Certificate `json:"value"` + NextLink *string `json:"nextLink"` + } + var respObj page + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&respObj), + autorest.ByClosing()) + result.HttpResponse = resp + result.Model = &respObj.Values + result.nextLink = respObj.NextLink + if respObj.NextLink != nil { + result.nextPageFunc = func(ctx context.Context, nextLink string) (result ConnectedEnvironmentsCertificatesListOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsCertificatesListWithNextLink(ctx, nextLink) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesList", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesList", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsCertificatesList(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesList", result.HttpResponse, "Failure responding to request") + return + } + + return + } + } + return +} + +// ConnectedEnvironmentsCertificatesListComplete retrieves all of the results into a single object +func (c CertificatesClient) ConnectedEnvironmentsCertificatesListComplete(ctx context.Context, id ConnectedEnvironmentId) (ConnectedEnvironmentsCertificatesListCompleteResult, error) { + return c.ConnectedEnvironmentsCertificatesListCompleteMatchingPredicate(ctx, id, CertificateOperationPredicate{}) +} + +// ConnectedEnvironmentsCertificatesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate +func (c CertificatesClient) ConnectedEnvironmentsCertificatesListCompleteMatchingPredicate(ctx context.Context, id ConnectedEnvironmentId, predicate CertificateOperationPredicate) (resp ConnectedEnvironmentsCertificatesListCompleteResult, err error) { + items := make([]Certificate, 0) + + page, err := c.ConnectedEnvironmentsCertificatesList(ctx, id) + if err != nil { + err = fmt.Errorf("loading the initial page: %+v", err) + return + } + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + for page.HasMore() { + page, err = page.LoadMore(ctx) + if err != nil { + err = fmt.Errorf("loading the next page: %+v", err) + return + } + + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + } + + out := ConnectedEnvironmentsCertificatesListCompleteResult{ + Items: items, + } + return out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesupdate_autorest.go new file mode 100644 index 000000000000..9d8b51209cc6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesupdate_autorest.go @@ -0,0 +1,69 @@ +package certificates + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsCertificatesUpdateOperationResponse struct { + HttpResponse *http.Response + Model *Certificate +} + +// ConnectedEnvironmentsCertificatesUpdate ... +func (c CertificatesClient) ConnectedEnvironmentsCertificatesUpdate(ctx context.Context, id ConnectedEnvironmentCertificateId, input CertificatePatch) (result ConnectedEnvironmentsCertificatesUpdateOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsCertificatesUpdate(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesUpdate", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesUpdate", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsCertificatesUpdate(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "certificates.CertificatesClient", "ConnectedEnvironmentsCertificatesUpdate", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForConnectedEnvironmentsCertificatesUpdate prepares the ConnectedEnvironmentsCertificatesUpdate request. +func (c CertificatesClient) preparerForConnectedEnvironmentsCertificatesUpdate(ctx context.Context, id ConnectedEnvironmentCertificateId, input CertificatePatch) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsCertificatesUpdate handles the response to the ConnectedEnvironmentsCertificatesUpdate request. The method always +// closes the http.Response Body. +func (c CertificatesClient) responderForConnectedEnvironmentsCertificatesUpdate(resp *http.Response) (result ConnectedEnvironmentsCertificatesUpdateOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_update_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/model_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/model_certificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/model_certificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/model_certificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/model_certificatepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/model_certificatepatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/model_certificatepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/model_certificatepatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/model_certificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/model_certificateproperties.go similarity index 51% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/model_certificateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/model_certificateproperties.go index f9b83d5882ea..b37db70c194a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/model_certificateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/model_certificateproperties.go @@ -10,16 +10,17 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type CertificateProperties struct { - ExpirationDate *string `json:"expirationDate,omitempty"` - IssueDate *string `json:"issueDate,omitempty"` - Issuer *string `json:"issuer,omitempty"` - Password *string `json:"password,omitempty"` - ProvisioningState *CertificateProvisioningState `json:"provisioningState,omitempty"` - PublicKeyHash *string `json:"publicKeyHash,omitempty"` - SubjectName *string `json:"subjectName,omitempty"` - Thumbprint *string `json:"thumbprint,omitempty"` - Valid *bool `json:"valid,omitempty"` - Value *string `json:"value,omitempty"` + ExpirationDate *string `json:"expirationDate,omitempty"` + IssueDate *string `json:"issueDate,omitempty"` + Issuer *string `json:"issuer,omitempty"` + Password *string `json:"password,omitempty"` + ProvisioningState *CertificateProvisioningState `json:"provisioningState,omitempty"` + PublicKeyHash *string `json:"publicKeyHash,omitempty"` + SubjectAlternativeNames *[]string `json:"subjectAlternativeNames,omitempty"` + SubjectName *string `json:"subjectName,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` + Valid *bool `json:"valid,omitempty"` + Value *string `json:"value,omitempty"` } func (o *CertificateProperties) GetExpirationDateAsTime() (*time.Time, error) { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/version.go index 1cfd42892bf4..99d93672900e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/certificates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-03-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/certificates/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md similarity index 51% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md index a88845f76c16..aa69c9fd6b23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps` Documentation -The `containerapps` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2022-03-01`). +The `containerapps` SDK allows for interaction with the Azure Resource Manager Service `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-sdk/resource-manager/containerapps/2022-03-01/containerapps" +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" ``` @@ -49,6 +49,88 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ``` +### Example Usage: `ContainerAppsClient.DiagnosticsGetDetector` + +```go +ctx := context.TODO() +id := containerapps.NewDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "detectorValue") + +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", "containerAppValue", "revisionValue") + +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", "containerAppValue") + +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", "containerAppValue") + +// 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", "containerAppValue") + +// 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 @@ -65,6 +147,22 @@ if model := read.Model; model != nil { ``` +### Example Usage: `ContainerAppsClient.GetAuthToken` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") + +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 @@ -131,6 +229,30 @@ if model := read.Model; model != nil { ``` +### Example Usage: `ContainerAppsClient.Start` + +```go +ctx := context.TODO() +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") + +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", "containerAppValue") + +if err := client.StopThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + ### Example Usage: `ContainerAppsClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go 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 new file mode 100644 index 000000000000..b8e60935170c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/constants.go @@ -0,0 +1,536 @@ +package containerapps + +import "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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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/2022-03-01/containerapps/id_containerapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/id_containerapp.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go 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 new file mode 100644 index 000000000000..e0635c427725 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go @@ -0,0 +1,140 @@ +package containerapps + +import ( + "fmt" + "strings" + + "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. + +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) + } + + var ok bool + id := DetectorId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ContainerAppName, ok = parsed.Parsed["containerAppName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", *parsed) + } + + if id.DetectorName, ok = parsed.Parsed["detectorName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "detectorName", *parsed) + } + + 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) + } + + var ok bool + id := DetectorId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ContainerAppName, ok = parsed.Parsed["containerAppName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", *parsed) + } + + if id.DetectorName, ok = parsed.Parsed["detectorName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "detectorName", *parsed) + } + + return &id, 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", "containerAppValue"), + resourceids.StaticSegment("staticDetectors", "detectors", "detectors"), + resourceids.UserSpecifiedSegment("detectorName", "detectorValue"), + } +} + +// 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 new file mode 100644 index 000000000000..a46f51fe65ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go @@ -0,0 +1,142 @@ +package containerapps + +import ( + "fmt" + "strings" + + "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. + +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) + } + + var ok bool + id := RevisionsApiRevisionId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ContainerAppName, ok = parsed.Parsed["containerAppName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", *parsed) + } + + if id.RevisionName, ok = parsed.Parsed["revisionName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "revisionName", *parsed) + } + + 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) + } + + var ok bool + id := RevisionsApiRevisionId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ContainerAppName, ok = parsed.Parsed["containerAppName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "containerAppName", *parsed) + } + + if id.RevisionName, ok = parsed.Parsed["revisionName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "revisionName", *parsed) + } + + return &id, 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", "containerAppValue"), + resourceids.StaticSegment("staticDetectorProperties", "detectorProperties", "detectorProperties"), + resourceids.StaticSegment("staticRevisionsApi", "revisionsApi", "revisionsApi"), + resourceids.StaticSegment("staticRevisions", "revisions", "revisions"), + resourceids.UserSpecifiedSegment("revisionName", "revisionValue"), + } +} + +// 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/2022-03-01/containerapps/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector_autorest.go new file mode 100644 index 000000000000..d70f51a4094b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector_autorest.go @@ -0,0 +1,68 @@ +package containerapps + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// 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 + Model *Diagnostics +} + +// DiagnosticsGetDetector ... +func (c ContainerAppsClient) DiagnosticsGetDetector(ctx context.Context, id DetectorId) (result DiagnosticsGetDetectorOperationResponse, err error) { + req, err := c.preparerForDiagnosticsGetDetector(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsGetDetector", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsGetDetector", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForDiagnosticsGetDetector(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsGetDetector", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForDiagnosticsGetDetector prepares the DiagnosticsGetDetector request. +func (c ContainerAppsClient) preparerForDiagnosticsGetDetector(ctx context.Context, id DetectorId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForDiagnosticsGetDetector handles the response to the DiagnosticsGetDetector request. The method always +// closes the http.Response Body. +func (c ContainerAppsClient) responderForDiagnosticsGetDetector(resp *http.Response) (result DiagnosticsGetDetectorOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision_autorest.go new file mode 100644 index 000000000000..9519af20656d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision_autorest.go @@ -0,0 +1,68 @@ +package containerapps + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// 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 + Model *Revision +} + +// DiagnosticsGetRevision ... +func (c ContainerAppsClient) DiagnosticsGetRevision(ctx context.Context, id RevisionsApiRevisionId) (result DiagnosticsGetRevisionOperationResponse, err error) { + req, err := c.preparerForDiagnosticsGetRevision(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsGetRevision", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsGetRevision", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForDiagnosticsGetRevision(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsGetRevision", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForDiagnosticsGetRevision prepares the DiagnosticsGetRevision request. +func (c ContainerAppsClient) preparerForDiagnosticsGetRevision(ctx context.Context, id RevisionsApiRevisionId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForDiagnosticsGetRevision handles the response to the DiagnosticsGetRevision request. The method always +// closes the http.Response Body. +func (c ContainerAppsClient) responderForDiagnosticsGetRevision(resp *http.Response) (result DiagnosticsGetRevisionOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot_autorest.go new file mode 100644 index 000000000000..5acecfe5eea0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot_autorest.go @@ -0,0 +1,69 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// 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 + Model *ContainerApp +} + +// DiagnosticsGetRoot ... +func (c ContainerAppsClient) DiagnosticsGetRoot(ctx context.Context, id ContainerAppId) (result DiagnosticsGetRootOperationResponse, err error) { + req, err := c.preparerForDiagnosticsGetRoot(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsGetRoot", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsGetRoot", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForDiagnosticsGetRoot(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsGetRoot", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForDiagnosticsGetRoot prepares the DiagnosticsGetRoot request. +func (c ContainerAppsClient) preparerForDiagnosticsGetRoot(ctx context.Context, id ContainerAppId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/detectorProperties/rootApi", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForDiagnosticsGetRoot handles the response to the DiagnosticsGetRoot request. The method always +// closes the http.Response Body. +func (c ContainerAppsClient) responderForDiagnosticsGetRoot(resp *http.Response) (result DiagnosticsGetRootOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors_autorest.go new file mode 100644 index 000000000000..5b07761128e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors_autorest.go @@ -0,0 +1,186 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + "net/url" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// 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 + Model *[]Diagnostics + + nextLink *string + nextPageFunc func(ctx context.Context, nextLink string) (DiagnosticsListDetectorsOperationResponse, error) +} + +type DiagnosticsListDetectorsCompleteResult struct { + Items []Diagnostics +} + +func (r DiagnosticsListDetectorsOperationResponse) HasMore() bool { + return r.nextLink != nil +} + +func (r DiagnosticsListDetectorsOperationResponse) LoadMore(ctx context.Context) (resp DiagnosticsListDetectorsOperationResponse, err error) { + if !r.HasMore() { + err = fmt.Errorf("no more pages returned") + return + } + return r.nextPageFunc(ctx, *r.nextLink) +} + +// DiagnosticsListDetectors ... +func (c ContainerAppsClient) DiagnosticsListDetectors(ctx context.Context, id ContainerAppId) (resp DiagnosticsListDetectorsOperationResponse, err error) { + req, err := c.preparerForDiagnosticsListDetectors(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListDetectors", nil, "Failure preparing request") + return + } + + resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListDetectors", resp.HttpResponse, "Failure sending request") + return + } + + resp, err = c.responderForDiagnosticsListDetectors(resp.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListDetectors", resp.HttpResponse, "Failure responding to request") + return + } + return +} + +// preparerForDiagnosticsListDetectors prepares the DiagnosticsListDetectors request. +func (c ContainerAppsClient) preparerForDiagnosticsListDetectors(ctx context.Context, id ContainerAppId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/detectors", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// preparerForDiagnosticsListDetectorsWithNextLink prepares the DiagnosticsListDetectors request with the given nextLink token. +func (c ContainerAppsClient) preparerForDiagnosticsListDetectorsWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { + uri, err := url.Parse(nextLink) + if err != nil { + return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) + } + queryParameters := map[string]interface{}{} + for k, v := range uri.Query() { + if len(v) == 0 { + continue + } + val := v[0] + val = autorest.Encode("query", val) + queryParameters[k] = val + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(uri.Path), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForDiagnosticsListDetectors handles the response to the DiagnosticsListDetectors request. The method always +// closes the http.Response Body. +func (c ContainerAppsClient) responderForDiagnosticsListDetectors(resp *http.Response) (result DiagnosticsListDetectorsOperationResponse, err error) { + type page struct { + Values []Diagnostics `json:"value"` + NextLink *string `json:"nextLink"` + } + var respObj page + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&respObj), + autorest.ByClosing()) + result.HttpResponse = resp + result.Model = &respObj.Values + result.nextLink = respObj.NextLink + if respObj.NextLink != nil { + result.nextPageFunc = func(ctx context.Context, nextLink string) (result DiagnosticsListDetectorsOperationResponse, err error) { + req, err := c.preparerForDiagnosticsListDetectorsWithNextLink(ctx, nextLink) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListDetectors", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListDetectors", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForDiagnosticsListDetectors(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListDetectors", result.HttpResponse, "Failure responding to request") + return + } + + return + } + } + return +} + +// DiagnosticsListDetectorsComplete retrieves all of 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 of the results and then applied the predicate +func (c ContainerAppsClient) DiagnosticsListDetectorsCompleteMatchingPredicate(ctx context.Context, id ContainerAppId, predicate DiagnosticsOperationPredicate) (resp DiagnosticsListDetectorsCompleteResult, err error) { + items := make([]Diagnostics, 0) + + page, err := c.DiagnosticsListDetectors(ctx, id) + if err != nil { + err = fmt.Errorf("loading the initial page: %+v", err) + return + } + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + for page.HasMore() { + page, err = page.LoadMore(ctx) + if err != nil { + err = fmt.Errorf("loading the next page: %+v", err) + return + } + + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + } + + out := DiagnosticsListDetectorsCompleteResult{ + Items: items, + } + return out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions_autorest.go new file mode 100644 index 000000000000..30b840508636 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions_autorest.go @@ -0,0 +1,215 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + "net/url" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// 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 + Model *[]Revision + + nextLink *string + nextPageFunc func(ctx context.Context, nextLink string) (DiagnosticsListRevisionsOperationResponse, error) +} + +type DiagnosticsListRevisionsCompleteResult struct { + Items []Revision +} + +func (r DiagnosticsListRevisionsOperationResponse) HasMore() bool { + return r.nextLink != nil +} + +func (r DiagnosticsListRevisionsOperationResponse) LoadMore(ctx context.Context) (resp DiagnosticsListRevisionsOperationResponse, err error) { + if !r.HasMore() { + err = fmt.Errorf("no more pages returned") + return + } + return r.nextPageFunc(ctx, *r.nextLink) +} + +type DiagnosticsListRevisionsOperationOptions struct { + Filter *string +} + +func DefaultDiagnosticsListRevisionsOperationOptions() DiagnosticsListRevisionsOperationOptions { + return DiagnosticsListRevisionsOperationOptions{} +} + +func (o DiagnosticsListRevisionsOperationOptions) toHeaders() map[string]interface{} { + out := make(map[string]interface{}) + + return out +} + +func (o DiagnosticsListRevisionsOperationOptions) toQueryString() map[string]interface{} { + out := make(map[string]interface{}) + + if o.Filter != nil { + out["$filter"] = *o.Filter + } + + return out +} + +// DiagnosticsListRevisions ... +func (c ContainerAppsClient) DiagnosticsListRevisions(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions) (resp DiagnosticsListRevisionsOperationResponse, err error) { + req, err := c.preparerForDiagnosticsListRevisions(ctx, id, options) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListRevisions", nil, "Failure preparing request") + return + } + + resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListRevisions", resp.HttpResponse, "Failure sending request") + return + } + + resp, err = c.responderForDiagnosticsListRevisions(resp.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListRevisions", resp.HttpResponse, "Failure responding to request") + return + } + return +} + +// preparerForDiagnosticsListRevisions prepares the DiagnosticsListRevisions request. +func (c ContainerAppsClient) preparerForDiagnosticsListRevisions(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + for k, v := range options.toQueryString() { + queryParameters[k] = autorest.Encode("query", v) + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithHeaders(options.toHeaders()), + autorest.WithPath(fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// preparerForDiagnosticsListRevisionsWithNextLink prepares the DiagnosticsListRevisions request with the given nextLink token. +func (c ContainerAppsClient) preparerForDiagnosticsListRevisionsWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { + uri, err := url.Parse(nextLink) + if err != nil { + return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) + } + queryParameters := map[string]interface{}{} + for k, v := range uri.Query() { + if len(v) == 0 { + continue + } + val := v[0] + val = autorest.Encode("query", val) + queryParameters[k] = val + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(uri.Path), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForDiagnosticsListRevisions handles the response to the DiagnosticsListRevisions request. The method always +// closes the http.Response Body. +func (c ContainerAppsClient) responderForDiagnosticsListRevisions(resp *http.Response) (result DiagnosticsListRevisionsOperationResponse, err error) { + type page struct { + Values []Revision `json:"value"` + NextLink *string `json:"nextLink"` + } + var respObj page + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&respObj), + autorest.ByClosing()) + result.HttpResponse = resp + result.Model = &respObj.Values + result.nextLink = respObj.NextLink + if respObj.NextLink != nil { + result.nextPageFunc = func(ctx context.Context, nextLink string) (result DiagnosticsListRevisionsOperationResponse, err error) { + req, err := c.preparerForDiagnosticsListRevisionsWithNextLink(ctx, nextLink) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListRevisions", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListRevisions", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForDiagnosticsListRevisions(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "DiagnosticsListRevisions", result.HttpResponse, "Failure responding to request") + return + } + + return + } + } + return +} + +// DiagnosticsListRevisionsComplete retrieves all of 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 of the results and then applied the predicate +func (c ContainerAppsClient) DiagnosticsListRevisionsCompleteMatchingPredicate(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions, predicate RevisionOperationPredicate) (resp DiagnosticsListRevisionsCompleteResult, err error) { + items := make([]Revision, 0) + + page, err := c.DiagnosticsListRevisions(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading the initial page: %+v", err) + return + } + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + for page.HasMore() { + page, err = page.LoadMore(ctx) + if err != nil { + err = fmt.Errorf("loading the next page: %+v", err) + return + } + + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + } + + out := DiagnosticsListRevisionsCompleteResult{ + Items: items, + } + return out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken_autorest.go new file mode 100644 index 000000000000..a3ea06035f7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken_autorest.go @@ -0,0 +1,69 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// 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 + Model *ContainerAppAuthToken +} + +// GetAuthToken ... +func (c ContainerAppsClient) GetAuthToken(ctx context.Context, id ContainerAppId) (result GetAuthTokenOperationResponse, err error) { + req, err := c.preparerForGetAuthToken(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "GetAuthToken", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "GetAuthToken", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForGetAuthToken(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "GetAuthToken", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForGetAuthToken prepares the GetAuthToken request. +func (c ContainerAppsClient) preparerForGetAuthToken(ctx context.Context, id ContainerAppId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/getAuthtoken", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForGetAuthToken handles the response to the GetAuthToken request. The method always +// closes the http.Response Body. +func (c ContainerAppsClient) responderForGetAuthToken(resp *http.Response) (result GetAuthTokenOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_listbyresourcegroup_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_listbyresourcegroup_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_listbysubscription_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_listbysubscription_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_listcustomhostnameanalysis_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_listcustomhostnameanalysis_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_listsecrets_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_listsecrets_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_start_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_start_autorest.go new file mode 100644 index 000000000000..50a689f5252f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_start_autorest.go @@ -0,0 +1,78 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// 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 polling.LongRunningPoller + HttpResponse *http.Response +} + +// Start ... +func (c ContainerAppsClient) Start(ctx context.Context, id ContainerAppId) (result StartOperationResponse, err error) { + req, err := c.preparerForStart(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "Start", nil, "Failure preparing request") + return + } + + result, err = c.senderForStart(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "Start", result.HttpResponse, "Failure sending request") + 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(); err != nil { + return fmt.Errorf("polling after Start: %+v", err) + } + + return nil +} + +// preparerForStart prepares the Start request. +func (c ContainerAppsClient) preparerForStart(ctx context.Context, id ContainerAppId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/start", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForStart sends the Start request. The method will close the +// http.Response Body if it receives an error. +func (c ContainerAppsClient) senderForStart(ctx context.Context, req *http.Request) (future StartOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_stop_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_stop_autorest.go new file mode 100644 index 000000000000..5c07c08ff8f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_stop_autorest.go @@ -0,0 +1,78 @@ +package containerapps + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// 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 polling.LongRunningPoller + HttpResponse *http.Response +} + +// Stop ... +func (c ContainerAppsClient) Stop(ctx context.Context, id ContainerAppId) (result StopOperationResponse, err error) { + req, err := c.preparerForStop(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "Stop", nil, "Failure preparing request") + return + } + + result, err = c.senderForStop(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "containerapps.ContainerAppsClient", "Stop", result.HttpResponse, "Failure sending request") + 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(); err != nil { + return fmt.Errorf("polling after Stop: %+v", err) + } + + return nil +} + +// preparerForStop prepares the Stop request. +func (c ContainerAppsClient) preparerForStop(ctx context.Context, id ContainerAppId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/stop", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForStop sends the Stop request. The method will close the +// http.Response Body if it receives an error. +func (c ContainerAppsClient) senderForStop(ctx context.Context, req *http.Request) (future StopOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_update_autorest.go 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 new file mode 100644 index 000000000000..3190b1630ca0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..199878bdae15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_container.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_container.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_container.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_container.go 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 new file mode 100644 index 000000000000..0c382ed58675 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..89b63f9e3692 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..243fce5c07e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_containerappprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobe.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappprobe.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobe.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappprobehttpget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappprobehttpget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobehttpgethttpheadersinlined.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappprobetcpsocket.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobetcpsocket.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappprobetcpsocket.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappprobetcpsocket.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappproperties.go similarity index 71% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappproperties.go index 883c2d42cd44..5dab8083bdc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerappproperties.go @@ -6,10 +6,14 @@ package containerapps 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 new file mode 100644 index 000000000000..5f93d41bec2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_containerresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerresources.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerresources.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_containerresources.go 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 new file mode 100644 index 000000000000..414eae004705 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_customdomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customdomain.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_customdomain.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customdomain.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_customhostnameanalysisresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_customhostnameanalysisresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customhostnameanalysisresultcustomdomainverificationfailureinfodetailsinlined.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_customscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customscalerule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_customscalerule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_customscalerule.go 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 new file mode 100644 index 000000000000..be3e090812be --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..4f49cfc12683 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_secret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go similarity index 80% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_secret.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go index 172aa1e71e0c..bb3c8371f295 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_secret.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_diagnosticdataprovidermetadatapropertybaginlined.go @@ -3,7 +3,7 @@ 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 { +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 new file mode 100644 index 000000000000..f0da0d4af5ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..f5ab6cef03a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..febf8f4bc441 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..332b9e6e8a78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..8a4e162a0f14 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..01d57bd28c29 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..5606b01916ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..ff2dafc6e9e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..36d9fb7fe24c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_environmentvar.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_environmentvar.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_environmentvar.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_environmentvar.go 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 new file mode 100644 index 000000000000..20073b0ba295 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_httpscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_httpscalerule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_httpscalerule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_httpscalerule.go 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 new file mode 100644 index 000000000000..1941dc5835df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingress.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 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/2022-03-01/daprcomponents/model_secret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingressstickysessions.go similarity index 56% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_secret.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingressstickysessions.go index 8a23d9f334e1..48b18e0ee171 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_secret.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_ingressstickysessions.go @@ -1,9 +1,8 @@ -package daprcomponents +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 { - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` +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 new file mode 100644 index 000000000000..959c43b6cbb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_queuescalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_queuescalerule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_queuescalerule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_queuescalerule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_registrycredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_registrycredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_registrycredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_registrycredentials.go 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 new file mode 100644 index 000000000000..02d416846200 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..2fc409ae580b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_scale.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scale.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_scale.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scale.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_scalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scalerule.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_scalerule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scalerule.go index 4fc431004612..93c358a6fa7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_scalerule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scalerule.go @@ -8,4 +8,5 @@ type ScaleRule struct { 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/2022-03-01/containerapps/model_scaleruleauth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scaleruleauth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_scaleruleauth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_scaleruleauth.go 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 new file mode 100644 index 000000000000..a1fbe4ec8f65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_secretscollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretscollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_secretscollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_secretscollection.go 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 new file mode 100644 index 000000000000..09096efbdd0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..f66b3642bfc5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..29229a27ecea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..4a970c61e67d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/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 new file mode 100644 index 000000000000..03f13f079804 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_trafficweight.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_trafficweight.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_trafficweight.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_trafficweight.go 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 new file mode 100644 index 000000000000..422cdf3ec3d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/model_volumemount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volumemount.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_volumemount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volumemount.go index 06e860defd67..c59e9fc682d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_volumemount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/model_volumemount.go @@ -5,5 +5,6 @@ package containerapps 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 new file mode 100644 index 000000000000..2f9822c394b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-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/2022-03-01/containerapps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go index b76ce8f07974..07a5b1edc557 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-03-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/containerapps/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/README.md index 72a9d7a55012..b0db98f8088d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions` Documentation -The `containerappsrevisions` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2022-03-01`). +The `containerappsrevisions` SDK allows for interaction with the Azure Resource Manager Service `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-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions" +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/constants.go similarity index 74% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/constants.go index 9493b0c859ee..9eee43d32f77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/constants.go @@ -73,6 +73,46 @@ func parseRevisionProvisioningState(input string) (*RevisionProvisioningState, e 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 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 ( @@ -106,12 +146,14 @@ type StorageType string const ( StorageTypeAzureFile StorageType = "AzureFile" StorageTypeEmptyDir StorageType = "EmptyDir" + StorageTypeSecret StorageType = "Secret" ) func PossibleValuesForStorageType() []string { return []string{ string(StorageTypeAzureFile), string(StorageTypeEmptyDir), + string(StorageTypeSecret), } } @@ -119,6 +161,7 @@ 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 diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/id_containerapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_containerapp.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/id_containerapp.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_containerapp.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/id_revision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_revision.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/id_revision.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_revision.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_activaterevision_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_activaterevision_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_activaterevision_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_activaterevision_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_deactivaterevision_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_deactivaterevision_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_deactivaterevision_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_deactivaterevision_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_getrevision_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_getrevision_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_getrevision_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_getrevision_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_listrevisions_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_listrevisions_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_restartrevision_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_restartrevision_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/method_restartrevision_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_restartrevision_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_basecontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_basecontainer.go new file mode 100644 index 000000000000..1826920dd686 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_basecontainer.go @@ -0,0 +1,14 @@ +package containerappsrevisions + +// 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/2022-03-01/containerappsrevisions/model_container.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_container.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_container.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_container.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerappprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerappprobe.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerappprobe.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerappprobe.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerappprobehttpget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerappprobehttpget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerappprobehttpget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerappprobehttpget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerappprobehttpgethttpheadersinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerappprobehttpgethttpheadersinlined.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerappprobehttpgethttpheadersinlined.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerappprobehttpgethttpheadersinlined.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerappprobetcpsocket.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerappprobetcpsocket.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerappprobetcpsocket.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerappprobetcpsocket.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerresources.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_containerresources.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_containerresources.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_customscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_customscalerule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_customscalerule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_customscalerule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_environmentvar.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_environmentvar.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_environmentvar.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_environmentvar.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_httpscalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_httpscalerule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_httpscalerule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_httpscalerule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_queuescalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_queuescalerule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_queuescalerule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_queuescalerule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_revision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_revision.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_revision.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_revision.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_revisionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_revisionproperties.go similarity index 71% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_revisionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_revisionproperties.go index 60753fcac96a..9c61e1f4b45d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_revisionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_revisionproperties.go @@ -14,9 +14,11 @@ type RevisionProperties struct { 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"` } @@ -32,3 +34,15 @@ 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/2022-03-01/containerappsrevisions/model_scale.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_scale.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_scale.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_scale.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_scalerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_scalerule.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_scalerule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_scalerule.go index 4bcd2c4a29e3..c456a55fad25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_scalerule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_scalerule.go @@ -8,4 +8,5 @@ type ScaleRule struct { 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/2022-03-01/containerappsrevisions/model_scaleruleauth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_scaleruleauth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_scaleruleauth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_scaleruleauth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_secretvolumeitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_secretvolumeitem.go new file mode 100644 index 000000000000..507833690ca2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_secretvolumeitem.go @@ -0,0 +1,9 @@ +package containerappsrevisions + +// 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/containerappsrevisions/model_servicebind.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_servicebind.go new file mode 100644 index 000000000000..91f1da05ffdb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_servicebind.go @@ -0,0 +1,9 @@ +package containerappsrevisions + +// 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/2022-03-01/containerappsrevisions/model_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_tcpscalerule.go similarity index 50% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_tcpscalerule.go index 0ba0817465fa..be173ac2b1af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_volume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_tcpscalerule.go @@ -3,8 +3,7 @@ package containerappsrevisions // 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 { - Name *string `json:"name,omitempty"` - StorageName *string `json:"storageName,omitempty"` - StorageType *StorageType `json:"storageType,omitempty"` +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/containerappsrevisions/model_template.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_template.go new file mode 100644 index 000000000000..8de2ea6c5bb7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_template.go @@ -0,0 +1,14 @@ +package containerappsrevisions + +// 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/containerappsrevisions/model_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_volume.go new file mode 100644 index 000000000000..8088c22d5163 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_volume.go @@ -0,0 +1,12 @@ +package containerappsrevisions + +// 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/2022-03-01/containerappsrevisions/model_volumemount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_volumemount.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_volumemount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_volumemount.go index 1098dfc541f2..2c57b8dd4c1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/model_volumemount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/model_volumemount.go @@ -5,5 +5,6 @@ package containerappsrevisions 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/2022-03-01/containerappsrevisions/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/version.go index bc818eafe498..fa0ac8268de1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-03-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/containerappsrevisions/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/README.md new file mode 100644 index 000000000000..a55e054f4b62 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/README.md @@ -0,0 +1,192 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents` Documentation + +The `daprcomponents` SDK allows for interaction with the Azure Resource Manager Service `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-sdk/resource-manager/containerapps/2023-05-01/daprcomponents" +``` + + +### Client Initialization + +```go +client := daprcomponents.NewDaprComponentsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DaprComponentsClient.ConnectedEnvironmentsDaprComponentsCreateOrUpdate` + +```go +ctx := context.TODO() +id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "daprComponentValue") + +payload := daprcomponents.DaprComponent{ + // ... +} + + +read, err := client.ConnectedEnvironmentsDaprComponentsCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DaprComponentsClient.ConnectedEnvironmentsDaprComponentsDelete` + +```go +ctx := context.TODO() +id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "daprComponentValue") + +read, err := client.ConnectedEnvironmentsDaprComponentsDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DaprComponentsClient.ConnectedEnvironmentsDaprComponentsGet` + +```go +ctx := context.TODO() +id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "daprComponentValue") + +read, err := client.ConnectedEnvironmentsDaprComponentsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DaprComponentsClient.ConnectedEnvironmentsDaprComponentsList` + +```go +ctx := context.TODO() +id := daprcomponents.NewConnectedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue") + +// alternatively `client.ConnectedEnvironmentsDaprComponentsList(ctx, id)` can be used to do batched pagination +items, err := client.ConnectedEnvironmentsDaprComponentsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DaprComponentsClient.ConnectedEnvironmentsDaprComponentsListSecrets` + +```go +ctx := context.TODO() +id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "daprComponentValue") + +read, err := client.ConnectedEnvironmentsDaprComponentsListSecrets(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DaprComponentsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") + +payload := daprcomponents.DaprComponent{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DaprComponentsClient.Delete` + +```go +ctx := context.TODO() +id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") + +read, err := client.Delete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DaprComponentsClient.Get` + +```go +ctx := context.TODO() +id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") + +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: `DaprComponentsClient.List` + +```go +ctx := context.TODO() +id := daprcomponents.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DaprComponentsClient.ListSecrets` + +```go +ctx := context.TODO() +id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") + +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 +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironment.go new file mode 100644 index 000000000000..ac0bd53cbd06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironment.go @@ -0,0 +1,127 @@ +package daprcomponents + +import ( + "fmt" + "strings" + + "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. + +var _ resourceids.ResourceId = ConnectedEnvironmentId{} + +// ConnectedEnvironmentId is a struct representing the Resource ID for a Connected Environment +type ConnectedEnvironmentId struct { + SubscriptionId string + ResourceGroupName string + ConnectedEnvironmentName string +} + +// NewConnectedEnvironmentID returns a new ConnectedEnvironmentId struct +func NewConnectedEnvironmentID(subscriptionId string, resourceGroupName string, connectedEnvironmentName string) ConnectedEnvironmentId { + return ConnectedEnvironmentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ConnectedEnvironmentName: connectedEnvironmentName, + } +} + +// ParseConnectedEnvironmentID parses 'input' into a ConnectedEnvironmentId +func ParseConnectedEnvironmentID(input string) (*ConnectedEnvironmentId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectedEnvironmentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ConnectedEnvironmentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ConnectedEnvironmentName, ok = parsed.Parsed["connectedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "connectedEnvironmentName", *parsed) + } + + return &id, nil +} + +// ParseConnectedEnvironmentIDInsensitively parses 'input' case-insensitively into a ConnectedEnvironmentId +// note: this method should only be used for API response data and not user input +func ParseConnectedEnvironmentIDInsensitively(input string) (*ConnectedEnvironmentId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectedEnvironmentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ConnectedEnvironmentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ConnectedEnvironmentName, ok = parsed.Parsed["connectedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "connectedEnvironmentName", *parsed) + } + + return &id, nil +} + +// ValidateConnectedEnvironmentID checks that 'input' can be parsed as a Connected Environment ID +func ValidateConnectedEnvironmentID(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 := ParseConnectedEnvironmentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connected Environment ID +func (id ConnectedEnvironmentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/connectedEnvironments/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ConnectedEnvironmentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connected Environment ID +func (id ConnectedEnvironmentId) 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("staticConnectedEnvironments", "connectedEnvironments", "connectedEnvironments"), + resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentValue"), + } +} + +// String returns a human-readable description of this Connected Environment ID +func (id ConnectedEnvironmentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Connected Environment Name: %q", id.ConnectedEnvironmentName), + } + return fmt.Sprintf("Connected Environment (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironmentdaprcomponent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironmentdaprcomponent.go new file mode 100644 index 000000000000..ee117ae73ec6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironmentdaprcomponent.go @@ -0,0 +1,140 @@ +package daprcomponents + +import ( + "fmt" + "strings" + + "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. + +var _ resourceids.ResourceId = ConnectedEnvironmentDaprComponentId{} + +// ConnectedEnvironmentDaprComponentId is a struct representing the Resource ID for a Connected Environment Dapr Component +type ConnectedEnvironmentDaprComponentId struct { + SubscriptionId string + ResourceGroupName string + ConnectedEnvironmentName string + DaprComponentName string +} + +// NewConnectedEnvironmentDaprComponentID returns a new ConnectedEnvironmentDaprComponentId struct +func NewConnectedEnvironmentDaprComponentID(subscriptionId string, resourceGroupName string, connectedEnvironmentName string, daprComponentName string) ConnectedEnvironmentDaprComponentId { + return ConnectedEnvironmentDaprComponentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ConnectedEnvironmentName: connectedEnvironmentName, + DaprComponentName: daprComponentName, + } +} + +// ParseConnectedEnvironmentDaprComponentID parses 'input' into a ConnectedEnvironmentDaprComponentId +func ParseConnectedEnvironmentDaprComponentID(input string) (*ConnectedEnvironmentDaprComponentId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectedEnvironmentDaprComponentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ConnectedEnvironmentDaprComponentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ConnectedEnvironmentName, ok = parsed.Parsed["connectedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "connectedEnvironmentName", *parsed) + } + + if id.DaprComponentName, ok = parsed.Parsed["daprComponentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "daprComponentName", *parsed) + } + + return &id, nil +} + +// ParseConnectedEnvironmentDaprComponentIDInsensitively parses 'input' case-insensitively into a ConnectedEnvironmentDaprComponentId +// note: this method should only be used for API response data and not user input +func ParseConnectedEnvironmentDaprComponentIDInsensitively(input string) (*ConnectedEnvironmentDaprComponentId, error) { + parser := resourceids.NewParserFromResourceIdType(ConnectedEnvironmentDaprComponentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ConnectedEnvironmentDaprComponentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ConnectedEnvironmentName, ok = parsed.Parsed["connectedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "connectedEnvironmentName", *parsed) + } + + if id.DaprComponentName, ok = parsed.Parsed["daprComponentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "daprComponentName", *parsed) + } + + return &id, nil +} + +// ValidateConnectedEnvironmentDaprComponentID checks that 'input' can be parsed as a Connected Environment Dapr Component ID +func ValidateConnectedEnvironmentDaprComponentID(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 := ParseConnectedEnvironmentDaprComponentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connected Environment Dapr Component ID +func (id ConnectedEnvironmentDaprComponentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/connectedEnvironments/%s/daprComponents/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ConnectedEnvironmentName, id.DaprComponentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connected Environment Dapr Component ID +func (id ConnectedEnvironmentDaprComponentId) 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("staticConnectedEnvironments", "connectedEnvironments", "connectedEnvironments"), + resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentValue"), + resourceids.StaticSegment("staticDaprComponents", "daprComponents", "daprComponents"), + resourceids.UserSpecifiedSegment("daprComponentName", "daprComponentValue"), + } +} + +// String returns a human-readable description of this Connected Environment Dapr Component ID +func (id ConnectedEnvironmentDaprComponentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Connected Environment Name: %q", id.ConnectedEnvironmentName), + fmt.Sprintf("Dapr Component Name: %q", id.DaprComponentName), + } + return fmt.Sprintf("Connected Environment Dapr Component (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/id_daprcomponent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_daprcomponent.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/id_daprcomponent.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_daprcomponent.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/id_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_managedenvironment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/id_managedenvironment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_managedenvironment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentscreateorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentscreateorupdate_autorest.go new file mode 100644 index 000000000000..e32fcb2f578f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentscreateorupdate_autorest.go @@ -0,0 +1,69 @@ +package daprcomponents + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsDaprComponentsCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + Model *DaprComponent +} + +// ConnectedEnvironmentsDaprComponentsCreateOrUpdate ... +func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsCreateOrUpdate(ctx context.Context, id ConnectedEnvironmentDaprComponentId, input DaprComponent) (result ConnectedEnvironmentsDaprComponentsCreateOrUpdateOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsDaprComponentsCreateOrUpdate(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsCreateOrUpdate", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsCreateOrUpdate", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsDaprComponentsCreateOrUpdate(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsCreateOrUpdate", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForConnectedEnvironmentsDaprComponentsCreateOrUpdate prepares the ConnectedEnvironmentsDaprComponentsCreateOrUpdate request. +func (c DaprComponentsClient) preparerForConnectedEnvironmentsDaprComponentsCreateOrUpdate(ctx context.Context, id ConnectedEnvironmentDaprComponentId, input DaprComponent) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsDaprComponentsCreateOrUpdate handles the response to the ConnectedEnvironmentsDaprComponentsCreateOrUpdate request. The method always +// closes the http.Response Body. +func (c DaprComponentsClient) responderForConnectedEnvironmentsDaprComponentsCreateOrUpdate(resp *http.Response) (result ConnectedEnvironmentsDaprComponentsCreateOrUpdateOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsdelete_autorest.go new file mode 100644 index 000000000000..94f064649211 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsdelete_autorest.go @@ -0,0 +1,66 @@ +package daprcomponents + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsDaprComponentsDeleteOperationResponse struct { + HttpResponse *http.Response +} + +// ConnectedEnvironmentsDaprComponentsDelete ... +func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsDelete(ctx context.Context, id ConnectedEnvironmentDaprComponentId) (result ConnectedEnvironmentsDaprComponentsDeleteOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsDaprComponentsDelete(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsDelete", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsDelete", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsDaprComponentsDelete(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsDelete", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForConnectedEnvironmentsDaprComponentsDelete prepares the ConnectedEnvironmentsDaprComponentsDelete request. +func (c DaprComponentsClient) preparerForConnectedEnvironmentsDaprComponentsDelete(ctx context.Context, id ConnectedEnvironmentDaprComponentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsDelete(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsDaprComponentsDelete handles the response to the ConnectedEnvironmentsDaprComponentsDelete request. The method always +// closes the http.Response Body. +func (c DaprComponentsClient) responderForConnectedEnvironmentsDaprComponentsDelete(resp *http.Response) (result ConnectedEnvironmentsDaprComponentsDeleteOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusNoContent, http.StatusOK), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsget_autorest.go new file mode 100644 index 000000000000..b14c45e74fe7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsget_autorest.go @@ -0,0 +1,68 @@ +package daprcomponents + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsDaprComponentsGetOperationResponse struct { + HttpResponse *http.Response + Model *DaprComponent +} + +// ConnectedEnvironmentsDaprComponentsGet ... +func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsGet(ctx context.Context, id ConnectedEnvironmentDaprComponentId) (result ConnectedEnvironmentsDaprComponentsGetOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsDaprComponentsGet(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsGet", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsGet", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsDaprComponentsGet(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsGet", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForConnectedEnvironmentsDaprComponentsGet prepares the ConnectedEnvironmentsDaprComponentsGet request. +func (c DaprComponentsClient) preparerForConnectedEnvironmentsDaprComponentsGet(ctx context.Context, id ConnectedEnvironmentDaprComponentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsDaprComponentsGet handles the response to the ConnectedEnvironmentsDaprComponentsGet request. The method always +// closes the http.Response Body. +func (c DaprComponentsClient) responderForConnectedEnvironmentsDaprComponentsGet(resp *http.Response) (result ConnectedEnvironmentsDaprComponentsGetOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist_autorest.go new file mode 100644 index 000000000000..d4de441780f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist_autorest.go @@ -0,0 +1,186 @@ +package daprcomponents + +import ( + "context" + "fmt" + "net/http" + "net/url" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsDaprComponentsListOperationResponse struct { + HttpResponse *http.Response + Model *[]DaprComponent + + nextLink *string + nextPageFunc func(ctx context.Context, nextLink string) (ConnectedEnvironmentsDaprComponentsListOperationResponse, error) +} + +type ConnectedEnvironmentsDaprComponentsListCompleteResult struct { + Items []DaprComponent +} + +func (r ConnectedEnvironmentsDaprComponentsListOperationResponse) HasMore() bool { + return r.nextLink != nil +} + +func (r ConnectedEnvironmentsDaprComponentsListOperationResponse) LoadMore(ctx context.Context) (resp ConnectedEnvironmentsDaprComponentsListOperationResponse, err error) { + if !r.HasMore() { + err = fmt.Errorf("no more pages returned") + return + } + return r.nextPageFunc(ctx, *r.nextLink) +} + +// ConnectedEnvironmentsDaprComponentsList ... +func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsList(ctx context.Context, id ConnectedEnvironmentId) (resp ConnectedEnvironmentsDaprComponentsListOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsDaprComponentsList(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsList", nil, "Failure preparing request") + return + } + + resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsList", resp.HttpResponse, "Failure sending request") + return + } + + resp, err = c.responderForConnectedEnvironmentsDaprComponentsList(resp.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsList", resp.HttpResponse, "Failure responding to request") + return + } + return +} + +// preparerForConnectedEnvironmentsDaprComponentsList prepares the ConnectedEnvironmentsDaprComponentsList request. +func (c DaprComponentsClient) preparerForConnectedEnvironmentsDaprComponentsList(ctx context.Context, id ConnectedEnvironmentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/daprComponents", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// preparerForConnectedEnvironmentsDaprComponentsListWithNextLink prepares the ConnectedEnvironmentsDaprComponentsList request with the given nextLink token. +func (c DaprComponentsClient) preparerForConnectedEnvironmentsDaprComponentsListWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { + uri, err := url.Parse(nextLink) + if err != nil { + return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) + } + queryParameters := map[string]interface{}{} + for k, v := range uri.Query() { + if len(v) == 0 { + continue + } + val := v[0] + val = autorest.Encode("query", val) + queryParameters[k] = val + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(uri.Path), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsDaprComponentsList handles the response to the ConnectedEnvironmentsDaprComponentsList request. The method always +// closes the http.Response Body. +func (c DaprComponentsClient) responderForConnectedEnvironmentsDaprComponentsList(resp *http.Response) (result ConnectedEnvironmentsDaprComponentsListOperationResponse, err error) { + type page struct { + Values []DaprComponent `json:"value"` + NextLink *string `json:"nextLink"` + } + var respObj page + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&respObj), + autorest.ByClosing()) + result.HttpResponse = resp + result.Model = &respObj.Values + result.nextLink = respObj.NextLink + if respObj.NextLink != nil { + result.nextPageFunc = func(ctx context.Context, nextLink string) (result ConnectedEnvironmentsDaprComponentsListOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsDaprComponentsListWithNextLink(ctx, nextLink) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsList", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsList", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsDaprComponentsList(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsList", result.HttpResponse, "Failure responding to request") + return + } + + return + } + } + return +} + +// ConnectedEnvironmentsDaprComponentsListComplete retrieves all of the results into a single object +func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsListComplete(ctx context.Context, id ConnectedEnvironmentId) (ConnectedEnvironmentsDaprComponentsListCompleteResult, error) { + return c.ConnectedEnvironmentsDaprComponentsListCompleteMatchingPredicate(ctx, id, DaprComponentOperationPredicate{}) +} + +// ConnectedEnvironmentsDaprComponentsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate +func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsListCompleteMatchingPredicate(ctx context.Context, id ConnectedEnvironmentId, predicate DaprComponentOperationPredicate) (resp ConnectedEnvironmentsDaprComponentsListCompleteResult, err error) { + items := make([]DaprComponent, 0) + + page, err := c.ConnectedEnvironmentsDaprComponentsList(ctx, id) + if err != nil { + err = fmt.Errorf("loading the initial page: %+v", err) + return + } + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + for page.HasMore() { + page, err = page.LoadMore(ctx) + if err != nil { + err = fmt.Errorf("loading the next page: %+v", err) + return + } + + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + } + + out := ConnectedEnvironmentsDaprComponentsListCompleteResult{ + Items: items, + } + return out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslistsecrets_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslistsecrets_autorest.go new file mode 100644 index 000000000000..978818a64f14 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslistsecrets_autorest.go @@ -0,0 +1,69 @@ +package daprcomponents + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectedEnvironmentsDaprComponentsListSecretsOperationResponse struct { + HttpResponse *http.Response + Model *DaprSecretsCollection +} + +// ConnectedEnvironmentsDaprComponentsListSecrets ... +func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsListSecrets(ctx context.Context, id ConnectedEnvironmentDaprComponentId) (result ConnectedEnvironmentsDaprComponentsListSecretsOperationResponse, err error) { + req, err := c.preparerForConnectedEnvironmentsDaprComponentsListSecrets(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsListSecrets", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsListSecrets", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForConnectedEnvironmentsDaprComponentsListSecrets(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "daprcomponents.DaprComponentsClient", "ConnectedEnvironmentsDaprComponentsListSecrets", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForConnectedEnvironmentsDaprComponentsListSecrets prepares the ConnectedEnvironmentsDaprComponentsListSecrets request. +func (c DaprComponentsClient) preparerForConnectedEnvironmentsDaprComponentsListSecrets(ctx context.Context, id ConnectedEnvironmentDaprComponentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/listSecrets", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForConnectedEnvironmentsDaprComponentsListSecrets handles the response to the ConnectedEnvironmentsDaprComponentsListSecrets request. The method always +// closes the http.Response Body. +func (c DaprComponentsClient) responderForConnectedEnvironmentsDaprComponentsListSecrets(resp *http.Response) (result ConnectedEnvironmentsDaprComponentsListSecretsOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_listsecrets_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_listsecrets_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/method_listsecrets_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_listsecrets_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprcomponent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprcomponent.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprcomponent.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprcomponent.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprcomponentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprcomponentproperties.go new file mode 100644 index 000000000000..5dba15d7cddf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprcomponentproperties.go @@ -0,0 +1,15 @@ +package daprcomponents + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DaprComponentProperties struct { + ComponentType *string `json:"componentType,omitempty"` + IgnoreErrors *bool `json:"ignoreErrors,omitempty"` + InitTimeout *string `json:"initTimeout,omitempty"` + Metadata *[]DaprMetadata `json:"metadata,omitempty"` + Scopes *[]string `json:"scopes,omitempty"` + SecretStoreComponent *string `json:"secretStoreComponent,omitempty"` + Secrets *[]Secret `json:"secrets,omitempty"` + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprmetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprmetadata.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprmetadata.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprmetadata.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprsecret.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprsecret.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprsecret.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprsecretscollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprsecretscollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/model_daprsecretscollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_daprsecretscollection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_secret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_secret.go new file mode 100644 index 000000000000..a4647e5d6ec4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/model_secret.go @@ -0,0 +1,11 @@ +package daprcomponents + +// 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/2022-03-01/daprcomponents/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/version.go index 95e019e9fea9..928d2c04bddc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-03-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/daprcomponents/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/README.md similarity index 54% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/README.md index 9700fc39cc51..77d6f57d6c51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments` Documentation -The `managedenvironments` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2022-03-01`). +The `managedenvironments` SDK allows for interaction with the Azure Resource Manager Service `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-sdk/resource-manager/containerapps/2022-03-01/managedenvironments" +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments" ``` @@ -140,6 +140,22 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ``` +### Example Usage: `ManagedEnvironmentsClient.DiagnosticsGetRoot` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") + +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: `ManagedEnvironmentsClient.Get` ```go @@ -156,6 +172,22 @@ if model := read.Model; model != nil { ``` +### Example Usage: `ManagedEnvironmentsClient.GetAuthToken` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") + +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: `ManagedEnvironmentsClient.ListByResourceGroup` ```go @@ -190,6 +222,142 @@ for _, item := range items { ``` +### Example Usage: `ManagedEnvironmentsClient.ListWorkloadProfileStates` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") + +// alternatively `client.ListWorkloadProfileStates(ctx, id)` can be used to do batched pagination +items, err := client.ListWorkloadProfileStatesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ManagedEnvironmentsClient.ManagedCertificatesCreateOrUpdate` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") + +payload := managedenvironments.ManagedCertificate{ + // ... +} + + +if err := client.ManagedCertificatesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ManagedEnvironmentsClient.ManagedCertificatesDelete` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") + +read, err := client.ManagedCertificatesDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ManagedEnvironmentsClient.ManagedCertificatesGet` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") + +read, err := client.ManagedCertificatesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ManagedEnvironmentsClient.ManagedCertificatesList` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") + +// alternatively `client.ManagedCertificatesList(ctx, id)` can be used to do batched pagination +items, err := client.ManagedCertificatesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ManagedEnvironmentsClient.ManagedCertificatesUpdate` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") + +payload := managedenvironments.ManagedCertificatePatch{ + // ... +} + + +read, err := client.ManagedCertificatesUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ManagedEnvironmentsClient.ManagedEnvironmentDiagnosticsGetDetector` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedEnvironmentDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "detectorValue") + +read, err := client.ManagedEnvironmentDiagnosticsGetDetector(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ManagedEnvironmentsClient.ManagedEnvironmentDiagnosticsListDetectors` + +```go +ctx := context.TODO() +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") + +read, err := client.ManagedEnvironmentDiagnosticsListDetectors(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + ### Example Usage: `ManagedEnvironmentsClient.NamespacesCheckNameAvailability` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/constants.go similarity index 81% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/constants.go index 066bda49bd2b..b720ac1397b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/constants.go @@ -121,3 +121,34 @@ func parseEnvironmentProvisioningState(input string) (*EnvironmentProvisioningSt out := EnvironmentProvisioningState(input) return &out, nil } + +type ManagedCertificateDomainControlValidation string + +const ( + ManagedCertificateDomainControlValidationCNAME ManagedCertificateDomainControlValidation = "CNAME" + ManagedCertificateDomainControlValidationHTTP ManagedCertificateDomainControlValidation = "HTTP" + ManagedCertificateDomainControlValidationTXT ManagedCertificateDomainControlValidation = "TXT" +) + +func PossibleValuesForManagedCertificateDomainControlValidation() []string { + return []string{ + string(ManagedCertificateDomainControlValidationCNAME), + string(ManagedCertificateDomainControlValidationHTTP), + string(ManagedCertificateDomainControlValidationTXT), + } +} + +func parseManagedCertificateDomainControlValidation(input string) (*ManagedCertificateDomainControlValidation, error) { + vals := map[string]ManagedCertificateDomainControlValidation{ + "cname": ManagedCertificateDomainControlValidationCNAME, + "http": ManagedCertificateDomainControlValidationHTTP, + "txt": ManagedCertificateDomainControlValidationTXT, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ManagedCertificateDomainControlValidation(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_certificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/id_certificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_certificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedcertificate.go new file mode 100644 index 000000000000..e862ec48850a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedcertificate.go @@ -0,0 +1,140 @@ +package managedenvironments + +import ( + "fmt" + "strings" + + "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. + +var _ resourceids.ResourceId = ManagedCertificateId{} + +// ManagedCertificateId is a struct representing the Resource ID for a Managed Certificate +type ManagedCertificateId struct { + SubscriptionId string + ResourceGroupName string + ManagedEnvironmentName string + ManagedCertificateName string +} + +// NewManagedCertificateID returns a new ManagedCertificateId struct +func NewManagedCertificateID(subscriptionId string, resourceGroupName string, managedEnvironmentName string, managedCertificateName string) ManagedCertificateId { + return ManagedCertificateId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ManagedEnvironmentName: managedEnvironmentName, + ManagedCertificateName: managedCertificateName, + } +} + +// ParseManagedCertificateID parses 'input' into a ManagedCertificateId +func ParseManagedCertificateID(input string) (*ManagedCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(ManagedCertificateId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ManagedCertificateId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ManagedEnvironmentName, ok = parsed.Parsed["managedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "managedEnvironmentName", *parsed) + } + + if id.ManagedCertificateName, ok = parsed.Parsed["managedCertificateName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "managedCertificateName", *parsed) + } + + return &id, nil +} + +// ParseManagedCertificateIDInsensitively parses 'input' case-insensitively into a ManagedCertificateId +// note: this method should only be used for API response data and not user input +func ParseManagedCertificateIDInsensitively(input string) (*ManagedCertificateId, error) { + parser := resourceids.NewParserFromResourceIdType(ManagedCertificateId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ManagedCertificateId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ManagedEnvironmentName, ok = parsed.Parsed["managedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "managedEnvironmentName", *parsed) + } + + if id.ManagedCertificateName, ok = parsed.Parsed["managedCertificateName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "managedCertificateName", *parsed) + } + + return &id, nil +} + +// ValidateManagedCertificateID checks that 'input' can be parsed as a Managed Certificate ID +func ValidateManagedCertificateID(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 := ParseManagedCertificateID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Managed Certificate ID +func (id ManagedCertificateId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/managedEnvironments/%s/managedCertificates/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ManagedEnvironmentName, id.ManagedCertificateName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Managed Certificate ID +func (id ManagedCertificateId) 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("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.StaticSegment("staticManagedCertificates", "managedCertificates", "managedCertificates"), + resourceids.UserSpecifiedSegment("managedCertificateName", "managedCertificateValue"), + } +} + +// String returns a human-readable description of this Managed Certificate ID +func (id ManagedCertificateId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Managed Environment Name: %q", id.ManagedEnvironmentName), + fmt.Sprintf("Managed Certificate Name: %q", id.ManagedCertificateName), + } + return fmt.Sprintf("Managed Certificate (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/id_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/id_managedenvironment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironmentdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironmentdetector.go new file mode 100644 index 000000000000..b564dfc7b20b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironmentdetector.go @@ -0,0 +1,140 @@ +package managedenvironments + +import ( + "fmt" + "strings" + + "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. + +var _ resourceids.ResourceId = ManagedEnvironmentDetectorId{} + +// ManagedEnvironmentDetectorId is a struct representing the Resource ID for a Managed Environment Detector +type ManagedEnvironmentDetectorId struct { + SubscriptionId string + ResourceGroupName string + ManagedEnvironmentName string + DetectorName string +} + +// NewManagedEnvironmentDetectorID returns a new ManagedEnvironmentDetectorId struct +func NewManagedEnvironmentDetectorID(subscriptionId string, resourceGroupName string, managedEnvironmentName string, detectorName string) ManagedEnvironmentDetectorId { + return ManagedEnvironmentDetectorId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ManagedEnvironmentName: managedEnvironmentName, + DetectorName: detectorName, + } +} + +// ParseManagedEnvironmentDetectorID parses 'input' into a ManagedEnvironmentDetectorId +func ParseManagedEnvironmentDetectorID(input string) (*ManagedEnvironmentDetectorId, error) { + parser := resourceids.NewParserFromResourceIdType(ManagedEnvironmentDetectorId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ManagedEnvironmentDetectorId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ManagedEnvironmentName, ok = parsed.Parsed["managedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "managedEnvironmentName", *parsed) + } + + if id.DetectorName, ok = parsed.Parsed["detectorName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "detectorName", *parsed) + } + + return &id, nil +} + +// ParseManagedEnvironmentDetectorIDInsensitively parses 'input' case-insensitively into a ManagedEnvironmentDetectorId +// note: this method should only be used for API response data and not user input +func ParseManagedEnvironmentDetectorIDInsensitively(input string) (*ManagedEnvironmentDetectorId, error) { + parser := resourceids.NewParserFromResourceIdType(ManagedEnvironmentDetectorId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ManagedEnvironmentDetectorId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ManagedEnvironmentName, ok = parsed.Parsed["managedEnvironmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "managedEnvironmentName", *parsed) + } + + if id.DetectorName, ok = parsed.Parsed["detectorName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "detectorName", *parsed) + } + + return &id, nil +} + +// ValidateManagedEnvironmentDetectorID checks that 'input' can be parsed as a Managed Environment Detector ID +func ValidateManagedEnvironmentDetectorID(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 := ParseManagedEnvironmentDetectorID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Managed Environment Detector ID +func (id ManagedEnvironmentDetectorId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.App/managedEnvironments/%s/detectors/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ManagedEnvironmentName, id.DetectorName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Managed Environment Detector ID +func (id ManagedEnvironmentDetectorId) 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("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.StaticSegment("staticDetectors", "detectors", "detectors"), + resourceids.UserSpecifiedSegment("detectorName", "detectorValue"), + } +} + +// String returns a human-readable description of this Managed Environment Detector ID +func (id ManagedEnvironmentDetectorId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Managed Environment Name: %q", id.ManagedEnvironmentName), + fmt.Sprintf("Detector Name: %q", id.DetectorName), + } + return fmt.Sprintf("Managed Environment Detector (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificatescreateorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatescreateorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificatescreateorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatescreateorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificatesdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesdelete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificatesdelete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesdelete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificatesget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesget_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificatesget_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesget_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificateslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificateslist_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificateslist_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificateslist_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificatesupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_certificatesupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_diagnosticsgetroot_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_diagnosticsgetroot_autorest.go new file mode 100644 index 000000000000..02584c0041a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_diagnosticsgetroot_autorest.go @@ -0,0 +1,69 @@ +package managedenvironments + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// 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 + Model *ManagedEnvironment +} + +// DiagnosticsGetRoot ... +func (c ManagedEnvironmentsClient) DiagnosticsGetRoot(ctx context.Context, id ManagedEnvironmentId) (result DiagnosticsGetRootOperationResponse, err error) { + req, err := c.preparerForDiagnosticsGetRoot(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "DiagnosticsGetRoot", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "DiagnosticsGetRoot", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForDiagnosticsGetRoot(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "DiagnosticsGetRoot", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForDiagnosticsGetRoot prepares the DiagnosticsGetRoot request. +func (c ManagedEnvironmentsClient) preparerForDiagnosticsGetRoot(ctx context.Context, id ManagedEnvironmentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/detectorProperties/rootApi", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForDiagnosticsGetRoot handles the response to the DiagnosticsGetRoot request. The method always +// closes the http.Response Body. +func (c ManagedEnvironmentsClient) responderForDiagnosticsGetRoot(resp *http.Response) (result DiagnosticsGetRootOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_getauthtoken_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_getauthtoken_autorest.go new file mode 100644 index 000000000000..51e0ea24854d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_getauthtoken_autorest.go @@ -0,0 +1,69 @@ +package managedenvironments + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// 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 + Model *EnvironmentAuthToken +} + +// GetAuthToken ... +func (c ManagedEnvironmentsClient) GetAuthToken(ctx context.Context, id ManagedEnvironmentId) (result GetAuthTokenOperationResponse, err error) { + req, err := c.preparerForGetAuthToken(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "GetAuthToken", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "GetAuthToken", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForGetAuthToken(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "GetAuthToken", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForGetAuthToken prepares the GetAuthToken request. +func (c ManagedEnvironmentsClient) preparerForGetAuthToken(ctx context.Context, id ManagedEnvironmentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/getAuthtoken", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForGetAuthToken handles the response to the GetAuthToken request. The method always +// closes the http.Response Body. +func (c ManagedEnvironmentsClient) responderForGetAuthToken(resp *http.Response) (result GetAuthTokenOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_listbyresourcegroup_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbyresourcegroup_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_listbyresourcegroup_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbyresourcegroup_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_listbysubscription_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbysubscription_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_listbysubscription_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbysubscription_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_listworkloadprofilestates_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_listworkloadprofilestates_autorest.go new file mode 100644 index 000000000000..d6e806eecd3e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_listworkloadprofilestates_autorest.go @@ -0,0 +1,186 @@ +package managedenvironments + +import ( + "context" + "fmt" + "net/http" + "net/url" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListWorkloadProfileStatesOperationResponse struct { + HttpResponse *http.Response + Model *[]WorkloadProfileStates + + nextLink *string + nextPageFunc func(ctx context.Context, nextLink string) (ListWorkloadProfileStatesOperationResponse, error) +} + +type ListWorkloadProfileStatesCompleteResult struct { + Items []WorkloadProfileStates +} + +func (r ListWorkloadProfileStatesOperationResponse) HasMore() bool { + return r.nextLink != nil +} + +func (r ListWorkloadProfileStatesOperationResponse) LoadMore(ctx context.Context) (resp ListWorkloadProfileStatesOperationResponse, err error) { + if !r.HasMore() { + err = fmt.Errorf("no more pages returned") + return + } + return r.nextPageFunc(ctx, *r.nextLink) +} + +// ListWorkloadProfileStates ... +func (c ManagedEnvironmentsClient) ListWorkloadProfileStates(ctx context.Context, id ManagedEnvironmentId) (resp ListWorkloadProfileStatesOperationResponse, err error) { + req, err := c.preparerForListWorkloadProfileStates(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ListWorkloadProfileStates", nil, "Failure preparing request") + return + } + + resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ListWorkloadProfileStates", resp.HttpResponse, "Failure sending request") + return + } + + resp, err = c.responderForListWorkloadProfileStates(resp.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ListWorkloadProfileStates", resp.HttpResponse, "Failure responding to request") + return + } + return +} + +// preparerForListWorkloadProfileStates prepares the ListWorkloadProfileStates request. +func (c ManagedEnvironmentsClient) preparerForListWorkloadProfileStates(ctx context.Context, id ManagedEnvironmentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/workloadProfileStates", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// preparerForListWorkloadProfileStatesWithNextLink prepares the ListWorkloadProfileStates request with the given nextLink token. +func (c ManagedEnvironmentsClient) preparerForListWorkloadProfileStatesWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { + uri, err := url.Parse(nextLink) + if err != nil { + return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) + } + queryParameters := map[string]interface{}{} + for k, v := range uri.Query() { + if len(v) == 0 { + continue + } + val := v[0] + val = autorest.Encode("query", val) + queryParameters[k] = val + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(uri.Path), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForListWorkloadProfileStates handles the response to the ListWorkloadProfileStates request. The method always +// closes the http.Response Body. +func (c ManagedEnvironmentsClient) responderForListWorkloadProfileStates(resp *http.Response) (result ListWorkloadProfileStatesOperationResponse, err error) { + type page struct { + Values []WorkloadProfileStates `json:"value"` + NextLink *string `json:"nextLink"` + } + var respObj page + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&respObj), + autorest.ByClosing()) + result.HttpResponse = resp + result.Model = &respObj.Values + result.nextLink = respObj.NextLink + if respObj.NextLink != nil { + result.nextPageFunc = func(ctx context.Context, nextLink string) (result ListWorkloadProfileStatesOperationResponse, err error) { + req, err := c.preparerForListWorkloadProfileStatesWithNextLink(ctx, nextLink) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ListWorkloadProfileStates", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ListWorkloadProfileStates", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForListWorkloadProfileStates(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ListWorkloadProfileStates", result.HttpResponse, "Failure responding to request") + return + } + + return + } + } + return +} + +// ListWorkloadProfileStatesComplete retrieves all of the results into a single object +func (c ManagedEnvironmentsClient) ListWorkloadProfileStatesComplete(ctx context.Context, id ManagedEnvironmentId) (ListWorkloadProfileStatesCompleteResult, error) { + return c.ListWorkloadProfileStatesCompleteMatchingPredicate(ctx, id, WorkloadProfileStatesOperationPredicate{}) +} + +// ListWorkloadProfileStatesCompleteMatchingPredicate retrieves all of the results and then applied the predicate +func (c ManagedEnvironmentsClient) ListWorkloadProfileStatesCompleteMatchingPredicate(ctx context.Context, id ManagedEnvironmentId, predicate WorkloadProfileStatesOperationPredicate) (resp ListWorkloadProfileStatesCompleteResult, err error) { + items := make([]WorkloadProfileStates, 0) + + page, err := c.ListWorkloadProfileStates(ctx, id) + if err != nil { + err = fmt.Errorf("loading the initial page: %+v", err) + return + } + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + for page.HasMore() { + page, err = page.LoadMore(ctx) + if err != nil { + err = fmt.Errorf("loading the next page: %+v", err) + return + } + + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + } + + out := ListWorkloadProfileStatesCompleteResult{ + Items: items, + } + return out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatescreateorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatescreateorupdate_autorest.go new file mode 100644 index 000000000000..f9eb7c6fb1c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatescreateorupdate_autorest.go @@ -0,0 +1,79 @@ +package managedenvironments + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedCertificatesCreateOrUpdateOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// ManagedCertificatesCreateOrUpdate ... +func (c ManagedEnvironmentsClient) ManagedCertificatesCreateOrUpdate(ctx context.Context, id ManagedCertificateId, input ManagedCertificate) (result ManagedCertificatesCreateOrUpdateOperationResponse, err error) { + req, err := c.preparerForManagedCertificatesCreateOrUpdate(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesCreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = c.senderForManagedCertificatesCreateOrUpdate(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesCreateOrUpdate", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// ManagedCertificatesCreateOrUpdateThenPoll performs ManagedCertificatesCreateOrUpdate then polls until it's completed +func (c ManagedEnvironmentsClient) ManagedCertificatesCreateOrUpdateThenPoll(ctx context.Context, id ManagedCertificateId, input ManagedCertificate) error { + result, err := c.ManagedCertificatesCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ManagedCertificatesCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after ManagedCertificatesCreateOrUpdate: %+v", err) + } + + return nil +} + +// preparerForManagedCertificatesCreateOrUpdate prepares the ManagedCertificatesCreateOrUpdate request. +func (c ManagedEnvironmentsClient) preparerForManagedCertificatesCreateOrUpdate(ctx context.Context, id ManagedCertificateId, input ManagedCertificate) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForManagedCertificatesCreateOrUpdate sends the ManagedCertificatesCreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (c ManagedEnvironmentsClient) senderForManagedCertificatesCreateOrUpdate(ctx context.Context, req *http.Request) (future ManagedCertificatesCreateOrUpdateOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesdelete_autorest.go new file mode 100644 index 000000000000..89efe9af8b18 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesdelete_autorest.go @@ -0,0 +1,66 @@ +package managedenvironments + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedCertificatesDeleteOperationResponse struct { + HttpResponse *http.Response +} + +// ManagedCertificatesDelete ... +func (c ManagedEnvironmentsClient) ManagedCertificatesDelete(ctx context.Context, id ManagedCertificateId) (result ManagedCertificatesDeleteOperationResponse, err error) { + req, err := c.preparerForManagedCertificatesDelete(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesDelete", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesDelete", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForManagedCertificatesDelete(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesDelete", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForManagedCertificatesDelete prepares the ManagedCertificatesDelete request. +func (c ManagedEnvironmentsClient) preparerForManagedCertificatesDelete(ctx context.Context, id ManagedCertificateId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsDelete(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForManagedCertificatesDelete handles the response to the ManagedCertificatesDelete request. The method always +// closes the http.Response Body. +func (c ManagedEnvironmentsClient) responderForManagedCertificatesDelete(resp *http.Response) (result ManagedCertificatesDeleteOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusNoContent, http.StatusOK), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesget_autorest.go new file mode 100644 index 000000000000..e0efa49045fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesget_autorest.go @@ -0,0 +1,68 @@ +package managedenvironments + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedCertificatesGetOperationResponse struct { + HttpResponse *http.Response + Model *ManagedCertificate +} + +// ManagedCertificatesGet ... +func (c ManagedEnvironmentsClient) ManagedCertificatesGet(ctx context.Context, id ManagedCertificateId) (result ManagedCertificatesGetOperationResponse, err error) { + req, err := c.preparerForManagedCertificatesGet(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesGet", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesGet", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForManagedCertificatesGet(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesGet", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForManagedCertificatesGet prepares the ManagedCertificatesGet request. +func (c ManagedEnvironmentsClient) preparerForManagedCertificatesGet(ctx context.Context, id ManagedCertificateId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForManagedCertificatesGet handles the response to the ManagedCertificatesGet request. The method always +// closes the http.Response Body. +func (c ManagedEnvironmentsClient) responderForManagedCertificatesGet(resp *http.Response) (result ManagedCertificatesGetOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificateslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificateslist_autorest.go new file mode 100644 index 000000000000..91d9c8c93e0d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificateslist_autorest.go @@ -0,0 +1,186 @@ +package managedenvironments + +import ( + "context" + "fmt" + "net/http" + "net/url" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedCertificatesListOperationResponse struct { + HttpResponse *http.Response + Model *[]ManagedCertificate + + nextLink *string + nextPageFunc func(ctx context.Context, nextLink string) (ManagedCertificatesListOperationResponse, error) +} + +type ManagedCertificatesListCompleteResult struct { + Items []ManagedCertificate +} + +func (r ManagedCertificatesListOperationResponse) HasMore() bool { + return r.nextLink != nil +} + +func (r ManagedCertificatesListOperationResponse) LoadMore(ctx context.Context) (resp ManagedCertificatesListOperationResponse, err error) { + if !r.HasMore() { + err = fmt.Errorf("no more pages returned") + return + } + return r.nextPageFunc(ctx, *r.nextLink) +} + +// ManagedCertificatesList ... +func (c ManagedEnvironmentsClient) ManagedCertificatesList(ctx context.Context, id ManagedEnvironmentId) (resp ManagedCertificatesListOperationResponse, err error) { + req, err := c.preparerForManagedCertificatesList(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesList", nil, "Failure preparing request") + return + } + + resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesList", resp.HttpResponse, "Failure sending request") + return + } + + resp, err = c.responderForManagedCertificatesList(resp.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesList", resp.HttpResponse, "Failure responding to request") + return + } + return +} + +// preparerForManagedCertificatesList prepares the ManagedCertificatesList request. +func (c ManagedEnvironmentsClient) preparerForManagedCertificatesList(ctx context.Context, id ManagedEnvironmentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/managedCertificates", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// preparerForManagedCertificatesListWithNextLink prepares the ManagedCertificatesList request with the given nextLink token. +func (c ManagedEnvironmentsClient) preparerForManagedCertificatesListWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { + uri, err := url.Parse(nextLink) + if err != nil { + return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) + } + queryParameters := map[string]interface{}{} + for k, v := range uri.Query() { + if len(v) == 0 { + continue + } + val := v[0] + val = autorest.Encode("query", val) + queryParameters[k] = val + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(uri.Path), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForManagedCertificatesList handles the response to the ManagedCertificatesList request. The method always +// closes the http.Response Body. +func (c ManagedEnvironmentsClient) responderForManagedCertificatesList(resp *http.Response) (result ManagedCertificatesListOperationResponse, err error) { + type page struct { + Values []ManagedCertificate `json:"value"` + NextLink *string `json:"nextLink"` + } + var respObj page + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&respObj), + autorest.ByClosing()) + result.HttpResponse = resp + result.Model = &respObj.Values + result.nextLink = respObj.NextLink + if respObj.NextLink != nil { + result.nextPageFunc = func(ctx context.Context, nextLink string) (result ManagedCertificatesListOperationResponse, err error) { + req, err := c.preparerForManagedCertificatesListWithNextLink(ctx, nextLink) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesList", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesList", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForManagedCertificatesList(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesList", result.HttpResponse, "Failure responding to request") + return + } + + return + } + } + return +} + +// ManagedCertificatesListComplete retrieves all of the results into a single object +func (c ManagedEnvironmentsClient) ManagedCertificatesListComplete(ctx context.Context, id ManagedEnvironmentId) (ManagedCertificatesListCompleteResult, error) { + return c.ManagedCertificatesListCompleteMatchingPredicate(ctx, id, ManagedCertificateOperationPredicate{}) +} + +// ManagedCertificatesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate +func (c ManagedEnvironmentsClient) ManagedCertificatesListCompleteMatchingPredicate(ctx context.Context, id ManagedEnvironmentId, predicate ManagedCertificateOperationPredicate) (resp ManagedCertificatesListCompleteResult, err error) { + items := make([]ManagedCertificate, 0) + + page, err := c.ManagedCertificatesList(ctx, id) + if err != nil { + err = fmt.Errorf("loading the initial page: %+v", err) + return + } + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + for page.HasMore() { + page, err = page.LoadMore(ctx) + if err != nil { + err = fmt.Errorf("loading the next page: %+v", err) + return + } + + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + } + + out := ManagedCertificatesListCompleteResult{ + Items: items, + } + return out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesupdate_autorest.go new file mode 100644 index 000000000000..f8b8e0e517b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesupdate_autorest.go @@ -0,0 +1,69 @@ +package managedenvironments + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedCertificatesUpdateOperationResponse struct { + HttpResponse *http.Response + Model *ManagedCertificate +} + +// ManagedCertificatesUpdate ... +func (c ManagedEnvironmentsClient) ManagedCertificatesUpdate(ctx context.Context, id ManagedCertificateId, input ManagedCertificatePatch) (result ManagedCertificatesUpdateOperationResponse, err error) { + req, err := c.preparerForManagedCertificatesUpdate(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesUpdate", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesUpdate", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForManagedCertificatesUpdate(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedCertificatesUpdate", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForManagedCertificatesUpdate prepares the ManagedCertificatesUpdate request. +func (c ManagedEnvironmentsClient) preparerForManagedCertificatesUpdate(ctx context.Context, id ManagedCertificateId, input ManagedCertificatePatch) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForManagedCertificatesUpdate handles the response to the ManagedCertificatesUpdate request. The method always +// closes the http.Response Body. +func (c ManagedEnvironmentsClient) responderForManagedCertificatesUpdate(resp *http.Response) (result ManagedCertificatesUpdateOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector_autorest.go new file mode 100644 index 000000000000..a79560ae7d32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector_autorest.go @@ -0,0 +1,68 @@ +package managedenvironments + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedEnvironmentDiagnosticsGetDetectorOperationResponse struct { + HttpResponse *http.Response + Model *Diagnostics +} + +// ManagedEnvironmentDiagnosticsGetDetector ... +func (c ManagedEnvironmentsClient) ManagedEnvironmentDiagnosticsGetDetector(ctx context.Context, id ManagedEnvironmentDetectorId) (result ManagedEnvironmentDiagnosticsGetDetectorOperationResponse, err error) { + req, err := c.preparerForManagedEnvironmentDiagnosticsGetDetector(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedEnvironmentDiagnosticsGetDetector", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedEnvironmentDiagnosticsGetDetector", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForManagedEnvironmentDiagnosticsGetDetector(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedEnvironmentDiagnosticsGetDetector", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForManagedEnvironmentDiagnosticsGetDetector prepares the ManagedEnvironmentDiagnosticsGetDetector request. +func (c ManagedEnvironmentsClient) preparerForManagedEnvironmentDiagnosticsGetDetector(ctx context.Context, id ManagedEnvironmentDetectorId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForManagedEnvironmentDiagnosticsGetDetector handles the response to the ManagedEnvironmentDiagnosticsGetDetector request. The method always +// closes the http.Response Body. +func (c ManagedEnvironmentsClient) responderForManagedEnvironmentDiagnosticsGetDetector(resp *http.Response) (result ManagedEnvironmentDiagnosticsGetDetectorOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors_autorest.go new file mode 100644 index 000000000000..462a41574f66 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors_autorest.go @@ -0,0 +1,69 @@ +package managedenvironments + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedEnvironmentDiagnosticsListDetectorsOperationResponse struct { + HttpResponse *http.Response + Model *DiagnosticsCollection +} + +// ManagedEnvironmentDiagnosticsListDetectors ... +func (c ManagedEnvironmentsClient) ManagedEnvironmentDiagnosticsListDetectors(ctx context.Context, id ManagedEnvironmentId) (result ManagedEnvironmentDiagnosticsListDetectorsOperationResponse, err error) { + req, err := c.preparerForManagedEnvironmentDiagnosticsListDetectors(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedEnvironmentDiagnosticsListDetectors", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedEnvironmentDiagnosticsListDetectors", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForManagedEnvironmentDiagnosticsListDetectors(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "managedenvironments.ManagedEnvironmentsClient", "ManagedEnvironmentDiagnosticsListDetectors", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForManagedEnvironmentDiagnosticsListDetectors prepares the ManagedEnvironmentDiagnosticsListDetectors request. +func (c ManagedEnvironmentsClient) preparerForManagedEnvironmentDiagnosticsListDetectors(ctx context.Context, id ManagedEnvironmentId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/detectors", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForManagedEnvironmentDiagnosticsListDetectors handles the response to the ManagedEnvironmentDiagnosticsListDetectors request. The method always +// closes the http.Response Body. +func (c ManagedEnvironmentsClient) responderForManagedEnvironmentDiagnosticsListDetectors(resp *http.Response) (result ManagedEnvironmentDiagnosticsListDetectorsOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_namespaceschecknameavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_namespaceschecknameavailability_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_namespaceschecknameavailability_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_namespaceschecknameavailability_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_update_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_applogsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_applogsconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_applogsconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_applogsconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_certificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_certificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_certificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_certificatepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_certificatepatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_certificatepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_certificatepatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_certificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_certificateproperties.go similarity index 51% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_certificateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_certificateproperties.go index d6cde77952bd..dc685477167e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_certificateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_certificateproperties.go @@ -10,16 +10,17 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type CertificateProperties struct { - ExpirationDate *string `json:"expirationDate,omitempty"` - IssueDate *string `json:"issueDate,omitempty"` - Issuer *string `json:"issuer,omitempty"` - Password *string `json:"password,omitempty"` - ProvisioningState *CertificateProvisioningState `json:"provisioningState,omitempty"` - PublicKeyHash *string `json:"publicKeyHash,omitempty"` - SubjectName *string `json:"subjectName,omitempty"` - Thumbprint *string `json:"thumbprint,omitempty"` - Valid *bool `json:"valid,omitempty"` - Value *string `json:"value,omitempty"` + ExpirationDate *string `json:"expirationDate,omitempty"` + IssueDate *string `json:"issueDate,omitempty"` + Issuer *string `json:"issuer,omitempty"` + Password *string `json:"password,omitempty"` + ProvisioningState *CertificateProvisioningState `json:"provisioningState,omitempty"` + PublicKeyHash *string `json:"publicKeyHash,omitempty"` + SubjectAlternativeNames *[]string `json:"subjectAlternativeNames,omitempty"` + SubjectName *string `json:"subjectName,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` + Valid *bool `json:"valid,omitempty"` + Value *string `json:"value,omitempty"` } func (o *CertificateProperties) GetExpirationDateAsTime() (*time.Time, error) { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_checknameavailabilityrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_checknameavailabilityrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_checknameavailabilityrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_checknameavailabilityrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_checknameavailabilityresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_checknameavailabilityresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_checknameavailabilityresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_checknameavailabilityresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_customdomainconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_customdomainconfiguration.go new file mode 100644 index 000000000000..567a79cebd0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_customdomainconfiguration.go @@ -0,0 +1,32 @@ +package managedenvironments + +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 CustomDomainConfiguration struct { + CertificatePassword *string `json:"certificatePassword,omitempty"` + CertificateValue *string `json:"certificateValue,omitempty"` + CustomDomainVerificationId *string `json:"customDomainVerificationId,omitempty"` + DnsSuffix *string `json:"dnsSuffix,omitempty"` + ExpirationDate *string `json:"expirationDate,omitempty"` + SubjectName *string `json:"subjectName,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} + +func (o *CustomDomainConfiguration) GetExpirationDateAsTime() (*time.Time, error) { + if o.ExpirationDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.ExpirationDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *CustomDomainConfiguration) SetExpirationDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.ExpirationDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_daprconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_daprconfiguration.go new file mode 100644 index 000000000000..53bd17d37574 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_daprconfiguration.go @@ -0,0 +1,8 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DaprConfiguration struct { + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdataprovidermetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdataprovidermetadata.go new file mode 100644 index 000000000000..4370d2d5424a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdataprovidermetadata.go @@ -0,0 +1,9 @@ +package managedenvironments + +// 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/2022-03-01/containerapps/model_containerappsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdataprovidermetadatapropertybaginlined.go similarity index 72% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappsecret.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdataprovidermetadatapropertybaginlined.go index a2ca83f001b0..4d8963617106 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps/model_containerappsecret.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdataprovidermetadatapropertybaginlined.go @@ -1,9 +1,9 @@ -package containerapps +package managedenvironments // 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 { +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/managedenvironments/model_diagnosticdatatableresponsecolumn.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdatatableresponsecolumn.go new file mode 100644 index 000000000000..ab6b5a67c29e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdatatableresponsecolumn.go @@ -0,0 +1,10 @@ +package managedenvironments + +// 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/managedenvironments/model_diagnosticdatatableresponseobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdatatableresponseobject.go new file mode 100644 index 000000000000..27daeba457de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticdatatableresponseobject.go @@ -0,0 +1,10 @@ +package managedenvironments + +// 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/managedenvironments/model_diagnosticrendering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticrendering.go new file mode 100644 index 000000000000..12c6de84296f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticrendering.go @@ -0,0 +1,11 @@ +package managedenvironments + +// 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/managedenvironments/model_diagnostics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnostics.go new file mode 100644 index 000000000000..206b21e02c0e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnostics.go @@ -0,0 +1,16 @@ +package managedenvironments + +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/managedenvironments/model_diagnosticscollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticscollection.go new file mode 100644 index 000000000000..f7b5214c1aae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticscollection.go @@ -0,0 +1,9 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnosticsCollection struct { + NextLink *string `json:"nextLink,omitempty"` + Value []Diagnostics `json:"value"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsdataapiresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsdataapiresponse.go new file mode 100644 index 000000000000..f03854afb04c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsdataapiresponse.go @@ -0,0 +1,9 @@ +package managedenvironments + +// 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/managedenvironments/model_diagnosticsdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsdefinition.go new file mode 100644 index 000000000000..4b111825f406 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsdefinition.go @@ -0,0 +1,16 @@ +package managedenvironments + +// 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/managedenvironments/model_diagnosticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsproperties.go new file mode 100644 index 000000000000..b8b0624147b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsproperties.go @@ -0,0 +1,11 @@ +package managedenvironments + +// 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/managedenvironments/model_diagnosticsstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsstatus.go new file mode 100644 index 000000000000..bff7d6b2f939 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsstatus.go @@ -0,0 +1,9 @@ +package managedenvironments + +// 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/managedenvironments/model_diagnosticsupporttopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsupporttopic.go new file mode 100644 index 000000000000..3402c1969afd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_diagnosticsupporttopic.go @@ -0,0 +1,9 @@ +package managedenvironments + +// 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/managedenvironments/model_environmentauthtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_environmentauthtoken.go new file mode 100644 index 000000000000..500c9d596430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_environmentauthtoken.go @@ -0,0 +1,18 @@ +package managedenvironments + +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 EnvironmentAuthToken struct { + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *EnvironmentAuthTokenProperties `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/managedenvironments/model_environmentauthtokenproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_environmentauthtokenproperties.go new file mode 100644 index 000000000000..78e904953fd6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_environmentauthtokenproperties.go @@ -0,0 +1,27 @@ +package managedenvironments + +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 EnvironmentAuthTokenProperties struct { + Expires *string `json:"expires,omitempty"` + Token *string `json:"token,omitempty"` +} + +func (o *EnvironmentAuthTokenProperties) GetExpiresAsTime() (*time.Time, error) { + if o.Expires == nil { + return nil, nil + } + return dates.ParseAsFormat(o.Expires, "2006-01-02T15:04:05Z07:00") +} + +func (o *EnvironmentAuthTokenProperties) 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/managedenvironments/model_kedaconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_kedaconfiguration.go new file mode 100644 index 000000000000..16513cb6808a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_kedaconfiguration.go @@ -0,0 +1,8 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KedaConfiguration struct { + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_loganalyticsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_loganalyticsconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_loganalyticsconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_loganalyticsconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificate.go new file mode 100644 index 000000000000..7e1f1e64b10d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificate.go @@ -0,0 +1,18 @@ +package managedenvironments + +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 ManagedCertificate struct { + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *ManagedCertificateProperties `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/managedenvironments/model_managedcertificatepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificatepatch.go new file mode 100644 index 000000000000..4f8a0d6af6b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificatepatch.go @@ -0,0 +1,8 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedCertificatePatch struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificateproperties.go new file mode 100644 index 000000000000..b67b5aec7199 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedcertificateproperties.go @@ -0,0 +1,12 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedCertificateProperties struct { + DomainControlValidation *ManagedCertificateDomainControlValidation `json:"domainControlValidation,omitempty"` + Error *string `json:"error,omitempty"` + ProvisioningState *CertificateProvisioningState `json:"provisioningState,omitempty"` + SubjectName *string `json:"subjectName,omitempty"` + ValidationToken *string `json:"validationToken,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironment.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_managedenvironment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironment.go index a62721d9740c..860e7bc71278 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_managedenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironment.go @@ -9,6 +9,7 @@ import ( type ManagedEnvironment struct { Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *ManagedEnvironmentProperties `json:"properties,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironmentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironmentproperties.go new file mode 100644 index 000000000000..6d43445d0f19 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironmentproperties.go @@ -0,0 +1,23 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedEnvironmentProperties struct { + AppLogsConfiguration *AppLogsConfiguration `json:"appLogsConfiguration,omitempty"` + CustomDomainConfiguration *CustomDomainConfiguration `json:"customDomainConfiguration,omitempty"` + DaprAIConnectionString *string `json:"daprAIConnectionString,omitempty"` + DaprAIInstrumentationKey *string `json:"daprAIInstrumentationKey,omitempty"` + DaprConfiguration *DaprConfiguration `json:"daprConfiguration,omitempty"` + DefaultDomain *string `json:"defaultDomain,omitempty"` + DeploymentErrors *string `json:"deploymentErrors,omitempty"` + EventStreamEndpoint *string `json:"eventStreamEndpoint,omitempty"` + InfrastructureResourceGroup *string `json:"infrastructureResourceGroup,omitempty"` + KedaConfiguration *KedaConfiguration `json:"kedaConfiguration,omitempty"` + PeerAuthentication *ManagedEnvironmentPropertiesPeerAuthentication `json:"peerAuthentication,omitempty"` + ProvisioningState *EnvironmentProvisioningState `json:"provisioningState,omitempty"` + StaticIP *string `json:"staticIp,omitempty"` + VnetConfiguration *VnetConfiguration `json:"vnetConfiguration,omitempty"` + WorkloadProfiles *[]WorkloadProfile `json:"workloadProfiles,omitempty"` + ZoneRedundant *bool `json:"zoneRedundant,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironmentpropertiespeerauthentication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironmentpropertiespeerauthentication.go new file mode 100644 index 000000000000..3a549e035946 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_managedenvironmentpropertiespeerauthentication.go @@ -0,0 +1,8 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedEnvironmentPropertiesPeerAuthentication struct { + Mtls *Mtls `json:"mtls,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_mtls.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_mtls.go new file mode 100644 index 000000000000..a3a25e876956 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_mtls.go @@ -0,0 +1,8 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Mtls struct { + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_vnetconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_vnetconfiguration.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_vnetconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_vnetconfiguration.go index 1cb11fc88149..014a2857454c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/model_vnetconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_vnetconfiguration.go @@ -9,5 +9,4 @@ type VnetConfiguration struct { Internal *bool `json:"internal,omitempty"` PlatformReservedCidr *string `json:"platformReservedCidr,omitempty"` PlatformReservedDnsIP *string `json:"platformReservedDnsIP,omitempty"` - RuntimeSubnetId *string `json:"runtimeSubnetId,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofile.go new file mode 100644 index 000000000000..bcf34bbba5b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofile.go @@ -0,0 +1,11 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkloadProfile struct { + MaximumCount *int64 `json:"maximumCount,omitempty"` + MinimumCount *int64 `json:"minimumCount,omitempty"` + Name string `json:"name"` + WorkloadProfileType string `json:"workloadProfileType"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofilestates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofilestates.go new file mode 100644 index 000000000000..e0db3501de72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofilestates.go @@ -0,0 +1,16 @@ +package managedenvironments + +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 WorkloadProfileStates struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *WorkloadProfileStatesProperties `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/managedenvironments/model_workloadprofilestatesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofilestatesproperties.go new file mode 100644 index 000000000000..e5e7acb2d494 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/model_workloadprofilestatesproperties.go @@ -0,0 +1,10 @@ +package managedenvironments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WorkloadProfileStatesProperties struct { + CurrentCount *int64 `json:"currentCount,omitempty"` + MaximumCount *int64 `json:"maximumCount,omitempty"` + MinimumCount *int64 `json:"minimumCount,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/predicates.go similarity index 53% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/predicates.go index 8a7b008b49c9..4dd46763353b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/predicates.go @@ -31,8 +31,37 @@ func (p CertificateOperationPredicate) Matches(input Certificate) bool { return true } +type ManagedCertificateOperationPredicate struct { + Id *string + Location *string + Name *string + Type *string +} + +func (p ManagedCertificateOperationPredicate) Matches(input ManagedCertificate) 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.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 ManagedEnvironmentOperationPredicate struct { Id *string + Kind *string Location *string Name *string Type *string @@ -44,6 +73,10 @@ func (p ManagedEnvironmentOperationPredicate) Matches(input ManagedEnvironment) return false } + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + if p.Location != nil && *p.Location != input.Location { return false } @@ -58,3 +91,26 @@ func (p ManagedEnvironmentOperationPredicate) Matches(input ManagedEnvironment) return true } + +type WorkloadProfileStatesOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p WorkloadProfileStatesOperationPredicate) Matches(input WorkloadProfileStates) 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/2022-03-01/managedenvironments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/version.go index 1aa6d02f9748..e3b0cf7f9f06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-03-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/managedenvironments/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/README.md index 25185f6fff18..dcea63a4cfa5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages` Documentation -The `managedenvironmentsstorages` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2022-03-01`). +The `managedenvironmentsstorages` SDK allows for interaction with the Azure Resource Manager Service `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-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages" +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/id_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_managedenvironment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/id_managedenvironment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_managedenvironment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/id_storage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_storage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/id_storage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_storage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/model_azurefileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/model_azurefileproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/model_azurefileproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/model_azurefileproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/model_managedenvironmentstorage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/model_managedenvironmentstorage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/model_managedenvironmentstorage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/model_managedenvironmentstorage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/model_managedenvironmentstorageproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/model_managedenvironmentstorageproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/model_managedenvironmentstorageproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/model_managedenvironmentstorageproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/model_managedenvironmentstoragescollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/model_managedenvironmentstoragescollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/model_managedenvironmentstoragescollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/model_managedenvironmentstoragescollection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/version.go index fa52a4869555..75d2da96cefa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-03-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/managedenvironmentsstorages/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index cfc8c212eb80..6ca86d4e37f8 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -215,12 +215,12 @@ github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapp github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate 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/2022-03-01/certificates -github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerapps -github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/containerappsrevisions -github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/daprcomponents -github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironments -github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-03-01/managedenvironmentsstorages +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 +github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages 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 github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools From 68501839610f0c6bef8e6fa61d545edac2ba5b0c Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 3 Aug 2023 12:14:49 +0200 Subject: [PATCH 4/4] containerapps: adding a todo for the new functionality in 2023-05-01 --- internal/services/containerapps/helpers/container_apps.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/services/containerapps/helpers/container_apps.go b/internal/services/containerapps/helpers/container_apps.go index 7f61fd3fd2c9..f088b5508df8 100644 --- a/internal/services/containerapps/helpers/container_apps.go +++ b/internal/services/containerapps/helpers/container_apps.go @@ -2243,7 +2243,11 @@ func UnpackContainerDaprSecretsCollection(input *daprcomponents.DaprSecretsColle result := make([]daprcomponents.Secret, 0) for _, v := range input.Value { - result = append(result, daprcomponents.Secret(v)) + result = append(result, daprcomponents.Secret{ + // TODO: add support for Identity & KeyVaultUrl + Name: v.Name, + Value: v.Value, + }) } return &result