From 09e6615eb95657980130a233b3036e7032da488a Mon Sep 17 00:00:00 2001 From: Heng Lu Date: Thu, 17 Nov 2022 13:49:25 +0800 Subject: [PATCH] `springcloud` - update sdk to 2022-09-01-preview --- go.mod | 2 +- go.sum | 4 +- .../services/springcloud/client/client.go | 2 +- ...spring_cloud_active_deployment_resource.go | 2 +- ...cloud_api_portal_custom_domain_resource.go | 2 +- .../spring_cloud_api_portal_resource.go | 2 +- ...cloud_app_cosmosdb_association_resource.go | 2 +- ...ng_cloud_app_mysql_association_resource.go | 2 +- ...ng_cloud_app_redis_association_resource.go | 2 +- .../springcloud/spring_cloud_app_resource.go | 2 +- .../spring_cloud_build_deployment_resource.go | 2 +- ...pring_cloud_build_pack_binding_resource.go | 2 +- .../spring_cloud_builder_resource.go | 2 +- .../spring_cloud_certificate_resource.go | 2 +- ...ng_cloud_configuration_service_resource.go | 2 +- ...ing_cloud_container_deployment_resource.go | 2 +- .../spring_cloud_custom_domain_resource.go | 2 +- ...ng_cloud_gateway_custom_domain_resource.go | 2 +- .../spring_cloud_gateway_resource.go | 2 +- ...ing_cloud_gateway_route_config_resource.go | 2 +- .../spring_cloud_java_deployment_resource.go | 2 +- .../spring_cloud_service_resource.go | 2 +- .../spring_cloud_storage_resource.go | 2 +- .../appplatform/CHANGELOG.md | 2 - .../2022-05-01-preview/appplatform/_meta.json | 11 - .../appplatform/apiportalcustomdomains.go | 11 +- .../appplatform/apiportals.go | 13 +- .../2022-09-01-preview}/appplatform/apps.go | 19 +- .../appplatform/bindings.go | 13 +- .../appplatform/buildpackbinding.go | 19 +- .../appplatform/buildservice.go | 167 +- .../appplatform/buildserviceagentpool.go | 9 +- .../appplatform/buildservicebuilder.go | 98 +- .../appplatform/certificates.go | 11 +- .../2022-09-01-preview}/appplatform/client.go | 4 +- .../appplatform/configservers.go | 11 +- .../appplatform/configurationservices.go | 13 +- .../appplatform/customdomains.go | 13 +- .../appplatform/deployments.go | 284 ++- .../2022-09-01-preview}/appplatform/enums.go | 161 +- .../appplatform/gatewaycustomdomains.go | 11 +- .../appplatform/gatewayrouteconfigs.go | 11 +- .../appplatform/gateways.go | 13 +- .../2022-09-01-preview}/appplatform/models.go | 1741 +++++++++-------- .../appplatform/monitoringsettings.go | 9 +- .../appplatform/operations.go | 5 +- .../appplatform/runtimeversions.go | 5 +- .../appplatform/serviceregistries.go | 11 +- .../appplatform/services.go | 29 +- .../2022-09-01-preview}/appplatform/skus.go | 5 +- .../appplatform/storages.go | 11 +- .../appplatform/version.go | 2 +- .../sdk/network/2022-05-01/network/models.go | 7 +- vendor/modules.txt | 4 +- 54 files changed, 1654 insertions(+), 1117 deletions(-) delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/CHANGELOG.md delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/_meta.json rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/apiportalcustomdomains.go (99%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/apiportals.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/apps.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/bindings.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/buildpackbinding.go (99%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/buildservice.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/buildserviceagentpool.go (99%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/buildservicebuilder.go (81%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/certificates.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/client.go (69%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/configservers.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/configurationservices.go (99%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/customdomains.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/deployments.go (81%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/enums.go (95%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/gatewaycustomdomains.go (99%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/gatewayrouteconfigs.go (99%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/gateways.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/models.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/monitoringsettings.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/operations.go (99%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/runtimeversions.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/serviceregistries.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/services.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/skus.go (99%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/storages.go (98%) rename vendor/github.com/{Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview => tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview}/appplatform/version.go (90%) diff --git a/go.mod b/go.mod index 94e457cc7c28..a25f90bf0858 100644 --- a/go.mod +++ b/go.mod @@ -24,7 +24,7 @@ require ( github.com/rickb777/date v1.12.5-0.20200422084442-6300e543c4d9 github.com/sergi/go-diff v1.2.0 github.com/tombuildsstuff/giovanni v0.20.0 - github.com/tombuildsstuff/kermit v0.20221104.1101437 + github.com/tombuildsstuff/kermit v0.20221116.1100927 golang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 gopkg.in/yaml.v3 v3.0.1 diff --git a/go.sum b/go.sum index dd0e720c851f..2fab7ac77096 100644 --- a/go.sum +++ b/go.sum @@ -360,8 +360,8 @@ github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8 github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/tombuildsstuff/giovanni v0.20.0 h1:IM/I/iNWMXnPYwcSq8uxV7TKDlv7Nejq0bRK9i6O/C0= github.com/tombuildsstuff/giovanni v0.20.0/go.mod h1:66KVLYma2whJhEdxPSPL3GQHkulhK+C5CluKfHGfPF4= -github.com/tombuildsstuff/kermit v0.20221104.1101437 h1:ZaknJlZgZjQmZGKiLOyJsWhCe2AIUyWoMGqEAk0Epew= -github.com/tombuildsstuff/kermit v0.20221104.1101437/go.mod h1:rLa19LUGz+w1EbdCcj+X4tK/goaTp1hQtdCHK7sbFz4= +github.com/tombuildsstuff/kermit v0.20221116.1100927 h1:P2rA95uYmowBPRw3CjMSH43MqlVc0EJI+5TcwKLwJGs= +github.com/tombuildsstuff/kermit v0.20221116.1100927/go.mod h1:rLa19LUGz+w1EbdCcj+X4tK/goaTp1hQtdCHK7sbFz4= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= diff --git a/internal/services/springcloud/client/client.go b/internal/services/springcloud/client/client.go index 9377d32c7ace..eb8534e8bfb1 100644 --- a/internal/services/springcloud/client/client.go +++ b/internal/services/springcloud/client/client.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/internal/common" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) type Client struct { diff --git a/internal/services/springcloud/spring_cloud_active_deployment_resource.go b/internal/services/springcloud/spring_cloud_active_deployment_resource.go index edc009eb697e..3e73ff8b16ef 100644 --- a/internal/services/springcloud/spring_cloud_active_deployment_resource.go +++ b/internal/services/springcloud/spring_cloud_active_deployment_resource.go @@ -6,13 +6,13 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudActiveDeployment() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_api_portal_custom_domain_resource.go b/internal/services/springcloud/spring_cloud_api_portal_custom_domain_resource.go index 340b049fa1a0..b5d897611d25 100644 --- a/internal/services/springcloud/spring_cloud_api_portal_custom_domain_resource.go +++ b/internal/services/springcloud/spring_cloud_api_portal_custom_domain_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -13,6 +12,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudAPIPortalCustomDomain() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_api_portal_resource.go b/internal/services/springcloud/spring_cloud_api_portal_resource.go index 07b446d70488..eb5a95ab59cc 100644 --- a/internal/services/springcloud/spring_cloud_api_portal_resource.go +++ b/internal/services/springcloud/spring_cloud_api_portal_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudAPIPortal() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_app_cosmosdb_association_resource.go b/internal/services/springcloud/spring_cloud_app_cosmosdb_association_resource.go index b95d9ef2fe7b..f6cc7f5adf54 100644 --- a/internal/services/springcloud/spring_cloud_app_cosmosdb_association_resource.go +++ b/internal/services/springcloud/spring_cloud_app_cosmosdb_association_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" cosmosValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/validate" @@ -15,6 +14,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) const ( diff --git a/internal/services/springcloud/spring_cloud_app_mysql_association_resource.go b/internal/services/springcloud/spring_cloud_app_mysql_association_resource.go index 8f67a8979da2..c69fbea31f45 100644 --- a/internal/services/springcloud/spring_cloud_app_mysql_association_resource.go +++ b/internal/services/springcloud/spring_cloud_app_mysql_association_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" mysqlValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/mysql/validate" @@ -15,6 +14,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) const ( diff --git a/internal/services/springcloud/spring_cloud_app_redis_association_resource.go b/internal/services/springcloud/spring_cloud_app_redis_association_resource.go index 1ec7d4688361..06bcf5112f5f 100644 --- a/internal/services/springcloud/spring_cloud_app_redis_association_resource.go +++ b/internal/services/springcloud/spring_cloud_app_redis_association_resource.go @@ -6,7 +6,6 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" redisValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/redis/validate" @@ -16,6 +15,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) const springCloudAppRedisAssociationKeySSL = "useSsl" diff --git a/internal/services/springcloud/spring_cloud_app_resource.go b/internal/services/springcloud/spring_cloud_app_resource.go index 5c20a2f5841e..e1ee655c8fe8 100644 --- a/internal/services/springcloud/spring_cloud_app_resource.go +++ b/internal/services/springcloud/spring_cloud_app_resource.go @@ -6,7 +6,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -19,6 +18,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudApp() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_build_deployment_resource.go b/internal/services/springcloud/spring_cloud_build_deployment_resource.go index 6cdb22f70da7..f492e5b34c00 100644 --- a/internal/services/springcloud/spring_cloud_build_deployment_resource.go +++ b/internal/services/springcloud/spring_cloud_build_deployment_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudBuildDeployment() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_build_pack_binding_resource.go b/internal/services/springcloud/spring_cloud_build_pack_binding_resource.go index 9a75723d0d8b..f4b0679aa1a2 100644 --- a/internal/services/springcloud/spring_cloud_build_pack_binding_resource.go +++ b/internal/services/springcloud/spring_cloud_build_pack_binding_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudBuildPackBinding() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_builder_resource.go b/internal/services/springcloud/spring_cloud_builder_resource.go index 290a93c4c2ec..95d0907f3340 100644 --- a/internal/services/springcloud/spring_cloud_builder_resource.go +++ b/internal/services/springcloud/spring_cloud_builder_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudBuildServiceBuilder() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_certificate_resource.go b/internal/services/springcloud/spring_cloud_certificate_resource.go index 9648217b0632..a6e45e5747b4 100644 --- a/internal/services/springcloud/spring_cloud_certificate_resource.go +++ b/internal/services/springcloud/spring_cloud_certificate_resource.go @@ -6,7 +6,6 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -18,6 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudCertificate() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_configuration_service_resource.go b/internal/services/springcloud/spring_cloud_configuration_service_resource.go index 2d15d984a48b..ea88c7328fc0 100644 --- a/internal/services/springcloud/spring_cloud_configuration_service_resource.go +++ b/internal/services/springcloud/spring_cloud_configuration_service_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudConfigurationService() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_container_deployment_resource.go b/internal/services/springcloud/spring_cloud_container_deployment_resource.go index 0d4be752d361..a94393647799 100644 --- a/internal/services/springcloud/spring_cloud_container_deployment_resource.go +++ b/internal/services/springcloud/spring_cloud_container_deployment_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudContainerDeployment() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_custom_domain_resource.go b/internal/services/springcloud/spring_cloud_custom_domain_resource.go index af4272c5864a..c070487c6d6d 100644 --- a/internal/services/springcloud/spring_cloud_custom_domain_resource.go +++ b/internal/services/springcloud/spring_cloud_custom_domain_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudCustomDomain() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_gateway_custom_domain_resource.go b/internal/services/springcloud/spring_cloud_gateway_custom_domain_resource.go index e3dc44882e83..dc3945e8323a 100644 --- a/internal/services/springcloud/spring_cloud_gateway_custom_domain_resource.go +++ b/internal/services/springcloud/spring_cloud_gateway_custom_domain_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudGatewayCustomDomain() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_gateway_resource.go b/internal/services/springcloud/spring_cloud_gateway_resource.go index eb99d0e8bd1b..36ed3dfa5b4b 100644 --- a/internal/services/springcloud/spring_cloud_gateway_resource.go +++ b/internal/services/springcloud/spring_cloud_gateway_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudGateway() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_gateway_route_config_resource.go b/internal/services/springcloud/spring_cloud_gateway_route_config_resource.go index 40ffec6ab0b3..5a7e044fcb84 100644 --- a/internal/services/springcloud/spring_cloud_gateway_route_config_resource.go +++ b/internal/services/springcloud/spring_cloud_gateway_route_config_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudGatewayRouteConfig() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_java_deployment_resource.go b/internal/services/springcloud/spring_cloud_java_deployment_resource.go index 788439f21be6..21c1e480c91e 100644 --- a/internal/services/springcloud/spring_cloud_java_deployment_resource.go +++ b/internal/services/springcloud/spring_cloud_java_deployment_resource.go @@ -6,7 +6,6 @@ import ( "strconv" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -15,6 +14,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudJavaDeployment() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_service_resource.go b/internal/services/springcloud/spring_cloud_service_resource.go index 99543b059966..78327a885056 100644 --- a/internal/services/springcloud/spring_cloud_service_resource.go +++ b/internal/services/springcloud/spring_cloud_service_resource.go @@ -7,7 +7,6 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" @@ -22,6 +21,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudService() *pluginsdk.Resource { diff --git a/internal/services/springcloud/spring_cloud_storage_resource.go b/internal/services/springcloud/spring_cloud_storage_resource.go index 280b99c303ca..1eb9f3e9114d 100644 --- a/internal/services/springcloud/spring_cloud_storage_resource.go +++ b/internal/services/springcloud/spring_cloud_storage_resource.go @@ -5,7 +5,6 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/parse" @@ -14,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform" ) func resourceSpringCloudStorage() *pluginsdk.Resource { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/CHANGELOG.md deleted file mode 100644 index 52911e4cc5e4..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Change History - diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/_meta.json b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/_meta.json deleted file mode 100644 index 179e834e9167..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/_meta.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "commit": "a8a52b9e6c305f03c3a4c5411d59fc4454b5b372", - "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", - "tag": "package-preview-2022-05", - "use": "@microsoft.azure/autorest.go@2.1.187", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.187 --tag=package-preview-2022-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=2.0.4421 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", - "additional_properties": { - "additional_options": "--go --verbose --use-onever --version=2.0.4421 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" - } -} \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/apiportalcustomdomains.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/apiportalcustomdomains.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/apiportalcustomdomains.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/apiportalcustomdomains.go index 7db1905ef2e6..8dc00a287d2b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/apiportalcustomdomains.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/apiportalcustomdomains.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // APIPortalCustomDomainsClient is the REST API for Azure Spring Apps @@ -75,7 +76,7 @@ func (client APIPortalCustomDomainsClient) CreateOrUpdatePreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -161,7 +162,7 @@ func (client APIPortalCustomDomainsClient) DeletePreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -251,7 +252,7 @@ func (client APIPortalCustomDomainsClient) GetPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -335,7 +336,7 @@ func (client APIPortalCustomDomainsClient) ListPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/apiportals.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/apiportals.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/apiportals.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/apiportals.go index 95fc3eda6bf6..1772c05c74e4 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/apiportals.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/apiportals.go @@ -8,11 +8,12 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" - "net/http" ) // APIPortalsClient is the REST API for Azure Spring Apps @@ -73,7 +74,7 @@ func (client APIPortalsClient) CreateOrUpdatePreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -157,7 +158,7 @@ func (client APIPortalsClient) DeletePreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -245,7 +246,7 @@ func (client APIPortalsClient) GetPreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -327,7 +328,7 @@ func (client APIPortalsClient) ListPreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -450,7 +451,7 @@ func (client APIPortalsClient) ValidateDomainPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/apps.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/apps.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/apps.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/apps.go index a0340125baef..078c96e0c504 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/apps.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/apps.go @@ -8,11 +8,12 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" - "net/http" ) // AppsClient is the REST API for Azure Spring Apps @@ -96,7 +97,7 @@ func (client AppsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -180,7 +181,7 @@ func (client AppsClient) DeletePreparer(ctx context.Context, resourceGroupName s "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -269,7 +270,7 @@ func (client AppsClient) GetPreparer(ctx context.Context, resourceGroupName stri "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -351,7 +352,7 @@ func (client AppsClient) GetResourceUploadURLPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -433,7 +434,7 @@ func (client AppsClient) ListPreparer(ctx context.Context, resourceGroupName str "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -543,7 +544,7 @@ func (client AppsClient) SetActiveDeploymentsPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -628,7 +629,7 @@ func (client AppsClient) UpdatePreparer(ctx context.Context, resourceGroupName s "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -726,7 +727,7 @@ func (client AppsClient) ValidateDomainPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/bindings.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/bindings.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/bindings.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/bindings.go index 9b96c17bf86d..a608b7c5c6d6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/bindings.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/bindings.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // BindingsClient is the REST API for Azure Spring Apps @@ -74,7 +75,7 @@ func (client BindingsClient) CreateOrUpdatePreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -160,7 +161,7 @@ func (client BindingsClient) DeletePreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -250,7 +251,7 @@ func (client BindingsClient) GetPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -334,7 +335,7 @@ func (client BindingsClient) ListPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -446,7 +447,7 @@ func (client BindingsClient) UpdatePreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildpackbinding.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildpackbinding.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildpackbinding.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildpackbinding.go index 3ec8827e1cef..396d960bf4be 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildpackbinding.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildpackbinding.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // BuildpackBindingClient is the REST API for Azure Spring Apps @@ -69,15 +70,15 @@ func (client BuildpackBindingClient) CreateOrUpdate(ctx context.Context, resourc // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client BuildpackBindingClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, buildpackBindingName string, buildpackBinding BuildpackBindingResource) (*http.Request, error) { pathParameters := map[string]interface{}{ + "buildServiceName": autorest.Encode("path", buildServiceName), "builderName": autorest.Encode("path", builderName), "buildpackBindingName": autorest.Encode("path", buildpackBindingName), - "buildServiceName": autorest.Encode("path", buildServiceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -157,15 +158,15 @@ func (client BuildpackBindingClient) Delete(ctx context.Context, resourceGroupNa // DeletePreparer prepares the Delete request. func (client BuildpackBindingClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, buildpackBindingName string) (*http.Request, error) { pathParameters := map[string]interface{}{ + "buildServiceName": autorest.Encode("path", buildServiceName), "builderName": autorest.Encode("path", builderName), "buildpackBindingName": autorest.Encode("path", buildpackBindingName), - "buildServiceName": autorest.Encode("path", buildServiceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -249,15 +250,15 @@ func (client BuildpackBindingClient) Get(ctx context.Context, resourceGroupName // GetPreparer prepares the Get request. func (client BuildpackBindingClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, buildpackBindingName string) (*http.Request, error) { pathParameters := map[string]interface{}{ + "buildServiceName": autorest.Encode("path", buildServiceName), "builderName": autorest.Encode("path", builderName), "buildpackBindingName": autorest.Encode("path", buildpackBindingName), - "buildServiceName": autorest.Encode("path", buildServiceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -336,14 +337,14 @@ func (client BuildpackBindingClient) List(ctx context.Context, resourceGroupName // ListPreparer prepares the List request. func (client BuildpackBindingClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string) (*http.Request, error) { pathParameters := map[string]interface{}{ - "builderName": autorest.Encode("path", builderName), "buildServiceName": autorest.Encode("path", buildServiceName), + "builderName": autorest.Encode("path", builderName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildservice.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildservice.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildservice.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildservice.go index 9df212a46cc5..5b2bb9c54d7c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildservice.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildservice.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // BuildServiceClient is the REST API for Azure Spring Apps @@ -81,7 +82,7 @@ func (client BuildServiceClient) CreateOrUpdateBuildPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -164,7 +165,7 @@ func (client BuildServiceClient) GetBuildPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -247,7 +248,7 @@ func (client BuildServiceClient) GetBuildResultPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -330,7 +331,7 @@ func (client BuildServiceClient) GetBuildResultLogPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -409,7 +410,7 @@ func (client BuildServiceClient) GetBuildServicePreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -488,7 +489,7 @@ func (client BuildServiceClient) GetResourceUploadURLPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -562,14 +563,14 @@ func (client BuildServiceClient) GetSupportedBuildpack(ctx context.Context, reso // GetSupportedBuildpackPreparer prepares the GetSupportedBuildpack request. func (client BuildServiceClient) GetSupportedBuildpackPreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, buildpackName string) (*http.Request, error) { pathParameters := map[string]interface{}{ - "buildpackName": autorest.Encode("path", buildpackName), "buildServiceName": autorest.Encode("path", buildServiceName), + "buildpackName": autorest.Encode("path", buildpackName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -650,7 +651,7 @@ func (client BuildServiceClient) GetSupportedStackPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -736,7 +737,7 @@ func (client BuildServiceClient) ListBuildResultsPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -804,43 +805,42 @@ func (client BuildServiceClient) ListBuildResultsComplete(ctx context.Context, r return } -// ListBuilds list KPack builds. +// ListBuildServices list build services resource. // Parameters: // resourceGroupName - the name of the resource group that contains the resource. You can obtain this value // from the Azure Resource Manager API or the portal. // serviceName - the name of the Service resource. -// buildServiceName - the name of the build service resource. -func (client BuildServiceClient) ListBuilds(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string) (result BuildCollectionPage, err error) { +func (client BuildServiceClient) ListBuildServices(ctx context.Context, resourceGroupName string, serviceName string) (result BuildServiceCollectionPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceClient.ListBuilds") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceClient.ListBuildServices") defer func() { sc := -1 - if result.bc.Response.Response != nil { - sc = result.bc.Response.Response.StatusCode + if result.bsc.Response.Response != nil { + sc = result.bsc.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } - result.fn = client.listBuildsNextResults - req, err := client.ListBuildsPreparer(ctx, resourceGroupName, serviceName, buildServiceName) + result.fn = client.listBuildServicesNextResults + req, err := client.ListBuildServicesPreparer(ctx, resourceGroupName, serviceName) if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuilds", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuildServices", nil, "Failure preparing request") return } - resp, err := client.ListBuildsSender(req) + resp, err := client.ListBuildServicesSender(req) if err != nil { - result.bc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuilds", resp, "Failure sending request") + result.bsc.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuildServices", resp, "Failure sending request") return } - result.bc, err = client.ListBuildsResponder(resp) + result.bsc, err = client.ListBuildServicesResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuilds", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuildServices", resp, "Failure responding to request") return } - if result.bc.hasNextLink() && result.bc.IsEmpty() { + if result.bsc.hasNextLink() && result.bsc.IsEmpty() { err = result.NextWithContext(ctx) return } @@ -848,16 +848,15 @@ func (client BuildServiceClient) ListBuilds(ctx context.Context, resourceGroupNa return } -// ListBuildsPreparer prepares the ListBuilds request. -func (client BuildServiceClient) ListBuildsPreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string) (*http.Request, error) { +// ListBuildServicesPreparer prepares the ListBuildServices request. +func (client BuildServiceClient) ListBuildServicesPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ - "buildServiceName": autorest.Encode("path", buildServiceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -865,20 +864,20 @@ func (client BuildServiceClient) ListBuildsPreparer(ctx context.Context, resourc preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListBuildsSender sends the ListBuilds request. The method will close the +// ListBuildServicesSender sends the ListBuildServices request. The method will close the // http.Response Body if it receives an error. -func (client BuildServiceClient) ListBuildsSender(req *http.Request) (*http.Response, error) { +func (client BuildServiceClient) ListBuildServicesSender(req *http.Request) (*http.Response, error) { return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } -// ListBuildsResponder handles the response to the ListBuilds request. The method always +// ListBuildServicesResponder handles the response to the ListBuildServices request. The method always // closes the http.Response Body. -func (client BuildServiceClient) ListBuildsResponder(resp *http.Response) (result BuildCollection, err error) { +func (client BuildServiceClient) ListBuildServicesResponder(resp *http.Response) (result BuildServiceCollection, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), @@ -888,31 +887,31 @@ func (client BuildServiceClient) ListBuildsResponder(resp *http.Response) (resul return } -// listBuildsNextResults retrieves the next set of results, if any. -func (client BuildServiceClient) listBuildsNextResults(ctx context.Context, lastResults BuildCollection) (result BuildCollection, err error) { - req, err := lastResults.buildCollectionPreparer(ctx) +// listBuildServicesNextResults retrieves the next set of results, if any. +func (client BuildServiceClient) listBuildServicesNextResults(ctx context.Context, lastResults BuildServiceCollection) (result BuildServiceCollection, err error) { + req, err := lastResults.buildServiceCollectionPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildsNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildServicesNextResults", nil, "Failure preparing next results request") } if req == nil { return } - resp, err := client.ListBuildsSender(req) + resp, err := client.ListBuildServicesSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildsNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildServicesNextResults", resp, "Failure sending next results request") } - result, err = client.ListBuildsResponder(resp) + result, err = client.ListBuildServicesResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildsNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildServicesNextResults", resp, "Failure responding to next results request") } return } -// ListBuildsComplete enumerates all values, automatically crossing page boundaries as required. -func (client BuildServiceClient) ListBuildsComplete(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string) (result BuildCollectionIterator, err error) { +// ListBuildServicesComplete enumerates all values, automatically crossing page boundaries as required. +func (client BuildServiceClient) ListBuildServicesComplete(ctx context.Context, resourceGroupName string, serviceName string) (result BuildServiceCollectionIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceClient.ListBuilds") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceClient.ListBuildServices") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -921,46 +920,47 @@ func (client BuildServiceClient) ListBuildsComplete(ctx context.Context, resourc tracing.EndSpan(ctx, sc, err) }() } - result.page, err = client.ListBuilds(ctx, resourceGroupName, serviceName, buildServiceName) + result.page, err = client.ListBuildServices(ctx, resourceGroupName, serviceName) return } -// ListBuildServices list build services resource. +// ListBuilds list KPack builds. // Parameters: // resourceGroupName - the name of the resource group that contains the resource. You can obtain this value // from the Azure Resource Manager API or the portal. // serviceName - the name of the Service resource. -func (client BuildServiceClient) ListBuildServices(ctx context.Context, resourceGroupName string, serviceName string) (result BuildServiceCollectionPage, err error) { +// buildServiceName - the name of the build service resource. +func (client BuildServiceClient) ListBuilds(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string) (result BuildCollectionPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceClient.ListBuildServices") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceClient.ListBuilds") defer func() { sc := -1 - if result.bsc.Response.Response != nil { - sc = result.bsc.Response.Response.StatusCode + if result.bc.Response.Response != nil { + sc = result.bc.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } - result.fn = client.listBuildServicesNextResults - req, err := client.ListBuildServicesPreparer(ctx, resourceGroupName, serviceName) + result.fn = client.listBuildsNextResults + req, err := client.ListBuildsPreparer(ctx, resourceGroupName, serviceName, buildServiceName) if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuildServices", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuilds", nil, "Failure preparing request") return } - resp, err := client.ListBuildServicesSender(req) + resp, err := client.ListBuildsSender(req) if err != nil { - result.bsc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuildServices", resp, "Failure sending request") + result.bc.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuilds", resp, "Failure sending request") return } - result.bsc, err = client.ListBuildServicesResponder(resp) + result.bc, err = client.ListBuildsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuildServices", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "ListBuilds", resp, "Failure responding to request") return } - if result.bsc.hasNextLink() && result.bsc.IsEmpty() { + if result.bc.hasNextLink() && result.bc.IsEmpty() { err = result.NextWithContext(ctx) return } @@ -968,15 +968,16 @@ func (client BuildServiceClient) ListBuildServices(ctx context.Context, resource return } -// ListBuildServicesPreparer prepares the ListBuildServices request. -func (client BuildServiceClient) ListBuildServicesPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { +// ListBuildsPreparer prepares the ListBuilds request. +func (client BuildServiceClient) ListBuildsPreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ + "buildServiceName": autorest.Encode("path", buildServiceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -984,20 +985,20 @@ func (client BuildServiceClient) ListBuildServicesPreparer(ctx context.Context, preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListBuildServicesSender sends the ListBuildServices request. The method will close the +// ListBuildsSender sends the ListBuilds request. The method will close the // http.Response Body if it receives an error. -func (client BuildServiceClient) ListBuildServicesSender(req *http.Request) (*http.Response, error) { +func (client BuildServiceClient) ListBuildsSender(req *http.Request) (*http.Response, error) { return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } -// ListBuildServicesResponder handles the response to the ListBuildServices request. The method always +// ListBuildsResponder handles the response to the ListBuilds request. The method always // closes the http.Response Body. -func (client BuildServiceClient) ListBuildServicesResponder(resp *http.Response) (result BuildServiceCollection, err error) { +func (client BuildServiceClient) ListBuildsResponder(resp *http.Response) (result BuildCollection, err error) { err = autorest.Respond( resp, azure.WithErrorUnlessStatusCode(http.StatusOK), @@ -1007,31 +1008,31 @@ func (client BuildServiceClient) ListBuildServicesResponder(resp *http.Response) return } -// listBuildServicesNextResults retrieves the next set of results, if any. -func (client BuildServiceClient) listBuildServicesNextResults(ctx context.Context, lastResults BuildServiceCollection) (result BuildServiceCollection, err error) { - req, err := lastResults.buildServiceCollectionPreparer(ctx) +// listBuildsNextResults retrieves the next set of results, if any. +func (client BuildServiceClient) listBuildsNextResults(ctx context.Context, lastResults BuildCollection) (result BuildCollection, err error) { + req, err := lastResults.buildCollectionPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildServicesNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildsNextResults", nil, "Failure preparing next results request") } if req == nil { return } - resp, err := client.ListBuildServicesSender(req) + resp, err := client.ListBuildsSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildServicesNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildsNextResults", resp, "Failure sending next results request") } - result, err = client.ListBuildServicesResponder(resp) + result, err = client.ListBuildsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildServicesNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceClient", "listBuildsNextResults", resp, "Failure responding to next results request") } return } -// ListBuildServicesComplete enumerates all values, automatically crossing page boundaries as required. -func (client BuildServiceClient) ListBuildServicesComplete(ctx context.Context, resourceGroupName string, serviceName string) (result BuildServiceCollectionIterator, err error) { +// ListBuildsComplete enumerates all values, automatically crossing page boundaries as required. +func (client BuildServiceClient) ListBuildsComplete(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string) (result BuildCollectionIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceClient.ListBuildServices") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceClient.ListBuilds") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -1040,7 +1041,7 @@ func (client BuildServiceClient) ListBuildServicesComplete(ctx context.Context, tracing.EndSpan(ctx, sc, err) }() } - result.page, err = client.ListBuildServices(ctx, resourceGroupName, serviceName) + result.page, err = client.ListBuilds(ctx, resourceGroupName, serviceName, buildServiceName) return } @@ -1092,7 +1093,7 @@ func (client BuildServiceClient) ListSupportedBuildpacksPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1171,7 +1172,7 @@ func (client BuildServiceClient) ListSupportedStacksPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildserviceagentpool.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildserviceagentpool.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildserviceagentpool.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildserviceagentpool.go index e9ff56445997..3af8477f23a1 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildserviceagentpool.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildserviceagentpool.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // BuildServiceAgentPoolClient is the REST API for Azure Spring Apps @@ -81,7 +82,7 @@ func (client BuildServiceAgentPoolClient) GetPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -165,7 +166,7 @@ func (client BuildServiceAgentPoolClient) ListPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -277,7 +278,7 @@ func (client BuildServiceAgentPoolClient) UpdatePutPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildservicebuilder.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildservicebuilder.go similarity index 81% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildservicebuilder.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildservicebuilder.go index 0af93994c57a..0be656883e34 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/buildservicebuilder.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/buildservicebuilder.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // BuildServiceBuilderClient is the REST API for Azure Spring Apps @@ -68,14 +69,14 @@ func (client BuildServiceBuilderClient) CreateOrUpdate(ctx context.Context, reso // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client BuildServiceBuilderClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string, builderResource BuilderResource) (*http.Request, error) { pathParameters := map[string]interface{}{ - "builderName": autorest.Encode("path", builderName), "buildServiceName": autorest.Encode("path", buildServiceName), + "builderName": autorest.Encode("path", builderName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -154,14 +155,14 @@ func (client BuildServiceBuilderClient) Delete(ctx context.Context, resourceGrou // DeletePreparer prepares the Delete request. func (client BuildServiceBuilderClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string) (*http.Request, error) { pathParameters := map[string]interface{}{ - "builderName": autorest.Encode("path", builderName), "buildServiceName": autorest.Encode("path", buildServiceName), + "builderName": autorest.Encode("path", builderName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -244,14 +245,14 @@ func (client BuildServiceBuilderClient) Get(ctx context.Context, resourceGroupNa // GetPreparer prepares the Get request. func (client BuildServiceBuilderClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string) (*http.Request, error) { pathParameters := map[string]interface{}{ - "builderName": autorest.Encode("path", builderName), "buildServiceName": autorest.Encode("path", buildServiceName), + "builderName": autorest.Encode("path", builderName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "serviceName": autorest.Encode("path", serviceName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -335,7 +336,7 @@ func (client BuildServiceBuilderClient) ListPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -402,3 +403,84 @@ func (client BuildServiceBuilderClient) ListComplete(ctx context.Context, resour result.page, err = client.List(ctx, resourceGroupName, serviceName, buildServiceName) return } + +// ListDeployments list deployments that are using the builder. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// serviceName - the name of the Service resource. +// buildServiceName - the name of the build service resource. +// builderName - the name of the builder resource. +func (client BuildServiceBuilderClient) ListDeployments(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string) (result DeploymentList, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceBuilderClient.ListDeployments") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListDeploymentsPreparer(ctx, resourceGroupName, serviceName, buildServiceName, builderName) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceBuilderClient", "ListDeployments", nil, "Failure preparing request") + return + } + + resp, err := client.ListDeploymentsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceBuilderClient", "ListDeployments", resp, "Failure sending request") + return + } + + result, err = client.ListDeploymentsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceBuilderClient", "ListDeployments", resp, "Failure responding to request") + return + } + + return +} + +// ListDeploymentsPreparer prepares the ListDeployments request. +func (client BuildServiceBuilderClient) ListDeploymentsPreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, builderName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "buildServiceName": autorest.Encode("path", buildServiceName), + "builderName": autorest.Encode("path", builderName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2022-09-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListDeploymentsSender sends the ListDeployments request. The method will close the +// http.Response Body if it receives an error. +func (client BuildServiceBuilderClient) ListDeploymentsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListDeploymentsResponder handles the response to the ListDeployments request. The method always +// closes the http.Response Body. +func (client BuildServiceBuilderClient) ListDeploymentsResponder(resp *http.Response) (result DeploymentList, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/certificates.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/certificates.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/certificates.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/certificates.go index 28d323fcb2a9..26ad8a738fa3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/certificates.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/certificates.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // CertificatesClient is the REST API for Azure Spring Apps @@ -72,7 +73,7 @@ func (client CertificatesClient) CreateOrUpdatePreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -156,7 +157,7 @@ func (client CertificatesClient) DeletePreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -244,7 +245,7 @@ func (client CertificatesClient) GetPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -326,7 +327,7 @@ func (client CertificatesClient) ListPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/client.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/client.go similarity index 69% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/client.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/client.go index b6945472a4df..c4cf91ed7fc6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/client.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/client.go @@ -1,6 +1,4 @@ -// Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details. -// -// Package appplatform implements the Azure ARM Appplatform service API version 2022-05-01-preview. +// Package appplatform implements the Azure ARM Appplatform service API version 2022-09-01-preview. // // REST API for Azure Spring Apps package appplatform diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/configservers.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/configservers.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/configservers.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/configservers.go index d810a1543abc..f116d48dbcf1 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/configservers.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/configservers.go @@ -8,11 +8,12 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" - "net/http" ) // ConfigServersClient is the REST API for Azure Spring Apps @@ -77,7 +78,7 @@ func (client ConfigServersClient) GetPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -148,7 +149,7 @@ func (client ConfigServersClient) UpdatePatchPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -242,7 +243,7 @@ func (client ConfigServersClient) UpdatePutPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -332,7 +333,7 @@ func (client ConfigServersClient) ValidatePreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/configurationservices.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/configurationservices.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/configurationservices.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/configurationservices.go index 76e475672863..7bf2ce495d4f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/configurationservices.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/configurationservices.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // ConfigurationServicesClient is the REST API for Azure Spring Apps @@ -74,7 +75,7 @@ func (client ConfigurationServicesClient) CreateOrUpdatePreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -158,7 +159,7 @@ func (client ConfigurationServicesClient) DeletePreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -246,7 +247,7 @@ func (client ConfigurationServicesClient) GetPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -328,7 +329,7 @@ func (client ConfigurationServicesClient) ListPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -438,7 +439,7 @@ func (client ConfigurationServicesClient) ValidatePreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/customdomains.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/customdomains.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/customdomains.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/customdomains.go index 7f628c6cd739..afc11553aa0b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/customdomains.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/customdomains.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // CustomDomainsClient is the REST API for Azure Spring Apps @@ -74,7 +75,7 @@ func (client CustomDomainsClient) CreateOrUpdatePreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -160,7 +161,7 @@ func (client CustomDomainsClient) DeletePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -250,7 +251,7 @@ func (client CustomDomainsClient) GetPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -334,7 +335,7 @@ func (client CustomDomainsClient) ListPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -446,7 +447,7 @@ func (client CustomDomainsClient) UpdatePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/deployments.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/deployments.go similarity index 81% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/deployments.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/deployments.go index e1a456e48c0e..83c2a83f1a3f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/deployments.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/deployments.go @@ -8,11 +8,12 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" - "net/http" ) // DeploymentsClient is the REST API for Azure Spring Apps @@ -90,7 +91,7 @@ func (client DeploymentsClient) CreateOrUpdatePreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -176,7 +177,7 @@ func (client DeploymentsClient) DeletePreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -216,6 +217,180 @@ func (client DeploymentsClient) DeleteResponder(resp *http.Response) (result aut return } +// DisableRemoteDebugging disable remote debugging. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// serviceName - the name of the Service resource. +// appName - the name of the App resource. +// deploymentName - the name of the Deployment resource. +func (client DeploymentsClient) DisableRemoteDebugging(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string) (result DeploymentsDisableRemoteDebuggingFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.DisableRemoteDebugging") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DisableRemoteDebuggingPreparer(ctx, resourceGroupName, serviceName, appName, deploymentName) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "DisableRemoteDebugging", nil, "Failure preparing request") + return + } + + result, err = client.DisableRemoteDebuggingSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "DisableRemoteDebugging", result.Response(), "Failure sending request") + return + } + + return +} + +// DisableRemoteDebuggingPreparer prepares the DisableRemoteDebugging request. +func (client DeploymentsClient) DisableRemoteDebuggingPreparer(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "appName": autorest.Encode("path", appName), + "deploymentName": autorest.Encode("path", deploymentName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2022-09-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DisableRemoteDebuggingSender sends the DisableRemoteDebugging request. The method will close the +// http.Response Body if it receives an error. +func (client DeploymentsClient) DisableRemoteDebuggingSender(req *http.Request) (future DeploymentsDisableRemoteDebuggingFuture, err error) { + var resp *http.Response + future.FutureAPI = &azure.Future{} + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// DisableRemoteDebuggingResponder handles the response to the DisableRemoteDebugging request. The method always +// closes the http.Response Body. +func (client DeploymentsClient) DisableRemoteDebuggingResponder(resp *http.Response) (result RemoteDebugging, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// EnableRemoteDebugging enable remote debugging. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// serviceName - the name of the Service resource. +// appName - the name of the App resource. +// deploymentName - the name of the Deployment resource. +// remoteDebuggingPayload - parameters for enable remote debugging +func (client DeploymentsClient) EnableRemoteDebugging(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, remoteDebuggingPayload *RemoteDebuggingPayload) (result DeploymentsEnableRemoteDebuggingFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.EnableRemoteDebugging") + defer func() { + sc := -1 + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.EnableRemoteDebuggingPreparer(ctx, resourceGroupName, serviceName, appName, deploymentName, remoteDebuggingPayload) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "EnableRemoteDebugging", nil, "Failure preparing request") + return + } + + result, err = client.EnableRemoteDebuggingSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "EnableRemoteDebugging", result.Response(), "Failure sending request") + return + } + + return +} + +// EnableRemoteDebuggingPreparer prepares the EnableRemoteDebugging request. +func (client DeploymentsClient) EnableRemoteDebuggingPreparer(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string, remoteDebuggingPayload *RemoteDebuggingPayload) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "appName": autorest.Encode("path", appName), + "deploymentName": autorest.Encode("path", deploymentName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2022-09-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if remoteDebuggingPayload != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(remoteDebuggingPayload)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// EnableRemoteDebuggingSender sends the EnableRemoteDebugging request. The method will close the +// http.Response Body if it receives an error. +func (client DeploymentsClient) EnableRemoteDebuggingSender(req *http.Request) (future DeploymentsEnableRemoteDebuggingFuture, err error) { + var resp *http.Response + future.FutureAPI = &azure.Future{} + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + var azf azure.Future + azf, err = azure.NewFutureFromResponse(resp) + future.FutureAPI = &azf + future.Result = future.result + return +} + +// EnableRemoteDebuggingResponder handles the response to the EnableRemoteDebugging request. The method always +// closes the http.Response Body. +func (client DeploymentsClient) EnableRemoteDebuggingResponder(resp *http.Response) (result RemoteDebugging, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // GenerateHeapDump generate Heap Dump // Parameters: // resourceGroupName - the name of the resource group that contains the resource. You can obtain this value @@ -260,7 +435,7 @@ func (client DeploymentsClient) GenerateHeapDumpPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -346,7 +521,7 @@ func (client DeploymentsClient) GenerateThreadDumpPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -438,7 +613,7 @@ func (client DeploymentsClient) GetPreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -519,7 +694,7 @@ func (client DeploymentsClient) GetLogFileURLPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -550,6 +725,87 @@ func (client DeploymentsClient) GetLogFileURLResponder(resp *http.Response) (res return } +// GetRemoteDebuggingConfig get remote debugging config. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// serviceName - the name of the Service resource. +// appName - the name of the App resource. +// deploymentName - the name of the Deployment resource. +func (client DeploymentsClient) GetRemoteDebuggingConfig(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string) (result RemoteDebugging, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.GetRemoteDebuggingConfig") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetRemoteDebuggingConfigPreparer(ctx, resourceGroupName, serviceName, appName, deploymentName) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "GetRemoteDebuggingConfig", nil, "Failure preparing request") + return + } + + resp, err := client.GetRemoteDebuggingConfigSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "GetRemoteDebuggingConfig", resp, "Failure sending request") + return + } + + result, err = client.GetRemoteDebuggingConfigResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsClient", "GetRemoteDebuggingConfig", resp, "Failure responding to request") + return + } + + return +} + +// GetRemoteDebuggingConfigPreparer prepares the GetRemoteDebuggingConfig request. +func (client DeploymentsClient) GetRemoteDebuggingConfigPreparer(ctx context.Context, resourceGroupName string, serviceName string, appName string, deploymentName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "appName": autorest.Encode("path", appName), + "deploymentName": autorest.Encode("path", deploymentName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2022-09-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetRemoteDebuggingConfigSender sends the GetRemoteDebuggingConfig request. The method will close the +// http.Response Body if it receives an error. +func (client DeploymentsClient) GetRemoteDebuggingConfigSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// GetRemoteDebuggingConfigResponder handles the response to the GetRemoteDebuggingConfig request. The method always +// closes the http.Response Body. +func (client DeploymentsClient) GetRemoteDebuggingConfigResponder(resp *http.Response) (result RemoteDebugging, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // List handles requests to list all resources in an App. // Parameters: // resourceGroupName - the name of the resource group that contains the resource. You can obtain this value @@ -604,7 +860,7 @@ func (client DeploymentsClient) ListPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -727,7 +983,7 @@ func (client DeploymentsClient) ListForClusterPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -841,7 +1097,7 @@ func (client DeploymentsClient) RestartPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -924,7 +1180,7 @@ func (client DeploymentsClient) StartPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1008,7 +1264,7 @@ func (client DeploymentsClient) StartJFRPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1093,7 +1349,7 @@ func (client DeploymentsClient) StopPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1177,7 +1433,7 @@ func (client DeploymentsClient) UpdatePreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/enums.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/enums.go similarity index 95% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/enums.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/enums.go index 2408ff5bec74..360c663d3288 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/enums.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/enums.go @@ -6,19 +6,6 @@ package appplatform // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ActionType enumerates the values for action type. -type ActionType string - -const ( - // ActionTypeInternal ... - ActionTypeInternal ActionType = "Internal" -) - -// PossibleActionTypeValues returns an array of possible values for the ActionType const type. -func PossibleActionTypeValues() []ActionType { - return []ActionType{ActionTypeInternal} -} - // APIPortalProvisioningState enumerates the values for api portal provisioning state. type APIPortalProvisioningState string @@ -40,6 +27,19 @@ func PossibleAPIPortalProvisioningStateValues() []APIPortalProvisioningState { return []APIPortalProvisioningState{APIPortalProvisioningStateCreating, APIPortalProvisioningStateDeleting, APIPortalProvisioningStateFailed, APIPortalProvisioningStateSucceeded, APIPortalProvisioningStateUpdating} } +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // ActionTypeInternal ... + ActionTypeInternal ActionType = "Internal" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{ActionTypeInternal} +} + // AppResourceProvisioningState enumerates the values for app resource provisioning state. type AppResourceProvisioningState string @@ -61,6 +61,21 @@ func PossibleAppResourceProvisioningStateValues() []AppResourceProvisioningState return []AppResourceProvisioningState{AppResourceProvisioningStateCreating, AppResourceProvisioningStateDeleting, AppResourceProvisioningStateFailed, AppResourceProvisioningStateSucceeded, AppResourceProvisioningStateUpdating} } +// BackendProtocol enumerates the values for backend protocol. +type BackendProtocol string + +const ( + // BackendProtocolDefault ... + BackendProtocolDefault BackendProtocol = "Default" + // BackendProtocolGRPC ... + BackendProtocolGRPC BackendProtocol = "GRPC" +) + +// PossibleBackendProtocolValues returns an array of possible values for the BackendProtocol const type. +func PossibleBackendProtocolValues() []BackendProtocol { + return []BackendProtocol{BackendProtocolDefault, BackendProtocolGRPC} +} + // BindingType enumerates the values for binding type. type BindingType string @@ -84,48 +99,6 @@ func PossibleBindingTypeValues() []BindingType { return []BindingType{BindingTypeApacheSkyWalking, BindingTypeAppDynamics, BindingTypeApplicationInsights, BindingTypeDynatrace, BindingTypeElasticAPM, BindingTypeNewRelic} } -// BuilderProvisioningState enumerates the values for builder provisioning state. -type BuilderProvisioningState string - -const ( - // BuilderProvisioningStateCreating ... - BuilderProvisioningStateCreating BuilderProvisioningState = "Creating" - // BuilderProvisioningStateDeleting ... - BuilderProvisioningStateDeleting BuilderProvisioningState = "Deleting" - // BuilderProvisioningStateFailed ... - BuilderProvisioningStateFailed BuilderProvisioningState = "Failed" - // BuilderProvisioningStateSucceeded ... - BuilderProvisioningStateSucceeded BuilderProvisioningState = "Succeeded" - // BuilderProvisioningStateUpdating ... - BuilderProvisioningStateUpdating BuilderProvisioningState = "Updating" -) - -// PossibleBuilderProvisioningStateValues returns an array of possible values for the BuilderProvisioningState const type. -func PossibleBuilderProvisioningStateValues() []BuilderProvisioningState { - return []BuilderProvisioningState{BuilderProvisioningStateCreating, BuilderProvisioningStateDeleting, BuilderProvisioningStateFailed, BuilderProvisioningStateSucceeded, BuilderProvisioningStateUpdating} -} - -// BuildpackBindingProvisioningState enumerates the values for buildpack binding provisioning state. -type BuildpackBindingProvisioningState string - -const ( - // BuildpackBindingProvisioningStateCreating ... - BuildpackBindingProvisioningStateCreating BuildpackBindingProvisioningState = "Creating" - // BuildpackBindingProvisioningStateDeleting ... - BuildpackBindingProvisioningStateDeleting BuildpackBindingProvisioningState = "Deleting" - // BuildpackBindingProvisioningStateFailed ... - BuildpackBindingProvisioningStateFailed BuildpackBindingProvisioningState = "Failed" - // BuildpackBindingProvisioningStateSucceeded ... - BuildpackBindingProvisioningStateSucceeded BuildpackBindingProvisioningState = "Succeeded" - // BuildpackBindingProvisioningStateUpdating ... - BuildpackBindingProvisioningStateUpdating BuildpackBindingProvisioningState = "Updating" -) - -// PossibleBuildpackBindingProvisioningStateValues returns an array of possible values for the BuildpackBindingProvisioningState const type. -func PossibleBuildpackBindingProvisioningStateValues() []BuildpackBindingProvisioningState { - return []BuildpackBindingProvisioningState{BuildpackBindingProvisioningStateCreating, BuildpackBindingProvisioningStateDeleting, BuildpackBindingProvisioningStateFailed, BuildpackBindingProvisioningStateSucceeded, BuildpackBindingProvisioningStateUpdating} -} - // BuildProvisioningState enumerates the values for build provisioning state. type BuildProvisioningState string @@ -189,6 +162,48 @@ func PossibleBuildServiceProvisioningStateValues() []BuildServiceProvisioningSta return []BuildServiceProvisioningState{BuildServiceProvisioningStateCreating, BuildServiceProvisioningStateDeleting, BuildServiceProvisioningStateFailed, BuildServiceProvisioningStateSucceeded, BuildServiceProvisioningStateUpdating} } +// BuilderProvisioningState enumerates the values for builder provisioning state. +type BuilderProvisioningState string + +const ( + // BuilderProvisioningStateCreating ... + BuilderProvisioningStateCreating BuilderProvisioningState = "Creating" + // BuilderProvisioningStateDeleting ... + BuilderProvisioningStateDeleting BuilderProvisioningState = "Deleting" + // BuilderProvisioningStateFailed ... + BuilderProvisioningStateFailed BuilderProvisioningState = "Failed" + // BuilderProvisioningStateSucceeded ... + BuilderProvisioningStateSucceeded BuilderProvisioningState = "Succeeded" + // BuilderProvisioningStateUpdating ... + BuilderProvisioningStateUpdating BuilderProvisioningState = "Updating" +) + +// PossibleBuilderProvisioningStateValues returns an array of possible values for the BuilderProvisioningState const type. +func PossibleBuilderProvisioningStateValues() []BuilderProvisioningState { + return []BuilderProvisioningState{BuilderProvisioningStateCreating, BuilderProvisioningStateDeleting, BuilderProvisioningStateFailed, BuilderProvisioningStateSucceeded, BuilderProvisioningStateUpdating} +} + +// BuildpackBindingProvisioningState enumerates the values for buildpack binding provisioning state. +type BuildpackBindingProvisioningState string + +const ( + // BuildpackBindingProvisioningStateCreating ... + BuildpackBindingProvisioningStateCreating BuildpackBindingProvisioningState = "Creating" + // BuildpackBindingProvisioningStateDeleting ... + BuildpackBindingProvisioningStateDeleting BuildpackBindingProvisioningState = "Deleting" + // BuildpackBindingProvisioningStateFailed ... + BuildpackBindingProvisioningStateFailed BuildpackBindingProvisioningState = "Failed" + // BuildpackBindingProvisioningStateSucceeded ... + BuildpackBindingProvisioningStateSucceeded BuildpackBindingProvisioningState = "Succeeded" + // BuildpackBindingProvisioningStateUpdating ... + BuildpackBindingProvisioningStateUpdating BuildpackBindingProvisioningState = "Updating" +) + +// PossibleBuildpackBindingProvisioningStateValues returns an array of possible values for the BuildpackBindingProvisioningState const type. +func PossibleBuildpackBindingProvisioningStateValues() []BuildpackBindingProvisioningState { + return []BuildpackBindingProvisioningState{BuildpackBindingProvisioningStateCreating, BuildpackBindingProvisioningStateDeleting, BuildpackBindingProvisioningStateFailed, BuildpackBindingProvisioningStateSucceeded, BuildpackBindingProvisioningStateUpdating} +} + // CertificateResourceProvisioningState enumerates the values for certificate resource provisioning state. type CertificateResourceProvisioningState string @@ -347,6 +362,21 @@ func PossibleGatewayProvisioningStateValues() []GatewayProvisioningState { return []GatewayProvisioningState{GatewayProvisioningStateCreating, GatewayProvisioningStateDeleting, GatewayProvisioningStateFailed, GatewayProvisioningStateSucceeded, GatewayProvisioningStateUpdating} } +// GatewayRouteConfigProtocol enumerates the values for gateway route config protocol. +type GatewayRouteConfigProtocol string + +const ( + // GatewayRouteConfigProtocolHTTP ... + GatewayRouteConfigProtocolHTTP GatewayRouteConfigProtocol = "HTTP" + // GatewayRouteConfigProtocolHTTPS ... + GatewayRouteConfigProtocolHTTPS GatewayRouteConfigProtocol = "HTTPS" +) + +// PossibleGatewayRouteConfigProtocolValues returns an array of possible values for the GatewayRouteConfigProtocol const type. +func PossibleGatewayRouteConfigProtocolValues() []GatewayRouteConfigProtocol { + return []GatewayRouteConfigProtocol{GatewayRouteConfigProtocolHTTP, GatewayRouteConfigProtocolHTTPS} +} + // HTTPSchemeType enumerates the values for http scheme type. type HTTPSchemeType string @@ -465,10 +495,10 @@ const ( ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed ... ProvisioningStateFailed ProvisioningState = "Failed" - // ProvisioningStateMoved ... - ProvisioningStateMoved ProvisioningState = "Moved" // ProvisioningStateMoveFailed ... ProvisioningStateMoveFailed ProvisioningState = "MoveFailed" + // ProvisioningStateMoved ... + ProvisioningStateMoved ProvisioningState = "Moved" // ProvisioningStateMoving ... ProvisioningStateMoving ProvisioningState = "Moving" // ProvisioningStateStarting ... @@ -483,7 +513,7 @@ const ( // PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. func PossibleProvisioningStateValues() []ProvisioningState { - return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleted, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateMoved, ProvisioningStateMoveFailed, ProvisioningStateMoving, ProvisioningStateStarting, ProvisioningStateStopping, ProvisioningStateSucceeded, ProvisioningStateUpdating} + return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleted, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateMoveFailed, ProvisioningStateMoved, ProvisioningStateMoving, ProvisioningStateStarting, ProvisioningStateStopping, ProvisioningStateSucceeded, ProvisioningStateUpdating} } // ResourceSkuRestrictionsReasonCode enumerates the values for resource sku restrictions reason code. @@ -537,6 +567,21 @@ func PossibleServiceRegistryProvisioningStateValues() []ServiceRegistryProvision return []ServiceRegistryProvisioningState{ServiceRegistryProvisioningStateCreating, ServiceRegistryProvisioningStateDeleting, ServiceRegistryProvisioningStateFailed, ServiceRegistryProvisioningStateSucceeded, ServiceRegistryProvisioningStateUpdating} } +// SessionAffinity enumerates the values for session affinity. +type SessionAffinity string + +const ( + // SessionAffinityCookie ... + SessionAffinityCookie SessionAffinity = "Cookie" + // SessionAffinityNone ... + SessionAffinityNone SessionAffinity = "None" +) + +// PossibleSessionAffinityValues returns an array of possible values for the SessionAffinity const type. +func PossibleSessionAffinityValues() []SessionAffinity { + return []SessionAffinity{SessionAffinityCookie, SessionAffinityNone} +} + // SkuScaleType enumerates the values for sku scale type. type SkuScaleType string diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/gatewaycustomdomains.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/gatewaycustomdomains.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/gatewaycustomdomains.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/gatewaycustomdomains.go index 2ba9a4e5b900..d46bc88a3043 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/gatewaycustomdomains.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/gatewaycustomdomains.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // GatewayCustomDomainsClient is the REST API for Azure Spring Apps @@ -75,7 +76,7 @@ func (client GatewayCustomDomainsClient) CreateOrUpdatePreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -161,7 +162,7 @@ func (client GatewayCustomDomainsClient) DeletePreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -251,7 +252,7 @@ func (client GatewayCustomDomainsClient) GetPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -335,7 +336,7 @@ func (client GatewayCustomDomainsClient) ListPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/gatewayrouteconfigs.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/gatewayrouteconfigs.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/gatewayrouteconfigs.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/gatewayrouteconfigs.go index 1f80054fa1a1..9b564de9ebef 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/gatewayrouteconfigs.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/gatewayrouteconfigs.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // GatewayRouteConfigsClient is the REST API for Azure Spring Apps @@ -76,7 +77,7 @@ func (client GatewayRouteConfigsClient) CreateOrUpdatePreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -162,7 +163,7 @@ func (client GatewayRouteConfigsClient) DeletePreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -252,7 +253,7 @@ func (client GatewayRouteConfigsClient) GetPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -336,7 +337,7 @@ func (client GatewayRouteConfigsClient) ListPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/gateways.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/gateways.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/gateways.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/gateways.go index 31fb4c9e4aae..ffc4ae99b4f1 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/gateways.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/gateways.go @@ -8,11 +8,12 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" - "net/http" ) // GatewaysClient is the REST API for Azure Spring Apps @@ -73,7 +74,7 @@ func (client GatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -157,7 +158,7 @@ func (client GatewaysClient) DeletePreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -245,7 +246,7 @@ func (client GatewaysClient) GetPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -327,7 +328,7 @@ func (client GatewaysClient) ListPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -450,7 +451,7 @@ func (client GatewaysClient) ValidateDomainPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/models.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/models.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/models.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/models.go index 1a8d33624b94..6264caf2155a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/models.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/models.go @@ -9,23 +9,17 @@ package appplatform import ( "context" "encoding/json" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/date" "github.com/Azure/go-autorest/autorest/to" "github.com/Azure/go-autorest/tracing" - "net/http" ) // The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform" - -// ActiveDeploymentCollection object that includes an array of Deployment resource name and set them as -// active. -type ActiveDeploymentCollection struct { - // ActiveDeploymentNames - Collection of Deployment name. - ActiveDeploymentNames *[]string `json:"activeDeploymentNames,omitempty"` -} +const fqdn = "home/runner/work/kermit/kermit/sdk/appplatform/2022-09-01-preview/appplatform" // APIPortalCustomDomainProperties the properties of custom domain for API portal type APIPortalCustomDomainProperties struct { @@ -641,16 +635,11 @@ func (future *APIPortalsDeleteFuture) result(client APIPortalsClient) (ar autore return } -// ApplicationInsightsAgentVersions application Insights agent versions properties payload -type ApplicationInsightsAgentVersions struct { - // Java - READ-ONLY; Indicates the version of application insight java agent - Java *string `json:"java,omitempty"` -} - -// MarshalJSON is the custom marshaler for ApplicationInsightsAgentVersions. -func (aiav ApplicationInsightsAgentVersions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) +// ActiveDeploymentCollection object that includes an array of Deployment resource name and set them as +// active. +type ActiveDeploymentCollection struct { + // ActiveDeploymentNames - Collection of Deployment name. + ActiveDeploymentNames *[]string `json:"activeDeploymentNames,omitempty"` } // AppResource app resource payload @@ -859,7 +848,7 @@ type AppResourceProperties struct { AddonConfigs map[string]map[string]interface{} `json:"addonConfigs"` // ProvisioningState - READ-ONLY; Provisioning state of the App. Possible values include: 'AppResourceProvisioningStateSucceeded', 'AppResourceProvisioningStateFailed', 'AppResourceProvisioningStateCreating', 'AppResourceProvisioningStateUpdating', 'AppResourceProvisioningStateDeleting' ProvisioningState AppResourceProvisioningState `json:"provisioningState,omitempty"` - // Fqdn - Fully qualified dns Name. + // Fqdn - READ-ONLY; Fully qualified dns Name. Fqdn *string `json:"fqdn,omitempty"` // HTTPSOnly - Indicate if only https is allowed. HTTPSOnly *bool `json:"httpsOnly,omitempty"` @@ -875,6 +864,8 @@ type AppResourceProperties struct { LoadedCertificates *[]LoadedCertificate `json:"loadedCertificates,omitempty"` // VnetAddons - Additional App settings in vnet injection instance VnetAddons *AppVNetAddons `json:"vnetAddons,omitempty"` + // IngressSettings - App ingress settings payload. + IngressSettings *IngressSettings `json:"ingressSettings,omitempty"` } // MarshalJSON is the custom marshaler for AppResourceProperties. @@ -886,9 +877,6 @@ func (arp AppResourceProperties) MarshalJSON() ([]byte, error) { if arp.AddonConfigs != nil { objectMap["addonConfigs"] = arp.AddonConfigs } - if arp.Fqdn != nil { - objectMap["fqdn"] = arp.Fqdn - } if arp.HTTPSOnly != nil { objectMap["httpsOnly"] = arp.HTTPSOnly } @@ -910,6 +898,38 @@ func (arp AppResourceProperties) MarshalJSON() ([]byte, error) { if arp.VnetAddons != nil { objectMap["vnetAddons"] = arp.VnetAddons } + if arp.IngressSettings != nil { + objectMap["ingressSettings"] = arp.IngressSettings + } + return json.Marshal(objectMap) +} + +// AppVNetAddons additional App settings in vnet injection instance +type AppVNetAddons struct { + // PublicEndpoint - Indicates whether the App in vnet injection instance exposes endpoint which could be accessed from internet. + PublicEndpoint *bool `json:"publicEndpoint,omitempty"` + // PublicEndpointURL - READ-ONLY; URL of the App in vnet injection instance which could be accessed from internet + PublicEndpointURL *string `json:"publicEndpointUrl,omitempty"` +} + +// MarshalJSON is the custom marshaler for AppVNetAddons. +func (avna AppVNetAddons) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if avna.PublicEndpoint != nil { + objectMap["publicEndpoint"] = avna.PublicEndpoint + } + return json.Marshal(objectMap) +} + +// ApplicationInsightsAgentVersions application Insights agent versions properties payload +type ApplicationInsightsAgentVersions struct { + // Java - READ-ONLY; Indicates the version of application insight java agent + Java *string `json:"java,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationInsightsAgentVersions. +func (aiav ApplicationInsightsAgentVersions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) return json.Marshal(objectMap) } @@ -1077,23 +1097,6 @@ func (future *AppsUpdateFuture) result(client AppsClient) (ar AppResource, err e return } -// AppVNetAddons additional App settings in vnet injection instance -type AppVNetAddons struct { - // PublicEndpoint - Indicates whether the App in vnet injection instance exposes endpoint which could be accessed from internet. - PublicEndpoint *bool `json:"publicEndpoint,omitempty"` - // PublicEndpointURL - READ-ONLY; URL of the App in vnet injection instance which could be accessed from internet - PublicEndpointURL *string `json:"publicEndpointUrl,omitempty"` -} - -// MarshalJSON is the custom marshaler for AppVNetAddons. -func (avna AppVNetAddons) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if avna.PublicEndpoint != nil { - objectMap["publicEndpoint"] = avna.PublicEndpoint - } - return json.Marshal(objectMap) -} - // AvailableOperations available operations of the service type AvailableOperations struct { autorest.Response `json:"-"` @@ -1849,33 +1852,63 @@ func NewBuildCollectionPage(cur BuildCollection, getNextPage func(context.Contex } } -// BuilderProperties kPack Builder properties payload -type BuilderProperties struct { - // ProvisioningState - READ-ONLY; Builder provision status. Possible values include: 'BuilderProvisioningStateCreating', 'BuilderProvisioningStateUpdating', 'BuilderProvisioningStateSucceeded', 'BuilderProvisioningStateFailed', 'BuilderProvisioningStateDeleting' - ProvisioningState BuilderProvisioningState `json:"provisioningState,omitempty"` - // Stack - Builder cluster stack property. - Stack *StackProperties `json:"stack,omitempty"` - // BuildpackGroups - Builder buildpack groups. - BuildpackGroups *[]BuildpacksGroupProperties `json:"buildpackGroups,omitempty"` +// BuildProperties build resource properties payload +type BuildProperties struct { + // RelativePath - The relative path of source code + RelativePath *string `json:"relativePath,omitempty"` + // Builder - The resource id of builder to build the source code + Builder *string `json:"builder,omitempty"` + // AgentPool - The resource id of agent pool + AgentPool *string `json:"agentPool,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning state of the KPack build result. Possible values include: 'BuildProvisioningStateCreating', 'BuildProvisioningStateUpdating', 'BuildProvisioningStateSucceeded', 'BuildProvisioningStateFailed', 'BuildProvisioningStateDeleting' + ProvisioningState BuildProvisioningState `json:"provisioningState,omitempty"` + // Env - The environment variables for this build + Env map[string]*string `json:"env"` + // TriggeredBuildResult - The build result triggered by this build + TriggeredBuildResult *TriggeredBuildResult `json:"triggeredBuildResult,omitempty"` + // ResourceRequests - The customized build resource for this build + ResourceRequests *BuildResourceRequests `json:"resourceRequests,omitempty"` } -// MarshalJSON is the custom marshaler for BuilderProperties. -func (bp BuilderProperties) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for BuildProperties. +func (bp BuildProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if bp.Stack != nil { - objectMap["stack"] = bp.Stack + if bp.RelativePath != nil { + objectMap["relativePath"] = bp.RelativePath } - if bp.BuildpackGroups != nil { - objectMap["buildpackGroups"] = bp.BuildpackGroups + if bp.Builder != nil { + objectMap["builder"] = bp.Builder + } + if bp.AgentPool != nil { + objectMap["agentPool"] = bp.AgentPool + } + if bp.Env != nil { + objectMap["env"] = bp.Env + } + if bp.TriggeredBuildResult != nil { + objectMap["triggeredBuildResult"] = bp.TriggeredBuildResult + } + if bp.ResourceRequests != nil { + objectMap["resourceRequests"] = bp.ResourceRequests } return json.Marshal(objectMap) } -// BuilderResource kPack Builder resource -type BuilderResource struct { +// BuildResourceRequests resource request payload of Build Resource. +type BuildResourceRequests struct { + // CPU - Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m. + // The default value is 1, this should not exceed build service agent pool cpu size. + CPU *string `json:"cpu,omitempty"` + // Memory - Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi. + // The default value is 2Gi, this should not exceed build service agent pool memory size. + Memory *string `json:"memory,omitempty"` +} + +// BuildResult build result resource payload +type BuildResult struct { autorest.Response `json:"-"` - // Properties - Property of the Builder resource. - Properties *BuilderProperties `json:"properties,omitempty"` + // Properties - Properties of the build result resource + Properties *BuildResultProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. @@ -1885,8 +1918,8 @@ type BuilderResource struct { SystemData *SystemData `json:"systemData,omitempty"` } -// MarshalJSON is the custom marshaler for BuilderResource. -func (br BuilderResource) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for BuildResult. +func (br BuildResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) if br.Properties != nil { objectMap["properties"] = br.Properties @@ -1897,28 +1930,28 @@ func (br BuilderResource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// BuilderResourceCollection object that includes an array of Builder resources and a possible link for +// BuildResultCollection object that includes an array of Build result resources and a possible link for // next set -type BuilderResourceCollection struct { +type BuildResultCollection struct { autorest.Response `json:"-"` - // Value - Collection of Builder resources - Value *[]BuilderResource `json:"value,omitempty"` + // Value - Collection of Build result resources + Value *[]BuildResult `json:"value,omitempty"` // NextLink - URL client should use to fetch the next page (per server side paging). // It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` } -// BuilderResourceCollectionIterator provides access to a complete listing of BuilderResource values. -type BuilderResourceCollectionIterator struct { +// BuildResultCollectionIterator provides access to a complete listing of BuildResult values. +type BuildResultCollectionIterator struct { i int - page BuilderResourceCollectionPage + page BuildResultCollectionPage } // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. -func (iter *BuilderResourceCollectionIterator) NextWithContext(ctx context.Context) (err error) { +func (iter *BuildResultCollectionIterator) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuilderResourceCollectionIterator.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildResultCollectionIterator.NextWithContext") defer func() { sc := -1 if iter.Response().Response.Response != nil { @@ -1943,47 +1976,47 @@ func (iter *BuilderResourceCollectionIterator) NextWithContext(ctx context.Conte // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (iter *BuilderResourceCollectionIterator) Next() error { +func (iter *BuildResultCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } // NotDone returns true if the enumeration should be started or is not yet complete. -func (iter BuilderResourceCollectionIterator) NotDone() bool { +func (iter BuildResultCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } // Response returns the raw server response from the last page request. -func (iter BuilderResourceCollectionIterator) Response() BuilderResourceCollection { +func (iter BuildResultCollectionIterator) Response() BuildResultCollection { return iter.page.Response() } // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. -func (iter BuilderResourceCollectionIterator) Value() BuilderResource { +func (iter BuildResultCollectionIterator) Value() BuildResult { if !iter.page.NotDone() { - return BuilderResource{} + return BuildResult{} } return iter.page.Values()[iter.i] } -// Creates a new instance of the BuilderResourceCollectionIterator type. -func NewBuilderResourceCollectionIterator(page BuilderResourceCollectionPage) BuilderResourceCollectionIterator { - return BuilderResourceCollectionIterator{page: page} +// Creates a new instance of the BuildResultCollectionIterator type. +func NewBuildResultCollectionIterator(page BuildResultCollectionPage) BuildResultCollectionIterator { + return BuildResultCollectionIterator{page: page} } // IsEmpty returns true if the ListResult contains no values. -func (brc BuilderResourceCollection) IsEmpty() bool { +func (brc BuildResultCollection) IsEmpty() bool { return brc.Value == nil || len(*brc.Value) == 0 } // hasNextLink returns true if the NextLink is not empty. -func (brc BuilderResourceCollection) hasNextLink() bool { +func (brc BuildResultCollection) hasNextLink() bool { return brc.NextLink != nil && len(*brc.NextLink) != 0 } -// builderResourceCollectionPreparer prepares a request to retrieve the next set of results. +// buildResultCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. -func (brc BuilderResourceCollection) builderResourceCollectionPreparer(ctx context.Context) (*http.Request, error) { +func (brc BuildResultCollection) buildResultCollectionPreparer(ctx context.Context) (*http.Request, error) { if !brc.hasNextLink() { return nil, nil } @@ -1993,17 +2026,17 @@ func (brc BuilderResourceCollection) builderResourceCollectionPreparer(ctx conte autorest.WithBaseURL(to.String(brc.NextLink))) } -// BuilderResourceCollectionPage contains a page of BuilderResource values. -type BuilderResourceCollectionPage struct { - fn func(context.Context, BuilderResourceCollection) (BuilderResourceCollection, error) - brc BuilderResourceCollection +// BuildResultCollectionPage contains a page of BuildResult values. +type BuildResultCollectionPage struct { + fn func(context.Context, BuildResultCollection) (BuildResultCollection, error) + brc BuildResultCollection } // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. -func (page *BuilderResourceCollectionPage) NextWithContext(ctx context.Context) (err error) { +func (page *BuildResultCollectionPage) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuilderResourceCollectionPage.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildResultCollectionPage.NextWithContext") defer func() { sc := -1 if page.Response().Response.Response != nil { @@ -2028,163 +2061,186 @@ func (page *BuilderResourceCollectionPage) NextWithContext(ctx context.Context) // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (page *BuilderResourceCollectionPage) Next() error { +func (page *BuildResultCollectionPage) Next() error { return page.NextWithContext(context.Background()) } // NotDone returns true if the page enumeration should be started or is not yet complete. -func (page BuilderResourceCollectionPage) NotDone() bool { +func (page BuildResultCollectionPage) NotDone() bool { return !page.brc.IsEmpty() } // Response returns the raw server response from the last page request. -func (page BuilderResourceCollectionPage) Response() BuilderResourceCollection { +func (page BuildResultCollectionPage) Response() BuildResultCollection { return page.brc } // Values returns the slice of values for the current page or nil if there are no values. -func (page BuilderResourceCollectionPage) Values() []BuilderResource { +func (page BuildResultCollectionPage) Values() []BuildResult { if page.brc.IsEmpty() { return nil } return *page.brc.Value } -// Creates a new instance of the BuilderResourceCollectionPage type. -func NewBuilderResourceCollectionPage(cur BuilderResourceCollection, getNextPage func(context.Context, BuilderResourceCollection) (BuilderResourceCollection, error)) BuilderResourceCollectionPage { - return BuilderResourceCollectionPage{ +// Creates a new instance of the BuildResultCollectionPage type. +func NewBuildResultCollectionPage(cur BuildResultCollection, getNextPage func(context.Context, BuildResultCollection) (BuildResultCollection, error)) BuildResultCollectionPage { + return BuildResultCollectionPage{ fn: getNextPage, brc: cur, } } -// BuildpackBindingCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type BuildpackBindingCreateOrUpdateFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(BuildpackBindingClient) (BuildpackBindingResource, error) +// BuildResultLog build result log resource properties payload +type BuildResultLog struct { + autorest.Response `json:"-"` + // BlobURL - The public download URL of this build result log + BlobURL *string `json:"blobUrl,omitempty"` } -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *BuildpackBindingCreateOrUpdateFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil +// BuildResultProperties build result resource properties payload +type BuildResultProperties struct { + // Name - The name of this build result + Name *string `json:"name,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning state of the KPack build result. Possible values include: 'BuildResultProvisioningStateQueuing', 'BuildResultProvisioningStateBuilding', 'BuildResultProvisioningStateSucceeded', 'BuildResultProvisioningStateFailed', 'BuildResultProvisioningStateDeleting' + ProvisioningState BuildResultProvisioningState `json:"provisioningState,omitempty"` + // BuildPodName - The build pod name which can be used to get the build log streaming. + BuildPodName *string `json:"buildPodName,omitempty"` + // BuildStages - READ-ONLY; All of the build stage (init-container and container) resources in build pod. + BuildStages *[]BuildStageProperties `json:"buildStages,omitempty"` } -// result is the default implementation for BuildpackBindingCreateOrUpdateFuture.Result. -func (future *BuildpackBindingCreateOrUpdateFuture) result(client BuildpackBindingClient) (bbr BuildpackBindingResource, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildpackBindingCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") - return +// MarshalJSON is the custom marshaler for BuildResultProperties. +func (brp BuildResultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if brp.Name != nil { + objectMap["name"] = brp.Name } - if !done { - bbr.Response.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("appplatform.BuildpackBindingCreateOrUpdateFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if bbr.Response.Response, err = future.GetResult(sender); err == nil && bbr.Response.Response.StatusCode != http.StatusNoContent { - bbr, err = client.CreateOrUpdateResponder(bbr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildpackBindingCreateOrUpdateFuture", "Result", bbr.Response.Response, "Failure responding to request") - } + if brp.BuildPodName != nil { + objectMap["buildPodName"] = brp.BuildPodName } - return + return json.Marshal(objectMap) } -// BuildpackBindingDeleteFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type BuildpackBindingDeleteFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(BuildpackBindingClient) (autorest.Response, error) +// BuildResultUserSourceInfo reference to a build result +type BuildResultUserSourceInfo struct { + // BuildResultID - Resource id of an existing succeeded build result under the same Spring instance. + BuildResultID *string `json:"buildResultId,omitempty"` + // Version - Version of the source + Version *string `json:"version,omitempty"` + // Type - Possible values include: 'TypeBasicUserSourceInfoTypeUserSourceInfo', 'TypeBasicUserSourceInfoTypeUploadedUserSourceInfo', 'TypeBasicUserSourceInfoTypeJar', 'TypeBasicUserSourceInfoTypeSource', 'TypeBasicUserSourceInfoTypeNetCoreZip', 'TypeBasicUserSourceInfoTypeBuildResult', 'TypeBasicUserSourceInfoTypeContainer' + Type TypeBasicUserSourceInfo `json:"type,omitempty"` } -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *BuildpackBindingDeleteFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err +// MarshalJSON is the custom marshaler for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) MarshalJSON() ([]byte, error) { + brusi.Type = TypeBasicUserSourceInfoTypeBuildResult + objectMap := make(map[string]interface{}) + if brusi.BuildResultID != nil { + objectMap["buildResultId"] = brusi.BuildResultID } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for BuildpackBindingDeleteFuture.Result. -func (future *BuildpackBindingDeleteFuture) result(client BuildpackBindingClient) (ar autorest.Response, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildpackBindingDeleteFuture", "Result", future.Response(), "Polling failure") - return + if brusi.Version != nil { + objectMap["version"] = brusi.Version } - if !done { - ar.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("appplatform.BuildpackBindingDeleteFuture") - return + if brusi.Type != "" { + objectMap["type"] = brusi.Type } - ar.Response = future.Response() - return + return json.Marshal(objectMap) } -// BuildpackBindingLaunchProperties buildpack Binding Launch Properties -type BuildpackBindingLaunchProperties struct { - // Properties - Non-sensitive properties for launchProperties - Properties map[string]*string `json:"properties"` - // Secrets - Sensitive properties for launchProperties - Secrets map[string]*string `json:"secrets"` +// AsUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) AsUploadedUserSourceInfo() (*UploadedUserSourceInfo, bool) { + return nil, false } -// MarshalJSON is the custom marshaler for BuildpackBindingLaunchProperties. -func (bblp BuildpackBindingLaunchProperties) MarshalJSON() ([]byte, error) { +// AsBasicUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) AsBasicUploadedUserSourceInfo() (BasicUploadedUserSourceInfo, bool) { + return nil, false +} + +// AsJarUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) AsJarUploadedUserSourceInfo() (*JarUploadedUserSourceInfo, bool) { + return nil, false +} + +// AsSourceUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) AsSourceUploadedUserSourceInfo() (*SourceUploadedUserSourceInfo, bool) { + return nil, false +} + +// AsNetCoreZipUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) AsNetCoreZipUploadedUserSourceInfo() (*NetCoreZipUploadedUserSourceInfo, bool) { + return nil, false +} + +// AsBuildResultUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) AsBuildResultUserSourceInfo() (*BuildResultUserSourceInfo, bool) { + return &brusi, true +} + +// AsCustomContainerUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) AsCustomContainerUserSourceInfo() (*CustomContainerUserSourceInfo, bool) { + return nil, false +} + +// AsUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) AsUserSourceInfo() (*UserSourceInfo, bool) { + return nil, false +} + +// AsBasicUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. +func (brusi BuildResultUserSourceInfo) AsBasicUserSourceInfo() (BasicUserSourceInfo, bool) { + return &brusi, true +} + +// BuildService build service resource payload +type BuildService struct { + autorest.Response `json:"-"` + // Properties - Properties of the build resource + Properties *BuildServiceProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. + Type *string `json:"type,omitempty"` + SystemData *SystemData `json:"systemData,omitempty"` +} + +// MarshalJSON is the custom marshaler for BuildService. +func (bs BuildService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if bblp.Properties != nil { - objectMap["properties"] = bblp.Properties + if bs.Properties != nil { + objectMap["properties"] = bs.Properties } - if bblp.Secrets != nil { - objectMap["secrets"] = bblp.Secrets + if bs.SystemData != nil { + objectMap["systemData"] = bs.SystemData } return json.Marshal(objectMap) } -// BuildpackBindingProperties properties of a buildpack binding -type BuildpackBindingProperties struct { - // BindingType - Buildpack Binding Type. Possible values include: 'BindingTypeApplicationInsights', 'BindingTypeApacheSkyWalking', 'BindingTypeAppDynamics', 'BindingTypeDynatrace', 'BindingTypeNewRelic', 'BindingTypeElasticAPM' - BindingType BindingType `json:"bindingType,omitempty"` - // ProvisioningState - READ-ONLY; State of the Buildpack Binding. Possible values include: 'BuildpackBindingProvisioningStateCreating', 'BuildpackBindingProvisioningStateUpdating', 'BuildpackBindingProvisioningStateSucceeded', 'BuildpackBindingProvisioningStateFailed', 'BuildpackBindingProvisioningStateDeleting' - ProvisioningState BuildpackBindingProvisioningState `json:"provisioningState,omitempty"` - // LaunchProperties - The object describes the buildpack binding launch properties - LaunchProperties *BuildpackBindingLaunchProperties `json:"launchProperties,omitempty"` +// BuildServiceAgentPoolProperties build service agent pool properties +type BuildServiceAgentPoolProperties struct { + // ProvisioningState - READ-ONLY; Provisioning state of the build service agent pool + ProvisioningState *string `json:"provisioningState,omitempty"` + // PoolSize - build service agent pool size properties + PoolSize *BuildServiceAgentPoolSizeProperties `json:"poolSize,omitempty"` } -// MarshalJSON is the custom marshaler for BuildpackBindingProperties. -func (bbp BuildpackBindingProperties) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for BuildServiceAgentPoolProperties. +func (bsapp BuildServiceAgentPoolProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if bbp.BindingType != "" { - objectMap["bindingType"] = bbp.BindingType - } - if bbp.LaunchProperties != nil { - objectMap["launchProperties"] = bbp.LaunchProperties + if bsapp.PoolSize != nil { + objectMap["poolSize"] = bsapp.PoolSize } return json.Marshal(objectMap) } -// BuildpackBindingResource buildpack Binding Resource object -type BuildpackBindingResource struct { +// BuildServiceAgentPoolResource the build service agent pool resource +type BuildServiceAgentPoolResource struct { autorest.Response `json:"-"` - // Properties - Properties of a buildpack binding - Properties *BuildpackBindingProperties `json:"properties,omitempty"` + // Properties - build service agent pool properties + Properties *BuildServiceAgentPoolProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. @@ -2194,41 +2250,41 @@ type BuildpackBindingResource struct { SystemData *SystemData `json:"systemData,omitempty"` } -// MarshalJSON is the custom marshaler for BuildpackBindingResource. -func (bbr BuildpackBindingResource) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for BuildServiceAgentPoolResource. +func (bsapr BuildServiceAgentPoolResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if bbr.Properties != nil { - objectMap["properties"] = bbr.Properties + if bsapr.Properties != nil { + objectMap["properties"] = bsapr.Properties } - if bbr.SystemData != nil { - objectMap["systemData"] = bbr.SystemData + if bsapr.SystemData != nil { + objectMap["systemData"] = bsapr.SystemData } return json.Marshal(objectMap) } -// BuildpackBindingResourceCollection object that includes an array of BuildpackBinding resources and a -// possible link for next set -type BuildpackBindingResourceCollection struct { +// BuildServiceAgentPoolResourceCollection object that includes an array of build service agent pool +// resources and a possible link for next set +type BuildServiceAgentPoolResourceCollection struct { autorest.Response `json:"-"` - // Value - Collection of BuildpackBinding resources - Value *[]BuildpackBindingResource `json:"value,omitempty"` + // Value - Collection of build service agent pool resource + Value *[]BuildServiceAgentPoolResource `json:"value,omitempty"` // NextLink - URL client should use to fetch the next page (per server side paging). // It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` } -// BuildpackBindingResourceCollectionIterator provides access to a complete listing of -// BuildpackBindingResource values. -type BuildpackBindingResourceCollectionIterator struct { +// BuildServiceAgentPoolResourceCollectionIterator provides access to a complete listing of +// BuildServiceAgentPoolResource values. +type BuildServiceAgentPoolResourceCollectionIterator struct { i int - page BuildpackBindingResourceCollectionPage + page BuildServiceAgentPoolResourceCollectionPage } // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. -func (iter *BuildpackBindingResourceCollectionIterator) NextWithContext(ctx context.Context) (err error) { +func (iter *BuildServiceAgentPoolResourceCollectionIterator) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildpackBindingResourceCollectionIterator.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceAgentPoolResourceCollectionIterator.NextWithContext") defer func() { sc := -1 if iter.Response().Response.Response != nil { @@ -2253,67 +2309,67 @@ func (iter *BuildpackBindingResourceCollectionIterator) NextWithContext(ctx cont // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (iter *BuildpackBindingResourceCollectionIterator) Next() error { +func (iter *BuildServiceAgentPoolResourceCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } // NotDone returns true if the enumeration should be started or is not yet complete. -func (iter BuildpackBindingResourceCollectionIterator) NotDone() bool { +func (iter BuildServiceAgentPoolResourceCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } // Response returns the raw server response from the last page request. -func (iter BuildpackBindingResourceCollectionIterator) Response() BuildpackBindingResourceCollection { +func (iter BuildServiceAgentPoolResourceCollectionIterator) Response() BuildServiceAgentPoolResourceCollection { return iter.page.Response() } // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. -func (iter BuildpackBindingResourceCollectionIterator) Value() BuildpackBindingResource { +func (iter BuildServiceAgentPoolResourceCollectionIterator) Value() BuildServiceAgentPoolResource { if !iter.page.NotDone() { - return BuildpackBindingResource{} + return BuildServiceAgentPoolResource{} } return iter.page.Values()[iter.i] } -// Creates a new instance of the BuildpackBindingResourceCollectionIterator type. -func NewBuildpackBindingResourceCollectionIterator(page BuildpackBindingResourceCollectionPage) BuildpackBindingResourceCollectionIterator { - return BuildpackBindingResourceCollectionIterator{page: page} +// Creates a new instance of the BuildServiceAgentPoolResourceCollectionIterator type. +func NewBuildServiceAgentPoolResourceCollectionIterator(page BuildServiceAgentPoolResourceCollectionPage) BuildServiceAgentPoolResourceCollectionIterator { + return BuildServiceAgentPoolResourceCollectionIterator{page: page} } // IsEmpty returns true if the ListResult contains no values. -func (bbrc BuildpackBindingResourceCollection) IsEmpty() bool { - return bbrc.Value == nil || len(*bbrc.Value) == 0 +func (bsaprc BuildServiceAgentPoolResourceCollection) IsEmpty() bool { + return bsaprc.Value == nil || len(*bsaprc.Value) == 0 } // hasNextLink returns true if the NextLink is not empty. -func (bbrc BuildpackBindingResourceCollection) hasNextLink() bool { - return bbrc.NextLink != nil && len(*bbrc.NextLink) != 0 +func (bsaprc BuildServiceAgentPoolResourceCollection) hasNextLink() bool { + return bsaprc.NextLink != nil && len(*bsaprc.NextLink) != 0 } -// buildpackBindingResourceCollectionPreparer prepares a request to retrieve the next set of results. +// buildServiceAgentPoolResourceCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. -func (bbrc BuildpackBindingResourceCollection) buildpackBindingResourceCollectionPreparer(ctx context.Context) (*http.Request, error) { - if !bbrc.hasNextLink() { +func (bsaprc BuildServiceAgentPoolResourceCollection) buildServiceAgentPoolResourceCollectionPreparer(ctx context.Context) (*http.Request, error) { + if !bsaprc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), autorest.AsJSON(), autorest.AsGet(), - autorest.WithBaseURL(to.String(bbrc.NextLink))) + autorest.WithBaseURL(to.String(bsaprc.NextLink))) } -// BuildpackBindingResourceCollectionPage contains a page of BuildpackBindingResource values. -type BuildpackBindingResourceCollectionPage struct { - fn func(context.Context, BuildpackBindingResourceCollection) (BuildpackBindingResourceCollection, error) - bbrc BuildpackBindingResourceCollection +// BuildServiceAgentPoolResourceCollectionPage contains a page of BuildServiceAgentPoolResource values. +type BuildServiceAgentPoolResourceCollectionPage struct { + fn func(context.Context, BuildServiceAgentPoolResourceCollection) (BuildServiceAgentPoolResourceCollection, error) + bsaprc BuildServiceAgentPoolResourceCollection } // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. -func (page *BuildpackBindingResourceCollectionPage) NextWithContext(ctx context.Context) (err error) { +func (page *BuildServiceAgentPoolResourceCollectionPage) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildpackBindingResourceCollectionPage.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceAgentPoolResourceCollectionPage.NextWithContext") defer func() { sc := -1 if page.Response().Response.Response != nil { @@ -2323,11 +2379,11 @@ func (page *BuildpackBindingResourceCollectionPage) NextWithContext(ctx context. }() } for { - next, err := page.fn(ctx, page.bbrc) + next, err := page.fn(ctx, page.bsaprc) if err != nil { return err } - page.bbrc = next + page.bsaprc = next if !next.hasNextLink() || !next.IsEmpty() { break } @@ -2338,150 +2394,200 @@ func (page *BuildpackBindingResourceCollectionPage) NextWithContext(ctx context. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (page *BuildpackBindingResourceCollectionPage) Next() error { +func (page *BuildServiceAgentPoolResourceCollectionPage) Next() error { return page.NextWithContext(context.Background()) } // NotDone returns true if the page enumeration should be started or is not yet complete. -func (page BuildpackBindingResourceCollectionPage) NotDone() bool { - return !page.bbrc.IsEmpty() +func (page BuildServiceAgentPoolResourceCollectionPage) NotDone() bool { + return !page.bsaprc.IsEmpty() } // Response returns the raw server response from the last page request. -func (page BuildpackBindingResourceCollectionPage) Response() BuildpackBindingResourceCollection { - return page.bbrc +func (page BuildServiceAgentPoolResourceCollectionPage) Response() BuildServiceAgentPoolResourceCollection { + return page.bsaprc } // Values returns the slice of values for the current page or nil if there are no values. -func (page BuildpackBindingResourceCollectionPage) Values() []BuildpackBindingResource { - if page.bbrc.IsEmpty() { +func (page BuildServiceAgentPoolResourceCollectionPage) Values() []BuildServiceAgentPoolResource { + if page.bsaprc.IsEmpty() { return nil } - return *page.bbrc.Value + return *page.bsaprc.Value } -// Creates a new instance of the BuildpackBindingResourceCollectionPage type. -func NewBuildpackBindingResourceCollectionPage(cur BuildpackBindingResourceCollection, getNextPage func(context.Context, BuildpackBindingResourceCollection) (BuildpackBindingResourceCollection, error)) BuildpackBindingResourceCollectionPage { - return BuildpackBindingResourceCollectionPage{ - fn: getNextPage, - bbrc: cur, +// Creates a new instance of the BuildServiceAgentPoolResourceCollectionPage type. +func NewBuildServiceAgentPoolResourceCollectionPage(cur BuildServiceAgentPoolResourceCollection, getNextPage func(context.Context, BuildServiceAgentPoolResourceCollection) (BuildServiceAgentPoolResourceCollection, error)) BuildServiceAgentPoolResourceCollectionPage { + return BuildServiceAgentPoolResourceCollectionPage{ + fn: getNextPage, + bsaprc: cur, } } -// BuildpackProperties buildpack properties payload -type BuildpackProperties struct { - // ID - Id of the buildpack - ID *string `json:"id,omitempty"` +// BuildServiceAgentPoolSizeProperties build service agent pool size properties +type BuildServiceAgentPoolSizeProperties struct { + // Name - The name of build service agent pool size + Name *string `json:"name,omitempty"` + // CPU - READ-ONLY; The cpu property of build service agent pool size + CPU *string `json:"cpu,omitempty"` + // Memory - READ-ONLY; The memory property of build service agent pool size + Memory *string `json:"memory,omitempty"` } -// BuildpacksGroupProperties buildpack group properties of the Builder -type BuildpacksGroupProperties struct { - // Name - Buildpack group name - Name *string `json:"name,omitempty"` - // Buildpacks - Buildpacks in the buildpack group - Buildpacks *[]BuildpackProperties `json:"buildpacks,omitempty"` +// MarshalJSON is the custom marshaler for BuildServiceAgentPoolSizeProperties. +func (bsapsp BuildServiceAgentPoolSizeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bsapsp.Name != nil { + objectMap["name"] = bsapsp.Name + } + return json.Marshal(objectMap) } -// BuildProperties build resource properties payload -type BuildProperties struct { - // RelativePath - The relative path of source code - RelativePath *string `json:"relativePath,omitempty"` - // Builder - The resource id of builder to build the source code - Builder *string `json:"builder,omitempty"` - // AgentPool - The resource id of agent pool - AgentPool *string `json:"agentPool,omitempty"` - // ProvisioningState - READ-ONLY; Provisioning state of the KPack build result. Possible values include: 'BuildProvisioningStateCreating', 'BuildProvisioningStateUpdating', 'BuildProvisioningStateSucceeded', 'BuildProvisioningStateFailed', 'BuildProvisioningStateDeleting' - ProvisioningState BuildProvisioningState `json:"provisioningState,omitempty"` - // Env - The environment variables for this build - Env map[string]*string `json:"env"` - // TriggeredBuildResult - The build result triggered by this build - TriggeredBuildResult *TriggeredBuildResult `json:"triggeredBuildResult,omitempty"` - // ResourceRequests - The customized build resource for this build - ResourceRequests *BuildResourceRequests `json:"resourceRequests,omitempty"` +// BuildServiceAgentPoolUpdatePutFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type BuildServiceAgentPoolUpdatePutFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(BuildServiceAgentPoolClient) (BuildServiceAgentPoolResource, error) } -// MarshalJSON is the custom marshaler for BuildProperties. -func (bp BuildProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if bp.RelativePath != nil { - objectMap["relativePath"] = bp.RelativePath +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *BuildServiceAgentPoolUpdatePutFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err } - if bp.Builder != nil { - objectMap["builder"] = bp.Builder + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for BuildServiceAgentPoolUpdatePutFuture.Result. +func (future *BuildServiceAgentPoolUpdatePutFuture) result(client BuildServiceAgentPoolClient) (bsapr BuildServiceAgentPoolResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceAgentPoolUpdatePutFuture", "Result", future.Response(), "Polling failure") + return } - if bp.AgentPool != nil { - objectMap["agentPool"] = bp.AgentPool + if !done { + bsapr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("appplatform.BuildServiceAgentPoolUpdatePutFuture") + return } - if bp.Env != nil { - objectMap["env"] = bp.Env + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if bsapr.Response.Response, err = future.GetResult(sender); err == nil && bsapr.Response.Response.StatusCode != http.StatusNoContent { + bsapr, err = client.UpdatePutResponder(bsapr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceAgentPoolUpdatePutFuture", "Result", bsapr.Response.Response, "Failure responding to request") + } } - if bp.TriggeredBuildResult != nil { - objectMap["triggeredBuildResult"] = bp.TriggeredBuildResult + return +} + +// BuildServiceBuilderCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type BuildServiceBuilderCreateOrUpdateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(BuildServiceBuilderClient) (BuilderResource, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *BuildServiceBuilderCreateOrUpdateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err } - if bp.ResourceRequests != nil { - objectMap["resourceRequests"] = bp.ResourceRequests + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for BuildServiceBuilderCreateOrUpdateFuture.Result. +func (future *BuildServiceBuilderCreateOrUpdateFuture) result(client BuildServiceBuilderClient) (br BuilderResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceBuilderCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return } - return json.Marshal(objectMap) + if !done { + br.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("appplatform.BuildServiceBuilderCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if br.Response.Response, err = future.GetResult(sender); err == nil && br.Response.Response.StatusCode != http.StatusNoContent { + br, err = client.CreateOrUpdateResponder(br.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceBuilderCreateOrUpdateFuture", "Result", br.Response.Response, "Failure responding to request") + } + } + return } -// BuildResourceRequests resource request payload of Build Resource. -type BuildResourceRequests struct { - // CPU - Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m. - // The default value is 1, this should not exceed build service agent pool cpu size. - CPU *string `json:"cpu,omitempty"` - // Memory - Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi. - // The default value is 2Gi, this should not exceed build service agent pool memory size. - Memory *string `json:"memory,omitempty"` +// BuildServiceBuilderDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type BuildServiceBuilderDeleteFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(BuildServiceBuilderClient) (autorest.Response, error) } -// BuildResult build result resource payload -type BuildResult struct { - autorest.Response `json:"-"` - // Properties - Properties of the build result resource - Properties *BuildResultProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The name of the resource. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty"` - SystemData *SystemData `json:"systemData,omitempty"` +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *BuildServiceBuilderDeleteFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil } -// MarshalJSON is the custom marshaler for BuildResult. -func (br BuildResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if br.Properties != nil { - objectMap["properties"] = br.Properties +// result is the default implementation for BuildServiceBuilderDeleteFuture.Result. +func (future *BuildServiceBuilderDeleteFuture) result(client BuildServiceBuilderClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.BuildServiceBuilderDeleteFuture", "Result", future.Response(), "Polling failure") + return } - if br.SystemData != nil { - objectMap["systemData"] = br.SystemData + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("appplatform.BuildServiceBuilderDeleteFuture") + return } - return json.Marshal(objectMap) + ar.Response = future.Response() + return } -// BuildResultCollection object that includes an array of Build result resources and a possible link for +// BuildServiceCollection object that includes an array of Build service resources and a possible link for // next set -type BuildResultCollection struct { +type BuildServiceCollection struct { autorest.Response `json:"-"` - // Value - Collection of Build result resources - Value *[]BuildResult `json:"value,omitempty"` + // Value - Collection of Build service resources + Value *[]BuildService `json:"value,omitempty"` // NextLink - URL client should use to fetch the next page (per server side paging). // It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` } -// BuildResultCollectionIterator provides access to a complete listing of BuildResult values. -type BuildResultCollectionIterator struct { +// BuildServiceCollectionIterator provides access to a complete listing of BuildService values. +type BuildServiceCollectionIterator struct { i int - page BuildResultCollectionPage + page BuildServiceCollectionPage } // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. -func (iter *BuildResultCollectionIterator) NextWithContext(ctx context.Context) (err error) { +func (iter *BuildServiceCollectionIterator) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildResultCollectionIterator.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceCollectionIterator.NextWithContext") defer func() { sc := -1 if iter.Response().Response.Response != nil { @@ -2506,67 +2612,67 @@ func (iter *BuildResultCollectionIterator) NextWithContext(ctx context.Context) // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (iter *BuildResultCollectionIterator) Next() error { +func (iter *BuildServiceCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } // NotDone returns true if the enumeration should be started or is not yet complete. -func (iter BuildResultCollectionIterator) NotDone() bool { +func (iter BuildServiceCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } // Response returns the raw server response from the last page request. -func (iter BuildResultCollectionIterator) Response() BuildResultCollection { +func (iter BuildServiceCollectionIterator) Response() BuildServiceCollection { return iter.page.Response() } // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. -func (iter BuildResultCollectionIterator) Value() BuildResult { +func (iter BuildServiceCollectionIterator) Value() BuildService { if !iter.page.NotDone() { - return BuildResult{} + return BuildService{} } return iter.page.Values()[iter.i] } -// Creates a new instance of the BuildResultCollectionIterator type. -func NewBuildResultCollectionIterator(page BuildResultCollectionPage) BuildResultCollectionIterator { - return BuildResultCollectionIterator{page: page} +// Creates a new instance of the BuildServiceCollectionIterator type. +func NewBuildServiceCollectionIterator(page BuildServiceCollectionPage) BuildServiceCollectionIterator { + return BuildServiceCollectionIterator{page: page} } // IsEmpty returns true if the ListResult contains no values. -func (brc BuildResultCollection) IsEmpty() bool { - return brc.Value == nil || len(*brc.Value) == 0 +func (bsc BuildServiceCollection) IsEmpty() bool { + return bsc.Value == nil || len(*bsc.Value) == 0 } // hasNextLink returns true if the NextLink is not empty. -func (brc BuildResultCollection) hasNextLink() bool { - return brc.NextLink != nil && len(*brc.NextLink) != 0 +func (bsc BuildServiceCollection) hasNextLink() bool { + return bsc.NextLink != nil && len(*bsc.NextLink) != 0 } -// buildResultCollectionPreparer prepares a request to retrieve the next set of results. +// buildServiceCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. -func (brc BuildResultCollection) buildResultCollectionPreparer(ctx context.Context) (*http.Request, error) { - if !brc.hasNextLink() { +func (bsc BuildServiceCollection) buildServiceCollectionPreparer(ctx context.Context) (*http.Request, error) { + if !bsc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), autorest.AsJSON(), autorest.AsGet(), - autorest.WithBaseURL(to.String(brc.NextLink))) + autorest.WithBaseURL(to.String(bsc.NextLink))) } -// BuildResultCollectionPage contains a page of BuildResult values. -type BuildResultCollectionPage struct { - fn func(context.Context, BuildResultCollection) (BuildResultCollection, error) - brc BuildResultCollection +// BuildServiceCollectionPage contains a page of BuildService values. +type BuildServiceCollectionPage struct { + fn func(context.Context, BuildServiceCollection) (BuildServiceCollection, error) + bsc BuildServiceCollection } // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. -func (page *BuildResultCollectionPage) NextWithContext(ctx context.Context) (err error) { +func (page *BuildServiceCollectionPage) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildResultCollectionPage.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceCollectionPage.NextWithContext") defer func() { sc := -1 if page.Response().Response.Response != nil { @@ -2576,11 +2682,11 @@ func (page *BuildResultCollectionPage) NextWithContext(ctx context.Context) (err }() } for { - next, err := page.fn(ctx, page.brc) + next, err := page.fn(ctx, page.bsc) if err != nil { return err } - page.brc = next + page.bsc = next if !next.hasNextLink() || !next.IsEmpty() { break } @@ -2591,186 +2697,113 @@ func (page *BuildResultCollectionPage) NextWithContext(ctx context.Context) (err // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (page *BuildResultCollectionPage) Next() error { +func (page *BuildServiceCollectionPage) Next() error { return page.NextWithContext(context.Background()) } // NotDone returns true if the page enumeration should be started or is not yet complete. -func (page BuildResultCollectionPage) NotDone() bool { - return !page.brc.IsEmpty() +func (page BuildServiceCollectionPage) NotDone() bool { + return !page.bsc.IsEmpty() } // Response returns the raw server response from the last page request. -func (page BuildResultCollectionPage) Response() BuildResultCollection { - return page.brc +func (page BuildServiceCollectionPage) Response() BuildServiceCollection { + return page.bsc } // Values returns the slice of values for the current page or nil if there are no values. -func (page BuildResultCollectionPage) Values() []BuildResult { - if page.brc.IsEmpty() { +func (page BuildServiceCollectionPage) Values() []BuildService { + if page.bsc.IsEmpty() { return nil } - return *page.brc.Value + return *page.bsc.Value } -// Creates a new instance of the BuildResultCollectionPage type. -func NewBuildResultCollectionPage(cur BuildResultCollection, getNextPage func(context.Context, BuildResultCollection) (BuildResultCollection, error)) BuildResultCollectionPage { - return BuildResultCollectionPage{ +// Creates a new instance of the BuildServiceCollectionPage type. +func NewBuildServiceCollectionPage(cur BuildServiceCollection, getNextPage func(context.Context, BuildServiceCollection) (BuildServiceCollection, error)) BuildServiceCollectionPage { + return BuildServiceCollectionPage{ fn: getNextPage, - brc: cur, - } -} - -// BuildResultLog build result log resource properties payload -type BuildResultLog struct { - autorest.Response `json:"-"` - // BlobURL - The public download URL of this build result log - BlobURL *string `json:"blobUrl,omitempty"` -} - -// BuildResultProperties build result resource properties payload -type BuildResultProperties struct { - // Name - The name of this build result - Name *string `json:"name,omitempty"` - // ProvisioningState - READ-ONLY; Provisioning state of the KPack build result. Possible values include: 'BuildResultProvisioningStateQueuing', 'BuildResultProvisioningStateBuilding', 'BuildResultProvisioningStateSucceeded', 'BuildResultProvisioningStateFailed', 'BuildResultProvisioningStateDeleting' - ProvisioningState BuildResultProvisioningState `json:"provisioningState,omitempty"` - // BuildPodName - The build pod name which can be used to get the build log streaming. - BuildPodName *string `json:"buildPodName,omitempty"` - // BuildStages - READ-ONLY; All of the build stage (init-container and container) resources in build pod. - BuildStages *[]BuildStageProperties `json:"buildStages,omitempty"` -} - -// MarshalJSON is the custom marshaler for BuildResultProperties. -func (brp BuildResultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if brp.Name != nil { - objectMap["name"] = brp.Name - } - if brp.BuildPodName != nil { - objectMap["buildPodName"] = brp.BuildPodName - } - return json.Marshal(objectMap) -} - -// BuildResultUserSourceInfo reference to a build result -type BuildResultUserSourceInfo struct { - // BuildResultID - Resource id of an existing succeeded build result under the same Spring instance. - BuildResultID *string `json:"buildResultId,omitempty"` - // Version - Version of the source - Version *string `json:"version,omitempty"` - // Type - Possible values include: 'TypeBasicUserSourceInfoTypeUserSourceInfo', 'TypeBasicUserSourceInfoTypeUploadedUserSourceInfo', 'TypeBasicUserSourceInfoTypeJar', 'TypeBasicUserSourceInfoTypeSource', 'TypeBasicUserSourceInfoTypeNetCoreZip', 'TypeBasicUserSourceInfoTypeBuildResult', 'TypeBasicUserSourceInfoTypeContainer' - Type TypeBasicUserSourceInfo `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) MarshalJSON() ([]byte, error) { - brusi.Type = TypeBasicUserSourceInfoTypeBuildResult - objectMap := make(map[string]interface{}) - if brusi.BuildResultID != nil { - objectMap["buildResultId"] = brusi.BuildResultID - } - if brusi.Version != nil { - objectMap["version"] = brusi.Version - } - if brusi.Type != "" { - objectMap["type"] = brusi.Type + bsc: cur, } - return json.Marshal(objectMap) -} - -// AsUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) AsUploadedUserSourceInfo() (*UploadedUserSourceInfo, bool) { - return nil, false } -// AsBasicUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) AsBasicUploadedUserSourceInfo() (BasicUploadedUserSourceInfo, bool) { - return nil, false -} - -// AsJarUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) AsJarUploadedUserSourceInfo() (*JarUploadedUserSourceInfo, bool) { - return nil, false -} - -// AsSourceUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) AsSourceUploadedUserSourceInfo() (*SourceUploadedUserSourceInfo, bool) { - return nil, false -} - -// AsNetCoreZipUploadedUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) AsNetCoreZipUploadedUserSourceInfo() (*NetCoreZipUploadedUserSourceInfo, bool) { - return nil, false -} - -// AsBuildResultUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) AsBuildResultUserSourceInfo() (*BuildResultUserSourceInfo, bool) { - return &brusi, true +// BuildServiceProperties build service resource properties payload +type BuildServiceProperties struct { + // KPackVersion - The installed KPack version in this build service. + KPackVersion *string `json:"kPackVersion,omitempty"` + // ProvisioningState - READ-ONLY; Provisioning state of the KPack build result. Possible values include: 'BuildServiceProvisioningStateCreating', 'BuildServiceProvisioningStateUpdating', 'BuildServiceProvisioningStateSucceeded', 'BuildServiceProvisioningStateFailed', 'BuildServiceProvisioningStateDeleting' + ProvisioningState BuildServiceProvisioningState `json:"provisioningState,omitempty"` + // ResourceRequests - The runtime resource configuration of this build service. + ResourceRequests *BuildServicePropertiesResourceRequests `json:"resourceRequests,omitempty"` } -// AsCustomContainerUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) AsCustomContainerUserSourceInfo() (*CustomContainerUserSourceInfo, bool) { - return nil, false +// MarshalJSON is the custom marshaler for BuildServiceProperties. +func (bsp BuildServiceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bsp.KPackVersion != nil { + objectMap["kPackVersion"] = bsp.KPackVersion + } + if bsp.ResourceRequests != nil { + objectMap["resourceRequests"] = bsp.ResourceRequests + } + return json.Marshal(objectMap) } -// AsUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) AsUserSourceInfo() (*UserSourceInfo, bool) { - return nil, false +// BuildServicePropertiesResourceRequests the runtime resource configuration of this build service. +type BuildServicePropertiesResourceRequests struct { + // CPU - READ-ONLY; vCPU allocated to the entire build service node pool. + CPU *string `json:"cpu,omitempty"` + // Memory - READ-ONLY; Memory allocated to the entire build service node pool. + Memory *string `json:"memory,omitempty"` } -// AsBasicUserSourceInfo is the BasicUserSourceInfo implementation for BuildResultUserSourceInfo. -func (brusi BuildResultUserSourceInfo) AsBasicUserSourceInfo() (BasicUserSourceInfo, bool) { - return &brusi, true +// MarshalJSON is the custom marshaler for BuildServicePropertiesResourceRequests. +func (bspR BuildServicePropertiesResourceRequests) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) } -// BuildService build service resource payload -type BuildService struct { - autorest.Response `json:"-"` - // Properties - Properties of the build resource - Properties *BuildServiceProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The name of the resource. +// BuildStageProperties the build stage (init-container and container) resources in build pod. +type BuildStageProperties struct { + // Name - READ-ONLY; The name of this build stage resource. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. - Type *string `json:"type,omitempty"` - SystemData *SystemData `json:"systemData,omitempty"` + // Status - READ-ONLY; The provisioning state of this build stage resource. Possible values include: 'KPackBuildStageProvisioningStateNotStarted', 'KPackBuildStageProvisioningStateRunning', 'KPackBuildStageProvisioningStateSucceeded', 'KPackBuildStageProvisioningStateFailed' + Status KPackBuildStageProvisioningState `json:"status,omitempty"` } -// MarshalJSON is the custom marshaler for BuildService. -func (bs BuildService) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for BuildStageProperties. +func (bsp BuildStageProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if bs.Properties != nil { - objectMap["properties"] = bs.Properties - } - if bs.SystemData != nil { - objectMap["systemData"] = bs.SystemData - } return json.Marshal(objectMap) } -// BuildServiceAgentPoolProperties build service agent pool properties -type BuildServiceAgentPoolProperties struct { - // ProvisioningState - READ-ONLY; Provisioning state of the build service agent pool - ProvisioningState *string `json:"provisioningState,omitempty"` - // PoolSize - build service agent pool size properties - PoolSize *BuildServiceAgentPoolSizeProperties `json:"poolSize,omitempty"` +// BuilderProperties kPack Builder properties payload +type BuilderProperties struct { + // ProvisioningState - READ-ONLY; Builder provision status. Possible values include: 'BuilderProvisioningStateCreating', 'BuilderProvisioningStateUpdating', 'BuilderProvisioningStateSucceeded', 'BuilderProvisioningStateFailed', 'BuilderProvisioningStateDeleting' + ProvisioningState BuilderProvisioningState `json:"provisioningState,omitempty"` + // Stack - Builder cluster stack property. + Stack *StackProperties `json:"stack,omitempty"` + // BuildpackGroups - Builder buildpack groups. + BuildpackGroups *[]BuildpacksGroupProperties `json:"buildpackGroups,omitempty"` } -// MarshalJSON is the custom marshaler for BuildServiceAgentPoolProperties. -func (bsapp BuildServiceAgentPoolProperties) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for BuilderProperties. +func (bp BuilderProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if bsapp.PoolSize != nil { - objectMap["poolSize"] = bsapp.PoolSize + if bp.Stack != nil { + objectMap["stack"] = bp.Stack + } + if bp.BuildpackGroups != nil { + objectMap["buildpackGroups"] = bp.BuildpackGroups } return json.Marshal(objectMap) } -// BuildServiceAgentPoolResource the build service agent pool resource -type BuildServiceAgentPoolResource struct { +// BuilderResource kPack Builder resource +type BuilderResource struct { autorest.Response `json:"-"` - // Properties - build service agent pool properties - Properties *BuildServiceAgentPoolProperties `json:"properties,omitempty"` + // Properties - Property of the Builder resource. + Properties *BuilderProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource. @@ -2780,41 +2813,40 @@ type BuildServiceAgentPoolResource struct { SystemData *SystemData `json:"systemData,omitempty"` } -// MarshalJSON is the custom marshaler for BuildServiceAgentPoolResource. -func (bsapr BuildServiceAgentPoolResource) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for BuilderResource. +func (br BuilderResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if bsapr.Properties != nil { - objectMap["properties"] = bsapr.Properties + if br.Properties != nil { + objectMap["properties"] = br.Properties } - if bsapr.SystemData != nil { - objectMap["systemData"] = bsapr.SystemData + if br.SystemData != nil { + objectMap["systemData"] = br.SystemData } return json.Marshal(objectMap) } -// BuildServiceAgentPoolResourceCollection object that includes an array of build service agent pool -// resources and a possible link for next set -type BuildServiceAgentPoolResourceCollection struct { +// BuilderResourceCollection object that includes an array of Builder resources and a possible link for +// next set +type BuilderResourceCollection struct { autorest.Response `json:"-"` - // Value - Collection of build service agent pool resource - Value *[]BuildServiceAgentPoolResource `json:"value,omitempty"` + // Value - Collection of Builder resources + Value *[]BuilderResource `json:"value,omitempty"` // NextLink - URL client should use to fetch the next page (per server side paging). // It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` } -// BuildServiceAgentPoolResourceCollectionIterator provides access to a complete listing of -// BuildServiceAgentPoolResource values. -type BuildServiceAgentPoolResourceCollectionIterator struct { +// BuilderResourceCollectionIterator provides access to a complete listing of BuilderResource values. +type BuilderResourceCollectionIterator struct { i int - page BuildServiceAgentPoolResourceCollectionPage + page BuilderResourceCollectionPage } // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. -func (iter *BuildServiceAgentPoolResourceCollectionIterator) NextWithContext(ctx context.Context) (err error) { +func (iter *BuilderResourceCollectionIterator) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceAgentPoolResourceCollectionIterator.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuilderResourceCollectionIterator.NextWithContext") defer func() { sc := -1 if iter.Response().Response.Response != nil { @@ -2839,67 +2871,67 @@ func (iter *BuildServiceAgentPoolResourceCollectionIterator) NextWithContext(ctx // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (iter *BuildServiceAgentPoolResourceCollectionIterator) Next() error { +func (iter *BuilderResourceCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } // NotDone returns true if the enumeration should be started or is not yet complete. -func (iter BuildServiceAgentPoolResourceCollectionIterator) NotDone() bool { +func (iter BuilderResourceCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } // Response returns the raw server response from the last page request. -func (iter BuildServiceAgentPoolResourceCollectionIterator) Response() BuildServiceAgentPoolResourceCollection { +func (iter BuilderResourceCollectionIterator) Response() BuilderResourceCollection { return iter.page.Response() } // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. -func (iter BuildServiceAgentPoolResourceCollectionIterator) Value() BuildServiceAgentPoolResource { +func (iter BuilderResourceCollectionIterator) Value() BuilderResource { if !iter.page.NotDone() { - return BuildServiceAgentPoolResource{} + return BuilderResource{} } return iter.page.Values()[iter.i] } -// Creates a new instance of the BuildServiceAgentPoolResourceCollectionIterator type. -func NewBuildServiceAgentPoolResourceCollectionIterator(page BuildServiceAgentPoolResourceCollectionPage) BuildServiceAgentPoolResourceCollectionIterator { - return BuildServiceAgentPoolResourceCollectionIterator{page: page} +// Creates a new instance of the BuilderResourceCollectionIterator type. +func NewBuilderResourceCollectionIterator(page BuilderResourceCollectionPage) BuilderResourceCollectionIterator { + return BuilderResourceCollectionIterator{page: page} } // IsEmpty returns true if the ListResult contains no values. -func (bsaprc BuildServiceAgentPoolResourceCollection) IsEmpty() bool { - return bsaprc.Value == nil || len(*bsaprc.Value) == 0 +func (brc BuilderResourceCollection) IsEmpty() bool { + return brc.Value == nil || len(*brc.Value) == 0 } // hasNextLink returns true if the NextLink is not empty. -func (bsaprc BuildServiceAgentPoolResourceCollection) hasNextLink() bool { - return bsaprc.NextLink != nil && len(*bsaprc.NextLink) != 0 +func (brc BuilderResourceCollection) hasNextLink() bool { + return brc.NextLink != nil && len(*brc.NextLink) != 0 } -// buildServiceAgentPoolResourceCollectionPreparer prepares a request to retrieve the next set of results. +// builderResourceCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. -func (bsaprc BuildServiceAgentPoolResourceCollection) buildServiceAgentPoolResourceCollectionPreparer(ctx context.Context) (*http.Request, error) { - if !bsaprc.hasNextLink() { +func (brc BuilderResourceCollection) builderResourceCollectionPreparer(ctx context.Context) (*http.Request, error) { + if !brc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), autorest.AsJSON(), autorest.AsGet(), - autorest.WithBaseURL(to.String(bsaprc.NextLink))) + autorest.WithBaseURL(to.String(brc.NextLink))) } -// BuildServiceAgentPoolResourceCollectionPage contains a page of BuildServiceAgentPoolResource values. -type BuildServiceAgentPoolResourceCollectionPage struct { - fn func(context.Context, BuildServiceAgentPoolResourceCollection) (BuildServiceAgentPoolResourceCollection, error) - bsaprc BuildServiceAgentPoolResourceCollection +// BuilderResourceCollectionPage contains a page of BuilderResource values. +type BuilderResourceCollectionPage struct { + fn func(context.Context, BuilderResourceCollection) (BuilderResourceCollection, error) + brc BuilderResourceCollection } // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. -func (page *BuildServiceAgentPoolResourceCollectionPage) NextWithContext(ctx context.Context) (err error) { +func (page *BuilderResourceCollectionPage) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceAgentPoolResourceCollectionPage.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuilderResourceCollectionPage.NextWithContext") defer func() { sc := -1 if page.Response().Response.Response != nil { @@ -2909,11 +2941,11 @@ func (page *BuildServiceAgentPoolResourceCollectionPage) NextWithContext(ctx con }() } for { - next, err := page.fn(ctx, page.bsaprc) + next, err := page.fn(ctx, page.brc) if err != nil { return err } - page.bsaprc = next + page.brc = next if !next.hasNextLink() || !next.IsEmpty() { break } @@ -2924,109 +2956,47 @@ func (page *BuildServiceAgentPoolResourceCollectionPage) NextWithContext(ctx con // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (page *BuildServiceAgentPoolResourceCollectionPage) Next() error { +func (page *BuilderResourceCollectionPage) Next() error { return page.NextWithContext(context.Background()) } // NotDone returns true if the page enumeration should be started or is not yet complete. -func (page BuildServiceAgentPoolResourceCollectionPage) NotDone() bool { - return !page.bsaprc.IsEmpty() +func (page BuilderResourceCollectionPage) NotDone() bool { + return !page.brc.IsEmpty() } // Response returns the raw server response from the last page request. -func (page BuildServiceAgentPoolResourceCollectionPage) Response() BuildServiceAgentPoolResourceCollection { - return page.bsaprc -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page BuildServiceAgentPoolResourceCollectionPage) Values() []BuildServiceAgentPoolResource { - if page.bsaprc.IsEmpty() { - return nil - } - return *page.bsaprc.Value -} - -// Creates a new instance of the BuildServiceAgentPoolResourceCollectionPage type. -func NewBuildServiceAgentPoolResourceCollectionPage(cur BuildServiceAgentPoolResourceCollection, getNextPage func(context.Context, BuildServiceAgentPoolResourceCollection) (BuildServiceAgentPoolResourceCollection, error)) BuildServiceAgentPoolResourceCollectionPage { - return BuildServiceAgentPoolResourceCollectionPage{ - fn: getNextPage, - bsaprc: cur, - } -} - -// BuildServiceAgentPoolSizeProperties build service agent pool size properties -type BuildServiceAgentPoolSizeProperties struct { - // Name - The name of build service agent pool size - Name *string `json:"name,omitempty"` - // CPU - READ-ONLY; The cpu property of build service agent pool size - CPU *string `json:"cpu,omitempty"` - // Memory - READ-ONLY; The memory property of build service agent pool size - Memory *string `json:"memory,omitempty"` -} - -// MarshalJSON is the custom marshaler for BuildServiceAgentPoolSizeProperties. -func (bsapsp BuildServiceAgentPoolSizeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if bsapsp.Name != nil { - objectMap["name"] = bsapsp.Name - } - return json.Marshal(objectMap) -} - -// BuildServiceAgentPoolUpdatePutFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type BuildServiceAgentPoolUpdatePutFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(BuildServiceAgentPoolClient) (BuildServiceAgentPoolResource, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *BuildServiceAgentPoolUpdatePutFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil +func (page BuilderResourceCollectionPage) Response() BuilderResourceCollection { + return page.brc } -// result is the default implementation for BuildServiceAgentPoolUpdatePutFuture.Result. -func (future *BuildServiceAgentPoolUpdatePutFuture) result(client BuildServiceAgentPoolClient) (bsapr BuildServiceAgentPoolResource, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceAgentPoolUpdatePutFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - bsapr.Response.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("appplatform.BuildServiceAgentPoolUpdatePutFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if bsapr.Response.Response, err = future.GetResult(sender); err == nil && bsapr.Response.Response.StatusCode != http.StatusNoContent { - bsapr, err = client.UpdatePutResponder(bsapr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceAgentPoolUpdatePutFuture", "Result", bsapr.Response.Response, "Failure responding to request") - } +// Values returns the slice of values for the current page or nil if there are no values. +func (page BuilderResourceCollectionPage) Values() []BuilderResource { + if page.brc.IsEmpty() { + return nil } - return + return *page.brc.Value } -// BuildServiceBuilderCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// Creates a new instance of the BuilderResourceCollectionPage type. +func NewBuilderResourceCollectionPage(cur BuilderResourceCollection, getNextPage func(context.Context, BuilderResourceCollection) (BuilderResourceCollection, error)) BuilderResourceCollectionPage { + return BuilderResourceCollectionPage{ + fn: getNextPage, + brc: cur, + } +} + +// BuildpackBindingCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. -type BuildServiceBuilderCreateOrUpdateFuture struct { +type BuildpackBindingCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. - Result func(BuildServiceBuilderClient) (BuilderResource, error) + Result func(BuildpackBindingClient) (BuildpackBindingResource, error) } // UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *BuildServiceBuilderCreateOrUpdateFuture) UnmarshalJSON(body []byte) error { +func (future *BuildpackBindingCreateOrUpdateFuture) UnmarshalJSON(body []byte) error { var azFuture azure.Future if err := json.Unmarshal(body, &azFuture); err != nil { return err @@ -3036,40 +3006,40 @@ func (future *BuildServiceBuilderCreateOrUpdateFuture) UnmarshalJSON(body []byte return nil } -// result is the default implementation for BuildServiceBuilderCreateOrUpdateFuture.Result. -func (future *BuildServiceBuilderCreateOrUpdateFuture) result(client BuildServiceBuilderClient) (br BuilderResource, err error) { +// result is the default implementation for BuildpackBindingCreateOrUpdateFuture.Result. +func (future *BuildpackBindingCreateOrUpdateFuture) result(client BuildpackBindingClient) (bbr BuildpackBindingResource, err error) { var done bool done, err = future.DoneWithContext(context.Background(), client) if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceBuilderCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + err = autorest.NewErrorWithError(err, "appplatform.BuildpackBindingCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return } if !done { - br.Response.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("appplatform.BuildServiceBuilderCreateOrUpdateFuture") + bbr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("appplatform.BuildpackBindingCreateOrUpdateFuture") return } sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if br.Response.Response, err = future.GetResult(sender); err == nil && br.Response.Response.StatusCode != http.StatusNoContent { - br, err = client.CreateOrUpdateResponder(br.Response.Response) + if bbr.Response.Response, err = future.GetResult(sender); err == nil && bbr.Response.Response.StatusCode != http.StatusNoContent { + bbr, err = client.CreateOrUpdateResponder(bbr.Response.Response) if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceBuilderCreateOrUpdateFuture", "Result", br.Response.Response, "Failure responding to request") + err = autorest.NewErrorWithError(err, "appplatform.BuildpackBindingCreateOrUpdateFuture", "Result", bbr.Response.Response, "Failure responding to request") } } return } -// BuildServiceBuilderDeleteFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type BuildServiceBuilderDeleteFuture struct { +// BuildpackBindingDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type BuildpackBindingDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. - Result func(BuildServiceBuilderClient) (autorest.Response, error) + Result func(BuildpackBindingClient) (autorest.Response, error) } // UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *BuildServiceBuilderDeleteFuture) UnmarshalJSON(body []byte) error { +func (future *BuildpackBindingDeleteFuture) UnmarshalJSON(body []byte) error { var azFuture azure.Future if err := json.Unmarshal(body, &azFuture); err != nil { return err @@ -3079,45 +3049,114 @@ func (future *BuildServiceBuilderDeleteFuture) UnmarshalJSON(body []byte) error return nil } -// result is the default implementation for BuildServiceBuilderDeleteFuture.Result. -func (future *BuildServiceBuilderDeleteFuture) result(client BuildServiceBuilderClient) (ar autorest.Response, err error) { +// result is the default implementation for BuildpackBindingDeleteFuture.Result. +func (future *BuildpackBindingDeleteFuture) result(client BuildpackBindingClient) (ar autorest.Response, err error) { var done bool done, err = future.DoneWithContext(context.Background(), client) if err != nil { - err = autorest.NewErrorWithError(err, "appplatform.BuildServiceBuilderDeleteFuture", "Result", future.Response(), "Polling failure") + err = autorest.NewErrorWithError(err, "appplatform.BuildpackBindingDeleteFuture", "Result", future.Response(), "Polling failure") return } if !done { ar.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("appplatform.BuildServiceBuilderDeleteFuture") + err = azure.NewAsyncOpIncompleteError("appplatform.BuildpackBindingDeleteFuture") return } ar.Response = future.Response() return } -// BuildServiceCollection object that includes an array of Build service resources and a possible link for -// next set -type BuildServiceCollection struct { +// BuildpackBindingLaunchProperties buildpack Binding Launch Properties +type BuildpackBindingLaunchProperties struct { + // Properties - Non-sensitive properties for launchProperties + Properties map[string]*string `json:"properties"` + // Secrets - Sensitive properties for launchProperties + Secrets map[string]*string `json:"secrets"` +} + +// MarshalJSON is the custom marshaler for BuildpackBindingLaunchProperties. +func (bblp BuildpackBindingLaunchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bblp.Properties != nil { + objectMap["properties"] = bblp.Properties + } + if bblp.Secrets != nil { + objectMap["secrets"] = bblp.Secrets + } + return json.Marshal(objectMap) +} + +// BuildpackBindingProperties properties of a buildpack binding +type BuildpackBindingProperties struct { + // BindingType - Buildpack Binding Type. Possible values include: 'BindingTypeApplicationInsights', 'BindingTypeApacheSkyWalking', 'BindingTypeAppDynamics', 'BindingTypeDynatrace', 'BindingTypeNewRelic', 'BindingTypeElasticAPM' + BindingType BindingType `json:"bindingType,omitempty"` + // ProvisioningState - READ-ONLY; State of the Buildpack Binding. Possible values include: 'BuildpackBindingProvisioningStateCreating', 'BuildpackBindingProvisioningStateUpdating', 'BuildpackBindingProvisioningStateSucceeded', 'BuildpackBindingProvisioningStateFailed', 'BuildpackBindingProvisioningStateDeleting' + ProvisioningState BuildpackBindingProvisioningState `json:"provisioningState,omitempty"` + // LaunchProperties - The object describes the buildpack binding launch properties + LaunchProperties *BuildpackBindingLaunchProperties `json:"launchProperties,omitempty"` +} + +// MarshalJSON is the custom marshaler for BuildpackBindingProperties. +func (bbp BuildpackBindingProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bbp.BindingType != "" { + objectMap["bindingType"] = bbp.BindingType + } + if bbp.LaunchProperties != nil { + objectMap["launchProperties"] = bbp.LaunchProperties + } + return json.Marshal(objectMap) +} + +// BuildpackBindingResource buildpack Binding Resource object +type BuildpackBindingResource struct { autorest.Response `json:"-"` - // Value - Collection of Build service resources - Value *[]BuildService `json:"value,omitempty"` + // Properties - Properties of a buildpack binding + Properties *BuildpackBindingProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Fully qualified resource Id for the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of the resource. + Type *string `json:"type,omitempty"` + SystemData *SystemData `json:"systemData,omitempty"` +} + +// MarshalJSON is the custom marshaler for BuildpackBindingResource. +func (bbr BuildpackBindingResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if bbr.Properties != nil { + objectMap["properties"] = bbr.Properties + } + if bbr.SystemData != nil { + objectMap["systemData"] = bbr.SystemData + } + return json.Marshal(objectMap) +} + +// BuildpackBindingResourceCollection object that includes an array of BuildpackBinding resources and a +// possible link for next set +type BuildpackBindingResourceCollection struct { + autorest.Response `json:"-"` + // Value - Collection of BuildpackBinding resources + Value *[]BuildpackBindingResource `json:"value,omitempty"` // NextLink - URL client should use to fetch the next page (per server side paging). // It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` } -// BuildServiceCollectionIterator provides access to a complete listing of BuildService values. -type BuildServiceCollectionIterator struct { +// BuildpackBindingResourceCollectionIterator provides access to a complete listing of +// BuildpackBindingResource values. +type BuildpackBindingResourceCollectionIterator struct { i int - page BuildServiceCollectionPage + page BuildpackBindingResourceCollectionPage } // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. -func (iter *BuildServiceCollectionIterator) NextWithContext(ctx context.Context) (err error) { +func (iter *BuildpackBindingResourceCollectionIterator) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceCollectionIterator.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildpackBindingResourceCollectionIterator.NextWithContext") defer func() { sc := -1 if iter.Response().Response.Response != nil { @@ -3142,67 +3181,67 @@ func (iter *BuildServiceCollectionIterator) NextWithContext(ctx context.Context) // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (iter *BuildServiceCollectionIterator) Next() error { +func (iter *BuildpackBindingResourceCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } // NotDone returns true if the enumeration should be started or is not yet complete. -func (iter BuildServiceCollectionIterator) NotDone() bool { +func (iter BuildpackBindingResourceCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } // Response returns the raw server response from the last page request. -func (iter BuildServiceCollectionIterator) Response() BuildServiceCollection { +func (iter BuildpackBindingResourceCollectionIterator) Response() BuildpackBindingResourceCollection { return iter.page.Response() } // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. -func (iter BuildServiceCollectionIterator) Value() BuildService { +func (iter BuildpackBindingResourceCollectionIterator) Value() BuildpackBindingResource { if !iter.page.NotDone() { - return BuildService{} + return BuildpackBindingResource{} } return iter.page.Values()[iter.i] } -// Creates a new instance of the BuildServiceCollectionIterator type. -func NewBuildServiceCollectionIterator(page BuildServiceCollectionPage) BuildServiceCollectionIterator { - return BuildServiceCollectionIterator{page: page} +// Creates a new instance of the BuildpackBindingResourceCollectionIterator type. +func NewBuildpackBindingResourceCollectionIterator(page BuildpackBindingResourceCollectionPage) BuildpackBindingResourceCollectionIterator { + return BuildpackBindingResourceCollectionIterator{page: page} } // IsEmpty returns true if the ListResult contains no values. -func (bsc BuildServiceCollection) IsEmpty() bool { - return bsc.Value == nil || len(*bsc.Value) == 0 +func (bbrc BuildpackBindingResourceCollection) IsEmpty() bool { + return bbrc.Value == nil || len(*bbrc.Value) == 0 } // hasNextLink returns true if the NextLink is not empty. -func (bsc BuildServiceCollection) hasNextLink() bool { - return bsc.NextLink != nil && len(*bsc.NextLink) != 0 +func (bbrc BuildpackBindingResourceCollection) hasNextLink() bool { + return bbrc.NextLink != nil && len(*bbrc.NextLink) != 0 } -// buildServiceCollectionPreparer prepares a request to retrieve the next set of results. +// buildpackBindingResourceCollectionPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. -func (bsc BuildServiceCollection) buildServiceCollectionPreparer(ctx context.Context) (*http.Request, error) { - if !bsc.hasNextLink() { +func (bbrc BuildpackBindingResourceCollection) buildpackBindingResourceCollectionPreparer(ctx context.Context) (*http.Request, error) { + if !bbrc.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), autorest.AsJSON(), autorest.AsGet(), - autorest.WithBaseURL(to.String(bsc.NextLink))) + autorest.WithBaseURL(to.String(bbrc.NextLink))) } -// BuildServiceCollectionPage contains a page of BuildService values. -type BuildServiceCollectionPage struct { - fn func(context.Context, BuildServiceCollection) (BuildServiceCollection, error) - bsc BuildServiceCollection +// BuildpackBindingResourceCollectionPage contains a page of BuildpackBindingResource values. +type BuildpackBindingResourceCollectionPage struct { + fn func(context.Context, BuildpackBindingResourceCollection) (BuildpackBindingResourceCollection, error) + bbrc BuildpackBindingResourceCollection } // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. -func (page *BuildServiceCollectionPage) NextWithContext(ctx context.Context) (err error) { +func (page *BuildpackBindingResourceCollectionPage) NextWithContext(ctx context.Context) (err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceCollectionPage.NextWithContext") + ctx = tracing.StartSpan(ctx, fqdn+"/BuildpackBindingResourceCollectionPage.NextWithContext") defer func() { sc := -1 if page.Response().Response.Response != nil { @@ -3212,11 +3251,11 @@ func (page *BuildServiceCollectionPage) NextWithContext(ctx context.Context) (er }() } for { - next, err := page.fn(ctx, page.bsc) + next, err := page.fn(ctx, page.bbrc) if err != nil { return err } - page.bsc = next + page.bbrc = next if !next.hasNextLink() || !next.IsEmpty() { break } @@ -3227,84 +3266,48 @@ func (page *BuildServiceCollectionPage) NextWithContext(ctx context.Context) (er // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. -func (page *BuildServiceCollectionPage) Next() error { +func (page *BuildpackBindingResourceCollectionPage) Next() error { return page.NextWithContext(context.Background()) } // NotDone returns true if the page enumeration should be started or is not yet complete. -func (page BuildServiceCollectionPage) NotDone() bool { - return !page.bsc.IsEmpty() +func (page BuildpackBindingResourceCollectionPage) NotDone() bool { + return !page.bbrc.IsEmpty() } // Response returns the raw server response from the last page request. -func (page BuildServiceCollectionPage) Response() BuildServiceCollection { - return page.bsc +func (page BuildpackBindingResourceCollectionPage) Response() BuildpackBindingResourceCollection { + return page.bbrc } // Values returns the slice of values for the current page or nil if there are no values. -func (page BuildServiceCollectionPage) Values() []BuildService { - if page.bsc.IsEmpty() { +func (page BuildpackBindingResourceCollectionPage) Values() []BuildpackBindingResource { + if page.bbrc.IsEmpty() { return nil } - return *page.bsc.Value -} - -// Creates a new instance of the BuildServiceCollectionPage type. -func NewBuildServiceCollectionPage(cur BuildServiceCollection, getNextPage func(context.Context, BuildServiceCollection) (BuildServiceCollection, error)) BuildServiceCollectionPage { - return BuildServiceCollectionPage{ - fn: getNextPage, - bsc: cur, - } -} - -// BuildServiceProperties build service resource properties payload -type BuildServiceProperties struct { - // KPackVersion - The installed KPack version in this build service. - KPackVersion *string `json:"kPackVersion,omitempty"` - // ProvisioningState - READ-ONLY; Provisioning state of the KPack build result. Possible values include: 'BuildServiceProvisioningStateCreating', 'BuildServiceProvisioningStateUpdating', 'BuildServiceProvisioningStateSucceeded', 'BuildServiceProvisioningStateFailed', 'BuildServiceProvisioningStateDeleting' - ProvisioningState BuildServiceProvisioningState `json:"provisioningState,omitempty"` - // ResourceRequests - The runtime resource configuration of this build service. - ResourceRequests *BuildServicePropertiesResourceRequests `json:"resourceRequests,omitempty"` -} - -// MarshalJSON is the custom marshaler for BuildServiceProperties. -func (bsp BuildServiceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if bsp.KPackVersion != nil { - objectMap["kPackVersion"] = bsp.KPackVersion - } - if bsp.ResourceRequests != nil { - objectMap["resourceRequests"] = bsp.ResourceRequests - } - return json.Marshal(objectMap) -} - -// BuildServicePropertiesResourceRequests the runtime resource configuration of this build service. -type BuildServicePropertiesResourceRequests struct { - // CPU - READ-ONLY; vCPU allocated to the entire build service node pool. - CPU *string `json:"cpu,omitempty"` - // Memory - READ-ONLY; Memory allocated to the entire build service node pool. - Memory *string `json:"memory,omitempty"` + return *page.bbrc.Value } -// MarshalJSON is the custom marshaler for BuildServicePropertiesResourceRequests. -func (bspR BuildServicePropertiesResourceRequests) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) +// Creates a new instance of the BuildpackBindingResourceCollectionPage type. +func NewBuildpackBindingResourceCollectionPage(cur BuildpackBindingResourceCollection, getNextPage func(context.Context, BuildpackBindingResourceCollection) (BuildpackBindingResourceCollection, error)) BuildpackBindingResourceCollectionPage { + return BuildpackBindingResourceCollectionPage{ + fn: getNextPage, + bbrc: cur, + } } -// BuildStageProperties the build stage (init-container and container) resources in build pod. -type BuildStageProperties struct { - // Name - READ-ONLY; The name of this build stage resource. - Name *string `json:"name,omitempty"` - // Status - READ-ONLY; The provisioning state of this build stage resource. Possible values include: 'KPackBuildStageProvisioningStateNotStarted', 'KPackBuildStageProvisioningStateRunning', 'KPackBuildStageProvisioningStateSucceeded', 'KPackBuildStageProvisioningStateFailed' - Status KPackBuildStageProvisioningState `json:"status,omitempty"` +// BuildpackProperties buildpack properties payload +type BuildpackProperties struct { + // ID - Id of the buildpack + ID *string `json:"id,omitempty"` } -// MarshalJSON is the custom marshaler for BuildStageProperties. -func (bsp BuildStageProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) +// BuildpacksGroupProperties buildpack group properties of the Builder +type BuildpacksGroupProperties struct { + // Name - Buildpack group name + Name *string `json:"name,omitempty"` + // Buildpacks - Buildpacks in the buildpack group + Buildpacks *[]BuildpackProperties `json:"buildpacks,omitempty"` } // BasicCertificateProperties certificate resource payload. @@ -4293,6 +4296,17 @@ func (csrr ConfigurationServiceResourceRequests) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// ConfigurationServiceSettings the settings of Application Configuration Service. +type ConfigurationServiceSettings struct { + GitProperty *ConfigurationServiceGitProperty `json:"gitProperty,omitempty"` +} + +// ConfigurationServiceSettingsValidateResult validation result for configuration service settings +type ConfigurationServiceSettingsValidateResult struct { + autorest.Response `json:"-"` + GitPropertyValidationResult *ConfigurationServiceGitPropertyValidateResult `json:"gitPropertyValidationResult,omitempty"` +} + // ConfigurationServicesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ConfigurationServicesCreateOrUpdateFuture struct { @@ -4373,17 +4387,6 @@ func (future *ConfigurationServicesDeleteFuture) result(client ConfigurationServ return } -// ConfigurationServiceSettings the settings of Application Configuration Service. -type ConfigurationServiceSettings struct { - GitProperty *ConfigurationServiceGitProperty `json:"gitProperty,omitempty"` -} - -// ConfigurationServiceSettingsValidateResult validation result for configuration service settings -type ConfigurationServiceSettingsValidateResult struct { - autorest.Response `json:"-"` - GitPropertyValidationResult *ConfigurationServiceGitPropertyValidateResult `json:"gitPropertyValidationResult,omitempty"` -} - // ConfigurationServicesValidateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type ConfigurationServicesValidateFuture struct { @@ -4787,6 +4790,21 @@ func NewCustomDomainResourceCollectionPage(cur CustomDomainResourceCollection, g } } +// CustomDomainValidatePayload custom domain validate payload. +type CustomDomainValidatePayload struct { + // Name - Name to be validated + Name *string `json:"name,omitempty"` +} + +// CustomDomainValidateResult validation result for custom domain. +type CustomDomainValidateResult struct { + autorest.Response `json:"-"` + // IsValid - Indicates if domain name is valid. + IsValid *bool `json:"isValid,omitempty"` + // Message - Message of why domain name is invalid. + Message *string `json:"message,omitempty"` +} + // CustomDomainsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type CustomDomainsCreateOrUpdateFuture struct { @@ -4910,21 +4928,6 @@ func (future *CustomDomainsUpdateFuture) result(client CustomDomainsClient) (cdr return } -// CustomDomainValidatePayload custom domain validate payload. -type CustomDomainValidatePayload struct { - // Name - Name to be validated - Name *string `json:"name,omitempty"` -} - -// CustomDomainValidateResult validation result for custom domain. -type CustomDomainValidateResult struct { - autorest.Response `json:"-"` - // IsValid - Indicates if domain name is valid. - IsValid *bool `json:"isValid,omitempty"` - // Message - Message of why domain name is invalid. - Message *string `json:"message,omitempty"` -} - // BasicCustomPersistentDiskProperties custom persistent disk resource payload. type BasicCustomPersistentDiskProperties interface { AsAzureFileVolume() (*AzureFileVolume, bool) @@ -5076,6 +5079,13 @@ func (di DeploymentInstance) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// DeploymentList a list of deployments resource ids. +type DeploymentList struct { + autorest.Response `json:"-"` + // Deployments - A list of deployment resource ids. + Deployments *[]string `json:"deployments,omitempty"` +} + // DeploymentResource deployment resource payload type DeploymentResource struct { autorest.Response `json:"-"` @@ -5365,6 +5375,55 @@ func (drp *DeploymentResourceProperties) UnmarshalJSON(body []byte) error { return nil } +// DeploymentSettings deployment settings payload +type DeploymentSettings struct { + // ResourceRequests - The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later. + ResourceRequests *ResourceRequests `json:"resourceRequests,omitempty"` + // EnvironmentVariables - Collection of environment variables + EnvironmentVariables map[string]*string `json:"environmentVariables"` + // AddonConfigs - Collection of addons + AddonConfigs map[string]map[string]interface{} `json:"addonConfigs"` + // LivenessProbe - Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + LivenessProbe *Probe `json:"livenessProbe,omitempty"` + // ReadinessProbe - Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + ReadinessProbe *Probe `json:"readinessProbe,omitempty"` + // StartupProbe - StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + StartupProbe *Probe `json:"startupProbe,omitempty"` + // TerminationGracePeriodSeconds - Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds. + TerminationGracePeriodSeconds *int32 `json:"terminationGracePeriodSeconds,omitempty"` + ContainerProbeSettings *ContainerProbeSettings `json:"containerProbeSettings,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeploymentSettings. +func (ds DeploymentSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ds.ResourceRequests != nil { + objectMap["resourceRequests"] = ds.ResourceRequests + } + if ds.EnvironmentVariables != nil { + objectMap["environmentVariables"] = ds.EnvironmentVariables + } + if ds.AddonConfigs != nil { + objectMap["addonConfigs"] = ds.AddonConfigs + } + if ds.LivenessProbe != nil { + objectMap["livenessProbe"] = ds.LivenessProbe + } + if ds.ReadinessProbe != nil { + objectMap["readinessProbe"] = ds.ReadinessProbe + } + if ds.StartupProbe != nil { + objectMap["startupProbe"] = ds.StartupProbe + } + if ds.TerminationGracePeriodSeconds != nil { + objectMap["terminationGracePeriodSeconds"] = ds.TerminationGracePeriodSeconds + } + if ds.ContainerProbeSettings != nil { + objectMap["containerProbeSettings"] = ds.ContainerProbeSettings + } + return json.Marshal(objectMap) +} + // DeploymentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type DeploymentsCreateOrUpdateFuture struct { @@ -5445,53 +5504,90 @@ func (future *DeploymentsDeleteFuture) result(client DeploymentsClient) (ar auto return } -// DeploymentSettings deployment settings payload -type DeploymentSettings struct { - // ResourceRequests - The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later. - ResourceRequests *ResourceRequests `json:"resourceRequests,omitempty"` - // EnvironmentVariables - Collection of environment variables - EnvironmentVariables map[string]*string `json:"environmentVariables"` - // AddonConfigs - Collection of addons - AddonConfigs map[string]map[string]interface{} `json:"addonConfigs"` - // LivenessProbe - Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - LivenessProbe *Probe `json:"livenessProbe,omitempty"` - // ReadinessProbe - Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - ReadinessProbe *Probe `json:"readinessProbe,omitempty"` - // StartupProbe - StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - StartupProbe *Probe `json:"startupProbe,omitempty"` - // TerminationGracePeriodSeconds - Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds. - TerminationGracePeriodSeconds *int32 `json:"terminationGracePeriodSeconds,omitempty"` - ContainerProbeSettings *ContainerProbeSettings `json:"containerProbeSettings,omitempty"` +// DeploymentsDisableRemoteDebuggingFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DeploymentsDisableRemoteDebuggingFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DeploymentsClient) (RemoteDebugging, error) } -// MarshalJSON is the custom marshaler for DeploymentSettings. -func (ds DeploymentSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ds.ResourceRequests != nil { - objectMap["resourceRequests"] = ds.ResourceRequests +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DeploymentsDisableRemoteDebuggingFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err } - if ds.EnvironmentVariables != nil { - objectMap["environmentVariables"] = ds.EnvironmentVariables + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DeploymentsDisableRemoteDebuggingFuture.Result. +func (future *DeploymentsDisableRemoteDebuggingFuture) result(client DeploymentsClient) (rd RemoteDebugging, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsDisableRemoteDebuggingFuture", "Result", future.Response(), "Polling failure") + return } - if ds.AddonConfigs != nil { - objectMap["addonConfigs"] = ds.AddonConfigs + if !done { + rd.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("appplatform.DeploymentsDisableRemoteDebuggingFuture") + return } - if ds.LivenessProbe != nil { - objectMap["livenessProbe"] = ds.LivenessProbe + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rd.Response.Response, err = future.GetResult(sender); err == nil && rd.Response.Response.StatusCode != http.StatusNoContent { + rd, err = client.DisableRemoteDebuggingResponder(rd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsDisableRemoteDebuggingFuture", "Result", rd.Response.Response, "Failure responding to request") + } } - if ds.ReadinessProbe != nil { - objectMap["readinessProbe"] = ds.ReadinessProbe + return +} + +// DeploymentsEnableRemoteDebuggingFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DeploymentsEnableRemoteDebuggingFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DeploymentsClient) (RemoteDebugging, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DeploymentsEnableRemoteDebuggingFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err } - if ds.StartupProbe != nil { - objectMap["startupProbe"] = ds.StartupProbe + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DeploymentsEnableRemoteDebuggingFuture.Result. +func (future *DeploymentsEnableRemoteDebuggingFuture) result(client DeploymentsClient) (rd RemoteDebugging, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsEnableRemoteDebuggingFuture", "Result", future.Response(), "Polling failure") + return } - if ds.TerminationGracePeriodSeconds != nil { - objectMap["terminationGracePeriodSeconds"] = ds.TerminationGracePeriodSeconds + if !done { + rd.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("appplatform.DeploymentsEnableRemoteDebuggingFuture") + return } - if ds.ContainerProbeSettings != nil { - objectMap["containerProbeSettings"] = ds.ContainerProbeSettings + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if rd.Response.Response, err = future.GetResult(sender); err == nil && rd.Response.Response.StatusCode != http.StatusNoContent { + rd, err = client.EnableRemoteDebuggingResponder(rd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "appplatform.DeploymentsEnableRemoteDebuggingFuture", "Result", rd.Response.Response, "Failure responding to request") + } } - return json.Marshal(objectMap) + return } // DeploymentsGenerateHeapDumpFuture an abstraction for monitoring and retrieving the results of a @@ -6452,6 +6548,8 @@ type GatewayRouteConfigProperties struct { // AppResourceID - The resource Id of the Azure Spring Apps app, required unless route defines `uri`. AppResourceID *string `json:"appResourceId,omitempty"` OpenAPI *GatewayRouteConfigOpenAPIProperties `json:"openApi,omitempty"` + // Protocol - Protocol of routed Azure Spring Apps applications. Possible values include: 'GatewayRouteConfigProtocolHTTP', 'GatewayRouteConfigProtocolHTTPS' + Protocol GatewayRouteConfigProtocol `json:"protocol,omitempty"` // Routes - Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`. Routes *[]GatewayAPIRoute `json:"routes,omitempty"` } @@ -6465,6 +6563,9 @@ func (grcp GatewayRouteConfigProperties) MarshalJSON() ([]byte, error) { if grcp.OpenAPI != nil { objectMap["openApi"] = grcp.OpenAPI } + if grcp.Protocol != "" { + objectMap["protocol"] = grcp.Protocol + } if grcp.Routes != nil { objectMap["routes"] = grcp.Routes } @@ -6912,6 +7013,28 @@ type IngressConfig struct { ReadTimeoutInSeconds *int32 `json:"readTimeoutInSeconds,omitempty"` } +// IngressSettings app ingress settings payload. +type IngressSettings struct { + // ReadTimeoutInSeconds - Ingress read time out in seconds. + ReadTimeoutInSeconds *int32 `json:"readTimeoutInSeconds,omitempty"` + // SendTimeoutInSeconds - Ingress send time out in seconds. + SendTimeoutInSeconds *int32 `json:"sendTimeoutInSeconds,omitempty"` + // SessionAffinity - Type of the affinity, set this to Cookie to enable session affinity. Possible values include: 'SessionAffinityCookie', 'SessionAffinityNone' + SessionAffinity SessionAffinity `json:"sessionAffinity,omitempty"` + // SessionCookieMaxAge - Time in seconds until the cookie expires. + SessionCookieMaxAge *int32 `json:"sessionCookieMaxAge,omitempty"` + // BackendProtocol - How ingress should communicate with this app backend service. Possible values include: 'BackendProtocolGRPC', 'BackendProtocolDefault' + BackendProtocol BackendProtocol `json:"backendProtocol,omitempty"` + // ClientAuth - Client-Certification Authentication. + ClientAuth *IngressSettingsClientAuth `json:"clientAuth,omitempty"` +} + +// IngressSettingsClientAuth client-Certification Authentication. +type IngressSettingsClientAuth struct { + // Certificates - Collection of certificate resource id. + Certificates *[]string `json:"certificates,omitempty"` +} + // JarUploadedUserSourceInfo uploaded Jar binary for a deployment type JarUploadedUserSourceInfo struct { // RuntimeVersion - Runtime version of the Jar file @@ -7433,6 +7556,8 @@ type NetworkProfile struct { RequiredTraffics *[]RequiredTraffic `json:"requiredTraffics,omitempty"` // IngressConfig - Ingress configuration payload for Azure Spring Apps resource. IngressConfig *IngressConfig `json:"ingressConfig,omitempty"` + // OutboundType - The egress traffic type of Azure Spring Apps VNet instances. + OutboundType *string `json:"outboundType,omitempty"` } // MarshalJSON is the custom marshaler for NetworkProfile. @@ -7456,6 +7581,9 @@ func (np NetworkProfile) MarshalJSON() ([]byte, error) { if np.IngressConfig != nil { objectMap["ingressConfig"] = np.IngressConfig } + if np.OutboundType != nil { + objectMap["outboundType"] = np.OutboundType + } return json.Marshal(objectMap) } @@ -7765,6 +7893,21 @@ type RegenerateTestKeyRequestPayload struct { KeyType TestKeyType `json:"keyType,omitempty"` } +// RemoteDebugging remote debugging config. +type RemoteDebugging struct { + autorest.Response `json:"-"` + // Port - Application debugging port + Port *int32 `json:"port,omitempty"` + // Enabled - Indicate if remote debugging is enabled + Enabled *bool `json:"enabled,omitempty"` +} + +// RemoteDebuggingPayload remote debugging payload. +type RemoteDebuggingPayload struct { + // Port - Application debugging port. + Port *int32 `json:"port,omitempty"` +} + // RequiredTraffic required inbound or outbound traffic for Azure Spring Apps resource. type RequiredTraffic struct { // Protocol - READ-ONLY; The protocol of required traffic @@ -8568,6 +8711,20 @@ func NewServiceResourceListPage(cur ServiceResourceList, getNextPage func(contex } } +// ServiceSpecification service specification payload +type ServiceSpecification struct { + // LogSpecifications - Specifications of the Log for Azure Monitoring + LogSpecifications *[]LogSpecification `json:"logSpecifications,omitempty"` + // MetricSpecifications - Specifications of the Metrics for Azure Monitoring + MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` +} + +// ServiceVNetAddons additional Service settings in vnet injection instance +type ServiceVNetAddons struct { + // LogStreamPublicEndpoint - Indicates whether the log stream in vnet injection instance could be accessed from internet. + LogStreamPublicEndpoint *bool `json:"logStreamPublicEndpoint,omitempty"` +} + // ServicesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServicesCreateOrUpdateFuture struct { @@ -8648,14 +8805,6 @@ func (future *ServicesDeleteFuture) result(client ServicesClient) (ar autorest.R return } -// ServiceSpecification service specification payload -type ServiceSpecification struct { - // LogSpecifications - Specifications of the Log for Azure Monitoring - LogSpecifications *[]LogSpecification `json:"logSpecifications,omitempty"` - // MetricSpecifications - Specifications of the Metrics for Azure Monitoring - MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` -} - // ServicesStartFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServicesStartFuture struct { @@ -8772,12 +8921,6 @@ func (future *ServicesUpdateFuture) result(client ServicesClient) (sr ServiceRes return } -// ServiceVNetAddons additional Service settings in vnet injection instance -type ServiceVNetAddons struct { - // LogStreamPublicEndpoint - Indicates whether the log stream in vnet injection instance could be accessed from internet. - LogStreamPublicEndpoint *bool `json:"logStreamPublicEndpoint,omitempty"` -} - // Sku sku of Azure Spring Apps type Sku struct { // Name - Name of the Sku diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/monitoringsettings.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/monitoringsettings.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/monitoringsettings.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/monitoringsettings.go index aaa5cd07ce58..e626a4e20fa9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/monitoringsettings.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/monitoringsettings.go @@ -8,11 +8,12 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" - "net/http" ) // MonitoringSettingsClient is the REST API for Azure Spring Apps @@ -78,7 +79,7 @@ func (client MonitoringSettingsClient) GetPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -149,7 +150,7 @@ func (client MonitoringSettingsClient) UpdatePatchPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -243,7 +244,7 @@ func (client MonitoringSettingsClient) UpdatePutPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/operations.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/operations.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/operations.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/operations.go index 83707cfec137..9a48c6d949ce 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/operations.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/operations.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // OperationsClient is the REST API for Azure Spring Apps @@ -71,7 +72,7 @@ func (client OperationsClient) List(ctx context.Context) (result AvailableOperat // ListPreparer prepares the List request. func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/runtimeversions.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/runtimeversions.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/runtimeversions.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/runtimeversions.go index a4e59680f208..74c5a1cc8fca 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/runtimeversions.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/runtimeversions.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // RuntimeVersionsClient is the REST API for Azure Spring Apps @@ -66,7 +67,7 @@ func (client RuntimeVersionsClient) ListRuntimeVersions(ctx context.Context) (re // ListRuntimeVersionsPreparer prepares the ListRuntimeVersions request. func (client RuntimeVersionsClient) ListRuntimeVersionsPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/serviceregistries.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/serviceregistries.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/serviceregistries.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/serviceregistries.go index ca0ad3e92377..9e62e7cbcc70 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/serviceregistries.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/serviceregistries.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // ServiceRegistriesClient is the REST API for Azure Spring Apps @@ -72,7 +73,7 @@ func (client ServiceRegistriesClient) CreateOrUpdatePreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -154,7 +155,7 @@ func (client ServiceRegistriesClient) DeletePreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -242,7 +243,7 @@ func (client ServiceRegistriesClient) GetPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -324,7 +325,7 @@ func (client ServiceRegistriesClient) ListPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/services.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/services.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/services.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/services.go index e96ba204297a..f7b54151d65d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/services.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/services.go @@ -8,11 +8,12 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" - "net/http" ) // ServicesClient is the REST API for Azure Spring Apps @@ -82,7 +83,7 @@ func (client ServicesClient) CheckNameAvailabilityPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -155,7 +156,7 @@ func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -237,7 +238,7 @@ func (client ServicesClient) DeletePreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -323,7 +324,7 @@ func (client ServicesClient) DisableTestEndpointPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -399,7 +400,7 @@ func (client ServicesClient) EnableTestEndpointPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -476,7 +477,7 @@ func (client ServicesClient) GetPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -556,7 +557,7 @@ func (client ServicesClient) ListPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -669,7 +670,7 @@ func (client ServicesClient) ListBySubscriptionPreparer(ctx context.Context) (*h "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -783,7 +784,7 @@ func (client ServicesClient) ListTestKeysPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -861,7 +862,7 @@ func (client ServicesClient) RegenerateTestKeyPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -933,7 +934,7 @@ func (client ServicesClient) StartPreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1012,7 +1013,7 @@ func (client ServicesClient) StopPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1092,7 +1093,7 @@ func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/skus.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/skus.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/skus.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/skus.go index 949a9a06d917..7613c4875a43 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/skus.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/skus.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // SkusClient is the REST API for Azure Spring Apps @@ -75,7 +76,7 @@ func (client SkusClient) ListPreparer(ctx context.Context) (*http.Request, error "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/storages.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/storages.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/storages.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/storages.go index 86805955513e..d446159f4609 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/storages.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/storages.go @@ -8,10 +8,11 @@ package appplatform import ( "context" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/tracing" - "net/http" ) // StoragesClient is the REST API for Azure Spring Apps @@ -72,7 +73,7 @@ func (client StoragesClient) CreateOrUpdatePreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -156,7 +157,7 @@ func (client StoragesClient) DeletePreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -244,7 +245,7 @@ func (client StoragesClient) GetPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -326,7 +327,7 @@ func (client StoragesClient) ListPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2022-05-01-preview" + const APIVersion = "2022-09-01-preview" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/version.go similarity index 90% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/version.go rename to vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/version.go index 7ab799fb5ab4..a3e7e7c317fb 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform/version.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform/version.go @@ -10,7 +10,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + Version() + " appplatform/2022-05-01-preview" + return "Azure-SDK-For-Go/" + Version() + " appplatform/2022-09-01-preview" } // Version returns the semantic version (see http://semver.org) of the client. diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/network/2022-05-01/network/models.go b/vendor/github.com/tombuildsstuff/kermit/sdk/network/2022-05-01/network/models.go index d698d95aab43..12eeabd0c72b 100644 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/network/2022-05-01/network/models.go +++ b/vendor/github.com/tombuildsstuff/kermit/sdk/network/2022-05-01/network/models.go @@ -16063,7 +16063,7 @@ type ErrorDetails struct { // ErrorResponse the error object. type ErrorResponse struct { // Error - The error details object. - Error *ErrorDetails `json:"error,omitempty"` + Error *Error `json:"error,omitempty"` } // EvaluatedNetworkSecurityGroup results of network security group evaluation. @@ -57089,11 +57089,16 @@ type WatcherListResult struct { type WatcherPropertiesFormat struct { // ProvisioningState - READ-ONLY; The provisioning state of the network watcher resource. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateFailed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // RunningOperationIds - List of running operation IDs. + RunningOperationIds *[]int32 `json:"runningOperationIds,omitempty"` } // MarshalJSON is the custom marshaler for WatcherPropertiesFormat. func (wpf WatcherPropertiesFormat) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) + if wpf.RunningOperationIds != nil { + objectMap["runningOperationIds"] = wpf.RunningOperationIds + } return json.Marshal(objectMap) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 02c76c616995..0412449c852d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -36,7 +36,6 @@ github.com/Azure/azure-sdk-for-go/services/monitor/mgmt/2020-10-01/insights github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2020-01-01/mysql github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers github.com/Azure/azure-sdk-for-go/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement -github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgmt/2022-05-01-preview/appplatform github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2020-04-01-preview/authorization github.com/Azure/azure-sdk-for-go/services/preview/automation/mgmt/2020-01-13-preview/automation github.com/Azure/azure-sdk-for-go/services/preview/blueprint/mgmt/2018-11-01-preview/blueprint @@ -598,8 +597,9 @@ github.com/tombuildsstuff/giovanni/storage/accesscontrol github.com/tombuildsstuff/giovanni/storage/internal/endpoints github.com/tombuildsstuff/giovanni/storage/internal/metadata github.com/tombuildsstuff/giovanni/version -# github.com/tombuildsstuff/kermit v0.20221104.1101437 +# github.com/tombuildsstuff/kermit v0.20221116.1100927 ## explicit; go 1.18 +github.com/tombuildsstuff/kermit/sdk/appplatform/2022-09-01-preview/appplatform github.com/tombuildsstuff/kermit/sdk/compute/2022-08-01/compute github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub github.com/tombuildsstuff/kermit/sdk/network/2022-05-01/network