diff --git a/azurerm/helpers/azure/app_service.go b/azurerm/helpers/azure/app_service.go index f53c0fc55549..fd9ae4b636f2 100644 --- a/azurerm/helpers/azure/app_service.go +++ b/azurerm/helpers/azure/app_service.go @@ -3,17 +3,22 @@ package azure import ( "fmt" "log" - "net" "regexp" "strings" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/suppress" + "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" ) +const ( + // TODO: switch back once https://github.com/Azure/azure-rest-api-specs/pull/8435 has been fixed + SystemAssignedUserAssigned web.ManagedServiceIdentityType = "SystemAssigned, UserAssigned" +) + func SchemaAppServiceAadAuthSettings() *schema.Schema { return &schema.Schema{ Type: schema.TypeList, @@ -225,7 +230,7 @@ func SchemaAppServiceIdentity() *schema.Schema { ValidateFunc: validation.StringInSlice([]string{ string(web.ManagedServiceIdentityTypeNone), string(web.ManagedServiceIdentityTypeSystemAssigned), - string(web.ManagedServiceIdentityTypeSystemAssignedUserAssigned), + string(SystemAssignedUserAssigned), string(web.ManagedServiceIdentityTypeUserAssigned), }, true), DiffSuppressFunc: suppress.CaseDifference, @@ -302,25 +307,15 @@ func SchemaAppServiceSiteConfig() *schema.Schema { Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "ip_address": { - Type: schema.TypeString, - Optional: true, + Type: schema.TypeString, + Optional: true, + ValidateFunc: validate.CIDR, }, "virtual_network_subnet_id": { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringIsNotEmpty, }, - "subnet_mask": { - Type: schema.TypeString, - Optional: true, - Computed: true, - // TODO we should fix this in 2.0 - // This attribute was made with the assumption that `ip_address` was the only valid option - // but `virtual_network_subnet_id` is being added and doesn't need a `subnet_mask`. - // We'll assume a default of "255.255.255.255" in the expand code when `ip_address` is specified - // and `subnet_mask` is not. - // Default: "255.255.255.255", - }, }, }, }, @@ -477,11 +472,6 @@ func SchemaAppServiceSiteConfig() *schema.Schema { }, false), }, - "virtual_network_name": { - Type: schema.TypeString, - Optional: true, - }, - "cors": SchemaWebCorsSettings(), "auto_swap_slot_name": { @@ -689,10 +679,6 @@ func SchemaAppServiceDataSourceSiteConfig() *schema.Schema { Type: schema.TypeString, Computed: true, }, - "subnet_mask": { - Type: schema.TypeString, - Computed: true, - }, }, }, }, @@ -777,11 +763,6 @@ func SchemaAppServiceDataSourceSiteConfig() *schema.Schema { Computed: true, }, - "virtual_network_name": { - Type: schema.TypeString, - Computed: true, - }, - "cors": { Type: schema.TypeList, Computed: true, @@ -1334,7 +1315,7 @@ func ExpandAppServiceIdentity(input []interface{}) *web.ManagedServiceIdentity { Type: identityType, } - if managedServiceIdentity.Type == web.ManagedServiceIdentityTypeUserAssigned || managedServiceIdentity.Type == web.ManagedServiceIdentityTypeSystemAssignedUserAssigned { + if managedServiceIdentity.Type == web.ManagedServiceIdentityTypeUserAssigned || managedServiceIdentity.Type == SystemAssignedUserAssigned { managedServiceIdentity.UserAssignedIdentities = identityIds } @@ -1439,31 +1420,20 @@ func ExpandAppServiceSiteConfig(input interface{}) (*web.SiteConfig, error) { ipAddress := restriction["ip_address"].(string) vNetSubnetID := restriction["virtual_network_subnet_id"].(string) if vNetSubnetID != "" && ipAddress != "" { - return siteConfig, fmt.Errorf(fmt.Sprintf("only one of `ip_address` or `virtual_network_subnet_id` can set set for `site_config.0.ip_restriction.%d`", i)) + return siteConfig, fmt.Errorf(fmt.Sprintf("only one of `ip_address` or `virtual_network_subnet_id` can be set for `site_config.0.ip_restriction.%d`", i)) } if vNetSubnetID == "" && ipAddress == "" { - return siteConfig, fmt.Errorf(fmt.Sprintf("one of `ip_address` or `virtual_network_subnet_id` must be set set for `site_config.0.ip_restriction.%d`", i)) + return siteConfig, fmt.Errorf(fmt.Sprintf("one of `ip_address` or `virtual_network_subnet_id` must be set for `site_config.0.ip_restriction.%d`", i)) } ipSecurityRestriction := web.IPSecurityRestriction{} + if ipAddress == "Any" { + continue + } + if ipAddress != "" { - mask := restriction["subnet_mask"].(string) - if mask == "" { - mask = "255.255.255.255" - } - // the 2018-02-01 API expects a blank subnet mask and an IP address in CIDR format: a.b.c.d/x - // so translate the IP and mask if necessary - restrictionMask := "" - cidrAddress := ipAddress - if mask != "" { - ipNet := net.IPNet{IP: net.ParseIP(ipAddress), Mask: net.IPMask(net.ParseIP(mask))} - cidrAddress = ipNet.String() - } else if !strings.Contains(ipAddress, "/") { - cidrAddress += "/32" - } - ipSecurityRestriction.IPAddress = &cidrAddress - ipSecurityRestriction.SubnetMask = &restrictionMask + ipSecurityRestriction.IPAddress = &ipAddress } if vNetSubnetID != "" { @@ -1519,10 +1489,6 @@ func ExpandAppServiceSiteConfig(input interface{}) (*web.SiteConfig, error) { siteConfig.MinTLSVersion = web.SupportedTLSVersions(v.(string)) } - if v, ok := config["virtual_network_name"]; ok { - siteConfig.VnetName = utils.String(v.(string)) - } - if v, ok := config["cors"]; ok { corsSettings := v.(interface{}) expand := ExpandWebCorsSettings(corsSettings) @@ -1587,20 +1553,14 @@ func FlattenAppServiceSiteConfig(input *web.SiteConfig) []interface{} { if vs := input.IPSecurityRestrictions; vs != nil { for _, v := range *vs { block := make(map[string]interface{}) + if ip := v.IPAddress; ip != nil { - // the 2018-02-01 API uses CIDR format (a.b.c.d/x), so translate that back to IP and mask - if strings.Contains(*ip, "/") { - ipAddr, ipNet, _ := net.ParseCIDR(*ip) - block["ip_address"] = ipAddr.String() - mask := net.IP(ipNet.Mask) - block["subnet_mask"] = mask.String() + if *ip == "Any" { + continue } else { block["ip_address"] = *ip } } - if subnet := v.SubnetMask; subnet != nil { - block["subnet_mask"] = *subnet - } if vNetSubnetID := v.VnetSubnetResourceID; vNetSubnetID != nil { block["virtual_network_subnet_id"] = *vNetSubnetID } @@ -1643,10 +1603,6 @@ func FlattenAppServiceSiteConfig(input *web.SiteConfig) []interface{} { result["windows_fx_version"] = *input.WindowsFxVersion } - if input.VnetName != nil { - result["virtual_network_name"] = *input.VnetName - } - result["scm_type"] = string(input.ScmType) result["ftps_state"] = string(input.FtpsState) result["min_tls_version"] = string(input.MinTLSVersion) diff --git a/azurerm/helpers/azure/app_service_schedule_backup.go b/azurerm/helpers/azure/app_service_schedule_backup.go index 0a91e3789518..43ae08d1f309 100644 --- a/azurerm/helpers/azure/app_service_schedule_backup.go +++ b/azurerm/helpers/azure/app_service_schedule_backup.go @@ -9,7 +9,7 @@ import ( "github.com/Azure/go-autorest/autorest/date" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate" ) diff --git a/azurerm/helpers/azure/location.go b/azurerm/helpers/azure/location.go index 15213c617abe..8690718f83f2 100644 --- a/azurerm/helpers/azure/location.go +++ b/azurerm/helpers/azure/location.go @@ -35,17 +35,6 @@ func SchemaLocationForDataSource() *schema.Schema { } } -func SchemaLocationDeprecated() *schema.Schema { - return &schema.Schema{ - Type: schema.TypeString, - ForceNew: true, - Optional: true, - StateFunc: NormalizeLocation, - DiffSuppressFunc: SuppressLocationDiff, - Deprecated: "location is no longer used", - } -} - // azure.NormalizeLocation is a function which normalises human-readable region/location // names (e.g. "West US") to the values used and returned by the Azure API (e.g. "westus"). // In state we track the API internal version as it is easier to go from the human form diff --git a/azurerm/helpers/azure/resource_group.go b/azurerm/helpers/azure/resource_group.go index 7f6a5bf71251..8eba7a93d196 100644 --- a/azurerm/helpers/azure/resource_group.go +++ b/azurerm/helpers/azure/resource_group.go @@ -18,15 +18,6 @@ func SchemaResourceGroupName() *schema.Schema { } } -func SchemaResourceGroupNameDeprecated() *schema.Schema { - return &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Computed: true, - Deprecated: "This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider", - } -} - func SchemaResourceGroupNameDiffSuppress() *schema.Schema { return &schema.Schema{ Type: schema.TypeString, diff --git a/azurerm/helpers/azure/web.go b/azurerm/helpers/azure/web.go index 6be741438c01..1b7b313c8d68 100644 --- a/azurerm/helpers/azure/web.go +++ b/azurerm/helpers/azure/web.go @@ -1,7 +1,7 @@ package azure import ( - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" ) diff --git a/azurerm/internal/provider/provider.go b/azurerm/internal/provider/provider.go index 275bd38598de..f55a6173d813 100644 --- a/azurerm/internal/provider/provider.go +++ b/azurerm/internal/provider/provider.go @@ -136,10 +136,9 @@ func AzureProvider() terraform.ResourceProvider { }, "disable_correlation_request_id": { - Type: schema.TypeBool, - Optional: true, - // TODO: add an ARM_ prefix in 2.0w - DefaultFunc: schema.EnvDefaultFunc("DISABLE_CORRELATION_REQUEST_ID", false), + Type: schema.TypeBool, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("ARM_DISABLE_CORRELATION_REQUEST_ID", false), Description: "This will disable the x-ms-correlation-request-id header.", }, diff --git a/azurerm/internal/services/authorization/data_source_client_config.go b/azurerm/internal/services/authorization/data_source_client_config.go index 165e183611fa..21d1a7a613d4 100644 --- a/azurerm/internal/services/authorization/data_source_client_config.go +++ b/azurerm/internal/services/authorization/data_source_client_config.go @@ -4,7 +4,6 @@ import ( "fmt" "time" - "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/timeouts" @@ -38,17 +37,6 @@ func dataSourceArmClientConfig() *schema.Resource { Type: schema.TypeString, Computed: true, }, - - "service_principal_application_id": { - Type: schema.TypeString, - Computed: true, - Deprecated: "This has been deprecated in favour of the `client_id` property", - }, - "service_principal_object_id": { - Type: schema.TypeString, - Computed: true, - Deprecated: "This has been deprecated in favour of the unified `authenticated_object_id` property", - }, }, } } @@ -58,7 +46,6 @@ func dataSourceArmClientConfigRead(d *schema.ResourceData, meta interface{}) err ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() - var servicePrincipal *graphrbac.ServicePrincipal if client.Account.AuthenticatedAsAServicePrincipal { spClient := client.Authorization.ServicePrincipalsClient // Application & Service Principal is 1:1 per tenant. Since we know the appId (client_id) @@ -73,8 +60,6 @@ func dataSourceArmClientConfigRead(d *schema.ResourceData, meta interface{}) err if listResult.Values() == nil || len(listResult.Values()) != 1 { return fmt.Errorf("Unexpected Service Principal query result: %#v", listResult.Values()) } - - servicePrincipal = &(listResult.Values())[0] } d.SetId(time.Now().UTC().String()) @@ -83,13 +68,5 @@ func dataSourceArmClientConfigRead(d *schema.ResourceData, meta interface{}) err d.Set("subscription_id", client.Account.SubscriptionId) d.Set("tenant_id", client.Account.TenantId) - if principal := servicePrincipal; principal != nil { - d.Set("service_principal_application_id", client.Account.ClientId) - d.Set("service_principal_object_id", principal.ObjectID) - } else { - d.Set("service_principal_application_id", "") - d.Set("service_principal_object_id", "") - } - return nil } diff --git a/azurerm/internal/services/authorization/tests/data_source_client_config_test.go b/azurerm/internal/services/authorization/tests/data_source_client_config_test.go index 859f5fbcd718..f33d956d2d3d 100644 --- a/azurerm/internal/services/authorization/tests/data_source_client_config_test.go +++ b/azurerm/internal/services/authorization/tests/data_source_client_config_test.go @@ -27,8 +27,6 @@ func TestAccDataSourceAzureRMClientConfig_basic(t *testing.T) { resource.TestCheckResourceAttr(data.ResourceName, "tenant_id", tenantId), resource.TestCheckResourceAttr(data.ResourceName, "subscription_id", subscriptionId), testAzureRMClientConfigGUIDAttr(data.ResourceName, "object_id"), - testAzureRMClientConfigGUIDAttr(data.ResourceName, "service_principal_application_id"), - testAzureRMClientConfigGUIDAttr(data.ResourceName, "service_principal_object_id"), ), }, }, diff --git a/azurerm/internal/services/compute/resource_arm_virtual_machine_extension.go b/azurerm/internal/services/compute/resource_arm_virtual_machine_extension.go index a82a381c0735..28fbfc893f1c 100644 --- a/azurerm/internal/services/compute/resource_arm_virtual_machine_extension.go +++ b/azurerm/internal/services/compute/resource_arm_virtual_machine_extension.go @@ -96,24 +96,19 @@ func resourceArmVirtualMachineExtensionsCreateUpdate(d *schema.ResourceData, met defer cancel() name := d.Get("name").(string) - virtualMachineId := d.Get("virtual_machine_id").(string) - v, err := ParseVirtualMachineID(virtualMachineId) + virtualMachineId, err := ParseVirtualMachineID(d.Get("virtual_machine_id").(string)) if err != nil { return fmt.Errorf("Error parsing Virtual Machine ID %q: %+v", virtualMachineId, err) } - - virtualMachineName := v.Name - resourceGroup := v.ResourceGroup + virtualMachineName := virtualMachineId.Name + resourceGroup := virtualMachineId.ResourceGroup virtualMachine, err := vmClient.Get(ctx, resourceGroup, virtualMachineName, "") if err != nil { return fmt.Errorf("Error getting Virtual Machine %q (Resource Group %q): %+v", name, resourceGroup, err) } - location := "" - if virtualMachine.Location != nil { - location = *virtualMachine.Location - } + location := *virtualMachine.Location if location == "" { return fmt.Errorf("Error reading location of Virtual Machine %q", virtualMachineName) } diff --git a/azurerm/internal/services/compute/tests/resource_arm_virtual_machine_extension_test.go b/azurerm/internal/services/compute/tests/resource_arm_virtual_machine_extension_test.go index efaf1fbffe8a..370fcd2a7ab3 100644 --- a/azurerm/internal/services/compute/tests/resource_arm_virtual_machine_extension_test.go +++ b/azurerm/internal/services/compute/tests/resource_arm_virtual_machine_extension_test.go @@ -121,13 +121,12 @@ func testCheckAzureRMVirtualMachineExtensionExists(resourceName string) resource } name := rs.Primary.Attributes["name"] - vmId := rs.Primary.Attributes["virtual_machine_id"] - v, err := compute.ParseVirtualMachineID(vmId) + virtualMachineId, err := compute.ParseVirtualMachineID(rs.Primary.Attributes["virtual_machine_id"]) if err != nil { - return fmt.Errorf("Error parsing Virtual Machine ID %q: %+v", vmId, err) + return fmt.Errorf("Error parsing Virtual Machine ID %q: %+v", virtualMachineId, err) } - vmName := v.Name - resourceGroup := rs.Primary.Attributes["resource_group_name"] + vmName := virtualMachineId.Name + resourceGroup := virtualMachineId.ResourceGroup resp, err := client.Get(ctx, resourceGroup, vmName, name, "") if err != nil { @@ -152,13 +151,12 @@ func testCheckAzureRMVirtualMachineExtensionDestroy(s *terraform.State) error { } name := rs.Primary.Attributes["name"] - vmId := rs.Primary.Attributes["virtual_machine_id"] - v, err := compute.ParseVirtualMachineID(vmId) + virtualMachineId, err := compute.ParseVirtualMachineID(rs.Primary.Attributes["virtual_machine_id"]) if err != nil { - return fmt.Errorf("Error parsing Virtual Machine ID %q: %+v", vmId, err) + return fmt.Errorf("Error parsing Virtual Machine ID %q: %+v", virtualMachineId, err) } - vmName := v.Name - resourceGroup := rs.Primary.Attributes["resource_group_name"] + vmName := virtualMachineId.Name + resourceGroup := virtualMachineId.ResourceGroup resp, err := client.Get(ctx, resourceGroup, vmName, name, "") diff --git a/azurerm/internal/services/containers/data_source_kubernetes_cluster.go b/azurerm/internal/services/containers/data_source_kubernetes_cluster.go index f7d490245587..32586415953d 100644 --- a/azurerm/internal/services/containers/data_source_kubernetes_cluster.go +++ b/azurerm/internal/services/containers/data_source_kubernetes_cluster.go @@ -144,13 +144,6 @@ func dataSourceArmKubernetesCluster() *schema.Resource { }, }, - // TODO: remove this in a future version - "dns_prefix": { - Type: schema.TypeString, - Computed: true, - Deprecated: "This field is no longer returned from the Azure API", - }, - "vm_size": { Type: schema.TypeString, Computed: true, diff --git a/azurerm/internal/services/containers/kubernetes_nodepool.go b/azurerm/internal/services/containers/kubernetes_nodepool.go index eaa237fcd8b6..d7a63d3699a4 100644 --- a/azurerm/internal/services/containers/kubernetes_nodepool.go +++ b/azurerm/internal/services/containers/kubernetes_nodepool.go @@ -14,7 +14,7 @@ import ( func SchemaDefaultNodePool() *schema.Schema { return &schema.Schema{ Type: schema.TypeList, - Optional: true, + Required: true, MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ @@ -142,11 +142,6 @@ func ConvertDefaultNodePoolToAgentPool(input *[]containerservice.ManagedClusterA func ExpandDefaultNodePool(d *schema.ResourceData) (*[]containerservice.ManagedClusterAgentPoolProfile, error) { input := d.Get("default_node_pool").([]interface{}) - // TODO: in 2.0 make this Required - // this exists to allow users to migrate to default_node_pool - if len(input) == 0 { - return nil, nil - } raw := input[0].(map[string]interface{}) enableAutoScaling := raw["enable_auto_scaling"].(bool) diff --git a/azurerm/internal/services/containers/resource_arm_container_group.go b/azurerm/internal/services/containers/resource_arm_container_group.go index 2d376e60d290..423a9cabc7d5 100644 --- a/azurerm/internal/services/containers/resource_arm_container_group.go +++ b/azurerm/internal/services/containers/resource_arm_container_group.go @@ -239,33 +239,10 @@ func resourceArmContainerGroup() *schema.Resource { }, }, - "port": { - Type: schema.TypeInt, - Optional: true, - ForceNew: true, - Computed: true, - Deprecated: "Deprecated in favor of `ports`", - ValidateFunc: validate.PortNumber, - }, - - "protocol": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Computed: true, - Deprecated: "Deprecated in favor of `ports`", - DiffSuppressFunc: suppress.CaseDifference, - ValidateFunc: validation.StringInSlice([]string{ - string(containerinstance.TCP), - string(containerinstance.UDP), - }, true), - }, - "ports": { Type: schema.TypeSet, Optional: true, ForceNew: true, - Computed: true, Set: resourceArmContainerGroupPortsHash, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ @@ -273,7 +250,6 @@ func resourceArmContainerGroup() *schema.Resource { Type: schema.TypeInt, Optional: true, ForceNew: true, - Computed: true, ValidateFunc: validate.PortNumber, }, @@ -281,8 +257,7 @@ func resourceArmContainerGroup() *schema.Resource { Type: schema.TypeString, Optional: true, ForceNew: true, - Computed: true, - //Default: string(containerinstance.TCP), restore in 2.0 + Default: string(containerinstance.TCP), ValidateFunc: validation.StringInSlice([]string{ string(containerinstance.TCP), string(containerinstance.UDP), @@ -311,14 +286,6 @@ func resourceArmContainerGroup() *schema.Resource { }, }, - "command": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Computed: true, - Deprecated: "Use `commands` instead.", - }, - "commands": { Type: schema.TypeList, Optional: true, @@ -782,26 +749,6 @@ func expandContainerGroupContainers(d *schema.ResourceData) (*[]containerinstanc }) } container.Ports = &ports - } else { - if v := int32(data["port"].(int)); v != 0 { - ports := []containerinstance.ContainerPort{ - { - Port: &v, - }, - } - - port := containerinstance.Port{ - Port: &v, - } - - if v, ok := data["protocol"].(string); ok { - ports[0].Protocol = containerinstance.ContainerNetworkProtocol(v) - port.Protocol = containerinstance.ContainerGroupNetworkProtocol(v) - } - - container.Ports = &ports - containerGroupPorts = append(containerGroupPorts, port) - } } // Set both sensitive and non-secure environment variables @@ -834,13 +781,6 @@ func expandContainerGroupContainers(d *schema.ResourceData) (*[]containerinstanc container.Command = &command } - if container.Command == nil { - if v := data["command"]; v != "" { - command := strings.Split(v.(string), " ") - container.Command = &command - } - } - if v, ok := data["volume"]; ok { volumeMounts, containerGroupVolumesPartial := expandContainerVolumes(v) container.VolumeMounts = volumeMounts @@ -1155,24 +1095,6 @@ func flattenContainerGroupContainers(d *schema.ResourceData, containers *[]conta ports = append(ports, port) } containerConfig["ports"] = schema.NewSet(resourceArmContainerGroupPortsHash, ports) - - //old deprecated code - containerPort := *(*cPorts)[0].Port - containerConfig["port"] = containerPort - // protocol isn't returned in container config, have to search in container group ports - protocol := "" - if ipAddress != nil { - if containerGroupPorts := ipAddress.Ports; containerGroupPorts != nil { - for _, cgPort := range *containerGroupPorts { - if *cgPort.Port == containerPort { - protocol = string(cgPort.Protocol) - } - } - } - } - if protocol != "" { - containerConfig["protocol"] = protocol - } } if container.EnvironmentVariables != nil { @@ -1189,7 +1111,6 @@ func flattenContainerGroupContainers(d *schema.ResourceData, containers *[]conta commands := make([]string, 0) if command := container.Command; command != nil { - containerConfig["command"] = strings.Join(*command, " ") commands = *command } containerConfig["commands"] = commands diff --git a/azurerm/internal/services/containers/resource_arm_container_registry.go b/azurerm/internal/services/containers/resource_arm_container_registry.go index 80500c222297..dda7a150e6ee 100644 --- a/azurerm/internal/services/containers/resource_arm_container_registry.go +++ b/azurerm/internal/services/containers/resource_arm_container_registry.go @@ -88,27 +88,6 @@ func resourceArmContainerRegistry() *schema.Resource { Optional: true, }, - "storage_account": { - Type: schema.TypeList, - Optional: true, - Deprecated: "`storage_account` has been replaced by `storage_account_id`.", - MaxItems: 1, - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "name": { - Type: schema.TypeString, - Required: true, - }, - - "access_key": { - Type: schema.TypeString, - Required: true, - Sensitive: true, - }, - }, - }, - }, - "login_server": { Type: schema.TypeString, Computed: true, diff --git a/azurerm/internal/services/containers/resource_arm_kubernetes_cluster.go b/azurerm/internal/services/containers/resource_arm_kubernetes_cluster.go index 0d892bfa7d6b..6d75e381af68 100644 --- a/azurerm/internal/services/containers/resource_arm_kubernetes_cluster.go +++ b/azurerm/internal/services/containers/resource_arm_kubernetes_cluster.go @@ -110,133 +110,6 @@ func resourceArmKubernetesCluster() *schema.Resource { "default_node_pool": SchemaDefaultNodePool(), - // TODO: remove in 2.0 - "agent_pool_profile": { - Type: schema.TypeList, - Optional: true, - Computed: true, - Deprecated: "This has been replaced by `default_node_pool` and will be removed in version 2.0 of the AzureRM Provider", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "name": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.KubernetesAgentPoolName, - }, - - "type": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Default: string(containerservice.AvailabilitySet), - ValidateFunc: validation.StringInSlice([]string{ - string(containerservice.AvailabilitySet), - string(containerservice.VirtualMachineScaleSets), - }, false), - }, - - "count": { - Type: schema.TypeInt, - Optional: true, - Default: 1, - ValidateFunc: validation.IntBetween(1, 100), - }, - - "max_count": { - Type: schema.TypeInt, - Optional: true, - ValidateFunc: validation.IntBetween(1, 100), - }, - - "min_count": { - Type: schema.TypeInt, - Optional: true, - ValidateFunc: validation.IntBetween(1, 100), - }, - - "enable_auto_scaling": { - Type: schema.TypeBool, - Optional: true, - }, - - "availability_zones": { - Type: schema.TypeList, - Optional: true, - Elem: &schema.Schema{ - Type: schema.TypeString, - }, - }, - - // TODO: remove this field in the next major version - "dns_prefix": { - Type: schema.TypeString, - Computed: true, - Deprecated: "This field has been removed by Azure", - }, - - "fqdn": { - Type: schema.TypeString, - Computed: true, - Deprecated: "This field has been deprecated. Use the parent `fqdn` instead", - }, - - "vm_size": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - DiffSuppressFunc: suppress.CaseDifference, - ValidateFunc: validation.StringIsNotEmpty, - }, - - "os_disk_size_gb": { - Type: schema.TypeInt, - Optional: true, - ForceNew: true, - Computed: true, - ValidateFunc: validation.IntAtLeast(1), - }, - - "vnet_subnet_id": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - ValidateFunc: azure.ValidateResourceID, - }, - - "os_type": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Default: string(containerservice.Linux), - ValidateFunc: validation.StringInSlice([]string{ - string(containerservice.Linux), - string(containerservice.Windows), - }, true), - DiffSuppressFunc: suppress.CaseDifference, - }, - - "max_pods": { - Type: schema.TypeInt, - Optional: true, - Computed: true, - ForceNew: true, - }, - - "node_taints": { - Type: schema.TypeList, - Optional: true, - Elem: &schema.Schema{Type: schema.TypeString}, - }, - - "enable_node_public_ip": { - Type: schema.TypeBool, - Optional: true, - }, - }, - }, - }, - "service_principal": { Type: schema.TypeList, Required: true, @@ -276,11 +149,9 @@ func resourceArmKubernetesCluster() *schema.Resource { Computed: true, }, - // TODO: remove Computed in 2.0 "enable_pod_security_policy": { Type: schema.TypeBool, Optional: true, - Computed: true, }, "identity": { @@ -682,17 +553,6 @@ func resourceArmKubernetesClusterCreate(d *schema.ResourceData, meta interface{} return fmt.Errorf("Error expanding `default_node_pool`: %+v", err) } - // TODO: remove me in 2.0 - if agentProfiles == nil { - agentProfilesRaw := d.Get("agent_pool_profile").([]interface{}) - agentProfilesLegacy, err := expandKubernetesClusterAgentPoolProfiles(agentProfilesRaw, true) - if err != nil { - return err - } - - agentProfiles = &agentProfilesLegacy - } - addOnProfilesRaw := d.Get("addon_profile").([]interface{}) addonProfiles := ExpandKubernetesAddOnProfiles(addOnProfilesRaw) @@ -935,7 +795,7 @@ func resourceArmKubernetesClusterUpdate(d *schema.ResourceData, meta interface{} } // update the node pool using the separate API - if d.HasChange("default_node_pool") || d.HasChange("agent_pool_profile") { + if d.HasChange("default_node_pool") { log.Printf("[DEBUG] Updating of Default Node Pool..") agentProfiles, err := ExpandDefaultNodePool(d) @@ -943,17 +803,6 @@ func resourceArmKubernetesClusterUpdate(d *schema.ResourceData, meta interface{} return fmt.Errorf("Error expanding `default_node_pool`: %+v", err) } - // TODO: remove me in 2.0 - if agentProfiles == nil { - agentProfilesRaw := d.Get("agent_pool_profile").([]interface{}) - agentProfilesLegacy, err := expandKubernetesClusterAgentPoolProfiles(agentProfilesRaw, false) - if err != nil { - return err - } - - agentProfiles = &agentProfilesLegacy - } - agentProfile := ConvertDefaultNodePoolToAgentPool(agentProfiles) agentPool, err := nodePoolsClient.CreateOrUpdate(ctx, resourceGroup, name, *agentProfile.Name, agentProfile) if err != nil { @@ -1052,12 +901,6 @@ func resourceArmKubernetesClusterRead(d *schema.ResourceData, meta interface{}) return fmt.Errorf("Error setting `addon_profile`: %+v", err) } - // TODO: remove me in 2.0 - agentPoolProfiles := flattenKubernetesClusterAgentPoolProfiles(props.AgentPoolProfiles, resp.Fqdn) - if err := d.Set("agent_pool_profile", agentPoolProfiles); err != nil { - return fmt.Errorf("Error setting `agent_pool_profile`: %+v", err) - } - flattenedDefaultNodePool, err := FlattenDefaultNodePool(props.AgentPoolProfiles, d) if err != nil { return fmt.Errorf("Error flattening `default_node_pool`: %+v", err) @@ -1172,162 +1015,6 @@ func flattenKubernetesClusterAccessProfile(profile containerservice.ManagedClust return nil, []interface{}{} } -func expandKubernetesClusterAgentPoolProfiles(input []interface{}, isNewResource bool) ([]containerservice.ManagedClusterAgentPoolProfile, error) { - profiles := make([]containerservice.ManagedClusterAgentPoolProfile, 0) - - for _, v := range input { - config := v.(map[string]interface{}) - - name := config["name"].(string) - poolType := config["type"].(string) - count := int32(config["count"].(int)) - vmSize := config["vm_size"].(string) - osDiskSizeGB := int32(config["os_disk_size_gb"].(int)) - osType := config["os_type"].(string) - - profile := containerservice.ManagedClusterAgentPoolProfile{ - Name: utils.String(name), - Type: containerservice.AgentPoolType(poolType), - Count: utils.Int32(count), - VMSize: containerservice.VMSizeTypes(vmSize), - OsDiskSizeGB: utils.Int32(osDiskSizeGB), - OsType: containerservice.OSType(osType), - } - - if maxPods := int32(config["max_pods"].(int)); maxPods > 0 { - profile.MaxPods = utils.Int32(maxPods) - } - - vnetSubnetID := config["vnet_subnet_id"].(string) - if vnetSubnetID != "" { - profile.VnetSubnetID = utils.String(vnetSubnetID) - } - - if maxCount := int32(config["max_count"].(int)); maxCount > 0 { - profile.MaxCount = utils.Int32(maxCount) - } - - if minCount := int32(config["min_count"].(int)); minCount > 0 { - profile.MinCount = utils.Int32(minCount) - } - - if enableAutoScalingItf := config["enable_auto_scaling"]; enableAutoScalingItf != nil { - profile.EnableAutoScaling = utils.Bool(enableAutoScalingItf.(bool)) - - // Auto scaling will change the number of nodes, but the original count number should not be sent again. - // This avoid the cluster being resized after creation. - if *profile.EnableAutoScaling && !isNewResource { - profile.Count = nil - } - } - - if availabilityZones := utils.ExpandStringSlice(config["availability_zones"].([]interface{})); len(*availabilityZones) > 0 { - profile.AvailabilityZones = availabilityZones - } - - if *profile.EnableAutoScaling && (profile.MinCount == nil || profile.MaxCount == nil) { - return nil, fmt.Errorf("Can't create an AKS cluster with autoscaling enabled but not setting min_count or max_count") - } - - if nodeTaints := utils.ExpandStringSlice(config["node_taints"].([]interface{})); len(*nodeTaints) > 0 { - profile.NodeTaints = nodeTaints - } - - if enableNodePublicIP := config["enable_node_public_ip"]; enableNodePublicIP != nil { - profile.EnableNodePublicIP = utils.Bool(enableNodePublicIP.(bool)) - } - - profiles = append(profiles, profile) - } - - return profiles, nil -} - -func flattenKubernetesClusterAgentPoolProfiles(profiles *[]containerservice.ManagedClusterAgentPoolProfile, fqdn *string) []interface{} { - if profiles == nil { - return []interface{}{} - } - - agentPoolProfiles := make([]interface{}, 0) - - for _, profile := range *profiles { - count := 0 - if profile.Count != nil { - count = int(*profile.Count) - } - - enableAutoScaling := false - if profile.EnableAutoScaling != nil { - enableAutoScaling = *profile.EnableAutoScaling - } - - fqdnVal := "" - if fqdn != nil { - // temporarily persist the parent FQDN here until `fqdn` is removed from the `agent_pool_profile` - fqdnVal = *fqdn - } - - maxCount := 0 - if profile.MaxCount != nil { - maxCount = int(*profile.MaxCount) - } - - maxPods := 0 - if profile.MaxPods != nil { - maxPods = int(*profile.MaxPods) - } - - minCount := 0 - if profile.MinCount != nil { - minCount = int(*profile.MinCount) - } - - name := "" - if profile.Name != nil { - name = *profile.Name - } - - osDiskSizeGB := 0 - if profile.OsDiskSizeGB != nil { - osDiskSizeGB = int(*profile.OsDiskSizeGB) - } - - subnetId := "" - if profile.VnetSubnetID != nil { - subnetId = *profile.VnetSubnetID - } - - enableNodePublicIP := false - if profile.EnableNodePublicIP != nil { - enableNodePublicIP = *profile.EnableNodePublicIP - } - - agentPoolProfile := map[string]interface{}{ - "availability_zones": utils.FlattenStringSlice(profile.AvailabilityZones), - "count": count, - "enable_auto_scaling": enableAutoScaling, - "enable_node_public_ip": enableNodePublicIP, - "max_count": maxCount, - "max_pods": maxPods, - "min_count": minCount, - "name": name, - "node_taints": utils.FlattenStringSlice(profile.NodeTaints), - "os_disk_size_gb": osDiskSizeGB, - "os_type": string(profile.OsType), - "type": string(profile.Type), - "vm_size": string(profile.VMSize), - "vnet_subnet_id": subnetId, - - // TODO: remove in 2.0 - "fqdn": fqdnVal, - } - - agentPoolProfiles = append(agentPoolProfiles, agentPoolProfile) - } - - return agentPoolProfiles -} - func expandKubernetesClusterLinuxProfile(input []interface{}) *containerservice.LinuxProfile { if len(input) == 0 { return nil diff --git a/azurerm/internal/services/containers/tests/resource_arm_container_group_test.go b/azurerm/internal/services/containers/tests/resource_arm_container_group_test.go index 8eb29403cb45..483a4628d6d0 100644 --- a/azurerm/internal/services/containers/tests/resource_arm_container_group_test.go +++ b/azurerm/internal/services/containers/tests/resource_arm_container_group_test.go @@ -128,7 +128,7 @@ func TestAccAzureRMContainerGroup_imageRegistryCredentialsUpdate(t *testing.T) { resource.TestCheckResourceAttr(data.ResourceName, "image_registry_credential.1.server", "mine.acr.io"), resource.TestCheckResourceAttr(data.ResourceName, "image_registry_credential.1.username", "acrusername"), resource.TestCheckResourceAttr(data.ResourceName, "image_registry_credential.1.password", "acrpassword"), - resource.TestCheckResourceAttr(data.ResourceName, "container.0.port", "5443"), + resource.TestCheckResourceAttr(data.ResourceName, "container.0.ports.#", "1"), resource.TestCheckResourceAttr(data.ResourceName, "container.0.protocol", "UDP"), ), }, @@ -185,7 +185,7 @@ func TestAccAzureRMContainerGroup_linuxBasic(t *testing.T) { testCheckAzureRMContainerGroupExists(data.ResourceName), resource.TestCheckResourceAttr(data.ResourceName, "container.#", "1"), resource.TestCheckResourceAttr(data.ResourceName, "os_type", "Linux"), - resource.TestCheckResourceAttr(data.ResourceName, "container.0.port", "80"), + resource.TestCheckResourceAttr(data.ResourceName, "container.0.ports.#", "1"), ), }, data.ImportStep( @@ -264,7 +264,6 @@ func TestAccAzureRMContainerGroup_linuxComplete(t *testing.T) { testCheckAzureRMContainerGroupExists(data.ResourceName), resource.TestCheckResourceAttr(data.ResourceName, "container.#", "1"), resource.TestCheckResourceAttr(data.ResourceName, "container.0.ports.#", "1"), - resource.TestCheckResourceAttr(data.ResourceName, "container.0.command", "/bin/bash -c ls"), resource.TestCheckResourceAttr(data.ResourceName, "container.0.commands.#", "3"), resource.TestCheckResourceAttr(data.ResourceName, "container.0.commands.0", "/bin/bash"), resource.TestCheckResourceAttr(data.ResourceName, "container.0.commands.1", "-c"), @@ -338,7 +337,7 @@ func TestAccAzureRMContainerGroup_virtualNetwork(t *testing.T) { resource.TestCheckNoResourceAttr(data.ResourceName, "identity"), resource.TestCheckResourceAttr(data.ResourceName, "container.#", "1"), resource.TestCheckResourceAttr(data.ResourceName, "os_type", "Linux"), - resource.TestCheckResourceAttr(data.ResourceName, "container.0.port", "80"), + resource.TestCheckResourceAttr(data.ResourceName, "container.0.ports.#", "1"), resource.TestCheckResourceAttr(data.ResourceName, "ip_address_type", "Private"), resource.TestCheckResourceAttrSet(data.ResourceName, "network_profile_id"), ), @@ -383,7 +382,6 @@ func TestAccAzureRMContainerGroup_windowsComplete(t *testing.T) { testCheckAzureRMContainerGroupExists(data.ResourceName), resource.TestCheckResourceAttr(data.ResourceName, "container.#", "1"), resource.TestCheckResourceAttr(data.ResourceName, "container.0.ports.#", "1"), - resource.TestCheckResourceAttr(data.ResourceName, "container.0.command", "cmd.exe echo hi"), resource.TestCheckResourceAttr(data.ResourceName, "container.0.commands.#", "3"), resource.TestCheckResourceAttr(data.ResourceName, "container.0.commands.0", "cmd.exe"), resource.TestCheckResourceAttr(data.ResourceName, "container.0.commands.1", "echo"), @@ -619,12 +617,14 @@ resource "azurerm_container_group" "test" { os_type = "Linux" container { - name = "hw" - image = "microsoft/aci-helloworld:latest" - cpu = "0.5" - memory = "0.5" - port = 5443 - protocol = "UDP" + name = "hw" + image = "microsoft/aci-helloworld:latest" + cpu = "0.5" + memory = "0.5" + ports { + port = 5443 + protocol = "UDP" + } } image_registry_credential { @@ -724,7 +724,9 @@ resource "azurerm_container_group" "test" { image = "microsoft/aci-helloworld:latest" cpu = "0.5" memory = "0.5" - port = 80 + ports { + port = 80 + } } diagnostics { @@ -843,7 +845,9 @@ resource "azurerm_container_group" "test" { image = "microsoft/aci-helloworld:latest" cpu = "0.5" memory = "0.5" - port = 80 + ports { + port = 80 + } } tags = { diff --git a/azurerm/internal/services/containers/tests/resource_arm_kubernetes_cluster_legacy_test.go b/azurerm/internal/services/containers/tests/resource_arm_kubernetes_cluster_legacy_test.go deleted file mode 100644 index a3a324b2552a..000000000000 --- a/azurerm/internal/services/containers/tests/resource_arm_kubernetes_cluster_legacy_test.go +++ /dev/null @@ -1,123 +0,0 @@ -package tests - -import ( - "fmt" - "os" - "testing" - - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" - "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/acceptance" -) - -// NOTE: all of the tests in this file are for functionality which will be removed in 2.0 - -func TestAccAzureRMKubernetesCluster_legacyAgentPoolProfileAvailabilitySet(t *testing.T) { - checkIfShouldRunTestsIndividually(t) - testAccAzureRMKubernetesCluster_legacyAgentPoolProfileAvailabilitySet(t) -} - -func testAccAzureRMKubernetesCluster_legacyAgentPoolProfileAvailabilitySet(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - clientId := os.Getenv("ARM_CLIENT_ID") - clientSecret := os.Getenv("ARM_CLIENT_SECRET") - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMKubernetesClusterDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMKubernetesCluster_legacyAgentPoolProfileAvailabilitySetConfig(data, clientId, clientSecret), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMKubernetesClusterExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "agent_pool_profile.0.type", "AvailabilitySet"), - ), - // since users are prompted to move to `default_node_pool` - ExpectNonEmptyPlan: true, - }, - }, - }) -} - -func TestAccAzureRMKubernetesCluster_legacyAgentPoolProfileVMSS(t *testing.T) { - checkIfShouldRunTestsIndividually(t) - testAccAzureRMKubernetesCluster_legacyAgentPoolProfileVMSS(t) -} - -func testAccAzureRMKubernetesCluster_legacyAgentPoolProfileVMSS(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - clientId := os.Getenv("ARM_CLIENT_ID") - clientSecret := os.Getenv("ARM_CLIENT_SECRET") - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMKubernetesClusterDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMKubernetesCluster_legacyAgentPoolProfileVMSSConfig(data, clientId, clientSecret), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMKubernetesClusterExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "agent_pool_profile.0.type", "VirtualMachineScaleSets"), - ), - // since users are prompted to move to `default_node_pool` - ExpectNonEmptyPlan: true, - }, - }, - }) -} - -func testAccAzureRMKubernetesCluster_legacyAgentPoolProfileAvailabilitySetConfig(data acceptance.TestData, clientId string, clientSecret string) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - agent_pool_profile { - name = "default" - count = 1 - vm_size = "Standard_DS2_v2" - } - - service_principal { - client_id = "%s" - client_secret = "%s" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, clientId, clientSecret) -} - -func testAccAzureRMKubernetesCluster_legacyAgentPoolProfileVMSSConfig(data acceptance.TestData, clientId string, clientSecret string) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - agent_pool_profile { - name = "default" - count = 1 - type = "VirtualMachineScaleSets" - vm_size = "Standard_DS2_v2" - } - - service_principal { - client_id = "%s" - client_secret = "%s" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, clientId, clientSecret) -} diff --git a/azurerm/internal/services/containers/tests/resource_arm_kubernetes_cluster_test.go b/azurerm/internal/services/containers/tests/resource_arm_kubernetes_cluster_test.go index 0b947d9648ce..bee56efc903c 100644 --- a/azurerm/internal/services/containers/tests/resource_arm_kubernetes_cluster_test.go +++ b/azurerm/internal/services/containers/tests/resource_arm_kubernetes_cluster_test.go @@ -37,10 +37,6 @@ func TestAccAzureRMKubernetes_all(t *testing.T) { "roleBasedAccessControl": testAccAzureRMKubernetesCluster_roleBasedAccessControl, "roleBasedAccessControlAAD": testAccAzureRMKubernetesCluster_roleBasedAccessControlAAD, }, - "legacy": { - "legacyAgentPoolProfileAvailabilitySet": testAccAzureRMKubernetesCluster_legacyAgentPoolProfileAvailabilitySet, - "legacyAgentPoolProfileVMSS": testAccAzureRMKubernetesCluster_legacyAgentPoolProfileVMSS, - }, "network": { "advancedNetworkingKubenet": testAccAzureRMKubernetesCluster_advancedNetworkingKubenet, "advancedNetworkingKubenetComplete": testAccAzureRMKubernetesCluster_advancedNetworkingKubenetComplete, diff --git a/azurerm/internal/services/keyvault/resource_arm_key_vault_certificate.go b/azurerm/internal/services/keyvault/resource_arm_key_vault_certificate.go index 6219533d02b2..7de47dd8431e 100644 --- a/azurerm/internal/services/keyvault/resource_arm_key_vault_certificate.go +++ b/azurerm/internal/services/keyvault/resource_arm_key_vault_certificate.go @@ -330,7 +330,7 @@ func resourceArmKeyVaultCertificate() *schema.Resource { Computed: true, }, - "tags": tags.Schema(), + "tags": tags.ForceNewSchema(), }, } } diff --git a/azurerm/internal/services/network/data_source_network_interface.go b/azurerm/internal/services/network/data_source_network_interface.go index aac805452193..e1a0ea6df346 100644 --- a/azurerm/internal/services/network/data_source_network_interface.go +++ b/azurerm/internal/services/network/data_source_network_interface.go @@ -138,12 +138,6 @@ func dataSourceArmNetworkInterface() *schema.Resource { Set: schema.HashString, }, - "internal_fqdn": { - Type: schema.TypeString, - Deprecated: "This field has been removed by Azure", - Computed: true, - }, - "enable_accelerated_networking": { Type: schema.TypeBool, Computed: true, @@ -232,7 +226,6 @@ func dataSourceArmNetworkInterfaceRead(d *schema.ResourceData, meta interface{}) dnsServers = *s } - d.Set("internal_fqdn", dnsSettings.InternalFqdn) d.Set("internal_dns_name_label", dnsSettings.InternalDNSNameLabel) } diff --git a/azurerm/internal/services/network/data_source_private_link_service.go b/azurerm/internal/services/network/data_source_private_link_service.go index 3d35d3ebcab6..cccd3fd6cdf4 100644 --- a/azurerm/internal/services/network/data_source_private_link_service.go +++ b/azurerm/internal/services/network/data_source_private_link_service.go @@ -89,13 +89,6 @@ func dataSourceArmPrivateLinkService() *schema.Resource { Computed: true, }, - "network_interface_ids": { - Type: schema.TypeList, - Computed: true, - Deprecated: "This field has been deprecated and will be removed in version 2.0 of the Azure Provider", - Elem: &schema.Schema{Type: schema.TypeString}, - }, - "tags": tags.SchemaDataSource(), }, } @@ -149,11 +142,6 @@ func dataSourceArmPrivateLinkServiceRead(d *schema.ResourceData, meta interface{ return fmt.Errorf("Error setting `load_balancer_frontend_ip_configuration_ids`: %+v", err) } } - if props.NetworkInterfaces != nil { - if err := d.Set("network_interface_ids", dataSourceFlattenArmPrivateLinkServiceInterface(props.NetworkInterfaces)); err != nil { - return fmt.Errorf("Error setting `network_interface_ids`: %+v", err) - } - } } if resp.ID == nil || *resp.ID == "" { @@ -178,18 +166,3 @@ func dataSourceFlattenArmPrivateLinkServiceFrontendIPConfiguration(input *[]netw return results } - -func dataSourceFlattenArmPrivateLinkServiceInterface(input *[]network.Interface) []string { - results := make([]string, 0) - if input == nil { - return results - } - - for _, item := range *input { - if id := item.ID; id != nil { - results = append(results, *id) - } - } - - return results -} diff --git a/azurerm/internal/services/network/data_source_virtual_network.go b/azurerm/internal/services/network/data_source_virtual_network.go index 2890b6e5d6ff..dca55e7f23f6 100644 --- a/azurerm/internal/services/network/data_source_virtual_network.go +++ b/azurerm/internal/services/network/data_source_virtual_network.go @@ -32,15 +32,6 @@ func dataSourceArmVirtualNetwork() *schema.Resource { "location": azure.SchemaLocationForDataSource(), - "address_spaces": { - Type: schema.TypeList, - Computed: true, - Deprecated: "This resource has been deprecated in favour of `address_space` to be more consistent with the `azurerm_virtual_network` resource", - Elem: &schema.Schema{ - Type: schema.TypeString, - }, - }, - "address_space": { Type: schema.TypeList, Computed: true, @@ -104,9 +95,6 @@ func dataSourceArmVnetRead(d *schema.ResourceData, meta interface{}) error { if props := resp.VirtualNetworkPropertiesFormat; props != nil { if as := props.AddressSpace; as != nil { - if err := d.Set("address_spaces", utils.FlattenStringSlice(as.AddressPrefixes)); err != nil { // todo remove in 2.0 - return fmt.Errorf("error setting `address_spaces`: %v", err) - } if err := d.Set("address_space", utils.FlattenStringSlice(as.AddressPrefixes)); err != nil { return fmt.Errorf("error setting `address_space`: %v", err) } diff --git a/azurerm/internal/services/network/resource_arm_application_gateway.go b/azurerm/internal/services/network/resource_arm_application_gateway.go index 6d113a17c047..8ae7763cfe93 100644 --- a/azurerm/internal/services/network/resource_arm_application_gateway.go +++ b/azurerm/internal/services/network/resource_arm_application_gateway.go @@ -113,7 +113,6 @@ func resourceArmApplicationGateway() *schema.Resource { "fqdns": { Type: schema.TypeList, Optional: true, - Computed: true, MinItems: 1, Elem: &schema.Schema{ Type: schema.TypeString, @@ -123,7 +122,6 @@ func resourceArmApplicationGateway() *schema.Resource { "ip_addresses": { Type: schema.TypeList, Optional: true, - Computed: true, MinItems: 1, Elem: &schema.Schema{ Type: schema.TypeString, @@ -131,31 +129,6 @@ func resourceArmApplicationGateway() *schema.Resource { }, }, - // TODO: remove in 2.0 - "fqdn_list": { - Type: schema.TypeList, - Optional: true, - Computed: true, - Deprecated: "`fqdn_list` has been deprecated in favour of the `fqdns` field", - MinItems: 1, - Elem: &schema.Schema{ - Type: schema.TypeString, - }, - }, - - // TODO: remove in 2.0 - "ip_address_list": { - Type: schema.TypeList, - Optional: true, - Computed: true, - Deprecated: "`ip_address_list` has been deprecated in favour of the `ip_addresses` field", - MinItems: 1, - Elem: &schema.Schema{ - Type: schema.TypeString, - ValidateFunc: validate.IPv4Address, - }, - }, - "id": { Type: schema.TypeString, Computed: true, @@ -755,23 +728,6 @@ func resourceArmApplicationGateway() *schema.Resource { }, }, - // TODO: remove in 2.0 - "disabled_ssl_protocols": { - Type: schema.TypeList, - Optional: true, - Computed: true, - Deprecated: "has been replaced by `ssl_policy`.`disabled_protocols`", - Elem: &schema.Schema{ - Type: schema.TypeString, - DiffSuppressFunc: suppress.CaseDifference, - ValidateFunc: validation.StringInSlice([]string{ - string(network.TLSv10), - string(network.TLSv11), - string(network.TLSv12), - }, true), - }, - }, - "ssl_policy": { Type: schema.TypeList, Optional: true, @@ -781,7 +737,6 @@ func resourceArmApplicationGateway() *schema.Resource { "disabled_protocols": { Type: schema.TypeList, Optional: true, - Computed: true, Elem: &schema.Schema{ Type: schema.TypeString, ValidateFunc: validation.StringInSlice([]string{ @@ -1573,10 +1528,6 @@ func resourceArmApplicationGatewayRead(d *schema.ResourceData, meta interface{}) return fmt.Errorf("Error setting `backend_http_settings`: %+v", setErr) } - if setErr := d.Set("disabled_ssl_protocols", flattenApplicationGatewayDisabledSSLProtocols(props.SslPolicy)); setErr != nil { - return fmt.Errorf("Error setting `disabled_ssl_protocols`: %+v", setErr) - } - if setErr := d.Set("ssl_policy", flattenApplicationGatewaySslPolicy(props.SslPolicy)); setErr != nil { return fmt.Errorf("Error setting `ssl_policy`: %+v", setErr) } @@ -1887,21 +1838,6 @@ func expandApplicationGatewayBackendAddressPools(d *schema.ResourceData) *[]netw }) } - if len(backendAddresses) == 0 { - // TODO: remove in 2.0 - for _, ip := range v["ip_address_list"].([]interface{}) { - backendAddresses = append(backendAddresses, network.ApplicationGatewayBackendAddress{ - IPAddress: utils.String(ip.(string)), - }) - } - // TODO: remove in 2.0 - for _, ip := range v["fqdn_list"].([]interface{}) { - backendAddresses = append(backendAddresses, network.ApplicationGatewayBackendAddress{ - Fqdn: utils.String(ip.(string)), - }) - } - } - name := v["name"].(string) output := network.ApplicationGatewayBackendAddressPool{ Name: utils.String(name), @@ -1941,10 +1877,6 @@ func flattenApplicationGatewayBackendAddressPools(input *[]network.ApplicationGa output := map[string]interface{}{ "fqdns": fqdnList, "ip_addresses": ipAddressList, - - // TODO: deprecated - remove in 2.0 - "ip_address_list": ipAddressList, - "fqdn_list": fqdnList, } if config.ID != nil { @@ -2190,25 +2122,11 @@ func expandApplicationGatewaySslPolicy(d *schema.ResourceData) *network.Applicat disabledSSLPolicies := make([]network.ApplicationGatewaySslProtocol, 0) vs := d.Get("ssl_policy").([]interface{}) - vsdsp := d.Get("disabled_ssl_protocols").([]interface{}) - - if len(vsdsp) == 0 && len(vs) == 0 { - policy = network.ApplicationGatewaySslPolicy{ - DisabledSslProtocols: &disabledSSLPolicies, - } - } - - for _, policy := range vsdsp { - disabledSSLPolicies = append(disabledSSLPolicies, network.ApplicationGatewaySslProtocol(policy.(string))) - } if len(vs) > 0 { v := vs[0].(map[string]interface{}) policyType := network.ApplicationGatewaySslPolicyType(v["policy_type"].(string)) - // reset disabledSSLPolicies here to always use the new disabled_protocols block in favor of disabled_ssl_protocols - disabledSSLPolicies = disabledSSLPolicies[:0] - for _, policy := range v["disabled_protocols"].([]interface{}) { disabledSSLPolicies = append(disabledSSLPolicies, network.ApplicationGatewaySslProtocol(policy.(string))) } @@ -2276,19 +2194,6 @@ func flattenApplicationGatewaySslPolicy(input *network.ApplicationGatewaySslPoli return results } -func flattenApplicationGatewayDisabledSSLProtocols(input *network.ApplicationGatewaySslPolicy) []interface{} { - results := make([]interface{}, 0) - if input == nil || input.DisabledSslProtocols == nil { - return results - } - - for _, v := range *input.DisabledSslProtocols { - results = append(results, string(v)) - } - - return results -} - func expandApplicationGatewayHTTPListeners(d *schema.ResourceData, gatewayID string) *[]network.ApplicationGatewayHTTPListener { vs := d.Get("http_listener").([]interface{}) results := make([]network.ApplicationGatewayHTTPListener, 0) diff --git a/azurerm/internal/services/network/resource_arm_firewall.go b/azurerm/internal/services/network/resource_arm_firewall.go index e4b7ca661fdc..2155dbfa09fc 100644 --- a/azurerm/internal/services/network/resource_arm_firewall.go +++ b/azurerm/internal/services/network/resource_arm_firewall.go @@ -66,17 +66,9 @@ func resourceArmFirewall() *schema.Resource { ForceNew: true, ValidateFunc: validateAzureFirewallSubnetName, }, - "internal_public_ip_address_id": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ValidateFunc: azure.ValidateResourceID, - Deprecated: "This field has been deprecated in favour of the `public_ip_address_id` property to better match the Azure SDK.", - }, "public_ip_address_id": { Type: schema.TypeString, - Optional: true, - Computed: true, + Required: true, ValidateFunc: azure.ValidateResourceID, }, "private_ip_address": { @@ -310,15 +302,7 @@ func expandArmFirewallIPConfigurations(d *schema.ResourceData) (*[]network.Azure data := configRaw.(map[string]interface{}) name := data["name"].(string) subnetId := data["subnet_id"].(string) - - pubID, exist := data["internal_public_ip_address_id"].(string) - if !exist || pubID == "" { - pubID, exist = data["public_ip_address_id"].(string) - } - - if !exist || pubID == "" { - return nil, nil, nil, fmt.Errorf("one of `internal_public_ip_address_id` or `public_ip_address_id` must be set") - } + pubID := data["public_ip_address_id"].(string) ipConfig := network.AzureFirewallIPConfiguration{ Name: utils.String(name), @@ -384,7 +368,6 @@ func flattenArmFirewallIPConfigurations(input *[]network.AzureFirewallIPConfigur if pip := props.PublicIPAddress; pip != nil { if id := pip.ID; id != nil { - afIPConfig["internal_public_ip_address_id"] = *id afIPConfig["public_ip_address_id"] = *id } } diff --git a/azurerm/internal/services/network/resource_arm_lb_backend_address_pool.go b/azurerm/internal/services/network/resource_arm_lb_backend_address_pool.go index 66294b426b36..5b23a7bfa3f1 100644 --- a/azurerm/internal/services/network/resource_arm_lb_backend_address_pool.go +++ b/azurerm/internal/services/network/resource_arm_lb_backend_address_pool.go @@ -41,8 +41,6 @@ func resourceArmLoadBalancerBackendAddressPool() *schema.Resource { ValidateFunc: validation.StringIsNotEmpty, }, - "location": azure.SchemaLocationDeprecated(), - "resource_group_name": azure.SchemaResourceGroupName(), "loadbalancer_id": { diff --git a/azurerm/internal/services/network/resource_arm_lb_nat_pool.go b/azurerm/internal/services/network/resource_arm_lb_nat_pool.go index 40120ba98367..c437eae42758 100644 --- a/azurerm/internal/services/network/resource_arm_lb_nat_pool.go +++ b/azurerm/internal/services/network/resource_arm_lb_nat_pool.go @@ -45,8 +45,6 @@ func resourceArmLoadBalancerNatPool() *schema.Resource { ValidateFunc: validation.StringIsNotEmpty, }, - "location": azure.SchemaLocationDeprecated(), - "resource_group_name": azure.SchemaResourceGroupName(), "loadbalancer_id": { diff --git a/azurerm/internal/services/network/resource_arm_lb_nat_rule.go b/azurerm/internal/services/network/resource_arm_lb_nat_rule.go index e45c680d4513..e62b4278656d 100644 --- a/azurerm/internal/services/network/resource_arm_lb_nat_rule.go +++ b/azurerm/internal/services/network/resource_arm_lb_nat_rule.go @@ -46,8 +46,6 @@ func resourceArmLoadBalancerNatRule() *schema.Resource { ValidateFunc: validation.StringIsNotEmpty, }, - "location": azure.SchemaLocationDeprecated(), - "resource_group_name": azure.SchemaResourceGroupName(), "loadbalancer_id": { diff --git a/azurerm/internal/services/network/resource_arm_lb_probe.go b/azurerm/internal/services/network/resource_arm_lb_probe.go index 19d6336b3d54..15cc869d7f8e 100644 --- a/azurerm/internal/services/network/resource_arm_lb_probe.go +++ b/azurerm/internal/services/network/resource_arm_lb_probe.go @@ -44,8 +44,6 @@ func resourceArmLoadBalancerProbe() *schema.Resource { ValidateFunc: validation.StringIsNotEmpty, }, - "location": azure.SchemaLocationDeprecated(), - "resource_group_name": azure.SchemaResourceGroupName(), "loadbalancer_id": { diff --git a/azurerm/internal/services/network/resource_arm_lb_rule.go b/azurerm/internal/services/network/resource_arm_lb_rule.go index a09cdf1dae14..855fb0e77cc0 100644 --- a/azurerm/internal/services/network/resource_arm_lb_rule.go +++ b/azurerm/internal/services/network/resource_arm_lb_rule.go @@ -46,8 +46,6 @@ func resourceArmLoadBalancerRule() *schema.Resource { ValidateFunc: ValidateArmLoadBalancerRuleName, }, - "location": azure.SchemaLocationDeprecated(), - "resource_group_name": azure.SchemaResourceGroupName(), "loadbalancer_id": { diff --git a/azurerm/internal/services/network/resource_arm_private_link_service.go b/azurerm/internal/services/network/resource_arm_private_link_service.go index b2e1f8c5a621..23efec6c50d6 100644 --- a/azurerm/internal/services/network/resource_arm_private_link_service.go +++ b/azurerm/internal/services/network/resource_arm_private_link_service.go @@ -136,17 +136,6 @@ func resourceArmPrivateLinkService() *schema.Resource { Computed: true, }, - "network_interface_ids": { - Type: schema.TypeSet, - Computed: true, - Deprecated: "This field is deprecated and be removed in version 2.0 of the Azure Provider", - Elem: &schema.Schema{ - Type: schema.TypeString, - ValidateFunc: azure.ValidateResourceID, - }, - Set: schema.HashString, - }, - "tags": tags.Schema(), }, @@ -298,11 +287,6 @@ func resourceArmPrivateLinkServiceRead(d *schema.ResourceData, meta interface{}) if err := d.Set("load_balancer_frontend_ip_configuration_ids", flattenArmPrivateLinkServiceFrontendIPConfiguration(props.LoadBalancerFrontendIPConfigurations)); err != nil { return fmt.Errorf("Error setting `load_balancer_frontend_ip_configuration_ids`: %+v", err) } - - // TODO: remove in 2.0 - if err := d.Set("network_interface_ids", flattenArmPrivateLinkServiceInterface(props.NetworkInterfaces)); err != nil { - return fmt.Errorf("Error setting `network_interface_ids`: %+v", err) - } } return tags.FlattenAndSet(d, resp.Tags) @@ -454,21 +438,6 @@ func flattenArmPrivateLinkServiceFrontendIPConfiguration(input *[]network.Fronte return results } -func flattenArmPrivateLinkServiceInterface(input *[]network.Interface) *schema.Set { - results := &schema.Set{F: schema.HashString} - if input == nil { - return results - } - - for _, item := range *input { - if id := item.ID; id != nil { - results.Add(*id) - } - } - - return results -} - func privateLinkServiceWaitForReadyRefreshFunc(ctx context.Context, client *network.PrivateLinkServicesClient, resourceGroupName string, name string) resource.StateRefreshFunc { return func() (interface{}, string, error) { res, err := client.Get(ctx, resourceGroupName, name, "") diff --git a/azurerm/internal/services/network/resource_arm_public_ip.go b/azurerm/internal/services/network/resource_arm_public_ip.go index 0b1c6bfacde3..3812caed14c2 100644 --- a/azurerm/internal/services/network/resource_arm_public_ip.go +++ b/azurerm/internal/services/network/resource_arm_public_ip.go @@ -16,7 +16,6 @@ import ( "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/features" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tags" - "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/state" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/timeouts" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" ) @@ -62,31 +61,14 @@ func resourceArmPublicIp() *schema.Resource { "resource_group_name": azure.SchemaResourceGroupName(), "allocation_method": { - Type: schema.TypeString, - //Required: true, //revert in 2.0 - Optional: true, - Computed: true, // remove in 2.0 - ConflictsWith: []string{"public_ip_address_allocation"}, + Type: schema.TypeString, + Required: true, ValidateFunc: validation.StringInSlice([]string{ string(network.Static), string(network.Dynamic), }, false), }, - "public_ip_address_allocation": { - Type: schema.TypeString, - Optional: true, - DiffSuppressFunc: suppress.CaseDifference, - StateFunc: state.IgnoreCase, - ConflictsWith: []string{"allocation_method"}, - Computed: true, - Deprecated: "this property has been deprecated in favor of `allocation_method` to better match the api", - ValidateFunc: validation.StringInSlice([]string{ - string(network.Static), - string(network.Dynamic), - }, true), - }, - "ip_version": { Type: schema.TypeString, Optional: true, @@ -168,15 +150,7 @@ func resourceArmPublicIpCreateUpdate(d *schema.ResourceData, meta interface{}) e zones := azure.ExpandZones(d.Get("zones").([]interface{})) idleTimeout := d.Get("idle_timeout_in_minutes").(int) ipVersion := network.IPVersion(d.Get("ip_version").(string)) - - ipAllocationMethod := "" - if v, ok := d.GetOk("allocation_method"); ok { - ipAllocationMethod = v.(string) - } else if v, ok := d.GetOk("public_ip_address_allocation"); ok { - ipAllocationMethod = v.(string) - } else { - return fmt.Errorf("Either `allocation_method` or `public_ip_address_allocation` must be specified.") - } + ipAllocationMethod := d.Get("allocation_method").(string) if strings.EqualFold(string(ipVersion), string(network.IPv6)) { if strings.EqualFold(ipAllocationMethod, "static") { @@ -299,7 +273,6 @@ func resourceArmPublicIpRead(d *schema.ResourceData, meta interface{}) error { } if props := resp.PublicIPAddressPropertiesFormat; props != nil { - d.Set("public_ip_address_allocation", string(props.PublicIPAllocationMethod)) d.Set("allocation_method", string(props.PublicIPAllocationMethod)) d.Set("ip_version", string(props.PublicIPAddressVersion)) diff --git a/azurerm/internal/services/network/resource_arm_virtual_wan.go b/azurerm/internal/services/network/resource_arm_virtual_wan.go index 0fd574bf2815..13dc3b71bade 100644 --- a/azurerm/internal/services/network/resource_arm_virtual_wan.go +++ b/azurerm/internal/services/network/resource_arm_virtual_wan.go @@ -78,13 +78,6 @@ func resourceArmVirtualWan() *schema.Resource { }, "tags": tags.Schema(), - - // Remove in 2.0 - "security_provider_name": { - Type: schema.TypeString, - Optional: true, - Deprecated: "This field has been removed by Azure and will be removed in version 2.0 of the Azure Provider", - }, }, } } diff --git a/azurerm/internal/services/network/tests/resource_arm_application_gateway_test.go b/azurerm/internal/services/network/tests/resource_arm_application_gateway_test.go index 23f8163487fb..73dc260c6cfb 100644 --- a/azurerm/internal/services/network/tests/resource_arm_application_gateway_test.go +++ b/azurerm/internal/services/network/tests/resource_arm_application_gateway_test.go @@ -817,26 +817,6 @@ func TestAccAzureRMApplicationGateway_sslPolicy_disabledProtocols(t *testing.T) }) } -func TestAccAzureRMApplicationGateway_disabledSslProtocols(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_application_gateway", "test") - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMApplicationGatewayDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMApplicationGateway_disabledSslProtocols(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMApplicationGatewayExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "disabled_ssl_protocols.0", "TLSv1_0"), - resource.TestCheckResourceAttr(data.ResourceName, "disabled_ssl_protocols.1", "TLSv1_1"), - ), - }, - }, - }) -} - func TestAccAzureRMApplicationGateway_cookieAffinity(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_application_gateway", "test") @@ -3897,86 +3877,6 @@ resource "azurerm_application_gateway" "test" { `, template, data.RandomInteger, data.RandomInteger) } -func testAccAzureRMApplicationGateway_disabledSslProtocols(data acceptance.TestData) string { - template := testAccAzureRMApplicationGateway_template(data) - return fmt.Sprintf(` -%s -# since these variables are re-used - a locals block makes this more maintainable -locals { - backend_address_pool_name = "${azurerm_virtual_network.test.name}-beap" - frontend_port_name = "${azurerm_virtual_network.test.name}-feport" - frontend_ip_configuration_name = "${azurerm_virtual_network.test.name}-feip" - http_setting_name = "${azurerm_virtual_network.test.name}-be-htst" - listener_name = "${azurerm_virtual_network.test.name}-httplstn" - request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" -} - -resource "azurerm_public_ip" "test_standard" { - name = "acctest-pubip-%d-standard" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - sku = "Standard" - allocation_method = "Static" -} - -resource "azurerm_application_gateway" "test" { - name = "acctestag-%d" - resource_group_name = "${azurerm_resource_group.test.name}" - location = "${azurerm_resource_group.test.location}" - - sku { - name = "Standard_v2" - tier = "Standard_v2" - capacity = 1 - } - - disabled_ssl_protocols = ["TLSv1_0", "TLSv1_1"] - - gateway_ip_configuration { - name = "my-gateway-ip-configuration" - subnet_id = "${azurerm_subnet.test.id}" - } - - frontend_port { - name = "${local.frontend_port_name}" - port = 80 - } - - frontend_ip_configuration { - name = "${local.frontend_ip_configuration_name}" - public_ip_address_id = "${azurerm_public_ip.test_standard.id}" - } - - backend_address_pool { - name = "${local.backend_address_pool_name}" - } - - backend_http_settings { - name = "${local.http_setting_name}" - cookie_based_affinity = "Disabled" - port = 80 - protocol = "Http" - request_timeout = 1 - } - - http_listener { - name = "${local.listener_name}" - frontend_ip_configuration_name = "${local.frontend_ip_configuration_name}" - frontend_port_name = "${local.frontend_port_name}" - protocol = "Http" - } - - request_routing_rule { - name = "${local.request_routing_rule_name}" - rule_type = "Basic" - http_listener_name = "${local.listener_name}" - backend_address_pool_name = "${local.backend_address_pool_name}" - backend_http_settings_name = "${local.http_setting_name}" - } -} -`, template, data.RandomInteger, data.RandomInteger) -} - func testAccAzureRMApplicationGateway_template(data acceptance.TestData) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { diff --git a/azurerm/internal/services/network/tests/resource_arm_firewall_test.go b/azurerm/internal/services/network/tests/resource_arm_firewall_test.go index 67772e4550fb..19d435f9fc4b 100644 --- a/azurerm/internal/services/network/tests/resource_arm_firewall_test.go +++ b/azurerm/internal/services/network/tests/resource_arm_firewall_test.go @@ -50,35 +50,6 @@ func TestValidateFirewallName(t *testing.T) { } } -func TestAccAzureRMFirewall_basicOld(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_firewall", "test") - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMFirewallDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMFirewall_basicOld(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMFirewallExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "ip_configuration.0.name", "configuration"), - resource.TestCheckResourceAttrSet(data.ResourceName, "ip_configuration.0.private_ip_address"), - ), - }, - { - Config: testAccAzureRMFirewall_basic(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMFirewallExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "ip_configuration.0.name", "configuration"), - resource.TestCheckResourceAttrSet(data.ResourceName, "ip_configuration.0.private_ip_address"), - ), - }, - data.ImportStep(), - }, - }) -} - func TestAccAzureRMFirewall_basic(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_firewall", "test") @@ -318,49 +289,6 @@ func testCheckAzureRMFirewallDestroy(s *terraform.State) error { return nil } -func testAccAzureRMFirewall_basicOld(data acceptance.TestData) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%d" - address_space = ["10.0.0.0/16"] - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" -} - -resource "azurerm_subnet" "test" { - name = "AzureFirewallSubnet" - resource_group_name = "${azurerm_resource_group.test.name}" - virtual_network_name = "${azurerm_virtual_network.test.name}" - address_prefix = "10.0.1.0/24" -} - -resource "azurerm_public_ip" "test" { - name = "acctestpip%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - allocation_method = "Static" - sku = "Standard" -} - -resource "azurerm_firewall" "test" { - name = "acctestfirewall%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - ip_configuration { - name = "configuration" - subnet_id = "${azurerm_subnet.test.id}" - internal_public_ip_address_id = "${azurerm_public_ip.test.id}" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - func testAccAzureRMFirewall_basic(data acceptance.TestData) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { diff --git a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_backend_address_pool_test.go b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_backend_address_pool_test.go index a41442d0d214..cd38cbbdf82d 100644 --- a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_backend_address_pool_test.go +++ b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_backend_address_pool_test.go @@ -44,8 +44,6 @@ func TestAccAzureRMLoadBalancerBackEndAddressPool_basic(t *testing.T) { ResourceName: "azurerm_lb.test", ImportState: true, ImportStateVerify: true, - // location is deprecated and was never actually used - ImportStateVerifyIgnore: []string{"location"}, }, }, }) @@ -214,7 +212,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_backend_address_pool" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -230,7 +227,6 @@ func testAccAzureRMLoadBalancerBackEndAddressPool_requiresImport(data acceptance resource "azurerm_lb_backend_address_pool" "import" { name = "${azurerm_lb_backend_address_pool.test.name}" loadbalancer_id = "${azurerm_lb_backend_address_pool.test.loadbalancer_id}" - location = "${azurerm_lb_backend_address_pool.test.location}" resource_group_name = "${azurerm_lb_backend_address_pool.test.resource_group_name}" } `, template) diff --git a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_nat_pool_test.go b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_nat_pool_test.go index fc3cab1156c0..fee39d314043 100644 --- a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_nat_pool_test.go +++ b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_nat_pool_test.go @@ -44,8 +44,6 @@ func TestAccAzureRMLoadBalancerNatPool_basic(t *testing.T) { ResourceName: "azurerm_lb.test", ImportState: true, ImportStateVerify: true, - // location is deprecated and was never actually used - ImportStateVerifyIgnore: []string{"location"}, }, }, }) @@ -258,7 +256,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_nat_pool" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -279,7 +276,6 @@ func testAccAzureRMLoadBalancerNatPool_requiresImport(data acceptance.TestData, resource "azurerm_lb_nat_pool" "import" { name = "${azurerm_lb_nat_pool.test.name}" loadbalancer_id = "${azurerm_lb_nat_pool.test.loadbalancer_id}" - location = "${azurerm_lb_nat_pool.test.location}" resource_group_name = "${azurerm_lb_nat_pool.test.resource_group_name}" frontend_ip_configuration_name = "${azurerm_lb_nat_pool.test.frontend_ip_configuration_name}" protocol = "Tcp" @@ -344,7 +340,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_nat_pool" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -357,7 +352,6 @@ resource "azurerm_lb_nat_pool" "test" { } resource "azurerm_lb_nat_pool" "test2" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -397,7 +391,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_nat_pool" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -409,7 +402,6 @@ resource "azurerm_lb_nat_pool" "test" { } resource "azurerm_lb_nat_pool" "test2" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" diff --git a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_nat_rule_test.go b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_nat_rule_test.go index 175c35b16ef8..e738394f0af6 100644 --- a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_nat_rule_test.go +++ b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_nat_rule_test.go @@ -39,7 +39,7 @@ func TestAccAzureRMLoadBalancerNatRule_basic(t *testing.T) { resource.TestCheckResourceAttr(data.ResourceName, "id", natRuleId), ), }, - data.ImportStep("location"), // todo remove location in 2.0 + data.ImportStep(), }, }) } @@ -68,7 +68,7 @@ func TestAccAzureRMLoadBalancerNatRule_complete(t *testing.T) { resource.TestCheckResourceAttr(data.ResourceName, "id", natRuleId), ), }, - data.ImportStep("location"), + data.ImportStep(), }, }) } @@ -97,7 +97,7 @@ func TestAccAzureRMLoadBalancerNatRule_update(t *testing.T) { resource.TestCheckResourceAttr(data.ResourceName, "id", natRuleId), ), }, - data.ImportStep("location"), + data.ImportStep(), { Config: testAccAzureRMLoadBalancerNatRule_complete(data, natRuleName), Check: resource.ComposeTestCheckFunc( @@ -107,7 +107,7 @@ func TestAccAzureRMLoadBalancerNatRule_update(t *testing.T) { "azurerm_lb_nat_rule.test", "id", natRuleId), ), }, - data.ImportStep("location"), + data.ImportStep(), { Config: testAccAzureRMLoadBalancerNatRule_basic(data, natRuleName, "Standard"), Check: resource.ComposeTestCheckFunc( @@ -116,7 +116,7 @@ func TestAccAzureRMLoadBalancerNatRule_update(t *testing.T) { resource.TestCheckResourceAttr(data.ResourceName, "id", natRuleId), ), }, - data.ImportStep("location"), + data.ImportStep(), }, }) } @@ -335,7 +335,6 @@ func testAccAzureRMLoadBalancerNatRule_basic(data acceptance.TestData, natRuleNa %s resource "azurerm_lb_nat_rule" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -353,7 +352,6 @@ func testAccAzureRMLoadBalancerNatRule_complete(data acceptance.TestData, natRul resource "azurerm_lb_nat_rule" "test" { name = "%s" - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" @@ -378,7 +376,6 @@ func testAccAzureRMLoadBalancerNatRule_requiresImport(data acceptance.TestData, resource "azurerm_lb_nat_rule" "import" { name = "${azurerm_lb_nat_rule.test.name}" loadbalancer_id = "${azurerm_lb_nat_rule.test.loadbalancer_id}" - location = "${azurerm_lb_nat_rule.test.location}" resource_group_name = "${azurerm_lb_nat_rule.test.resource_group_name}" frontend_ip_configuration_name = "${azurerm_lb_nat_rule.test.frontend_ip_configuration_name}" protocol = "Tcp" @@ -393,7 +390,6 @@ func testAccAzureRMLoadBalancerNatRule_multipleRules(data acceptance.TestData, n %s resource "azurerm_lb_nat_rule" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -404,7 +400,6 @@ resource "azurerm_lb_nat_rule" "test" { } resource "azurerm_lb_nat_rule" "test2" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -420,7 +415,6 @@ func testAccAzureRMLoadBalancerNatRule_multipleRulesUpdate(data acceptance.TestD return fmt.Sprintf(` %s resource "azurerm_lb_nat_rule" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -431,7 +425,6 @@ resource "azurerm_lb_nat_rule" "test" { } resource "azurerm_lb_nat_rule" "test2" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" diff --git a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_probe_test.go b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_probe_test.go index bbc310957bcb..7efc594abb9d 100644 --- a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_probe_test.go +++ b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_probe_test.go @@ -40,13 +40,7 @@ func TestAccAzureRMLoadBalancerProbe_basic(t *testing.T) { "azurerm_lb_probe.test", "id", probeId), ), }, - { - ResourceName: "azurerm_lb.test", - ImportState: true, - ImportStateVerify: true, - // location is deprecated and was never actually used - ImportStateVerifyIgnore: []string{"location"}, - }, + data.ImportStep(), }, }) } @@ -289,7 +283,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_probe" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -306,7 +299,6 @@ func testAccAzureRMLoadBalancerProbe_requiresImport(data acceptance.TestData, na resource "azurerm_lb_probe" "import" { name = "${azurerm_lb_probe.test.name}" loadbalancer_id = "${azurerm_lb_probe.test.loadbalancer_id}" - location = "${azurerm_lb_probe.test.location}" resource_group_name = "${azurerm_lb_probe.test.resource_group_name}" port = 22 } @@ -366,7 +358,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_probe" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -374,7 +365,6 @@ resource "azurerm_lb_probe" "test" { } resource "azurerm_lb_probe" "test2" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -409,7 +399,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_probe" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -417,7 +406,6 @@ resource "azurerm_lb_probe" "test" { } resource "azurerm_lb_probe" "test2" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -452,7 +440,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_probe" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -489,7 +476,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_probe" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" diff --git a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_rule_test.go b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_rule_test.go index 202f83f150a2..669d7a3428f9 100644 --- a/azurerm/internal/services/network/tests/resource_arm_loadbalancer_rule_test.go +++ b/azurerm/internal/services/network/tests/resource_arm_loadbalancer_rule_test.go @@ -96,7 +96,7 @@ func TestAccAzureRMLoadBalancerRule_basic(t *testing.T) { "azurerm_lb_rule.test", "id", lbRule_id), ), }, - data.ImportStep("location"), // todo remove location in 2.0 + data.ImportStep(), }, }) } @@ -125,7 +125,7 @@ func TestAccAzureRMLoadBalancerRule_complete(t *testing.T) { "azurerm_lb_rule.test", "id", lbRule_id), ), }, - data.ImportStep("location"), // todo remove location in 2.0 + data.ImportStep(), }, }) } @@ -154,7 +154,7 @@ func TestAccAzureRMLoadBalancerRule_update(t *testing.T) { "azurerm_lb_rule.test", "id", lbRule_id), ), }, - data.ImportStep("location"), // todo remove location in 2.0 + data.ImportStep(), { Config: testAccAzureRMLoadBalancerRule_complete(data, lbRuleName), Check: resource.ComposeTestCheckFunc( @@ -164,7 +164,7 @@ func TestAccAzureRMLoadBalancerRule_update(t *testing.T) { "azurerm_lb_rule.test", "id", lbRule_id), ), }, - data.ImportStep("location"), // todo remove location in 2.0 + data.ImportStep(), { Config: testAccAzureRMLoadBalancerRule_basic(data, lbRuleName, "Basic"), Check: resource.ComposeTestCheckFunc( @@ -174,7 +174,7 @@ func TestAccAzureRMLoadBalancerRule_update(t *testing.T) { "azurerm_lb_rule.test", "id", lbRule_id), ), }, - data.ImportStep("location"), // todo remove location in 2.0 + data.ImportStep(), }, }) } @@ -304,7 +304,7 @@ func TestAccAzureRMLoadBalancerRule_updateMultipleRules(t *testing.T) { resource.TestCheckResourceAttr("azurerm_lb_rule.test2", "backend_port", "3390"), ), }, - data.ImportStep("location"), // todo remove location in 2.0 + data.ImportStep(), { Config: testAccAzureRMLoadBalancerRule_multipleRulesUpdate(data, lbRuleName, lbRule2Name), Check: resource.ComposeTestCheckFunc( @@ -317,7 +317,7 @@ func TestAccAzureRMLoadBalancerRule_updateMultipleRules(t *testing.T) { resource.TestCheckResourceAttr("azurerm_lb_rule.test2", "backend_port", "3391"), ), }, - data.ImportStep("location"), // todo remove location in 2.0 + data.ImportStep(), }, }) } @@ -435,7 +435,6 @@ func testAccAzureRMLoadBalancerRule_basic(data acceptance.TestData, lbRuleName, %s resource "azurerm_lb_rule" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -453,7 +452,6 @@ func testAccAzureRMLoadBalancerRule_complete(data acceptance.TestData, lbRuleNam resource "azurerm_lb_rule" "test" { name = "%s" - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" @@ -478,7 +476,6 @@ func testAccAzureRMLoadBalancerRule_requiresImport(data acceptance.TestData, nam resource "azurerm_lb_rule" "import" { name = "${azurerm_lb_rule.test.name}" - location = "${azurerm_lb_rule.test.location}" resource_group_name = "${azurerm_lb_rule.test.resource_group_name}" loadbalancer_id = "${azurerm_lb_rule.test.loadbalancer_id}" frontend_ip_configuration_name = "${azurerm_lb_rule.test.frontend_ip_configuration_name}" @@ -496,14 +493,12 @@ func testAccAzureRMLoadBalancerRule_inconsistentRead(data acceptance.TestData, b resource "azurerm_lb_backend_address_pool" "teset" { name = "%s" - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" } resource "azurerm_lb_probe" "test" { name = "%s" - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" protocol = "Tcp" @@ -512,7 +507,6 @@ resource "azurerm_lb_probe" "test" { resource "azurerm_lb_rule" "test" { name = "%s" - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" protocol = "Tcp" @@ -528,7 +522,6 @@ func testAccAzureRMLoadBalancerRule_multipleRules(data acceptance.TestData, lbRu %s resource "azurerm_lb_rule" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -539,7 +532,6 @@ resource "azurerm_lb_rule" "test" { } resource "azurerm_lb_rule" "test2" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -556,7 +548,6 @@ func testAccAzureRMLoadBalancerRule_multipleRulesUpdate(data acceptance.TestData %s resource "azurerm_lb_rule" "test" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" @@ -567,7 +558,6 @@ resource "azurerm_lb_rule" "test" { } resource "azurerm_lb_rule" "test2" { - location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "%s" diff --git a/azurerm/internal/services/network/tests/resource_arm_public_ip_test.go b/azurerm/internal/services/network/tests/resource_arm_public_ip_test.go index 837ad3371749..8d528be65ab4 100644 --- a/azurerm/internal/services/network/tests/resource_arm_public_ip_test.go +++ b/azurerm/internal/services/network/tests/resource_arm_public_ip_test.go @@ -66,37 +66,6 @@ func TestAccAzureRMPublicIpStatic_requiresImport(t *testing.T) { }) } -func TestAccAzureRMPublicIpStatic_basicOld(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_public_ip", "test") - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMPublicIpDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMPublicIPStatic_basicOld(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMPublicIpExists(data.ResourceName), - resource.TestCheckResourceAttrSet(data.ResourceName, "ip_address"), - resource.TestCheckResourceAttr(data.ResourceName, "public_ip_address_allocation", "Static"), - resource.TestCheckResourceAttr(data.ResourceName, "ip_version", "IPv4"), - ), - }, - { - Config: testAccAzureRMPublicIPStatic_basic(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMPublicIpExists(data.ResourceName), - resource.TestCheckResourceAttrSet(data.ResourceName, "ip_address"), - resource.TestCheckResourceAttr(data.ResourceName, "allocation_method", "Static"), - resource.TestCheckResourceAttr(data.ResourceName, "ip_version", "IPv4"), - ), - }, - data.ImportStep(), - }, - }) -} - func TestAccAzureRMPublicIpStatic_zones(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_public_ip", "test") @@ -558,22 +527,6 @@ resource "azurerm_public_ip" "import" { `, testAccAzureRMPublicIPStatic_basic(data)) } -func testAccAzureRMPublicIPStatic_basicOld(data acceptance.TestData) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_public_ip" "test" { - name = "acctestpublicip-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - public_ip_address_allocation = "Static" -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - func testAccAzureRMPublicIPStatic_withZone(data acceptance.TestData) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { diff --git a/azurerm/internal/services/storage/resource_arm_storage_table_migration.go b/azurerm/internal/services/storage/resource_arm_storage_table_migration.go index e6cb71ba0da0..d5ad2d88fcca 100644 --- a/azurerm/internal/services/storage/resource_arm_storage_table_migration.go +++ b/azurerm/internal/services/storage/resource_arm_storage_table_migration.go @@ -26,7 +26,7 @@ func ResourceStorageTableStateResourceV0V1() *schema.Resource { ForceNew: true, ValidateFunc: ValidateArmStorageAccountName, }, - "resource_group_name": azure.SchemaResourceGroupNameDeprecated(), + "resource_group_name": azure.SchemaResourceGroupName(), "acl": { Type: schema.TypeSet, Optional: true, diff --git a/azurerm/internal/services/web/client/client.go b/azurerm/internal/services/web/client/client.go index e22e812d66f3..696f8b593547 100644 --- a/azurerm/internal/services/web/client/client.go +++ b/azurerm/internal/services/web/client/client.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" ) diff --git a/azurerm/internal/services/web/data_source_app_service_certificate_order.go b/azurerm/internal/services/web/data_source_app_service_certificate_order.go index 0ac3e79626bd..e765287e1f77 100644 --- a/azurerm/internal/services/web/data_source_app_service_certificate_order.go +++ b/azurerm/internal/services/web/data_source_app_service_certificate_order.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" diff --git a/azurerm/internal/services/web/resource_arm_app_service.go b/azurerm/internal/services/web/resource_arm_app_service.go index d907ee58c828..aabd8628fd0c 100644 --- a/azurerm/internal/services/web/resource_arm_app_service.go +++ b/azurerm/internal/services/web/resource_arm_app_service.go @@ -6,7 +6,7 @@ import ( "regexp" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/web/resource_arm_app_service_active_slot.go b/azurerm/internal/services/web/resource_arm_app_service_active_slot.go index 88697029b67a..75b23f20eac4 100644 --- a/azurerm/internal/services/web/resource_arm_app_service_active_slot.go +++ b/azurerm/internal/services/web/resource_arm_app_service_active_slot.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" diff --git a/azurerm/internal/services/web/resource_arm_app_service_certificate.go b/azurerm/internal/services/web/resource_arm_app_service_certificate.go index 681db3e18d83..a5f53a00502a 100644 --- a/azurerm/internal/services/web/resource_arm_app_service_certificate.go +++ b/azurerm/internal/services/web/resource_arm_app_service_certificate.go @@ -6,7 +6,7 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/web/resource_arm_app_service_certificate_order.go b/azurerm/internal/services/web/resource_arm_app_service_certificate_order.go index 593b3775b80b..5141427558b2 100644 --- a/azurerm/internal/services/web/resource_arm_app_service_certificate_order.go +++ b/azurerm/internal/services/web/resource_arm_app_service_certificate_order.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/web/resource_arm_app_service_custom_hostname_binding.go b/azurerm/internal/services/web/resource_arm_app_service_custom_hostname_binding.go index 2037d8dccdb3..9c18cba5c3f1 100644 --- a/azurerm/internal/services/web/resource_arm_app_service_custom_hostname_binding.go +++ b/azurerm/internal/services/web/resource_arm_app_service_custom_hostname_binding.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/web/resource_arm_app_service_plan.go b/azurerm/internal/services/web/resource_arm_app_service_plan.go index db32dd0b5efd..3a40be35b8a1 100644 --- a/azurerm/internal/services/web/resource_arm_app_service_plan.go +++ b/azurerm/internal/services/web/resource_arm_app_service_plan.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/web/resource_arm_app_service_slot.go b/azurerm/internal/services/web/resource_arm_app_service_slot.go index 95dcad0e97d2..6ad4b0559af2 100644 --- a/azurerm/internal/services/web/resource_arm_app_service_slot.go +++ b/azurerm/internal/services/web/resource_arm_app_service_slot.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/web/resource_arm_app_service_source_control_token.go b/azurerm/internal/services/web/resource_arm_app_service_source_control_token.go index 31eb13c9270c..16db92efa598 100644 --- a/azurerm/internal/services/web/resource_arm_app_service_source_control_token.go +++ b/azurerm/internal/services/web/resource_arm_app_service_source_control_token.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" diff --git a/azurerm/internal/services/web/resource_arm_app_service_virtual_network_swift_connection.go b/azurerm/internal/services/web/resource_arm_app_service_virtual_network_swift_connection.go index 015aafc93d4c..47c6963be53b 100644 --- a/azurerm/internal/services/web/resource_arm_app_service_virtual_network_swift_connection.go +++ b/azurerm/internal/services/web/resource_arm_app_service_virtual_network_swift_connection.go @@ -6,7 +6,7 @@ import ( "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/network" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" diff --git a/azurerm/internal/services/web/resource_arm_function_app.go b/azurerm/internal/services/web/resource_arm_function_app.go index 223d9d127804..134a2dba6a93 100644 --- a/azurerm/internal/services/web/resource_arm_function_app.go +++ b/azurerm/internal/services/web/resource_arm_function_app.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" @@ -192,10 +192,6 @@ func resourceArmFunctionApp() *schema.Resource { Optional: true, Computed: true, }, - "virtual_network_name": { - Type: schema.TypeString, - Optional: true, - }, "http2_enabled": { Type: schema.TypeBool, Optional: true, @@ -211,7 +207,7 @@ func resourceArmFunctionApp() *schema.Resource { "ip_address": { Type: schema.TypeString, Optional: true, - ValidateFunc: validate.NoEmptyStrings, + ValidateFunc: validate.CIDR, }, "subnet_id": { Type: schema.TypeString, @@ -744,10 +740,6 @@ func expandFunctionAppSiteConfig(d *schema.ResourceData) (web.SiteConfig, error) siteConfig.Cors = &expand } - if v, ok := config["virtual_network_name"]; ok { - siteConfig.VnetName = utils.String(v.(string)) - } - if v, ok := config["http2_enabled"]; ok { siteConfig.HTTP20Enabled = utils.Bool(v.(bool)) } @@ -797,10 +789,6 @@ func flattenFunctionAppSiteConfig(input *web.SiteConfig) []interface{} { result["linux_fx_version"] = *input.LinuxFxVersion } - if input.VnetName != nil { - result["virtual_network_name"] = *input.VnetName - } - if input.HTTP20Enabled != nil { result["http2_enabled"] = *input.HTTP20Enabled } @@ -855,6 +843,10 @@ func expandFunctionAppIpRestriction(input interface{}) ([]web.IPSecurityRestrict } ipSecurityRestriction := web.IPSecurityRestriction{} + if ipAddress == "Any" { + continue + } + if ipAddress != "" { ipSecurityRestriction.IPAddress = &ipAddress } @@ -914,6 +906,9 @@ func flattenFunctionAppIpRestriction(input *[]web.IPSecurityRestriction) []inter ipAddress := "" if v.IPAddress != nil { ipAddress = *v.IPAddress + if ipAddress == "Any" { + continue + } } subnetId := "" diff --git a/azurerm/internal/services/web/tests/data_source_app_service_test.go b/azurerm/internal/services/web/tests/data_source_app_service_test.go index cc22b0e56656..b94041087df6 100644 --- a/azurerm/internal/services/web/tests/data_source_app_service_test.go +++ b/azurerm/internal/services/web/tests/data_source_app_service_test.go @@ -129,8 +129,7 @@ func TestAccDataSourceAzureRMAppService_ipRestriction(t *testing.T) { { Config: testAccDataSourceAppService_ipRestriction(data), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.subnet_mask", "255.255.255.255"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10/32"), ), }, }, diff --git a/azurerm/internal/services/web/tests/resource_arm_app_service_certificate_test.go b/azurerm/internal/services/web/tests/resource_arm_app_service_certificate_test.go index 813d1cbb809f..e57c0907c6ae 100644 --- a/azurerm/internal/services/web/tests/resource_arm_app_service_certificate_test.go +++ b/azurerm/internal/services/web/tests/resource_arm_app_service_certificate_test.go @@ -126,7 +126,7 @@ resource "azurerm_key_vault" "test" { access_policy { tenant_id = data.azurerm_client_config.test.tenant_id - object_id = data.azurerm_client_config.test.service_principal_object_id + object_id = data.azurerm_client_config.test.object_id secret_permissions = ["delete", "get", "set"] certificate_permissions = ["create", "delete", "get", "import"] } diff --git a/azurerm/internal/services/web/tests/resource_arm_app_service_slot_test.go b/azurerm/internal/services/web/tests/resource_arm_app_service_slot_test.go index 0151370bbfe6..7b080a2d8af2 100644 --- a/azurerm/internal/services/web/tests/resource_arm_app_service_slot_test.go +++ b/azurerm/internal/services/web/tests/resource_arm_app_service_slot_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate" @@ -699,8 +699,7 @@ func TestAccAzureRMAppServiceSlot_oneIpRestriction(t *testing.T) { Config: testAccAzureRMAppServiceSlot_oneIpRestriction(data), Check: resource.ComposeTestCheckFunc( testCheckAzureRMAppServiceSlotExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.subnet_mask", "255.255.255.255"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10/32"), ), }, }, @@ -774,14 +773,10 @@ func TestAccAzureRMAppServiceSlot_manyIpRestrictions(t *testing.T) { Config: testAccAzureRMAppServiceSlot_manyIpRestrictions(data), Check: resource.ComposeTestCheckFunc( testCheckAzureRMAppServiceSlotExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.subnet_mask", "255.255.255.255"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.1.ip_address", "20.20.20.0"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.1.subnet_mask", "255.255.255.0"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.2.ip_address", "30.30.0.0"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.2.subnet_mask", "255.255.0.0"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.3.ip_address", "192.168.1.2"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.3.subnet_mask", "255.255.255.0"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10/32"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.1.ip_address", "20.20.20.0/24"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.2.ip_address", "30.30.0.0/16"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.3.ip_address", "192.168.1.2/24"), ), }, }, @@ -875,32 +870,6 @@ func TestAccAzureRMAppServiceSlot_remoteDebugging(t *testing.T) { }) } -func TestAccAzureRMAppServiceSlot_virtualNetwork(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_app_service_slot", "test") - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMAppServiceSlotDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMAppServiceSlot_virtualNetwork(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMAppServiceSlotExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.virtual_network_name", fmt.Sprintf("acctestvn-%d", data.RandomInteger)), - ), - }, - { - Config: testAccAzureRMAppServiceSlot_virtualNetworkUpdated(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMAppServiceSlotExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.virtual_network_name", fmt.Sprintf("acctestvn2-%d", data.RandomInteger)), - ), - }, - }, - }) -} - func TestAccAzureRMAppServiceSlot_windowsDotNet2(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_app_service_slot", "test") @@ -988,28 +957,6 @@ func TestAccAzureRMAppServiceSlot_userAssignedIdentity(t *testing.T) { }) } -func TestAccAzureRMAppServiceSlot_multipleAssignedIdentities(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_app_service_slot", "test") - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMAppServiceSlotDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMAppServiceSlot_multipleAssignedIdentities(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMAppServiceSlotExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "identity.0.type", "SystemAssigned, UserAssigned"), - resource.TestCheckResourceAttr(data.ResourceName, "identity.0.identity_ids.#", "1"), - resource.TestMatchResourceAttr(data.ResourceName, "identity.0.principal_id", validate.UUIDRegExp), - resource.TestMatchResourceAttr(data.ResourceName, "identity.0.tenant_id", validate.UUIDRegExp), - ), - }, - }, - }) -} - func TestAccAzureRMAppServiceSlot_windowsDotNetUpdate(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_app_service_slot", "test") @@ -2687,7 +2634,7 @@ resource "azurerm_app_service_slot" "test" { site_config { ip_restriction { - ip_address = "10.10.10.10" + ip_address = "10.10.10.10/32" } } } @@ -2822,22 +2769,19 @@ resource "azurerm_app_service_slot" "test" { site_config { ip_restriction { - ip_address = "10.10.10.10" + ip_address = "10.10.10.10/32" } ip_restriction { - ip_address = "20.20.20.0" - subnet_mask = "255.255.255.0" + ip_address = "20.20.20.0/24" } ip_restriction { - ip_address = "30.30.0.0" - subnet_mask = "255.255.0.0" + ip_address = "30.30.0.0/16" } ip_restriction { - ip_address = "192.168.1.2" - subnet_mask = "255.255.255.0" + ip_address = "192.168.1.2/24" } } } @@ -3045,120 +2989,6 @@ resource "azurerm_app_service_slot" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) } -func testAccAzureRMAppServiceSlot_virtualNetwork(data acceptance.TestData) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvn-%d" - address_space = ["10.0.0.0/16"] - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - subnet { - name = "internal" - address_prefix = "10.0.1.0/24" - } -} - -resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - sku { - tier = "Standard" - size = "S1" - } -} - -resource "azurerm_app_service" "test" { - name = "acctestAS-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" -} - -resource "azurerm_app_service_slot" "test" { - name = "acctestASSlot-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" - app_service_name = "${azurerm_app_service.test.name}" - - site_config { - virtual_network_name = "${azurerm_virtual_network.test.name}" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - -func testAccAzureRMAppServiceSlot_virtualNetworkUpdated(data acceptance.TestData) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvn-%d" - address_space = ["10.0.0.0/16"] - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - subnet { - name = "internal" - address_prefix = "10.0.1.0/24" - } -} - -resource "azurerm_virtual_network" "second" { - name = "acctestvn2-%d" - address_space = ["172.0.0.0/16"] - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - subnet { - name = "internal" - address_prefix = "172.0.1.0/24" - } -} - -resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - sku { - tier = "Standard" - size = "S1" - } -} - -resource "azurerm_app_service" "test" { - name = "acctestAS-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" -} - -resource "azurerm_app_service_slot" "test" { - name = "acctestASSlot-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" - app_service_name = "${azurerm_app_service.test.name}" - - site_config { - virtual_network_name = "${azurerm_virtual_network.second.name}" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - func testAccAzureRMAppServiceSlot_windowsDotNet(data acceptance.TestData, version string) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { @@ -3441,52 +3271,6 @@ resource "azurerm_app_service_slot" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) } -func testAccAzureRMAppServiceSlot_multipleAssignedIdentities(data acceptance.TestData) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_user_assigned_identity" "test" { - name = "acct-%d" - resource_group_name = "${azurerm_resource_group.test.name}" - location = "${azurerm_resource_group.test.location}" -} - -resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - sku { - tier = "Standard" - size = "S1" - } -} - -resource "azurerm_app_service" "test" { - name = "acctestAS-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" -} - -resource "azurerm_app_service_slot" "test" { - name = "acctestASSlot-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" - app_service_name = "${azurerm_app_service.test.name}" - - identity { - type = "SystemAssigned, UserAssigned" - identity_ids = ["${azurerm_user_assigned_identity.test.id}"] - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - func testAccAzureRMAppServiceSlot_minTls(data acceptance.TestData, tlsVersion string) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { diff --git a/azurerm/internal/services/web/tests/resource_arm_app_service_test.go b/azurerm/internal/services/web/tests/resource_arm_app_service_test.go index 5b1224148855..bd93bcaab795 100644 --- a/azurerm/internal/services/web/tests/resource_arm_app_service_test.go +++ b/azurerm/internal/services/web/tests/resource_arm_app_service_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" + "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" @@ -344,32 +344,6 @@ func TestAccAzureRMAppService_clientAffinityDisabled(t *testing.T) { }) } -func TestAccAzureRMAppService_virtualNetwork(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_app_service", "test") - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMAppServiceDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMAppService_virtualNetwork(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMAppServiceExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.virtual_network_name", fmt.Sprintf("acctestvn-%d", data.RandomInteger)), - ), - }, - { - Config: testAccAzureRMAppService_virtualNetworkUpdated(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMAppServiceExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.virtual_network_name", fmt.Sprintf("acctestvn2-%d", data.RandomInteger)), - ), - }, - data.ImportStep(), - }, - }) -} - func TestAccAzureRMAppService_enableManageServiceIdentity(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_app_service", "test") resource.ParallelTest(t, resource.TestCase{ @@ -438,27 +412,6 @@ func TestAccAzureRMAppService_userAssignedIdentity(t *testing.T) { }) } -func TestAccAzureRMAppService_multipleAssignedIdentities(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_app_service", "test") - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMAppServiceDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMAppService_multipleAssignedIdentities(data), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMAppServiceExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "identity.0.type", "SystemAssigned, UserAssigned"), - resource.TestCheckResourceAttr(data.ResourceName, "identity.0.identity_ids.#", "1"), - resource.TestMatchResourceAttr(data.ResourceName, "identity.0.principal_id", validate.UUIDRegExp), - resource.TestMatchResourceAttr(data.ResourceName, "identity.0.tenant_id", validate.UUIDRegExp), - ), - }, - }, - }) -} - func TestAccAzureRMAppService_clientAffinityUpdate(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_app_service", "test") resource.ParallelTest(t, resource.TestCase{ @@ -559,8 +512,7 @@ func TestAccAzureRMAppService_oneIpRestriction(t *testing.T) { Config: testAccAzureRMAppService_oneIpRestriction(data), Check: resource.ComposeTestCheckFunc( testCheckAzureRMAppServiceExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.subnet_mask", "255.255.255.255"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10/32"), ), }, data.ImportStep(), @@ -632,14 +584,10 @@ func TestAccAzureRMAppService_manyIpRestrictions(t *testing.T) { Config: testAccAzureRMAppService_manyIpRestrictions(data), Check: resource.ComposeTestCheckFunc( testCheckAzureRMAppServiceExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.subnet_mask", "255.255.255.255"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.1.ip_address", "20.20.20.0"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.1.subnet_mask", "255.255.255.0"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.2.ip_address", "30.30.0.0"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.2.subnet_mask", "255.255.0.0"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.3.ip_address", "192.168.1.2"), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.3.subnet_mask", "255.255.255.0"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.0.ip_address", "10.10.10.10/32"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.1.ip_address", "20.20.20.0/24"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.2.ip_address", "30.30.0.0/16"), + resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.ip_restriction.3.ip_address", "192.168.1.2/24"), ), }, data.ImportStep(), @@ -2116,7 +2064,6 @@ resource "azurerm_storage_account" "test" { resource "azurerm_storage_container" "test" { name = "example" - resource_group_name = "${azurerm_resource_group.test.name}" storage_account_name = "${azurerm_storage_account.test.name}" container_access_type = "private" } @@ -2264,104 +2211,6 @@ resource "azurerm_app_service" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, clientAffinity) } -func testAccAzureRMAppService_virtualNetwork(data acceptance.TestData) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvn-%d" - address_space = ["10.0.0.0/16"] - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - subnet { - name = "internal" - address_prefix = "10.0.1.0/24" - } -} - -resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - sku { - tier = "Standard" - size = "S1" - } -} - -resource "azurerm_app_service" "test" { - name = "acctestAS-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" - - site_config { - virtual_network_name = "${azurerm_virtual_network.test.name}" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - -func testAccAzureRMAppService_virtualNetworkUpdated(data acceptance.TestData) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvn-%d" - address_space = ["10.0.0.0/16"] - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - subnet { - name = "internal" - address_prefix = "10.0.1.0/24" - } -} - -resource "azurerm_virtual_network" "second" { - name = "acctestvn2-%d" - address_space = ["172.0.0.0/16"] - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - subnet { - name = "internal" - address_prefix = "172.0.1.0/24" - } -} - -resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - sku { - tier = "Standard" - size = "S1" - } -} - -resource "azurerm_app_service" "test" { - name = "acctestAS-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" - - site_config { - virtual_network_name = "${azurerm_virtual_network.second.name}" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - func testAccAzureRMAppService_mangedServiceIdentity(data acceptance.TestData) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { @@ -2431,44 +2280,6 @@ resource "azurerm_app_service" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) } -func testAccAzureRMAppService_multipleAssignedIdentities(data acceptance.TestData) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_user_assigned_identity" "test" { - name = "acct-%d" - resource_group_name = "${azurerm_resource_group.test.name}" - location = "${azurerm_resource_group.test.location}" -} - -resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - sku { - tier = "Standard" - size = "S1" - } -} - -resource "azurerm_app_service" "test" { - name = "acctestAS-%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" - - identity { - type = "SystemAssigned, UserAssigned" - identity_ids = ["${azurerm_user_assigned_identity.test.id}"] - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - func testAccAzureRMAppService_connectionStrings(data acceptance.TestData) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { @@ -2564,7 +2375,6 @@ resource "azurerm_storage_account" "test" { resource "azurerm_storage_container" "test" { name = "acctestcontainer" - resource_group_name = "${azurerm_resource_group.test.name}" storage_account_name = "${azurerm_storage_account.test.name}" } @@ -2625,7 +2435,6 @@ resource "azurerm_storage_account" "test" { resource "azurerm_storage_container" "test" { name = "acctestcontainer" - resource_group_name = "${azurerm_resource_group.test.name}" storage_account_name = "${azurerm_storage_account.test.name}" } @@ -2688,7 +2497,7 @@ resource "azurerm_app_service" "test" { site_config { ip_restriction { - ip_address = "10.10.10.10" + ip_address = "10.10.10.10/32" } } } @@ -2768,22 +2577,19 @@ resource "azurerm_app_service" "test" { site_config { ip_restriction { - ip_address = "10.10.10.10" + ip_address = "10.10.10.10/32" } ip_restriction { - ip_address = "20.20.20.0" - subnet_mask = "255.255.255.0" + ip_address = "20.20.20.0/24" } ip_restriction { - ip_address = "30.30.0.0" - subnet_mask = "255.255.0.0" + ip_address = "30.30.0.0/16" } ip_restriction { - ip_address = "192.168.1.2" - subnet_mask = "255.255.255.0" + ip_address = "192.168.1.2/24" } } } diff --git a/azurerm/internal/services/web/tests/resource_arm_function_app_test.go b/azurerm/internal/services/web/tests/resource_arm_function_app_test.go index ccc9d3c3468a..53ab8da11196 100644 --- a/azurerm/internal/services/web/tests/resource_arm_function_app_test.go +++ b/azurerm/internal/services/web/tests/resource_arm_function_app_test.go @@ -11,7 +11,6 @@ import ( "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/features" - "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/terraform" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" @@ -580,28 +579,6 @@ func TestAccAzureRMFunctionApp_corsSettings(t *testing.T) { }) } -func TestAccAzureRMFunctionApp_vnetName(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_function_app", "test") - - vnetName := strings.ToLower(acctest.RandString(11)) - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { acceptance.PreCheck(t) }, - Providers: acceptance.SupportedProviders, - CheckDestroy: testCheckAzureRMFunctionAppDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAzureRMFunctionApp_vnetName(data, vnetName), - Check: resource.ComposeTestCheckFunc( - testCheckAzureRMFunctionAppExists(data.ResourceName), - resource.TestCheckResourceAttr(data.ResourceName, "site_config.0.virtual_network_name", vnetName), - ), - }, - data.ImportStep(), - }, - }) -} - func TestAccAzureRMFunctionApp_enableHttp2(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_function_app", "test") @@ -1802,46 +1779,6 @@ resource "azurerm_function_app" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString) } -func testAccAzureRMFunctionApp_vnetName(data acceptance.TestData, vnetName string) string { - return fmt.Sprintf(` -resource "azurerm_resource_group" "test" { - name = "acctestRG-%[1]d" - location = "%[2]s" -} - -resource "azurerm_storage_account" "test" { - name = "acctestsa%[3]s" - resource_group_name = "${azurerm_resource_group.test.name}" - location = "${azurerm_resource_group.test.location}" - account_tier = "Standard" - account_replication_type = "LRS" -} - -resource "azurerm_app_service_plan" "test" { - name = "acctestASP-%[1]d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - - sku { - tier = "Standard" - size = "S1" - } -} - -resource "azurerm_function_app" "test" { - name = "acctest-%[1]d-func" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" - app_service_plan_id = "${azurerm_app_service_plan.test.id}" - storage_connection_string = "${azurerm_storage_account.test.primary_connection_string}" - - site_config { - virtual_network_name = "%[4]s" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomString, vnetName) -} - func testAccAzureRMFunctionApp_enableHttp2(data acceptance.TestData) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { diff --git a/azurerm/internal/tags/schema.go b/azurerm/internal/tags/schema.go index b80a551f117a..71b4e065dfe6 100644 --- a/azurerm/internal/tags/schema.go +++ b/azurerm/internal/tags/schema.go @@ -19,10 +19,8 @@ func SchemaDataSource() *schema.Schema { // require recreation of the resource func ForceNewSchema() *schema.Schema { return &schema.Schema{ - Type: schema.TypeMap, - Optional: true, - // TODO: remove "Computed" in 2.0 - Computed: true, + Type: schema.TypeMap, + Optional: true, ForceNew: true, ValidateFunc: Validate, Elem: &schema.Schema{ @@ -34,10 +32,8 @@ func ForceNewSchema() *schema.Schema { // Schema returns the Schema used for Tags func Schema() *schema.Schema { return &schema.Schema{ - Type: schema.TypeMap, - Optional: true, - // TODO: remove "Computed" in 2.0 - Computed: true, + Type: schema.TypeMap, + Optional: true, ValidateFunc: Validate, Elem: &schema.Schema{ Type: schema.TypeString, diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/apps.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/apps.go similarity index 91% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/apps.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/apps.go index 1baca4d70735..73392ff1c4d6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/apps.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/apps.go @@ -41,7 +41,7 @@ func NewAppsClientWithBaseURI(baseURI string, subscriptionID string) AppsClient return AppsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// AddPremierAddOn updates a named add-on of an app. +// AddPremierAddOn description for Updates a named add-on of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -96,7 +96,7 @@ func (client AppsClient) AddPremierAddOnPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -131,7 +131,7 @@ func (client AppsClient) AddPremierAddOnResponder(resp *http.Response) (result P return } -// AddPremierAddOnSlot updates a named add-on of an app. +// AddPremierAddOnSlot description for Updates a named add-on of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -189,7 +189,7 @@ func (client AppsClient) AddPremierAddOnSlotPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -224,7 +224,7 @@ func (client AppsClient) AddPremierAddOnSlotResponder(resp *http.Response) (resu return } -// AnalyzeCustomHostname analyze a custom hostname. +// AnalyzeCustomHostname description for Analyze a custom hostname. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -277,7 +277,7 @@ func (client AppsClient) AnalyzeCustomHostnamePreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -313,7 +313,7 @@ func (client AppsClient) AnalyzeCustomHostnameResponder(resp *http.Response) (re return } -// AnalyzeCustomHostnameSlot analyze a custom hostname. +// AnalyzeCustomHostnameSlot description for Analyze a custom hostname. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -368,7 +368,7 @@ func (client AppsClient) AnalyzeCustomHostnameSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -404,7 +404,8 @@ func (client AppsClient) AnalyzeCustomHostnameSlotResponder(resp *http.Response) return } -// ApplySlotConfigToProduction applies the configuration settings from the target slot onto the current slot. +// ApplySlotConfigToProduction description for Applies the configuration settings from the target slot onto the current +// slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -460,7 +461,7 @@ func (client AppsClient) ApplySlotConfigToProductionPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -494,7 +495,8 @@ func (client AppsClient) ApplySlotConfigToProductionResponder(resp *http.Respons return } -// ApplySlotConfigurationSlot applies the configuration settings from the target slot onto the current slot. +// ApplySlotConfigurationSlot description for Applies the configuration settings from the target slot onto the current +// slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -552,7 +554,7 @@ func (client AppsClient) ApplySlotConfigurationSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -586,7 +588,7 @@ func (client AppsClient) ApplySlotConfigurationSlotResponder(resp *http.Response return } -// Backup creates a backup of an app. +// Backup description for Creates a backup of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -648,7 +650,7 @@ func (client AppsClient) BackupPreparer(ctx context.Context, resourceGroupName s "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -683,7 +685,7 @@ func (client AppsClient) BackupResponder(resp *http.Response) (result BackupItem return } -// BackupSlot creates a backup of an app. +// BackupSlot description for Creates a backup of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -748,7 +750,7 @@ func (client AppsClient) BackupSlotPreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -783,7 +785,209 @@ func (client AppsClient) BackupSlotResponder(resp *http.Response) (result Backup return } -// CreateDeployment create a deployment for an app, or a deployment slot. +// CopyProductionSlot description for Copies a deployment slot to another deployment slot of an app. +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the app. +// copySlotEntity - JSON object that contains the target slot name and site config properties to override the +// source slot config. See example. +func (client AppsClient) CopyProductionSlot(ctx context.Context, resourceGroupName string, name string, copySlotEntity CsmCopySlotEntity) (result AppsCopyProductionSlotFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.CopyProductionSlot") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}, + {TargetValue: copySlotEntity, + Constraints: []validation.Constraint{{Target: "copySlotEntity.TargetSlot", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "copySlotEntity.SiteConfig", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "copySlotEntity.SiteConfig.Push", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "copySlotEntity.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "copySlotEntity.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}}, + }}, + {Target: "copySlotEntity.SiteConfig.PreWarmedInstanceCount", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "copySlotEntity.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, + {Target: "copySlotEntity.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("web.AppsClient", "CopyProductionSlot", err.Error()) + } + + req, err := client.CopyProductionSlotPreparer(ctx, resourceGroupName, name, copySlotEntity) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "CopyProductionSlot", nil, "Failure preparing request") + return + } + + result, err = client.CopyProductionSlotSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "CopyProductionSlot", result.Response(), "Failure sending request") + return + } + + return +} + +// CopyProductionSlotPreparer prepares the CopyProductionSlot request. +func (client AppsClient) CopyProductionSlotPreparer(ctx context.Context, resourceGroupName string, name string, copySlotEntity CsmCopySlotEntity) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-08-01" + 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.Web/sites/{name}/slotcopy", pathParameters), + autorest.WithJSON(copySlotEntity), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CopyProductionSlotSender sends the CopyProductionSlot request. The method will close the +// http.Response Body if it receives an error. +func (client AppsClient) CopyProductionSlotSender(req *http.Request) (future AppsCopyProductionSlotFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CopyProductionSlotResponder handles the response to the CopyProductionSlot request. The method always +// closes the http.Response Body. +func (client AppsClient) CopyProductionSlotResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// CopySlotSlot description for Copies a deployment slot to another deployment slot of an app. +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the app. +// copySlotEntity - JSON object that contains the target slot name and site config properties to override the +// source slot config. See example. +// slot - name of the source slot. If a slot is not specified, the production slot is used as the source slot. +func (client AppsClient) CopySlotSlot(ctx context.Context, resourceGroupName string, name string, copySlotEntity CsmCopySlotEntity, slot string) (result AppsCopySlotSlotFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.CopySlotSlot") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}, + {TargetValue: copySlotEntity, + Constraints: []validation.Constraint{{Target: "copySlotEntity.TargetSlot", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "copySlotEntity.SiteConfig", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "copySlotEntity.SiteConfig.Push", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "copySlotEntity.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "copySlotEntity.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}}, + }}, + {Target: "copySlotEntity.SiteConfig.PreWarmedInstanceCount", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "copySlotEntity.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, + {Target: "copySlotEntity.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("web.AppsClient", "CopySlotSlot", err.Error()) + } + + req, err := client.CopySlotSlotPreparer(ctx, resourceGroupName, name, copySlotEntity, slot) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "CopySlotSlot", nil, "Failure preparing request") + return + } + + result, err = client.CopySlotSlotSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "CopySlotSlot", result.Response(), "Failure sending request") + return + } + + return +} + +// CopySlotSlotPreparer prepares the CopySlotSlot request. +func (client AppsClient) CopySlotSlotPreparer(ctx context.Context, resourceGroupName string, name string, copySlotEntity CsmCopySlotEntity, slot string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "slot": autorest.Encode("path", slot), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-08-01" + 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.Web/sites/{name}/slots/{slot}/slotcopy", pathParameters), + autorest.WithJSON(copySlotEntity), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CopySlotSlotSender sends the CopySlotSlot request. The method will close the +// http.Response Body if it receives an error. +func (client AppsClient) CopySlotSlotSender(req *http.Request) (future AppsCopySlotSlotFuture, err error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, sd...) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CopySlotSlotResponder handles the response to the CopySlotSlot request. The method always +// closes the http.Response Body. +func (client AppsClient) CopySlotSlotResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// CreateDeployment description for Create a deployment for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -838,7 +1042,7 @@ func (client AppsClient) CreateDeploymentPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -873,7 +1077,7 @@ func (client AppsClient) CreateDeploymentResponder(resp *http.Response) (result return } -// CreateDeploymentSlot create a deployment for an app, or a deployment slot. +// CreateDeploymentSlot description for Create a deployment for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -931,7 +1135,7 @@ func (client AppsClient) CreateDeploymentSlotPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -966,7 +1170,7 @@ func (client AppsClient) CreateDeploymentSlotResponder(resp *http.Response) (res return } -// CreateFunction create function for web site, or a deployment slot. +// CreateFunction description for Create function for web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -1015,7 +1219,7 @@ func (client AppsClient) CreateFunctionPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1056,7 +1260,7 @@ func (client AppsClient) CreateFunctionResponder(resp *http.Response) (result Fu return } -// CreateInstanceFunctionSlot create function for web site, or a deployment slot. +// CreateInstanceFunctionSlot description for Create function for web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -1107,7 +1311,7 @@ func (client AppsClient) CreateInstanceFunctionSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1148,7 +1352,7 @@ func (client AppsClient) CreateInstanceFunctionSlotResponder(resp *http.Response return } -// CreateInstanceMSDeployOperation invoke the MSDeploy web app extension. +// CreateInstanceMSDeployOperation description for Invoke the MSDeploy web app extension. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -1197,7 +1401,7 @@ func (client AppsClient) CreateInstanceMSDeployOperationPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1238,7 +1442,7 @@ func (client AppsClient) CreateInstanceMSDeployOperationResponder(resp *http.Res return } -// CreateInstanceMSDeployOperationSlot invoke the MSDeploy web app extension. +// CreateInstanceMSDeployOperationSlot description for Invoke the MSDeploy web app extension. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -1289,7 +1493,7 @@ func (client AppsClient) CreateInstanceMSDeployOperationSlotPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1330,7 +1534,7 @@ func (client AppsClient) CreateInstanceMSDeployOperationSlotResponder(resp *http return } -// CreateMSDeployOperation invoke the MSDeploy web app extension. +// CreateMSDeployOperation description for Invoke the MSDeploy web app extension. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -1377,7 +1581,7 @@ func (client AppsClient) CreateMSDeployOperationPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1418,7 +1622,7 @@ func (client AppsClient) CreateMSDeployOperationResponder(resp *http.Response) ( return } -// CreateMSDeployOperationSlot invoke the MSDeploy web app extension. +// CreateMSDeployOperationSlot description for Invoke the MSDeploy web app extension. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -1467,7 +1671,7 @@ func (client AppsClient) CreateMSDeployOperationSlotPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1508,7 +1712,8 @@ func (client AppsClient) CreateMSDeployOperationSlotResponder(resp *http.Respons return } -// CreateOrUpdate creates a new web, mobile, or API app in an existing resource group, or updates an existing app. +// CreateOrUpdate description for Creates a new web, mobile, or API app in an existing resource group, or updates an +// existing app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - unique name of the app to create or update. To create or update a deployment slot, use the {slot} @@ -1537,9 +1742,9 @@ func (client AppsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}}, }}, - {Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, - {Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + {Target: "siteEnvelope.SiteProperties.SiteConfig.PreWarmedInstanceCount", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, + {Target: "siteEnvelope.SiteProperties.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, }}, }}, {Target: "siteEnvelope.SiteProperties.CloningInfo", Name: validation.Null, Rule: false, @@ -1571,7 +1776,7 @@ func (client AppsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1612,7 +1817,7 @@ func (client AppsClient) CreateOrUpdateResponder(resp *http.Response) (result Si return } -// CreateOrUpdateConfiguration updates the configuration of an app. +// CreateOrUpdateConfiguration description for Updates the configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -1639,9 +1844,9 @@ func (client AppsClient) CreateOrUpdateConfiguration(ctx context.Context, resour Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}}, }}, - {Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, - {Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + {Target: "siteConfig.SiteConfig.PreWarmedInstanceCount", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, + {Target: "siteConfig.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, }}, }}}}}); err != nil { return result, validation.NewError("web.AppsClient", "CreateOrUpdateConfiguration", err.Error()) @@ -1676,7 +1881,7 @@ func (client AppsClient) CreateOrUpdateConfigurationPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1711,7 +1916,7 @@ func (client AppsClient) CreateOrUpdateConfigurationResponder(resp *http.Respons return } -// CreateOrUpdateConfigurationSlot updates the configuration of an app. +// CreateOrUpdateConfigurationSlot description for Updates the configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -1740,9 +1945,9 @@ func (client AppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context, re Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}}, }}, - {Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, - {Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + {Target: "siteConfig.SiteConfig.PreWarmedInstanceCount", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, + {Target: "siteConfig.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, }}, }}}}}); err != nil { return result, validation.NewError("web.AppsClient", "CreateOrUpdateConfigurationSlot", err.Error()) @@ -1778,7 +1983,7 @@ func (client AppsClient) CreateOrUpdateConfigurationSlotPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1813,8 +2018,8 @@ func (client AppsClient) CreateOrUpdateConfigurationSlotResponder(resp *http.Res return } -// CreateOrUpdateDomainOwnershipIdentifier creates a domain ownership identifier for web app, or updates an existing -// ownership identifier. +// CreateOrUpdateDomainOwnershipIdentifier description for Creates a domain ownership identifier for web app, or +// updates an existing ownership identifier. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -1869,7 +2074,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierPreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1904,8 +2109,8 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierResponder(resp * return } -// CreateOrUpdateDomainOwnershipIdentifierSlot creates a domain ownership identifier for web app, or updates an -// existing ownership identifier. +// CreateOrUpdateDomainOwnershipIdentifierSlot description for Creates a domain ownership identifier for web app, or +// updates an existing ownership identifier. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -1963,7 +2168,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierSlotPreparer(ctx "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1998,193 +2203,7 @@ func (client AppsClient) CreateOrUpdateDomainOwnershipIdentifierSlotResponder(re return } -// CreateOrUpdateFunctionSecret add or update a function secret. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// functionName - the name of the function. -// keyName - the name of the key. -// key - the key to create or update -func (client AppsClient) CreateOrUpdateFunctionSecret(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, key KeyInfo) (result KeyInfo, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.CreateOrUpdateFunctionSecret") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "CreateOrUpdateFunctionSecret", err.Error()) - } - - req, err := client.CreateOrUpdateFunctionSecretPreparer(ctx, resourceGroupName, name, functionName, keyName, key) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecret", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateFunctionSecretSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecret", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateFunctionSecretResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecret", resp, "Failure responding to request") - } - - return -} - -// CreateOrUpdateFunctionSecretPreparer prepares the CreateOrUpdateFunctionSecret request. -func (client AppsClient) CreateOrUpdateFunctionSecretPreparer(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, key KeyInfo) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "functionName": autorest.Encode("path", functionName), - "keyName": autorest.Encode("path", keyName), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/keys/{keyName}", pathParameters), - autorest.WithJSON(key), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// CreateOrUpdateFunctionSecretSender sends the CreateOrUpdateFunctionSecret request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) CreateOrUpdateFunctionSecretSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// CreateOrUpdateFunctionSecretResponder handles the response to the CreateOrUpdateFunctionSecret request. The method always -// closes the http.Response Body. -func (client AppsClient) CreateOrUpdateFunctionSecretResponder(resp *http.Response) (result KeyInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// CreateOrUpdateFunctionSecretSlot add or update a function secret. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// functionName - the name of the function. -// keyName - the name of the key. -// slot - name of the deployment slot. -// key - the key to create or update -func (client AppsClient) CreateOrUpdateFunctionSecretSlot(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string, key KeyInfo) (result KeyInfo, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.CreateOrUpdateFunctionSecretSlot") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "CreateOrUpdateFunctionSecretSlot", err.Error()) - } - - req, err := client.CreateOrUpdateFunctionSecretSlotPreparer(ctx, resourceGroupName, name, functionName, keyName, slot, key) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecretSlot", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateFunctionSecretSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecretSlot", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateFunctionSecretSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateFunctionSecretSlot", resp, "Failure responding to request") - } - - return -} - -// CreateOrUpdateFunctionSecretSlotPreparer prepares the CreateOrUpdateFunctionSecretSlot request. -func (client AppsClient) CreateOrUpdateFunctionSecretSlotPreparer(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string, key KeyInfo) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "functionName": autorest.Encode("path", functionName), - "keyName": autorest.Encode("path", keyName), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/keys/{keyName}", pathParameters), - autorest.WithJSON(key), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// CreateOrUpdateFunctionSecretSlotSender sends the CreateOrUpdateFunctionSecretSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) CreateOrUpdateFunctionSecretSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// CreateOrUpdateFunctionSecretSlotResponder handles the response to the CreateOrUpdateFunctionSecretSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) CreateOrUpdateFunctionSecretSlotResponder(resp *http.Response) (result KeyInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// CreateOrUpdateHostNameBinding creates a hostname binding for an app. +// CreateOrUpdateHostNameBinding description for Creates a hostname binding for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -2239,7 +2258,7 @@ func (client AppsClient) CreateOrUpdateHostNameBindingPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2274,7 +2293,7 @@ func (client AppsClient) CreateOrUpdateHostNameBindingResponder(resp *http.Respo return } -// CreateOrUpdateHostNameBindingSlot creates a hostname binding for an app. +// CreateOrUpdateHostNameBindingSlot description for Creates a hostname binding for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -2332,7 +2351,7 @@ func (client AppsClient) CreateOrUpdateHostNameBindingSlotPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2367,193 +2386,7 @@ func (client AppsClient) CreateOrUpdateHostNameBindingSlotResponder(resp *http.R return } -// CreateOrUpdateHostSecret add or update a host level secret. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// keyType - the type of host key. -// keyName - the name of the key. -// key - the key to create or update -func (client AppsClient) CreateOrUpdateHostSecret(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, key KeyInfo) (result KeyInfo, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.CreateOrUpdateHostSecret") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "CreateOrUpdateHostSecret", err.Error()) - } - - req, err := client.CreateOrUpdateHostSecretPreparer(ctx, resourceGroupName, name, keyType, keyName, key) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecret", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateHostSecretSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecret", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateHostSecretResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecret", resp, "Failure responding to request") - } - - return -} - -// CreateOrUpdateHostSecretPreparer prepares the CreateOrUpdateHostSecret request. -func (client AppsClient) CreateOrUpdateHostSecretPreparer(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, key KeyInfo) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "keyName": autorest.Encode("path", keyName), - "keyType": autorest.Encode("path", keyType), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/{keyType}/{keyName}", pathParameters), - autorest.WithJSON(key), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// CreateOrUpdateHostSecretSender sends the CreateOrUpdateHostSecret request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) CreateOrUpdateHostSecretSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// CreateOrUpdateHostSecretResponder handles the response to the CreateOrUpdateHostSecret request. The method always -// closes the http.Response Body. -func (client AppsClient) CreateOrUpdateHostSecretResponder(resp *http.Response) (result KeyInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// CreateOrUpdateHostSecretSlot add or update a host level secret. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// keyType - the type of host key. -// keyName - the name of the key. -// slot - name of the deployment slot. -// key - the key to create or update -func (client AppsClient) CreateOrUpdateHostSecretSlot(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string, key KeyInfo) (result KeyInfo, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.CreateOrUpdateHostSecretSlot") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "CreateOrUpdateHostSecretSlot", err.Error()) - } - - req, err := client.CreateOrUpdateHostSecretSlotPreparer(ctx, resourceGroupName, name, keyType, keyName, slot, key) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecretSlot", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateHostSecretSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecretSlot", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateHostSecretSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateHostSecretSlot", resp, "Failure responding to request") - } - - return -} - -// CreateOrUpdateHostSecretSlotPreparer prepares the CreateOrUpdateHostSecretSlot request. -func (client AppsClient) CreateOrUpdateHostSecretSlotPreparer(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string, key KeyInfo) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "keyName": autorest.Encode("path", keyName), - "keyType": autorest.Encode("path", keyType), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/{keyType}/{keyName}", pathParameters), - autorest.WithJSON(key), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// CreateOrUpdateHostSecretSlotSender sends the CreateOrUpdateHostSecretSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) CreateOrUpdateHostSecretSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// CreateOrUpdateHostSecretSlotResponder handles the response to the CreateOrUpdateHostSecretSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) CreateOrUpdateHostSecretSlotResponder(resp *http.Response) (result KeyInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// CreateOrUpdateHybridConnection creates a new Hybrid Connection using a Service Bus relay. +// CreateOrUpdateHybridConnection description for Creates a new Hybrid Connection using a Service Bus relay. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -2610,7 +2443,7 @@ func (client AppsClient) CreateOrUpdateHybridConnectionPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2645,7 +2478,7 @@ func (client AppsClient) CreateOrUpdateHybridConnectionResponder(resp *http.Resp return } -// CreateOrUpdateHybridConnectionSlot creates a new Hybrid Connection using a Service Bus relay. +// CreateOrUpdateHybridConnectionSlot description for Creates a new Hybrid Connection using a Service Bus relay. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -2704,7 +2537,7 @@ func (client AppsClient) CreateOrUpdateHybridConnectionSlotPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2739,7 +2572,7 @@ func (client AppsClient) CreateOrUpdateHybridConnectionSlotResponder(resp *http. return } -// CreateOrUpdatePublicCertificate creates a hostname binding for an app. +// CreateOrUpdatePublicCertificate description for Creates a hostname binding for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -2795,7 +2628,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificatePreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2830,7 +2663,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificateResponder(resp *http.Res return } -// CreateOrUpdatePublicCertificateSlot creates a hostname binding for an app. +// CreateOrUpdatePublicCertificateSlot description for Creates a hostname binding for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -2889,7 +2722,7 @@ func (client AppsClient) CreateOrUpdatePublicCertificateSlotPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2924,8 +2757,8 @@ func (client AppsClient) CreateOrUpdatePublicCertificateSlotResponder(resp *http return } -// CreateOrUpdateRelayServiceConnection creates a new hybrid connection configuration (PUT), or updates an existing one -// (PATCH). +// CreateOrUpdateRelayServiceConnection description for Creates a new hybrid connection configuration (PUT), or updates +// an existing one (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -2980,7 +2813,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionPreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3015,8 +2848,8 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionResponder(resp *htt return } -// CreateOrUpdateRelayServiceConnectionSlot creates a new hybrid connection configuration (PUT), or updates an existing -// one (PATCH). +// CreateOrUpdateRelayServiceConnectionSlot description for Creates a new hybrid connection configuration (PUT), or +// updates an existing one (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -3074,7 +2907,7 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionSlotPreparer(ctx co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3109,7 +2942,8 @@ func (client AppsClient) CreateOrUpdateRelayServiceConnectionSlotResponder(resp return } -// CreateOrUpdateSlot creates a new web, mobile, or API app in an existing resource group, or updates an existing app. +// CreateOrUpdateSlot description for Creates a new web, mobile, or API app in an existing resource group, or updates +// an existing app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - unique name of the app to create or update. To create or update a deployment slot, use the {slot} @@ -3140,9 +2974,9 @@ func (client AppsClient) CreateOrUpdateSlot(ctx context.Context, resourceGroupNa Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}}, }}, - {Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, - {Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, + {Target: "siteEnvelope.SiteProperties.SiteConfig.PreWarmedInstanceCount", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil}, + {Target: "siteEnvelope.SiteProperties.SiteConfig.PreWarmedInstanceCount", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}, }}, }}, {Target: "siteEnvelope.SiteProperties.CloningInfo", Name: validation.Null, Rule: false, @@ -3175,7 +3009,7 @@ func (client AppsClient) CreateOrUpdateSlotPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3216,7 +3050,7 @@ func (client AppsClient) CreateOrUpdateSlotResponder(resp *http.Response) (resul return } -// CreateOrUpdateSourceControl updates the source control configuration of an app. +// CreateOrUpdateSourceControl description for Updates the source control configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -3263,7 +3097,7 @@ func (client AppsClient) CreateOrUpdateSourceControlPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3304,7 +3138,7 @@ func (client AppsClient) CreateOrUpdateSourceControlResponder(resp *http.Respons return } -// CreateOrUpdateSourceControlSlot updates the source control configuration of an app. +// CreateOrUpdateSourceControlSlot description for Updates the source control configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -3354,7 +3188,7 @@ func (client AppsClient) CreateOrUpdateSourceControlSlotPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3395,9 +3229,9 @@ func (client AppsClient) CreateOrUpdateSourceControlSlotResponder(resp *http.Res return } -// CreateOrUpdateSwiftVirtualNetworkConnection integrates this Web App with a Virtual Network. This requires that 1) -// "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been -// delegated, and is not +// CreateOrUpdateSwiftVirtualNetworkConnection description for Integrates this Web App with a Virtual Network. This +// requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has +// already been delegated, and is not // in use by another App Service Plan other than the one this App is in. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. @@ -3451,7 +3285,7 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionPreparer(ctx "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3486,9 +3320,9 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionResponder(re return } -// CreateOrUpdateSwiftVirtualNetworkConnectionSlot integrates this Web App with a Virtual Network. This requires that -// 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been -// delegated, and is not +// CreateOrUpdateSwiftVirtualNetworkConnectionSlot description for Integrates this Web App with a Virtual Network. This +// requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has +// already been delegated, and is not // in use by another App Service Plan other than the one this App is in. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. @@ -3545,7 +3379,7 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSlotPreparer "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3580,8 +3414,8 @@ func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSlotResponde return } -// CreateOrUpdateVnetConnection adds a Virtual Network connection to an app or slot (PUT) or updates the connection -// properties (PATCH). +// CreateOrUpdateVnetConnection description for Adds a Virtual Network connection to an app or slot (PUT) or updates +// the connection properties (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -3636,7 +3470,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionPreparer(ctx context.Contex "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3671,7 +3505,8 @@ func (client AppsClient) CreateOrUpdateVnetConnectionResponder(resp *http.Respon return } -// CreateOrUpdateVnetConnectionGateway adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). +// CreateOrUpdateVnetConnectionGateway description for Adds a gateway to a connected Virtual Network (PUT) or updates +// it (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -3731,7 +3566,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewayPreparer(ctx context "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3766,7 +3601,8 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewayResponder(resp *http return } -// CreateOrUpdateVnetConnectionGatewaySlot adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). +// CreateOrUpdateVnetConnectionGatewaySlot description for Adds a gateway to a connected Virtual Network (PUT) or +// updates it (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -3829,7 +3665,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewaySlotPreparer(ctx con "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3864,8 +3700,8 @@ func (client AppsClient) CreateOrUpdateVnetConnectionGatewaySlotResponder(resp * return } -// CreateOrUpdateVnetConnectionSlot adds a Virtual Network connection to an app or slot (PUT) or updates the connection -// properties (PATCH). +// CreateOrUpdateVnetConnectionSlot description for Adds a Virtual Network connection to an app or slot (PUT) or +// updates the connection properties (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -3923,7 +3759,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionSlotPreparer(ctx context.Co "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3958,7 +3794,7 @@ func (client AppsClient) CreateOrUpdateVnetConnectionSlotResponder(resp *http.Re return } -// Delete deletes a web, mobile, or API app, or one of the deployment slots. +// Delete description for Deletes a web, mobile, or API app, or one of the deployment slots. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app to delete. @@ -4013,7 +3849,7 @@ func (client AppsClient) DeletePreparer(ctx context.Context, resourceGroupName s "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4051,7 +3887,7 @@ func (client AppsClient) DeleteResponder(resp *http.Response) (result autorest.R return } -// DeleteBackup deletes a backup of an app by its ID. +// DeleteBackup description for Deletes a backup of an app by its ID. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -4105,7 +3941,7 @@ func (client AppsClient) DeleteBackupPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4137,7 +3973,7 @@ func (client AppsClient) DeleteBackupResponder(resp *http.Response) (result auto return } -// DeleteBackupConfiguration deletes the backup configuration of an app. +// DeleteBackupConfiguration description for Deletes the backup configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -4189,7 +4025,7 @@ func (client AppsClient) DeleteBackupConfigurationPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4221,7 +4057,7 @@ func (client AppsClient) DeleteBackupConfigurationResponder(resp *http.Response) return } -// DeleteBackupConfigurationSlot deletes the backup configuration of an app. +// DeleteBackupConfigurationSlot description for Deletes the backup configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -4276,7 +4112,7 @@ func (client AppsClient) DeleteBackupConfigurationSlotPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4308,7 +4144,7 @@ func (client AppsClient) DeleteBackupConfigurationSlotResponder(resp *http.Respo return } -// DeleteBackupSlot deletes a backup of an app by its ID. +// DeleteBackupSlot description for Deletes a backup of an app by its ID. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -4365,7 +4201,7 @@ func (client AppsClient) DeleteBackupSlotPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4397,7 +4233,7 @@ func (client AppsClient) DeleteBackupSlotResponder(resp *http.Response) (result return } -// DeleteContinuousWebJob delete a continuous web job by its ID for an app, or a deployment slot. +// DeleteContinuousWebJob description for Delete a continuous web job by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -4451,7 +4287,7 @@ func (client AppsClient) DeleteContinuousWebJobPreparer(ctx context.Context, res "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4483,7 +4319,7 @@ func (client AppsClient) DeleteContinuousWebJobResponder(resp *http.Response) (r return } -// DeleteContinuousWebJobSlot delete a continuous web job by its ID for an app, or a deployment slot. +// DeleteContinuousWebJobSlot description for Delete a continuous web job by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -4540,7 +4376,7 @@ func (client AppsClient) DeleteContinuousWebJobSlotPreparer(ctx context.Context, "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4572,7 +4408,7 @@ func (client AppsClient) DeleteContinuousWebJobSlotResponder(resp *http.Response return } -// DeleteDeployment delete a deployment by its ID for an app, or a deployment slot. +// DeleteDeployment description for Delete a deployment by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -4626,7 +4462,7 @@ func (client AppsClient) DeleteDeploymentPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4658,7 +4494,7 @@ func (client AppsClient) DeleteDeploymentResponder(resp *http.Response) (result return } -// DeleteDeploymentSlot delete a deployment by its ID for an app, or a deployment slot. +// DeleteDeploymentSlot description for Delete a deployment by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -4715,7 +4551,7 @@ func (client AppsClient) DeleteDeploymentSlotPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4747,7 +4583,7 @@ func (client AppsClient) DeleteDeploymentSlotResponder(resp *http.Response) (res return } -// DeleteDomainOwnershipIdentifier deletes a domain ownership identifier for a web app. +// DeleteDomainOwnershipIdentifier description for Deletes a domain ownership identifier for a web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -4801,7 +4637,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4833,7 +4669,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierResponder(resp *http.Res return } -// DeleteDomainOwnershipIdentifierSlot deletes a domain ownership identifier for a web app. +// DeleteDomainOwnershipIdentifierSlot description for Deletes a domain ownership identifier for a web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -4890,7 +4726,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierSlotPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4922,7 +4758,7 @@ func (client AppsClient) DeleteDomainOwnershipIdentifierSlotResponder(resp *http return } -// DeleteFunction delete a function for web site, or a deployment slot. +// DeleteFunction description for Delete a function for web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -4976,7 +4812,7 @@ func (client AppsClient) DeleteFunctionPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -5008,185 +4844,7 @@ func (client AppsClient) DeleteFunctionResponder(resp *http.Response) (result au return } -// DeleteFunctionSecret delete a function secret. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// functionName - the name of the function. -// keyName - the name of the key. -func (client AppsClient) DeleteFunctionSecret(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.DeleteFunctionSecret") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "DeleteFunctionSecret", err.Error()) - } - - req, err := client.DeleteFunctionSecretPreparer(ctx, resourceGroupName, name, functionName, keyName) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecret", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteFunctionSecretSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecret", resp, "Failure sending request") - return - } - - result, err = client.DeleteFunctionSecretResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecret", resp, "Failure responding to request") - } - - return -} - -// DeleteFunctionSecretPreparer prepares the DeleteFunctionSecret request. -func (client AppsClient) DeleteFunctionSecretPreparer(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "functionName": autorest.Encode("path", functionName), - "keyName": autorest.Encode("path", keyName), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/keys/{keyName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// DeleteFunctionSecretSender sends the DeleteFunctionSecret request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) DeleteFunctionSecretSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// DeleteFunctionSecretResponder handles the response to the DeleteFunctionSecret request. The method always -// closes the http.Response Body. -func (client AppsClient) DeleteFunctionSecretResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// DeleteFunctionSecretSlot delete a function secret. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// functionName - the name of the function. -// keyName - the name of the key. -// slot - name of the deployment slot. -func (client AppsClient) DeleteFunctionSecretSlot(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.DeleteFunctionSecretSlot") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "DeleteFunctionSecretSlot", err.Error()) - } - - req, err := client.DeleteFunctionSecretSlotPreparer(ctx, resourceGroupName, name, functionName, keyName, slot) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecretSlot", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteFunctionSecretSlotSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecretSlot", resp, "Failure sending request") - return - } - - result, err = client.DeleteFunctionSecretSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteFunctionSecretSlot", resp, "Failure responding to request") - } - - return -} - -// DeleteFunctionSecretSlotPreparer prepares the DeleteFunctionSecretSlot request. -func (client AppsClient) DeleteFunctionSecretSlotPreparer(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "functionName": autorest.Encode("path", functionName), - "keyName": autorest.Encode("path", keyName), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/keys/{keyName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// DeleteFunctionSecretSlotSender sends the DeleteFunctionSecretSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) DeleteFunctionSecretSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// DeleteFunctionSecretSlotResponder handles the response to the DeleteFunctionSecretSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) DeleteFunctionSecretSlotResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// DeleteHostNameBinding deletes a hostname binding for an app. +// DeleteHostNameBinding description for Deletes a hostname binding for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -5240,7 +4898,7 @@ func (client AppsClient) DeleteHostNameBindingPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -5272,7 +4930,7 @@ func (client AppsClient) DeleteHostNameBindingResponder(resp *http.Response) (re return } -// DeleteHostNameBindingSlot deletes a hostname binding for an app. +// DeleteHostNameBindingSlot description for Deletes a hostname binding for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -5329,7 +4987,7 @@ func (client AppsClient) DeleteHostNameBindingSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -5361,185 +5019,7 @@ func (client AppsClient) DeleteHostNameBindingSlotResponder(resp *http.Response) return } -// DeleteHostSecret delete a host level secret. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// keyType - the type of host key. -// keyName - the name of the key. -func (client AppsClient) DeleteHostSecret(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.DeleteHostSecret") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "DeleteHostSecret", err.Error()) - } - - req, err := client.DeleteHostSecretPreparer(ctx, resourceGroupName, name, keyType, keyName) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecret", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteHostSecretSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecret", resp, "Failure sending request") - return - } - - result, err = client.DeleteHostSecretResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecret", resp, "Failure responding to request") - } - - return -} - -// DeleteHostSecretPreparer prepares the DeleteHostSecret request. -func (client AppsClient) DeleteHostSecretPreparer(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "keyName": autorest.Encode("path", keyName), - "keyType": autorest.Encode("path", keyType), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/{keyType}/{keyName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// DeleteHostSecretSender sends the DeleteHostSecret request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) DeleteHostSecretSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// DeleteHostSecretResponder handles the response to the DeleteHostSecret request. The method always -// closes the http.Response Body. -func (client AppsClient) DeleteHostSecretResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// DeleteHostSecretSlot delete a host level secret. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// keyType - the type of host key. -// keyName - the name of the key. -// slot - name of the deployment slot. -func (client AppsClient) DeleteHostSecretSlot(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.DeleteHostSecretSlot") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "DeleteHostSecretSlot", err.Error()) - } - - req, err := client.DeleteHostSecretSlotPreparer(ctx, resourceGroupName, name, keyType, keyName, slot) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecretSlot", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteHostSecretSlotSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecretSlot", resp, "Failure sending request") - return - } - - result, err = client.DeleteHostSecretSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteHostSecretSlot", resp, "Failure responding to request") - } - - return -} - -// DeleteHostSecretSlotPreparer prepares the DeleteHostSecretSlot request. -func (client AppsClient) DeleteHostSecretSlotPreparer(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "keyName": autorest.Encode("path", keyName), - "keyType": autorest.Encode("path", keyType), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/{keyType}/{keyName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// DeleteHostSecretSlotSender sends the DeleteHostSecretSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) DeleteHostSecretSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// DeleteHostSecretSlotResponder handles the response to the DeleteHostSecretSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) DeleteHostSecretSlotResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// DeleteHybridConnection removes a Hybrid Connection from this site. +// DeleteHybridConnection description for Removes a Hybrid Connection from this site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -5595,7 +5075,7 @@ func (client AppsClient) DeleteHybridConnectionPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -5627,7 +5107,7 @@ func (client AppsClient) DeleteHybridConnectionResponder(resp *http.Response) (r return } -// DeleteHybridConnectionSlot removes a Hybrid Connection from this site. +// DeleteHybridConnectionSlot description for Removes a Hybrid Connection from this site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -5685,7 +5165,7 @@ func (client AppsClient) DeleteHybridConnectionSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -5717,7 +5197,7 @@ func (client AppsClient) DeleteHybridConnectionSlotResponder(resp *http.Response return } -// DeleteInstanceFunctionSlot delete a function for web site, or a deployment slot. +// DeleteInstanceFunctionSlot description for Delete a function for web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -5773,7 +5253,7 @@ func (client AppsClient) DeleteInstanceFunctionSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -5805,8 +5285,8 @@ func (client AppsClient) DeleteInstanceFunctionSlotResponder(resp *http.Response return } -// DeleteInstanceProcess terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out -// instance in a web site. +// DeleteInstanceProcess description for Terminate a process by its ID for a web site, or a deployment slot, or +// specific scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -5863,7 +5343,7 @@ func (client AppsClient) DeleteInstanceProcessPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -5895,8 +5375,8 @@ func (client AppsClient) DeleteInstanceProcessResponder(resp *http.Response) (re return } -// DeleteInstanceProcessSlot terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out -// instance in a web site. +// DeleteInstanceProcessSlot description for Terminate a process by its ID for a web site, or a deployment slot, or +// specific scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -5956,7 +5436,7 @@ func (client AppsClient) DeleteInstanceProcessSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -5988,7 +5468,7 @@ func (client AppsClient) DeleteInstanceProcessSlotResponder(resp *http.Response) return } -// DeletePremierAddOn delete a premier add-on from an app. +// DeletePremierAddOn description for Delete a premier add-on from an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -6042,7 +5522,7 @@ func (client AppsClient) DeletePremierAddOnPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6074,7 +5554,7 @@ func (client AppsClient) DeletePremierAddOnResponder(resp *http.Response) (resul return } -// DeletePremierAddOnSlot delete a premier add-on from an app. +// DeletePremierAddOnSlot description for Delete a premier add-on from an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -6131,7 +5611,7 @@ func (client AppsClient) DeletePremierAddOnSlotPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6163,8 +5643,8 @@ func (client AppsClient) DeletePremierAddOnSlotResponder(resp *http.Response) (r return } -// DeleteProcess terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in -// a web site. +// DeleteProcess description for Terminate a process by its ID for a web site, or a deployment slot, or specific +// scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -6218,7 +5698,7 @@ func (client AppsClient) DeleteProcessPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6250,8 +5730,8 @@ func (client AppsClient) DeleteProcessResponder(resp *http.Response) (result aut return } -// DeleteProcessSlot terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out -// instance in a web site. +// DeleteProcessSlot description for Terminate a process by its ID for a web site, or a deployment slot, or specific +// scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -6308,7 +5788,7 @@ func (client AppsClient) DeleteProcessSlotPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6340,7 +5820,7 @@ func (client AppsClient) DeleteProcessSlotResponder(resp *http.Response) (result return } -// DeletePublicCertificate deletes a hostname binding for an app. +// DeletePublicCertificate description for Deletes a hostname binding for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -6394,7 +5874,7 @@ func (client AppsClient) DeletePublicCertificatePreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6426,7 +5906,7 @@ func (client AppsClient) DeletePublicCertificateResponder(resp *http.Response) ( return } -// DeletePublicCertificateSlot deletes a hostname binding for an app. +// DeletePublicCertificateSlot description for Deletes a hostname binding for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -6483,7 +5963,7 @@ func (client AppsClient) DeletePublicCertificateSlotPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6515,7 +5995,7 @@ func (client AppsClient) DeletePublicCertificateSlotResponder(resp *http.Respons return } -// DeleteRelayServiceConnection deletes a relay service connection by its name. +// DeleteRelayServiceConnection description for Deletes a relay service connection by its name. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -6569,7 +6049,7 @@ func (client AppsClient) DeleteRelayServiceConnectionPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6601,7 +6081,7 @@ func (client AppsClient) DeleteRelayServiceConnectionResponder(resp *http.Respon return } -// DeleteRelayServiceConnectionSlot deletes a relay service connection by its name. +// DeleteRelayServiceConnectionSlot description for Deletes a relay service connection by its name. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -6658,7 +6138,7 @@ func (client AppsClient) DeleteRelayServiceConnectionSlotPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6690,7 +6170,7 @@ func (client AppsClient) DeleteRelayServiceConnectionSlotResponder(resp *http.Re return } -// DeleteSiteExtension remove a site extension from a web site, or a deployment slot. +// DeleteSiteExtension description for Remove a site extension from a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -6744,7 +6224,7 @@ func (client AppsClient) DeleteSiteExtensionPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6776,7 +6256,7 @@ func (client AppsClient) DeleteSiteExtensionResponder(resp *http.Response) (resu return } -// DeleteSiteExtensionSlot remove a site extension from a web site, or a deployment slot. +// DeleteSiteExtensionSlot description for Remove a site extension from a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -6833,7 +6313,7 @@ func (client AppsClient) DeleteSiteExtensionSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6865,7 +6345,7 @@ func (client AppsClient) DeleteSiteExtensionSlotResponder(resp *http.Response) ( return } -// DeleteSlot deletes a web, mobile, or API app, or one of the deployment slots. +// DeleteSlot description for Deletes a web, mobile, or API app, or one of the deployment slots. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app to delete. @@ -6922,7 +6402,7 @@ func (client AppsClient) DeleteSlotPreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -6960,7 +6440,7 @@ func (client AppsClient) DeleteSlotResponder(resp *http.Response) (result autore return } -// DeleteSourceControl deletes the source control configuration of an app. +// DeleteSourceControl description for Deletes the source control configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7012,7 +6492,7 @@ func (client AppsClient) DeleteSourceControlPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7044,7 +6524,7 @@ func (client AppsClient) DeleteSourceControlResponder(resp *http.Response) (resu return } -// DeleteSourceControlSlot deletes the source control configuration of an app. +// DeleteSourceControlSlot description for Deletes the source control configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7099,7 +6579,7 @@ func (client AppsClient) DeleteSourceControlSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7131,7 +6611,8 @@ func (client AppsClient) DeleteSourceControlSlotResponder(resp *http.Response) ( return } -// DeleteSwiftVirtualNetwork deletes a Swift Virtual Network connection from an app (or deployment slot). +// DeleteSwiftVirtualNetwork description for Deletes a Swift Virtual Network connection from an app (or deployment +// slot). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7183,7 +6664,7 @@ func (client AppsClient) DeleteSwiftVirtualNetworkPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7215,7 +6696,8 @@ func (client AppsClient) DeleteSwiftVirtualNetworkResponder(resp *http.Response) return } -// DeleteSwiftVirtualNetworkSlot deletes a Swift Virtual Network connection from an app (or deployment slot). +// DeleteSwiftVirtualNetworkSlot description for Deletes a Swift Virtual Network connection from an app (or deployment +// slot). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7270,7 +6752,7 @@ func (client AppsClient) DeleteSwiftVirtualNetworkSlotPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7302,7 +6784,7 @@ func (client AppsClient) DeleteSwiftVirtualNetworkSlotResponder(resp *http.Respo return } -// DeleteTriggeredWebJob delete a triggered web job by its ID for an app, or a deployment slot. +// DeleteTriggeredWebJob description for Delete a triggered web job by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -7356,7 +6838,7 @@ func (client AppsClient) DeleteTriggeredWebJobPreparer(ctx context.Context, reso "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7388,13 +6870,13 @@ func (client AppsClient) DeleteTriggeredWebJobResponder(resp *http.Response) (re return } -// DeleteTriggeredWebJobSlot delete a triggered web job by its ID for an app, or a deployment slot. +// DeleteTriggeredWebJobSlot description for Delete a triggered web job by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. // webJobName - name of Web Job. -// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the -// production slot. +// slot - name of the deployment slot. If a slot is not specified, the API deletes web job for the production +// slot. func (client AppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (result autorest.Response, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.DeleteTriggeredWebJobSlot") @@ -7445,7 +6927,7 @@ func (client AppsClient) DeleteTriggeredWebJobSlotPreparer(ctx context.Context, "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7477,7 +6959,8 @@ func (client AppsClient) DeleteTriggeredWebJobSlotResponder(resp *http.Response) return } -// DeleteVnetConnection deletes a connection from an app (or deployment slot to a named virtual network. +// DeleteVnetConnection description for Deletes a connection from an app (or deployment slot to a named virtual +// network. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7531,7 +7014,7 @@ func (client AppsClient) DeleteVnetConnectionPreparer(ctx context.Context, resou "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7563,7 +7046,8 @@ func (client AppsClient) DeleteVnetConnectionResponder(resp *http.Response) (res return } -// DeleteVnetConnectionSlot deletes a connection from an app (or deployment slot to a named virtual network. +// DeleteVnetConnectionSlot description for Deletes a connection from an app (or deployment slot to a named virtual +// network. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7620,7 +7104,7 @@ func (client AppsClient) DeleteVnetConnectionSlotPreparer(ctx context.Context, r "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7652,8 +7136,8 @@ func (client AppsClient) DeleteVnetConnectionSlotResponder(resp *http.Response) return } -// DiscoverBackup discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get -// information about the databases stored in a backup. +// DiscoverBackup description for Discovers an existing app backup that can be restored from a blob in Azure storage. +// Use this to get information about the databases stored in a backup. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7711,7 +7195,7 @@ func (client AppsClient) DiscoverBackupPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7746,8 +7230,8 @@ func (client AppsClient) DiscoverBackupResponder(resp *http.Response) (result Re return } -// DiscoverBackupSlot discovers an existing app backup that can be restored from a blob in Azure storage. Use this to -// get information about the databases stored in a backup. +// DiscoverBackupSlot description for Discovers an existing app backup that can be restored from a blob in Azure +// storage. Use this to get information about the databases stored in a backup. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7808,7 +7292,7 @@ func (client AppsClient) DiscoverBackupSlotPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7843,7 +7327,8 @@ func (client AppsClient) DiscoverBackupSlotResponder(resp *http.Response) (resul return } -// GenerateNewSitePublishingPassword generates a new publishing password for an app (or deployment slot, if specified). +// GenerateNewSitePublishingPassword description for Generates a new publishing password for an app (or deployment +// slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7895,7 +7380,7 @@ func (client AppsClient) GenerateNewSitePublishingPasswordPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -7927,8 +7412,8 @@ func (client AppsClient) GenerateNewSitePublishingPasswordResponder(resp *http.R return } -// GenerateNewSitePublishingPasswordSlot generates a new publishing password for an app (or deployment slot, if -// specified). +// GenerateNewSitePublishingPasswordSlot description for Generates a new publishing password for an app (or deployment +// slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -7983,7 +7468,7 @@ func (client AppsClient) GenerateNewSitePublishingPasswordSlotPreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8015,7 +7500,7 @@ func (client AppsClient) GenerateNewSitePublishingPasswordSlotResponder(resp *ht return } -// Get gets the details of a web, mobile, or API app. +// Get description for Gets the details of a web, mobile, or API app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8067,7 +7552,7 @@ func (client AppsClient) GetPreparer(ctx context.Context, resourceGroupName stri "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8100,7 +7585,179 @@ func (client AppsClient) GetResponder(resp *http.Response) (result Site, err err return } -// GetAuthSettings gets the Authentication/Authorization settings of an app. +// GetAppSettingKeyVaultReference description for Gets the config reference and status of an app +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the app. +// appSettingKey - app Setting key name. +func (client AppsClient) GetAppSettingKeyVaultReference(ctx context.Context, resourceGroupName string, name string, appSettingKey string) (result KeyVaultReferenceResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetAppSettingKeyVaultReference") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("web.AppsClient", "GetAppSettingKeyVaultReference", err.Error()) + } + + req, err := client.GetAppSettingKeyVaultReferencePreparer(ctx, resourceGroupName, name, appSettingKey) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAppSettingKeyVaultReference", nil, "Failure preparing request") + return + } + + resp, err := client.GetAppSettingKeyVaultReferenceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAppSettingKeyVaultReference", resp, "Failure sending request") + return + } + + result, err = client.GetAppSettingKeyVaultReferenceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAppSettingKeyVaultReference", resp, "Failure responding to request") + } + + return +} + +// GetAppSettingKeyVaultReferencePreparer prepares the GetAppSettingKeyVaultReference request. +func (client AppsClient) GetAppSettingKeyVaultReferencePreparer(ctx context.Context, resourceGroupName string, name string, appSettingKey string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "appSettingKey": autorest.Encode("path", appSettingKey), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-08-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/appsettings/{appSettingKey}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetAppSettingKeyVaultReferenceSender sends the GetAppSettingKeyVaultReference request. The method will close the +// http.Response Body if it receives an error. +func (client AppsClient) GetAppSettingKeyVaultReferenceSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetAppSettingKeyVaultReferenceResponder handles the response to the GetAppSettingKeyVaultReference request. The method always +// closes the http.Response Body. +func (client AppsClient) GetAppSettingKeyVaultReferenceResponder(resp *http.Response) (result KeyVaultReferenceResource, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetAppSettingsKeyVaultReferences description for Gets the config reference app settings and status of an app +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the app. +func (client AppsClient) GetAppSettingsKeyVaultReferences(ctx context.Context, resourceGroupName string, name string) (result KeyVaultReferenceCollection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetAppSettingsKeyVaultReferences") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("web.AppsClient", "GetAppSettingsKeyVaultReferences", err.Error()) + } + + req, err := client.GetAppSettingsKeyVaultReferencesPreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAppSettingsKeyVaultReferences", nil, "Failure preparing request") + return + } + + resp, err := client.GetAppSettingsKeyVaultReferencesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAppSettingsKeyVaultReferences", resp, "Failure sending request") + return + } + + result, err = client.GetAppSettingsKeyVaultReferencesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetAppSettingsKeyVaultReferences", resp, "Failure responding to request") + } + + return +} + +// GetAppSettingsKeyVaultReferencesPreparer prepares the GetAppSettingsKeyVaultReferences request. +func (client AppsClient) GetAppSettingsKeyVaultReferencesPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-08-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/appsettings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetAppSettingsKeyVaultReferencesSender sends the GetAppSettingsKeyVaultReferences request. The method will close the +// http.Response Body if it receives an error. +func (client AppsClient) GetAppSettingsKeyVaultReferencesSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetAppSettingsKeyVaultReferencesResponder handles the response to the GetAppSettingsKeyVaultReferences request. The method always +// closes the http.Response Body. +func (client AppsClient) GetAppSettingsKeyVaultReferencesResponder(resp *http.Response) (result KeyVaultReferenceCollection, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetAuthSettings description for Gets the Authentication/Authorization settings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8152,7 +7809,7 @@ func (client AppsClient) GetAuthSettingsPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8185,7 +7842,7 @@ func (client AppsClient) GetAuthSettingsResponder(resp *http.Response) (result S return } -// GetAuthSettingsSlot gets the Authentication/Authorization settings of an app. +// GetAuthSettingsSlot description for Gets the Authentication/Authorization settings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8240,7 +7897,7 @@ func (client AppsClient) GetAuthSettingsSlotPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8273,7 +7930,7 @@ func (client AppsClient) GetAuthSettingsSlotResponder(resp *http.Response) (resu return } -// GetBackupConfiguration gets the backup configuration of an app. +// GetBackupConfiguration description for Gets the backup configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8325,7 +7982,7 @@ func (client AppsClient) GetBackupConfigurationPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8358,7 +8015,7 @@ func (client AppsClient) GetBackupConfigurationResponder(resp *http.Response) (r return } -// GetBackupConfigurationSlot gets the backup configuration of an app. +// GetBackupConfigurationSlot description for Gets the backup configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8413,7 +8070,7 @@ func (client AppsClient) GetBackupConfigurationSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8446,7 +8103,7 @@ func (client AppsClient) GetBackupConfigurationSlotResponder(resp *http.Response return } -// GetBackupStatus gets a backup of an app by its ID. +// GetBackupStatus description for Gets a backup of an app by its ID. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8500,7 +8157,7 @@ func (client AppsClient) GetBackupStatusPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8533,7 +8190,7 @@ func (client AppsClient) GetBackupStatusResponder(resp *http.Response) (result B return } -// GetBackupStatusSlot gets a backup of an app by its ID. +// GetBackupStatusSlot description for Gets a backup of an app by its ID. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8590,7 +8247,7 @@ func (client AppsClient) GetBackupStatusSlotPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8623,8 +8280,8 @@ func (client AppsClient) GetBackupStatusSlotResponder(resp *http.Response) (resu return } -// GetConfiguration gets the configuration of an app, such as platform version and bitness, default documents, virtual -// applications, Always On, etc. +// GetConfiguration description for Gets the configuration of an app, such as platform version and bitness, default +// documents, virtual applications, Always On, etc. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8676,7 +8333,7 @@ func (client AppsClient) GetConfigurationPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8709,8 +8366,8 @@ func (client AppsClient) GetConfigurationResponder(resp *http.Response) (result return } -// GetConfigurationSlot gets the configuration of an app, such as platform version and bitness, default documents, -// virtual applications, Always On, etc. +// GetConfigurationSlot description for Gets the configuration of an app, such as platform version and bitness, default +// documents, virtual applications, Always On, etc. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8765,7 +8422,7 @@ func (client AppsClient) GetConfigurationSlotPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8798,7 +8455,7 @@ func (client AppsClient) GetConfigurationSlotResponder(resp *http.Response) (res return } -// GetConfigurationSnapshot gets a snapshot of the configuration of an app at a previous point in time. +// GetConfigurationSnapshot description for Gets a snapshot of the configuration of an app at a previous point in time. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8852,7 +8509,7 @@ func (client AppsClient) GetConfigurationSnapshotPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8885,7 +8542,8 @@ func (client AppsClient) GetConfigurationSnapshotResponder(resp *http.Response) return } -// GetConfigurationSnapshotSlot gets a snapshot of the configuration of an app at a previous point in time. +// GetConfigurationSnapshotSlot description for Gets a snapshot of the configuration of an app at a previous point in +// time. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -8942,7 +8600,7 @@ func (client AppsClient) GetConfigurationSnapshotSlotPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -8975,7 +8633,7 @@ func (client AppsClient) GetConfigurationSnapshotSlotResponder(resp *http.Respon return } -// GetContainerLogsZip gets the ZIP archived docker log files for the given site +// GetContainerLogsZip description for Gets the ZIP archived docker log files for the given site // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -9027,7 +8685,7 @@ func (client AppsClient) GetContainerLogsZipPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9059,7 +8717,7 @@ func (client AppsClient) GetContainerLogsZipResponder(resp *http.Response) (resu return } -// GetContainerLogsZipSlot gets the ZIP archived docker log files for the given site +// GetContainerLogsZipSlot description for Gets the ZIP archived docker log files for the given site // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -9113,7 +8771,7 @@ func (client AppsClient) GetContainerLogsZipSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9145,7 +8803,7 @@ func (client AppsClient) GetContainerLogsZipSlotResponder(resp *http.Response) ( return } -// GetContinuousWebJob gets a continuous web job by its ID for an app, or a deployment slot. +// GetContinuousWebJob description for Gets a continuous web job by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -9199,7 +8857,7 @@ func (client AppsClient) GetContinuousWebJobPreparer(ctx context.Context, resour "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9232,7 +8890,7 @@ func (client AppsClient) GetContinuousWebJobResponder(resp *http.Response) (resu return } -// GetContinuousWebJobSlot gets a continuous web job by its ID for an app, or a deployment slot. +// GetContinuousWebJobSlot description for Gets a continuous web job by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -9289,7 +8947,7 @@ func (client AppsClient) GetContinuousWebJobSlotPreparer(ctx context.Context, re "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9322,7 +8980,7 @@ func (client AppsClient) GetContinuousWebJobSlotResponder(resp *http.Response) ( return } -// GetDeployment get a deployment by its ID for an app, or a deployment slot. +// GetDeployment description for Get a deployment by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -9376,7 +9034,7 @@ func (client AppsClient) GetDeploymentPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9409,7 +9067,7 @@ func (client AppsClient) GetDeploymentResponder(resp *http.Response) (result Dep return } -// GetDeploymentSlot get a deployment by its ID for an app, or a deployment slot. +// GetDeploymentSlot description for Get a deployment by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -9466,7 +9124,7 @@ func (client AppsClient) GetDeploymentSlotPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9499,7 +9157,7 @@ func (client AppsClient) GetDeploymentSlotResponder(resp *http.Response) (result return } -// GetDiagnosticLogsConfiguration gets the logging configuration of an app. +// GetDiagnosticLogsConfiguration description for Gets the logging configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -9551,7 +9209,7 @@ func (client AppsClient) GetDiagnosticLogsConfigurationPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9584,7 +9242,7 @@ func (client AppsClient) GetDiagnosticLogsConfigurationResponder(resp *http.Resp return } -// GetDiagnosticLogsConfigurationSlot gets the logging configuration of an app. +// GetDiagnosticLogsConfigurationSlot description for Gets the logging configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -9639,7 +9297,7 @@ func (client AppsClient) GetDiagnosticLogsConfigurationSlotPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9672,7 +9330,7 @@ func (client AppsClient) GetDiagnosticLogsConfigurationSlotResponder(resp *http. return } -// GetDomainOwnershipIdentifier get domain ownership identifier for web app. +// GetDomainOwnershipIdentifier description for Get domain ownership identifier for web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -9726,7 +9384,7 @@ func (client AppsClient) GetDomainOwnershipIdentifierPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9759,7 +9417,7 @@ func (client AppsClient) GetDomainOwnershipIdentifierResponder(resp *http.Respon return } -// GetDomainOwnershipIdentifierSlot get domain ownership identifier for web app. +// GetDomainOwnershipIdentifierSlot description for Get domain ownership identifier for web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -9816,7 +9474,7 @@ func (client AppsClient) GetDomainOwnershipIdentifierSlotPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9849,7 +9507,7 @@ func (client AppsClient) GetDomainOwnershipIdentifierSlotResponder(resp *http.Re return } -// GetFunction get function information by its ID for web site, or a deployment slot. +// GetFunction description for Get function information by its ID for web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -9903,7 +9561,7 @@ func (client AppsClient) GetFunctionPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -9936,7 +9594,7 @@ func (client AppsClient) GetFunctionResponder(resp *http.Response) (result Funct return } -// GetFunctionsAdminToken fetch a short lived token that can be exchanged for a master key. +// GetFunctionsAdminToken description for Fetch a short lived token that can be exchanged for a master key. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -9988,7 +9646,7 @@ func (client AppsClient) GetFunctionsAdminTokenPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10021,7 +9679,7 @@ func (client AppsClient) GetFunctionsAdminTokenResponder(resp *http.Response) (r return } -// GetFunctionsAdminTokenSlot fetch a short lived token that can be exchanged for a master key. +// GetFunctionsAdminTokenSlot description for Fetch a short lived token that can be exchanged for a master key. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -10075,7 +9733,7 @@ func (client AppsClient) GetFunctionsAdminTokenSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10108,7 +9766,7 @@ func (client AppsClient) GetFunctionsAdminTokenSlotResponder(resp *http.Response return } -// GetHostNameBinding get the named hostname binding for an app (or deployment slot, if specified). +// GetHostNameBinding description for Get the named hostname binding for an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -10162,7 +9820,7 @@ func (client AppsClient) GetHostNameBindingPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10195,7 +9853,7 @@ func (client AppsClient) GetHostNameBindingResponder(resp *http.Response) (resul return } -// GetHostNameBindingSlot get the named hostname binding for an app (or deployment slot, if specified). +// GetHostNameBindingSlot description for Get the named hostname binding for an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -10252,7 +9910,7 @@ func (client AppsClient) GetHostNameBindingSlotPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10285,7 +9943,7 @@ func (client AppsClient) GetHostNameBindingSlotResponder(resp *http.Response) (r return } -// GetHybridConnection retrieves a specific Service Bus Hybrid Connection used by this Web App. +// GetHybridConnection description for Retrieves a specific Service Bus Hybrid Connection used by this Web App. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -10341,7 +9999,7 @@ func (client AppsClient) GetHybridConnectionPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10374,7 +10032,7 @@ func (client AppsClient) GetHybridConnectionResponder(resp *http.Response) (resu return } -// GetHybridConnectionSlot retrieves a specific Service Bus Hybrid Connection used by this Web App. +// GetHybridConnectionSlot description for Retrieves a specific Service Bus Hybrid Connection used by this Web App. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -10432,7 +10090,7 @@ func (client AppsClient) GetHybridConnectionSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10465,7 +10123,7 @@ func (client AppsClient) GetHybridConnectionSlotResponder(resp *http.Response) ( return } -// GetInstanceFunctionSlot get function information by its ID for web site, or a deployment slot. +// GetInstanceFunctionSlot description for Get function information by its ID for web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -10521,7 +10179,7 @@ func (client AppsClient) GetInstanceFunctionSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10554,7 +10212,181 @@ func (client AppsClient) GetInstanceFunctionSlotResponder(resp *http.Response) ( return } -// GetInstanceMSDeployLog get the MSDeploy Log for the last MSDeploy operation. +// GetInstanceInfo description for Gets all scale-out instances of an app. +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the app. +func (client AppsClient) GetInstanceInfo(ctx context.Context, resourceGroupName string, name string, instanceID string) (result SiteInstanceStatus, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetInstanceInfo") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("web.AppsClient", "GetInstanceInfo", err.Error()) + } + + req, err := client.GetInstanceInfoPreparer(ctx, resourceGroupName, name, instanceID) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfo", nil, "Failure preparing request") + return + } + + resp, err := client.GetInstanceInfoSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfo", resp, "Failure sending request") + return + } + + result, err = client.GetInstanceInfoResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfo", resp, "Failure responding to request") + } + + return +} + +// GetInstanceInfoPreparer prepares the GetInstanceInfo request. +func (client AppsClient) GetInstanceInfoPreparer(ctx context.Context, resourceGroupName string, name string, instanceID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "instanceId": autorest.Encode("path", instanceID), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-08-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetInstanceInfoSender sends the GetInstanceInfo request. The method will close the +// http.Response Body if it receives an error. +func (client AppsClient) GetInstanceInfoSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetInstanceInfoResponder handles the response to the GetInstanceInfo request. The method always +// closes the http.Response Body. +func (client AppsClient) GetInstanceInfoResponder(resp *http.Response) (result SiteInstanceStatus, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetInstanceInfoSlot description for Gets all scale-out instances of an app. +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the app. +// slot - name of the deployment slot. If a slot is not specified, the API gets the production slot instances. +func (client AppsClient) GetInstanceInfoSlot(ctx context.Context, resourceGroupName string, name string, instanceID string, slot string) (result SiteInstanceStatus, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetInstanceInfoSlot") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("web.AppsClient", "GetInstanceInfoSlot", err.Error()) + } + + req, err := client.GetInstanceInfoSlotPreparer(ctx, resourceGroupName, name, instanceID, slot) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfoSlot", nil, "Failure preparing request") + return + } + + resp, err := client.GetInstanceInfoSlotSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfoSlot", resp, "Failure sending request") + return + } + + result, err = client.GetInstanceInfoSlotResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceInfoSlot", resp, "Failure responding to request") + } + + return +} + +// GetInstanceInfoSlotPreparer prepares the GetInstanceInfoSlot request. +func (client AppsClient) GetInstanceInfoSlotPreparer(ctx context.Context, resourceGroupName string, name string, instanceID string, slot string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "instanceId": autorest.Encode("path", instanceID), + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "slot": autorest.Encode("path", slot), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-08-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetInstanceInfoSlotSender sends the GetInstanceInfoSlot request. The method will close the +// http.Response Body if it receives an error. +func (client AppsClient) GetInstanceInfoSlotSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetInstanceInfoSlotResponder handles the response to the GetInstanceInfoSlot request. The method always +// closes the http.Response Body. +func (client AppsClient) GetInstanceInfoSlotResponder(resp *http.Response) (result SiteInstanceStatus, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetInstanceMSDeployLog description for Get the MSDeploy Log for the last MSDeploy operation. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -10608,7 +10440,7 @@ func (client AppsClient) GetInstanceMSDeployLogPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10641,7 +10473,7 @@ func (client AppsClient) GetInstanceMSDeployLogResponder(resp *http.Response) (r return } -// GetInstanceMSDeployLogSlot get the MSDeploy Log for the last MSDeploy operation. +// GetInstanceMSDeployLogSlot description for Get the MSDeploy Log for the last MSDeploy operation. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -10697,7 +10529,7 @@ func (client AppsClient) GetInstanceMSDeployLogSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10730,7 +10562,7 @@ func (client AppsClient) GetInstanceMSDeployLogSlotResponder(resp *http.Response return } -// GetInstanceMsDeployStatus get the status of the last MSDeploy operation. +// GetInstanceMsDeployStatus description for Get the status of the last MSDeploy operation. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -10784,7 +10616,7 @@ func (client AppsClient) GetInstanceMsDeployStatusPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10817,7 +10649,7 @@ func (client AppsClient) GetInstanceMsDeployStatusResponder(resp *http.Response) return } -// GetInstanceMsDeployStatusSlot get the status of the last MSDeploy operation. +// GetInstanceMsDeployStatusSlot description for Get the status of the last MSDeploy operation. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -10873,7 +10705,7 @@ func (client AppsClient) GetInstanceMsDeployStatusSlotPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10906,7 +10738,8 @@ func (client AppsClient) GetInstanceMsDeployStatusSlotResponder(resp *http.Respo return } -// GetInstanceProcess get process information by its ID for a specific scaled-out instance in a web site. +// GetInstanceProcess description for Get process information by its ID for a specific scaled-out instance in a web +// site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -10963,7 +10796,7 @@ func (client AppsClient) GetInstanceProcessPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -10996,7 +10829,8 @@ func (client AppsClient) GetInstanceProcessResponder(resp *http.Response) (resul return } -// GetInstanceProcessDump get a memory dump of a process by its ID for a specific scaled-out instance in a web site. +// GetInstanceProcessDump description for Get a memory dump of a process by its ID for a specific scaled-out instance +// in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -11053,7 +10887,7 @@ func (client AppsClient) GetInstanceProcessDumpPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -11085,8 +10919,8 @@ func (client AppsClient) GetInstanceProcessDumpResponder(resp *http.Response) (r return } -// GetInstanceProcessDumpSlot get a memory dump of a process by its ID for a specific scaled-out instance in a web -// site. +// GetInstanceProcessDumpSlot description for Get a memory dump of a process by its ID for a specific scaled-out +// instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -11146,7 +10980,7 @@ func (client AppsClient) GetInstanceProcessDumpSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -11178,7 +11012,8 @@ func (client AppsClient) GetInstanceProcessDumpSlotResponder(resp *http.Response return } -// GetInstanceProcessModule get process information by its ID for a specific scaled-out instance in a web site. +// GetInstanceProcessModule description for Get process information by its ID for a specific scaled-out instance in a +// web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -11237,7 +11072,7 @@ func (client AppsClient) GetInstanceProcessModulePreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -11270,7 +11105,8 @@ func (client AppsClient) GetInstanceProcessModuleResponder(resp *http.Response) return } -// GetInstanceProcessModuleSlot get process information by its ID for a specific scaled-out instance in a web site. +// GetInstanceProcessModuleSlot description for Get process information by its ID for a specific scaled-out instance in +// a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -11332,7 +11168,7 @@ func (client AppsClient) GetInstanceProcessModuleSlotPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -11365,7 +11201,8 @@ func (client AppsClient) GetInstanceProcessModuleSlotResponder(resp *http.Respon return } -// GetInstanceProcessSlot get process information by its ID for a specific scaled-out instance in a web site. +// GetInstanceProcessSlot description for Get process information by its ID for a specific scaled-out instance in a web +// site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -11425,7 +11262,7 @@ func (client AppsClient) GetInstanceProcessSlotPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -11458,197 +11295,8 @@ func (client AppsClient) GetInstanceProcessSlotResponder(resp *http.Response) (r return } -// GetInstanceProcessThread get thread information by Thread ID for a specific process, in a specific scaled-out -// instance in a web site. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// processID - pID. -// threadID - tID. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON -// response from "GET api/sites/{siteName}/instances". -func (client AppsClient) GetInstanceProcessThread(ctx context.Context, resourceGroupName string, name string, processID string, threadID string, instanceID string) (result ProcessThreadInfo, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetInstanceProcessThread") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "GetInstanceProcessThread", err.Error()) - } - - req, err := client.GetInstanceProcessThreadPreparer(ctx, resourceGroupName, name, processID, threadID, instanceID) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThread", nil, "Failure preparing request") - return - } - - resp, err := client.GetInstanceProcessThreadSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThread", resp, "Failure sending request") - return - } - - result, err = client.GetInstanceProcessThreadResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThread", resp, "Failure responding to request") - } - - return -} - -// GetInstanceProcessThreadPreparer prepares the GetInstanceProcessThread request. -func (client AppsClient) GetInstanceProcessThreadPreparer(ctx context.Context, resourceGroupName string, name string, processID string, threadID string, instanceID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "instanceId": autorest.Encode("path", instanceID), - "name": autorest.Encode("path", name), - "processId": autorest.Encode("path", processID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "threadId": autorest.Encode("path", threadID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/threads/{threadId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetInstanceProcessThreadSender sends the GetInstanceProcessThread request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) GetInstanceProcessThreadSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// GetInstanceProcessThreadResponder handles the response to the GetInstanceProcessThread request. The method always -// closes the http.Response Body. -func (client AppsClient) GetInstanceProcessThreadResponder(resp *http.Response) (result ProcessThreadInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// GetInstanceProcessThreadSlot get thread information by Thread ID for a specific process, in a specific scaled-out -// instance in a web site. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// processID - pID. -// threadID - tID. -// slot - name of the deployment slot. If a slot is not specified, the API returns deployments for the -// production slot. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON -// response from "GET api/sites/{siteName}/instances". -func (client AppsClient) GetInstanceProcessThreadSlot(ctx context.Context, resourceGroupName string, name string, processID string, threadID string, slot string, instanceID string) (result ProcessThreadInfo, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetInstanceProcessThreadSlot") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "GetInstanceProcessThreadSlot", err.Error()) - } - - req, err := client.GetInstanceProcessThreadSlotPreparer(ctx, resourceGroupName, name, processID, threadID, slot, instanceID) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThreadSlot", nil, "Failure preparing request") - return - } - - resp, err := client.GetInstanceProcessThreadSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThreadSlot", resp, "Failure sending request") - return - } - - result, err = client.GetInstanceProcessThreadSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetInstanceProcessThreadSlot", resp, "Failure responding to request") - } - - return -} - -// GetInstanceProcessThreadSlotPreparer prepares the GetInstanceProcessThreadSlot request. -func (client AppsClient) GetInstanceProcessThreadSlotPreparer(ctx context.Context, resourceGroupName string, name string, processID string, threadID string, slot string, instanceID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "instanceId": autorest.Encode("path", instanceID), - "name": autorest.Encode("path", name), - "processId": autorest.Encode("path", processID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "threadId": autorest.Encode("path", threadID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/threads/{threadId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetInstanceProcessThreadSlotSender sends the GetInstanceProcessThreadSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) GetInstanceProcessThreadSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// GetInstanceProcessThreadSlotResponder handles the response to the GetInstanceProcessThreadSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) GetInstanceProcessThreadSlotResponder(resp *http.Response) (result ProcessThreadInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// GetMigrateMySQLStatus returns the status of MySql in app migration, if one is active, and whether or not MySql in -// app is enabled +// GetMigrateMySQLStatus description for Returns the status of MySql in app migration, if one is active, and whether or +// not MySql in app is enabled // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -11700,7 +11348,7 @@ func (client AppsClient) GetMigrateMySQLStatusPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -11733,8 +11381,8 @@ func (client AppsClient) GetMigrateMySQLStatusResponder(resp *http.Response) (re return } -// GetMigrateMySQLStatusSlot returns the status of MySql in app migration, if one is active, and whether or not MySql -// in app is enabled +// GetMigrateMySQLStatusSlot description for Returns the status of MySql in app migration, if one is active, and +// whether or not MySql in app is enabled // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -11788,7 +11436,7 @@ func (client AppsClient) GetMigrateMySQLStatusSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -11821,7 +11469,7 @@ func (client AppsClient) GetMigrateMySQLStatusSlotResponder(resp *http.Response) return } -// GetMSDeployLog get the MSDeploy Log for the last MSDeploy operation. +// GetMSDeployLog description for Get the MSDeploy Log for the last MSDeploy operation. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -11873,7 +11521,7 @@ func (client AppsClient) GetMSDeployLogPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -11906,7 +11554,7 @@ func (client AppsClient) GetMSDeployLogResponder(resp *http.Response) (result MS return } -// GetMSDeployLogSlot get the MSDeploy Log for the last MSDeploy operation. +// GetMSDeployLogSlot description for Get the MSDeploy Log for the last MSDeploy operation. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -11960,7 +11608,7 @@ func (client AppsClient) GetMSDeployLogSlotPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -11993,7 +11641,7 @@ func (client AppsClient) GetMSDeployLogSlotResponder(resp *http.Response) (resul return } -// GetMSDeployStatus get the status of the last MSDeploy operation. +// GetMSDeployStatus description for Get the status of the last MSDeploy operation. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -12045,7 +11693,7 @@ func (client AppsClient) GetMSDeployStatusPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12078,7 +11726,7 @@ func (client AppsClient) GetMSDeployStatusResponder(resp *http.Response) (result return } -// GetMSDeployStatusSlot get the status of the last MSDeploy operation. +// GetMSDeployStatusSlot description for Get the status of the last MSDeploy operation. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -12132,7 +11780,7 @@ func (client AppsClient) GetMSDeployStatusSlotPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12165,7 +11813,8 @@ func (client AppsClient) GetMSDeployStatusSlotResponder(resp *http.Response) (re return } -// GetNetworkTraceOperation gets a named operation for a network trace capturing (or deployment slot, if specified). +// GetNetworkTraceOperation description for Gets a named operation for a network trace capturing (or deployment slot, +// if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -12219,7 +11868,7 @@ func (client AppsClient) GetNetworkTraceOperationPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12252,8 +11901,8 @@ func (client AppsClient) GetNetworkTraceOperationResponder(resp *http.Response) return } -// GetNetworkTraceOperationSlot gets a named operation for a network trace capturing (or deployment slot, if -// specified). +// GetNetworkTraceOperationSlot description for Gets a named operation for a network trace capturing (or deployment +// slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -12310,7 +11959,7 @@ func (client AppsClient) GetNetworkTraceOperationSlotPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12343,8 +11992,8 @@ func (client AppsClient) GetNetworkTraceOperationSlotResponder(resp *http.Respon return } -// GetNetworkTraceOperationSlotV2 gets a named operation for a network trace capturing (or deployment slot, if -// specified). +// GetNetworkTraceOperationSlotV2 description for Gets a named operation for a network trace capturing (or deployment +// slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -12401,7 +12050,7 @@ func (client AppsClient) GetNetworkTraceOperationSlotV2Preparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12434,7 +12083,8 @@ func (client AppsClient) GetNetworkTraceOperationSlotV2Responder(resp *http.Resp return } -// GetNetworkTraceOperationV2 gets a named operation for a network trace capturing (or deployment slot, if specified). +// GetNetworkTraceOperationV2 description for Gets a named operation for a network trace capturing (or deployment slot, +// if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -12488,7 +12138,7 @@ func (client AppsClient) GetNetworkTraceOperationV2Preparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12521,7 +12171,8 @@ func (client AppsClient) GetNetworkTraceOperationV2Responder(resp *http.Response return } -// GetNetworkTraces gets a named operation for a network trace capturing (or deployment slot, if specified). +// GetNetworkTraces description for Gets a named operation for a network trace capturing (or deployment slot, if +// specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -12575,7 +12226,7 @@ func (client AppsClient) GetNetworkTracesPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12608,7 +12259,8 @@ func (client AppsClient) GetNetworkTracesResponder(resp *http.Response) (result return } -// GetNetworkTracesSlot gets a named operation for a network trace capturing (or deployment slot, if specified). +// GetNetworkTracesSlot description for Gets a named operation for a network trace capturing (or deployment slot, if +// specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -12665,7 +12317,7 @@ func (client AppsClient) GetNetworkTracesSlotPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12698,7 +12350,8 @@ func (client AppsClient) GetNetworkTracesSlotResponder(resp *http.Response) (res return } -// GetNetworkTracesSlotV2 gets a named operation for a network trace capturing (or deployment slot, if specified). +// GetNetworkTracesSlotV2 description for Gets a named operation for a network trace capturing (or deployment slot, if +// specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -12755,7 +12408,7 @@ func (client AppsClient) GetNetworkTracesSlotV2Preparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12788,7 +12441,8 @@ func (client AppsClient) GetNetworkTracesSlotV2Responder(resp *http.Response) (r return } -// GetNetworkTracesV2 gets a named operation for a network trace capturing (or deployment slot, if specified). +// GetNetworkTracesV2 description for Gets a named operation for a network trace capturing (or deployment slot, if +// specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -12842,7 +12496,7 @@ func (client AppsClient) GetNetworkTracesV2Preparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12875,7 +12529,7 @@ func (client AppsClient) GetNetworkTracesV2Responder(resp *http.Response) (resul return } -// GetPremierAddOn gets a named add-on of an app. +// GetPremierAddOn description for Gets a named add-on of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -12929,7 +12583,7 @@ func (client AppsClient) GetPremierAddOnPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -12962,7 +12616,7 @@ func (client AppsClient) GetPremierAddOnResponder(resp *http.Response) (result P return } -// GetPremierAddOnSlot gets a named add-on of an app. +// GetPremierAddOnSlot description for Gets a named add-on of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -13019,7 +12673,7 @@ func (client AppsClient) GetPremierAddOnSlotPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -13052,8 +12706,8 @@ func (client AppsClient) GetPremierAddOnSlotResponder(resp *http.Response) (resu return } -// GetPrivateAccess gets data around private site access enablement and authorized Virtual Networks that can access the -// site. +// GetPrivateAccess description for Gets data around private site access enablement and authorized Virtual Networks +// that can access the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -13105,7 +12759,7 @@ func (client AppsClient) GetPrivateAccessPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -13138,8 +12792,8 @@ func (client AppsClient) GetPrivateAccessResponder(resp *http.Response) (result return } -// GetPrivateAccessSlot gets data around private site access enablement and authorized Virtual Networks that can access -// the site. +// GetPrivateAccessSlot description for Gets data around private site access enablement and authorized Virtual Networks +// that can access the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -13193,7 +12847,7 @@ func (client AppsClient) GetPrivateAccessSlotPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -13226,7 +12880,7 @@ func (client AppsClient) GetPrivateAccessSlotResponder(resp *http.Response) (res return } -// GetProcess get process information by its ID for a specific scaled-out instance in a web site. +// GetProcess description for Get process information by its ID for a specific scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -13280,7 +12934,7 @@ func (client AppsClient) GetProcessPreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -13313,7 +12967,8 @@ func (client AppsClient) GetProcessResponder(resp *http.Response) (result Proces return } -// GetProcessDump get a memory dump of a process by its ID for a specific scaled-out instance in a web site. +// GetProcessDump description for Get a memory dump of a process by its ID for a specific scaled-out instance in a web +// site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -13367,7 +13022,7 @@ func (client AppsClient) GetProcessDumpPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -13399,7 +13054,8 @@ func (client AppsClient) GetProcessDumpResponder(resp *http.Response) (result Re return } -// GetProcessDumpSlot get a memory dump of a process by its ID for a specific scaled-out instance in a web site. +// GetProcessDumpSlot description for Get a memory dump of a process by its ID for a specific scaled-out instance in a +// web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -13456,7 +13112,7 @@ func (client AppsClient) GetProcessDumpSlotPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -13488,7 +13144,7 @@ func (client AppsClient) GetProcessDumpSlotResponder(resp *http.Response) (resul return } -// GetProcessModule get process information by its ID for a specific scaled-out instance in a web site. +// GetProcessModule description for Get process information by its ID for a specific scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -13544,7 +13200,7 @@ func (client AppsClient) GetProcessModulePreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -13577,7 +13233,8 @@ func (client AppsClient) GetProcessModuleResponder(resp *http.Response) (result return } -// GetProcessModuleSlot get process information by its ID for a specific scaled-out instance in a web site. +// GetProcessModuleSlot description for Get process information by its ID for a specific scaled-out instance in a web +// site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -13636,7 +13293,7 @@ func (client AppsClient) GetProcessModuleSlotPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -13669,7 +13326,7 @@ func (client AppsClient) GetProcessModuleSlotResponder(resp *http.Response) (res return } -// GetProcessSlot get process information by its ID for a specific scaled-out instance in a web site. +// GetProcessSlot description for Get process information by its ID for a specific scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -13726,7 +13383,7 @@ func (client AppsClient) GetProcessSlotPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -13759,190 +13416,7 @@ func (client AppsClient) GetProcessSlotResponder(resp *http.Response) (result Pr return } -// GetProcessThread get thread information by Thread ID for a specific process, in a specific scaled-out instance in a -// web site. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// processID - pID. -// threadID - tID. -func (client AppsClient) GetProcessThread(ctx context.Context, resourceGroupName string, name string, processID string, threadID string) (result ProcessThreadInfo, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetProcessThread") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "GetProcessThread", err.Error()) - } - - req, err := client.GetProcessThreadPreparer(ctx, resourceGroupName, name, processID, threadID) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThread", nil, "Failure preparing request") - return - } - - resp, err := client.GetProcessThreadSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThread", resp, "Failure sending request") - return - } - - result, err = client.GetProcessThreadResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThread", resp, "Failure responding to request") - } - - return -} - -// GetProcessThreadPreparer prepares the GetProcessThread request. -func (client AppsClient) GetProcessThreadPreparer(ctx context.Context, resourceGroupName string, name string, processID string, threadID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "processId": autorest.Encode("path", processID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "threadId": autorest.Encode("path", threadID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/threads/{threadId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetProcessThreadSender sends the GetProcessThread request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) GetProcessThreadSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// GetProcessThreadResponder handles the response to the GetProcessThread request. The method always -// closes the http.Response Body. -func (client AppsClient) GetProcessThreadResponder(resp *http.Response) (result ProcessThreadInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// GetProcessThreadSlot get thread information by Thread ID for a specific process, in a specific scaled-out instance -// in a web site. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// processID - pID. -// threadID - tID. -// slot - name of the deployment slot. If a slot is not specified, the API returns deployments for the -// production slot. -func (client AppsClient) GetProcessThreadSlot(ctx context.Context, resourceGroupName string, name string, processID string, threadID string, slot string) (result ProcessThreadInfo, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetProcessThreadSlot") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "GetProcessThreadSlot", err.Error()) - } - - req, err := client.GetProcessThreadSlotPreparer(ctx, resourceGroupName, name, processID, threadID, slot) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThreadSlot", nil, "Failure preparing request") - return - } - - resp, err := client.GetProcessThreadSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThreadSlot", resp, "Failure sending request") - return - } - - result, err = client.GetProcessThreadSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "GetProcessThreadSlot", resp, "Failure responding to request") - } - - return -} - -// GetProcessThreadSlotPreparer prepares the GetProcessThreadSlot request. -func (client AppsClient) GetProcessThreadSlotPreparer(ctx context.Context, resourceGroupName string, name string, processID string, threadID string, slot string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "processId": autorest.Encode("path", processID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "threadId": autorest.Encode("path", threadID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/threads/{threadId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetProcessThreadSlotSender sends the GetProcessThreadSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) GetProcessThreadSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// GetProcessThreadSlotResponder handles the response to the GetProcessThreadSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) GetProcessThreadSlotResponder(resp *http.Response) (result ProcessThreadInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// GetPublicCertificate get the named public certificate for an app (or deployment slot, if specified). +// GetPublicCertificate description for Get the named public certificate for an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -13996,7 +13470,7 @@ func (client AppsClient) GetPublicCertificatePreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14029,7 +13503,8 @@ func (client AppsClient) GetPublicCertificateResponder(resp *http.Response) (res return } -// GetPublicCertificateSlot get the named public certificate for an app (or deployment slot, if specified). +// GetPublicCertificateSlot description for Get the named public certificate for an app (or deployment slot, if +// specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -14086,7 +13561,7 @@ func (client AppsClient) GetPublicCertificateSlotPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14119,7 +13594,7 @@ func (client AppsClient) GetPublicCertificateSlotResponder(resp *http.Response) return } -// GetRelayServiceConnection gets a hybrid connection configuration by its name. +// GetRelayServiceConnection description for Gets a hybrid connection configuration by its name. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -14173,7 +13648,7 @@ func (client AppsClient) GetRelayServiceConnectionPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14206,7 +13681,7 @@ func (client AppsClient) GetRelayServiceConnectionResponder(resp *http.Response) return } -// GetRelayServiceConnectionSlot gets a hybrid connection configuration by its name. +// GetRelayServiceConnectionSlot description for Gets a hybrid connection configuration by its name. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -14263,7 +13738,7 @@ func (client AppsClient) GetRelayServiceConnectionSlotPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14296,7 +13771,7 @@ func (client AppsClient) GetRelayServiceConnectionSlotResponder(resp *http.Respo return } -// GetSiteExtension get site extension information by its ID for a web site, or a deployment slot. +// GetSiteExtension description for Get site extension information by its ID for a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -14350,7 +13825,7 @@ func (client AppsClient) GetSiteExtensionPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14383,13 +13858,12 @@ func (client AppsClient) GetSiteExtensionResponder(resp *http.Response) (result return } -// GetSiteExtensionSlot get site extension information by its ID for a web site, or a deployment slot. +// GetSiteExtensionSlot description for Get site extension information by its ID for a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. // siteExtensionID - site extension name. -// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the -// production slot. +// slot - name of the deployment slot. If a slot is not specified, the API uses the production slot. func (client AppsClient) GetSiteExtensionSlot(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string) (result SiteExtensionInfo, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetSiteExtensionSlot") @@ -14440,7 +13914,7 @@ func (client AppsClient) GetSiteExtensionSlotPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14473,7 +13947,7 @@ func (client AppsClient) GetSiteExtensionSlotResponder(resp *http.Response) (res return } -// GetSitePhpErrorLogFlag gets web app's event logs. +// GetSitePhpErrorLogFlag description for Gets web app's event logs. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -14525,7 +13999,7 @@ func (client AppsClient) GetSitePhpErrorLogFlagPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14558,7 +14032,7 @@ func (client AppsClient) GetSitePhpErrorLogFlagResponder(resp *http.Response) (r return } -// GetSitePhpErrorLogFlagSlot gets web app's event logs. +// GetSitePhpErrorLogFlagSlot description for Gets web app's event logs. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -14612,7 +14086,7 @@ func (client AppsClient) GetSitePhpErrorLogFlagSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14645,7 +14119,7 @@ func (client AppsClient) GetSitePhpErrorLogFlagSlotResponder(resp *http.Response return } -// GetSlot gets the details of a web, mobile, or API app. +// GetSlot description for Gets the details of a web, mobile, or API app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -14699,7 +14173,7 @@ func (client AppsClient) GetSlotPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14732,7 +14206,7 @@ func (client AppsClient) GetSlotResponder(resp *http.Response) (result Site, err return } -// GetSourceControl gets the source control configuration of an app. +// GetSourceControl description for Gets the source control configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -14784,7 +14258,7 @@ func (client AppsClient) GetSourceControlPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14817,7 +14291,7 @@ func (client AppsClient) GetSourceControlResponder(resp *http.Response) (result return } -// GetSourceControlSlot gets the source control configuration of an app. +// GetSourceControlSlot description for Gets the source control configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -14872,7 +14346,7 @@ func (client AppsClient) GetSourceControlSlotPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14905,7 +14379,7 @@ func (client AppsClient) GetSourceControlSlotResponder(resp *http.Response) (res return } -// GetSwiftVirtualNetworkConnection gets a Swift Virtual Network connection. +// GetSwiftVirtualNetworkConnection description for Gets a Swift Virtual Network connection. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -14957,7 +14431,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnectionPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -14990,7 +14464,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnectionResponder(resp *http.Re return } -// GetSwiftVirtualNetworkConnectionSlot gets a Swift Virtual Network connection. +// GetSwiftVirtualNetworkConnectionSlot description for Gets a Swift Virtual Network connection. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -15045,7 +14519,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnectionSlotPreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15078,7 +14552,7 @@ func (client AppsClient) GetSwiftVirtualNetworkConnectionSlotResponder(resp *htt return } -// GetTriggeredWebJob gets a triggered web job by its ID for an app, or a deployment slot. +// GetTriggeredWebJob description for Gets a triggered web job by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -15132,7 +14606,7 @@ func (client AppsClient) GetTriggeredWebJobPreparer(ctx context.Context, resourc "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15165,7 +14639,8 @@ func (client AppsClient) GetTriggeredWebJobResponder(resp *http.Response) (resul return } -// GetTriggeredWebJobHistory gets a triggered web job's history by its ID for an app, , or a deployment slot. +// GetTriggeredWebJobHistory description for Gets a triggered web job's history by its ID for an app, , or a deployment +// slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -15221,7 +14696,7 @@ func (client AppsClient) GetTriggeredWebJobHistoryPreparer(ctx context.Context, "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15254,14 +14729,14 @@ func (client AppsClient) GetTriggeredWebJobHistoryResponder(resp *http.Response) return } -// GetTriggeredWebJobHistorySlot gets a triggered web job's history by its ID for an app, , or a deployment slot. +// GetTriggeredWebJobHistorySlot description for Gets a triggered web job's history by its ID for an app, , or a +// deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. // webJobName - name of Web Job. // ID - history ID. -// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the -// production slot. +// slot - name of the deployment slot. If a slot is not specified, the API uses the production slot. func (client AppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, resourceGroupName string, name string, webJobName string, ID string, slot string) (result TriggeredJobHistory, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetTriggeredWebJobHistorySlot") @@ -15313,7 +14788,7 @@ func (client AppsClient) GetTriggeredWebJobHistorySlotPreparer(ctx context.Conte "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15346,13 +14821,12 @@ func (client AppsClient) GetTriggeredWebJobHistorySlotResponder(resp *http.Respo return } -// GetTriggeredWebJobSlot gets a triggered web job by its ID for an app, or a deployment slot. +// GetTriggeredWebJobSlot description for Gets a triggered web job by its ID for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. // webJobName - name of Web Job. -// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the -// production slot. +// slot - name of the deployment slot. If a slot is not specified, the API uses the production slot. func (client AppsClient) GetTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (result TriggeredWebJob, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetTriggeredWebJobSlot") @@ -15403,7 +14877,7 @@ func (client AppsClient) GetTriggeredWebJobSlotPreparer(ctx context.Context, res "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15436,7 +14910,7 @@ func (client AppsClient) GetTriggeredWebJobSlotResponder(resp *http.Response) (r return } -// GetVnetConnection gets a virtual network the app (or deployment slot) is connected to by name. +// GetVnetConnection description for Gets a virtual network the app (or deployment slot) is connected to by name. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -15490,7 +14964,7 @@ func (client AppsClient) GetVnetConnectionPreparer(ctx context.Context, resource "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15523,7 +14997,7 @@ func (client AppsClient) GetVnetConnectionResponder(resp *http.Response) (result return } -// GetVnetConnectionGateway gets an app's Virtual Network gateway. +// GetVnetConnectionGateway description for Gets an app's Virtual Network gateway. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -15579,7 +15053,7 @@ func (client AppsClient) GetVnetConnectionGatewayPreparer(ctx context.Context, r "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15612,7 +15086,7 @@ func (client AppsClient) GetVnetConnectionGatewayResponder(resp *http.Response) return } -// GetVnetConnectionGatewaySlot gets an app's Virtual Network gateway. +// GetVnetConnectionGatewaySlot description for Gets an app's Virtual Network gateway. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -15671,7 +15145,7 @@ func (client AppsClient) GetVnetConnectionGatewaySlotPreparer(ctx context.Contex "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15704,7 +15178,7 @@ func (client AppsClient) GetVnetConnectionGatewaySlotResponder(resp *http.Respon return } -// GetVnetConnectionSlot gets a virtual network the app (or deployment slot) is connected to by name. +// GetVnetConnectionSlot description for Gets a virtual network the app (or deployment slot) is connected to by name. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -15761,7 +15235,7 @@ func (client AppsClient) GetVnetConnectionSlotPreparer(ctx context.Context, reso "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15794,7 +15268,7 @@ func (client AppsClient) GetVnetConnectionSlotResponder(resp *http.Response) (re return } -// GetWebJob get webjob information for an app, or a deployment slot. +// GetWebJob description for Get webjob information for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -15848,7 +15322,7 @@ func (client AppsClient) GetWebJobPreparer(ctx context.Context, resourceGroupNam "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15881,7 +15355,7 @@ func (client AppsClient) GetWebJobResponder(resp *http.Response) (result Job, er return } -// GetWebJobSlot get webjob information for an app, or a deployment slot. +// GetWebJobSlot description for Get webjob information for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -15938,7 +15412,7 @@ func (client AppsClient) GetWebJobSlotPreparer(ctx context.Context, resourceGrou "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -15971,7 +15445,7 @@ func (client AppsClient) GetWebJobSlotResponder(resp *http.Response) (result Job return } -// GetWebSiteContainerLogs gets the last lines of docker logs for the given site +// GetWebSiteContainerLogs description for Gets the last lines of docker logs for the given site // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -16023,7 +15497,7 @@ func (client AppsClient) GetWebSiteContainerLogsPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16055,7 +15529,7 @@ func (client AppsClient) GetWebSiteContainerLogsResponder(resp *http.Response) ( return } -// GetWebSiteContainerLogsSlot gets the last lines of docker logs for the given site +// GetWebSiteContainerLogsSlot description for Gets the last lines of docker logs for the given site // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -16109,7 +15583,7 @@ func (client AppsClient) GetWebSiteContainerLogsSlotPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16141,7 +15615,7 @@ func (client AppsClient) GetWebSiteContainerLogsSlotResponder(resp *http.Respons return } -// InstallSiteExtension install site extension on a web site, or a deployment slot. +// InstallSiteExtension description for Install site extension on a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -16189,7 +15663,7 @@ func (client AppsClient) InstallSiteExtensionPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16228,13 +15702,12 @@ func (client AppsClient) InstallSiteExtensionResponder(resp *http.Response) (res return } -// InstallSiteExtensionSlot install site extension on a web site, or a deployment slot. +// InstallSiteExtensionSlot description for Install site extension on a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. // siteExtensionID - site extension name. -// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the -// production slot. +// slot - name of the deployment slot. If a slot is not specified, the API uses the production slot. func (client AppsClient) InstallSiteExtensionSlot(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string) (result AppsInstallSiteExtensionSlotFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.InstallSiteExtensionSlot") @@ -16279,7 +15752,7 @@ func (client AppsClient) InstallSiteExtensionSlotPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16318,7 +15791,7 @@ func (client AppsClient) InstallSiteExtensionSlotResponder(resp *http.Response) return } -// IsCloneable shows whether an app can be cloned to another resource group or subscription. +// IsCloneable description for Shows whether an app can be cloned to another resource group or subscription. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -16370,7 +15843,7 @@ func (client AppsClient) IsCloneablePreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16403,7 +15876,7 @@ func (client AppsClient) IsCloneableResponder(resp *http.Response) (result SiteC return } -// IsCloneableSlot shows whether an app can be cloned to another resource group or subscription. +// IsCloneableSlot description for Shows whether an app can be cloned to another resource group or subscription. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -16457,7 +15930,7 @@ func (client AppsClient) IsCloneableSlotPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16490,7 +15963,7 @@ func (client AppsClient) IsCloneableSlotResponder(resp *http.Response) (result S return } -// List get all apps for a subscription. +// List description for Get all apps for a subscription. func (client AppsClient) List(ctx context.Context) (result AppCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.List") @@ -16530,7 +16003,7 @@ func (client AppsClient) ListPreparer(ctx context.Context) (*http.Request, error "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16600,7 +16073,7 @@ func (client AppsClient) ListComplete(ctx context.Context) (result AppCollection return } -// ListApplicationSettings gets the application settings of an app. +// ListApplicationSettings description for Gets the application settings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -16652,7 +16125,7 @@ func (client AppsClient) ListApplicationSettingsPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16685,7 +16158,7 @@ func (client AppsClient) ListApplicationSettingsResponder(resp *http.Response) ( return } -// ListApplicationSettingsSlot gets the application settings of an app. +// ListApplicationSettingsSlot description for Gets the application settings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -16740,7 +16213,7 @@ func (client AppsClient) ListApplicationSettingsSlotPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16773,7 +16246,7 @@ func (client AppsClient) ListApplicationSettingsSlotResponder(resp *http.Respons return } -// ListAzureStorageAccounts gets the Azure storage account configurations of an app. +// ListAzureStorageAccounts description for Gets the Azure storage account configurations of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -16825,7 +16298,7 @@ func (client AppsClient) ListAzureStorageAccountsPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16858,7 +16331,7 @@ func (client AppsClient) ListAzureStorageAccountsResponder(resp *http.Response) return } -// ListAzureStorageAccountsSlot gets the Azure storage account configurations of an app. +// ListAzureStorageAccountsSlot description for Gets the Azure storage account configurations of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -16913,7 +16386,7 @@ func (client AppsClient) ListAzureStorageAccountsSlotPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -16946,7 +16419,7 @@ func (client AppsClient) ListAzureStorageAccountsSlotResponder(resp *http.Respon return } -// ListBackups gets existing backups of an app. +// ListBackups description for Gets existing backups of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -16999,7 +16472,7 @@ func (client AppsClient) ListBackupsPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -17069,7 +16542,7 @@ func (client AppsClient) ListBackupsComplete(ctx context.Context, resourceGroupN return } -// ListBackupsSlot gets existing backups of an app. +// ListBackupsSlot description for Gets existing backups of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -17125,7 +16598,7 @@ func (client AppsClient) ListBackupsSlotPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -17195,9 +16668,9 @@ func (client AppsClient) ListBackupsSlotComplete(ctx context.Context, resourceGr return } -// ListBackupStatusSecrets gets status of a web app backup that may be in progress, including secrets associated with -// the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is -// passed in the request body. +// ListBackupStatusSecrets description for Gets status of a web app backup that may be in progress, including secrets +// associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup +// if a new URL is passed in the request body. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -17261,7 +16734,7 @@ func (client AppsClient) ListBackupStatusSecretsPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -17296,9 +16769,9 @@ func (client AppsClient) ListBackupStatusSecretsResponder(resp *http.Response) ( return } -// ListBackupStatusSecretsSlot gets status of a web app backup that may be in progress, including secrets associated -// with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new -// URL is passed in the request body. +// ListBackupStatusSecretsSlot description for Gets status of a web app backup that may be in progress, including +// secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for +// the backup if a new URL is passed in the request body. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -17364,7 +16837,7 @@ func (client AppsClient) ListBackupStatusSecretsSlotPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -17399,7 +16872,7 @@ func (client AppsClient) ListBackupStatusSecretsSlotResponder(resp *http.Respons return } -// ListByResourceGroup gets all web, mobile, and API apps in the specified resource group. +// ListByResourceGroup description for Gets all web, mobile, and API apps in the specified resource group. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // includeSlots - specify true to include deployment slots in results. The default is false, @@ -17452,7 +16925,7 @@ func (client AppsClient) ListByResourceGroupPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -17525,7 +16998,7 @@ func (client AppsClient) ListByResourceGroupComplete(ctx context.Context, resour return } -// ListConfigurations list the configurations of an app +// ListConfigurations description for List the configurations of an app // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -17578,7 +17051,7 @@ func (client AppsClient) ListConfigurationsPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -17648,8 +17121,8 @@ func (client AppsClient) ListConfigurationsComplete(ctx context.Context, resourc return } -// ListConfigurationSnapshotInfo gets a list of web app configuration snapshots identifiers. Each element of the list -// contains a timestamp and the ID of the snapshot. +// ListConfigurationSnapshotInfo description for Gets a list of web app configuration snapshots identifiers. Each +// element of the list contains a timestamp and the ID of the snapshot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -17702,7 +17175,7 @@ func (client AppsClient) ListConfigurationSnapshotInfoPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -17772,8 +17245,8 @@ func (client AppsClient) ListConfigurationSnapshotInfoComplete(ctx context.Conte return } -// ListConfigurationSnapshotInfoSlot gets a list of web app configuration snapshots identifiers. Each element of the -// list contains a timestamp and the ID of the snapshot. +// ListConfigurationSnapshotInfoSlot description for Gets a list of web app configuration snapshots identifiers. Each +// element of the list contains a timestamp and the ID of the snapshot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -17829,7 +17302,7 @@ func (client AppsClient) ListConfigurationSnapshotInfoSlotPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -17899,7 +17372,7 @@ func (client AppsClient) ListConfigurationSnapshotInfoSlotComplete(ctx context.C return } -// ListConfigurationsSlot list the configurations of an app +// ListConfigurationsSlot description for List the configurations of an app // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -17955,7 +17428,7 @@ func (client AppsClient) ListConfigurationsSlotPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18025,7 +17498,7 @@ func (client AppsClient) ListConfigurationsSlotComplete(ctx context.Context, res return } -// ListConnectionStrings gets the connection strings of an app. +// ListConnectionStrings description for Gets the connection strings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -18077,7 +17550,7 @@ func (client AppsClient) ListConnectionStringsPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18110,7 +17583,7 @@ func (client AppsClient) ListConnectionStringsResponder(resp *http.Response) (re return } -// ListConnectionStringsSlot gets the connection strings of an app. +// ListConnectionStringsSlot description for Gets the connection strings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -18165,7 +17638,7 @@ func (client AppsClient) ListConnectionStringsSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18198,7 +17671,7 @@ func (client AppsClient) ListConnectionStringsSlotResponder(resp *http.Response) return } -// ListContinuousWebJobs list continuous web jobs for an app, or a deployment slot. +// ListContinuousWebJobs description for List continuous web jobs for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -18251,7 +17724,7 @@ func (client AppsClient) ListContinuousWebJobsPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18321,7 +17794,7 @@ func (client AppsClient) ListContinuousWebJobsComplete(ctx context.Context, reso return } -// ListContinuousWebJobsSlot list continuous web jobs for an app, or a deployment slot. +// ListContinuousWebJobsSlot description for List continuous web jobs for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -18377,7 +17850,7 @@ func (client AppsClient) ListContinuousWebJobsSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18447,7 +17920,7 @@ func (client AppsClient) ListContinuousWebJobsSlotComplete(ctx context.Context, return } -// ListDeploymentLog list deployment log for specific deployment for an app, or a deployment slot. +// ListDeploymentLog description for List deployment log for specific deployment for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -18502,7 +17975,7 @@ func (client AppsClient) ListDeploymentLogPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18535,7 +18008,7 @@ func (client AppsClient) ListDeploymentLogResponder(resp *http.Response) (result return } -// ListDeploymentLogSlot list deployment log for specific deployment for an app, or a deployment slot. +// ListDeploymentLogSlot description for List deployment log for specific deployment for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -18593,7 +18066,7 @@ func (client AppsClient) ListDeploymentLogSlotPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18626,7 +18099,7 @@ func (client AppsClient) ListDeploymentLogSlotResponder(resp *http.Response) (re return } -// ListDeployments list deployments for an app, or a deployment slot. +// ListDeployments description for List deployments for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -18679,7 +18152,7 @@ func (client AppsClient) ListDeploymentsPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18749,7 +18222,7 @@ func (client AppsClient) ListDeploymentsComplete(ctx context.Context, resourceGr return } -// ListDeploymentsSlot list deployments for an app, or a deployment slot. +// ListDeploymentsSlot description for List deployments for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -18805,7 +18278,7 @@ func (client AppsClient) ListDeploymentsSlotPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18875,7 +18348,7 @@ func (client AppsClient) ListDeploymentsSlotComplete(ctx context.Context, resour return } -// ListDomainOwnershipIdentifiers lists ownership identifiers for domain associated with web app. +// ListDomainOwnershipIdentifiers description for Lists ownership identifiers for domain associated with web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -18928,7 +18401,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiersPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -18998,7 +18471,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiersComplete(ctx context.Cont return } -// ListDomainOwnershipIdentifiersSlot lists ownership identifiers for domain associated with web app. +// ListDomainOwnershipIdentifiersSlot description for Lists ownership identifiers for domain associated with web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -19054,7 +18527,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiersSlotPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -19124,183 +18597,7 @@ func (client AppsClient) ListDomainOwnershipIdentifiersSlotComplete(ctx context. return } -// ListFunctionKeys get function keys for a function in a web site, or a deployment slot. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// functionName - function name. -func (client AppsClient) ListFunctionKeys(ctx context.Context, resourceGroupName string, name string, functionName string) (result StringDictionary, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListFunctionKeys") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListFunctionKeys", err.Error()) - } - - req, err := client.ListFunctionKeysPreparer(ctx, resourceGroupName, name, functionName) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeys", nil, "Failure preparing request") - return - } - - resp, err := client.ListFunctionKeysSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeys", resp, "Failure sending request") - return - } - - result, err = client.ListFunctionKeysResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeys", resp, "Failure responding to request") - } - - return -} - -// ListFunctionKeysPreparer prepares the ListFunctionKeys request. -func (client AppsClient) ListFunctionKeysPreparer(ctx context.Context, resourceGroupName string, name string, functionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "functionName": autorest.Encode("path", functionName), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/listkeys", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListFunctionKeysSender sends the ListFunctionKeys request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListFunctionKeysSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListFunctionKeysResponder handles the response to the ListFunctionKeys request. The method always -// closes the http.Response Body. -func (client AppsClient) ListFunctionKeysResponder(resp *http.Response) (result StringDictionary, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// ListFunctionKeysSlot get function keys for a function in a web site, or a deployment slot. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// functionName - function name. -// slot - name of the deployment slot. -func (client AppsClient) ListFunctionKeysSlot(ctx context.Context, resourceGroupName string, name string, functionName string, slot string) (result StringDictionary, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListFunctionKeysSlot") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListFunctionKeysSlot", err.Error()) - } - - req, err := client.ListFunctionKeysSlotPreparer(ctx, resourceGroupName, name, functionName, slot) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeysSlot", nil, "Failure preparing request") - return - } - - resp, err := client.ListFunctionKeysSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeysSlot", resp, "Failure sending request") - return - } - - result, err = client.ListFunctionKeysSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListFunctionKeysSlot", resp, "Failure responding to request") - } - - return -} - -// ListFunctionKeysSlotPreparer prepares the ListFunctionKeysSlot request. -func (client AppsClient) ListFunctionKeysSlotPreparer(ctx context.Context, resourceGroupName string, name string, functionName string, slot string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "functionName": autorest.Encode("path", functionName), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/listkeys", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListFunctionKeysSlotSender sends the ListFunctionKeysSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListFunctionKeysSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListFunctionKeysSlotResponder handles the response to the ListFunctionKeysSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) ListFunctionKeysSlotResponder(resp *http.Response) (result StringDictionary, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// ListFunctions list the functions for a web site, or a deployment slot. +// ListFunctions description for List the functions for a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -19353,7 +18650,7 @@ func (client AppsClient) ListFunctionsPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -19423,7 +18720,7 @@ func (client AppsClient) ListFunctionsComplete(ctx context.Context, resourceGrou return } -// ListFunctionSecrets get function secrets for a function in a web site, or a deployment slot. +// ListFunctionSecrets description for Get function secrets for a function in a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -19477,7 +18774,7 @@ func (client AppsClient) ListFunctionSecretsPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -19510,7 +18807,7 @@ func (client AppsClient) ListFunctionSecretsResponder(resp *http.Response) (resu return } -// ListFunctionSecretsSlot get function secrets for a function in a web site, or a deployment slot. +// ListFunctionSecretsSlot description for Get function secrets for a function in a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -19566,7 +18863,7 @@ func (client AppsClient) ListFunctionSecretsSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -19599,179 +18896,7 @@ func (client AppsClient) ListFunctionSecretsSlotResponder(resp *http.Response) ( return } -// ListHostKeys get host secrets for a function app. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -func (client AppsClient) ListHostKeys(ctx context.Context, resourceGroupName string, name string) (result HostKeys, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListHostKeys") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListHostKeys", err.Error()) - } - - req, err := client.ListHostKeysPreparer(ctx, resourceGroupName, name) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeys", nil, "Failure preparing request") - return - } - - resp, err := client.ListHostKeysSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeys", resp, "Failure sending request") - return - } - - result, err = client.ListHostKeysResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeys", resp, "Failure responding to request") - } - - return -} - -// ListHostKeysPreparer prepares the ListHostKeys request. -func (client AppsClient) ListHostKeysPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/listkeys", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListHostKeysSender sends the ListHostKeys request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListHostKeysSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListHostKeysResponder handles the response to the ListHostKeys request. The method always -// closes the http.Response Body. -func (client AppsClient) ListHostKeysResponder(resp *http.Response) (result HostKeys, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// ListHostKeysSlot get host secrets for a function app. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - site name. -// slot - name of the deployment slot. -func (client AppsClient) ListHostKeysSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result HostKeys, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListHostKeysSlot") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListHostKeysSlot", err.Error()) - } - - req, err := client.ListHostKeysSlotPreparer(ctx, resourceGroupName, name, slot) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeysSlot", nil, "Failure preparing request") - return - } - - resp, err := client.ListHostKeysSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeysSlot", resp, "Failure sending request") - return - } - - result, err = client.ListHostKeysSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHostKeysSlot", resp, "Failure responding to request") - } - - return -} - -// ListHostKeysSlotPreparer prepares the ListHostKeysSlot request. -func (client AppsClient) ListHostKeysSlotPreparer(ctx context.Context, resourceGroupName string, name string, slot string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/listkeys", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListHostKeysSlotSender sends the ListHostKeysSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListHostKeysSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListHostKeysSlotResponder handles the response to the ListHostKeysSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) ListHostKeysSlotResponder(resp *http.Response) (result HostKeys, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// ListHostNameBindings get hostname bindings for an app or a deployment slot. +// ListHostNameBindings description for Get hostname bindings for an app or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -19824,7 +18949,7 @@ func (client AppsClient) ListHostNameBindingsPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -19894,7 +19019,7 @@ func (client AppsClient) ListHostNameBindingsComplete(ctx context.Context, resou return } -// ListHostNameBindingsSlot get hostname bindings for an app or a deployment slot. +// ListHostNameBindingsSlot description for Get hostname bindings for an app or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -19950,7 +19075,7 @@ func (client AppsClient) ListHostNameBindingsSlotPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -20020,187 +19145,7 @@ func (client AppsClient) ListHostNameBindingsSlotComplete(ctx context.Context, r return } -// ListHybridConnectionKeys gets the send key name and value for a Hybrid Connection. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - the name of the web app. -// namespaceName - the namespace for this hybrid connection. -// relayName - the relay name for this hybrid connection. -func (client AppsClient) ListHybridConnectionKeys(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string) (result HybridConnectionKey, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListHybridConnectionKeys") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListHybridConnectionKeys", err.Error()) - } - - req, err := client.ListHybridConnectionKeysPreparer(ctx, resourceGroupName, name, namespaceName, relayName) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeys", nil, "Failure preparing request") - return - } - - resp, err := client.ListHybridConnectionKeysSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeys", resp, "Failure sending request") - return - } - - result, err = client.ListHybridConnectionKeysResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeys", resp, "Failure responding to request") - } - - return -} - -// ListHybridConnectionKeysPreparer prepares the ListHybridConnectionKeys request. -func (client AppsClient) ListHybridConnectionKeysPreparer(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "namespaceName": autorest.Encode("path", namespaceName), - "relayName": autorest.Encode("path", relayName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListHybridConnectionKeysSender sends the ListHybridConnectionKeys request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListHybridConnectionKeysSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListHybridConnectionKeysResponder handles the response to the ListHybridConnectionKeys request. The method always -// closes the http.Response Body. -func (client AppsClient) ListHybridConnectionKeysResponder(resp *http.Response) (result HybridConnectionKey, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// ListHybridConnectionKeysSlot gets the send key name and value for a Hybrid Connection. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - the name of the web app. -// namespaceName - the namespace for this hybrid connection. -// relayName - the relay name for this hybrid connection. -// slot - the name of the slot for the web app. -func (client AppsClient) ListHybridConnectionKeysSlot(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string) (result HybridConnectionKey, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListHybridConnectionKeysSlot") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListHybridConnectionKeysSlot", err.Error()) - } - - req, err := client.ListHybridConnectionKeysSlotPreparer(ctx, resourceGroupName, name, namespaceName, relayName, slot) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeysSlot", nil, "Failure preparing request") - return - } - - resp, err := client.ListHybridConnectionKeysSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeysSlot", resp, "Failure sending request") - return - } - - result, err = client.ListHybridConnectionKeysSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListHybridConnectionKeysSlot", resp, "Failure responding to request") - } - - return -} - -// ListHybridConnectionKeysSlotPreparer prepares the ListHybridConnectionKeysSlot request. -func (client AppsClient) ListHybridConnectionKeysSlotPreparer(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "namespaceName": autorest.Encode("path", namespaceName), - "relayName": autorest.Encode("path", relayName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListHybridConnectionKeysSlotSender sends the ListHybridConnectionKeysSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListHybridConnectionKeysSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListHybridConnectionKeysSlotResponder handles the response to the ListHybridConnectionKeysSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) ListHybridConnectionKeysSlotResponder(resp *http.Response) (result HybridConnectionKey, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// ListHybridConnections retrieves all Service Bus Hybrid Connections used by this Web App. +// ListHybridConnections description for Retrieves all Service Bus Hybrid Connections used by this Web App. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -20252,7 +19197,7 @@ func (client AppsClient) ListHybridConnectionsPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -20285,7 +19230,7 @@ func (client AppsClient) ListHybridConnectionsResponder(resp *http.Response) (re return } -// ListHybridConnectionsSlot retrieves all Service Bus Hybrid Connections used by this Web App. +// ListHybridConnectionsSlot description for Retrieves all Service Bus Hybrid Connections used by this Web App. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -20339,7 +19284,7 @@ func (client AppsClient) ListHybridConnectionsSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -20372,7 +19317,7 @@ func (client AppsClient) ListHybridConnectionsSlotResponder(resp *http.Response) return } -// ListInstanceFunctionsSlot list the functions for a web site, or a deployment slot. +// ListInstanceFunctionsSlot description for List the functions for a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -20427,7 +19372,7 @@ func (client AppsClient) ListInstanceFunctionsSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -20497,7 +19442,7 @@ func (client AppsClient) ListInstanceFunctionsSlotComplete(ctx context.Context, return } -// ListInstanceIdentifiers gets all scale-out instances of an app. +// ListInstanceIdentifiers description for Gets all scale-out instances of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -20550,7 +19495,7 @@ func (client AppsClient) ListInstanceIdentifiersPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -20620,7 +19565,7 @@ func (client AppsClient) ListInstanceIdentifiersComplete(ctx context.Context, re return } -// ListInstanceIdentifiersSlot gets all scale-out instances of an app. +// ListInstanceIdentifiersSlot description for Gets all scale-out instances of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -20675,7 +19620,7 @@ func (client AppsClient) ListInstanceIdentifiersSlotPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -20745,8 +19690,8 @@ func (client AppsClient) ListInstanceIdentifiersSlotComplete(ctx context.Context return } -// ListInstanceProcesses get list of processes for a web site, or a deployment slot, or for a specific scaled-out -// instance in a web site. +// ListInstanceProcesses description for Get list of processes for a web site, or a deployment slot, or for a specific +// scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -20802,7 +19747,7 @@ func (client AppsClient) ListInstanceProcessesPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -20872,8 +19817,8 @@ func (client AppsClient) ListInstanceProcessesComplete(ctx context.Context, reso return } -// ListInstanceProcessesSlot get list of processes for a web site, or a deployment slot, or for a specific scaled-out -// instance in a web site. +// ListInstanceProcessesSlot description for Get list of processes for a web site, or a deployment slot, or for a +// specific scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -20932,7 +19877,7 @@ func (client AppsClient) ListInstanceProcessesSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -21002,8 +19947,8 @@ func (client AppsClient) ListInstanceProcessesSlotComplete(ctx context.Context, return } -// ListInstanceProcessModules list module information for a process by its ID for a specific scaled-out instance in a -// web site. +// ListInstanceProcessModules description for List module information for a process by its ID for a specific scaled-out +// instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -21061,7 +20006,7 @@ func (client AppsClient) ListInstanceProcessModulesPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -21131,8 +20076,8 @@ func (client AppsClient) ListInstanceProcessModulesComplete(ctx context.Context, return } -// ListInstanceProcessModulesSlot list module information for a process by its ID for a specific scaled-out instance in -// a web site. +// ListInstanceProcessModulesSlot description for List module information for a process by its ID for a specific +// scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -21193,7 +20138,7 @@ func (client AppsClient) ListInstanceProcessModulesSlotPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -21263,7 +20208,8 @@ func (client AppsClient) ListInstanceProcessModulesSlotComplete(ctx context.Cont return } -// ListInstanceProcessThreads list the threads in a process by its ID for a specific scaled-out instance in a web site. +// ListInstanceProcessThreads description for List the threads in a process by its ID for a specific scaled-out +// instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -21321,7 +20267,7 @@ func (client AppsClient) ListInstanceProcessThreadsPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -21391,8 +20337,8 @@ func (client AppsClient) ListInstanceProcessThreadsComplete(ctx context.Context, return } -// ListInstanceProcessThreadsSlot list the threads in a process by its ID for a specific scaled-out instance in a web -// site. +// ListInstanceProcessThreadsSlot description for List the threads in a process by its ID for a specific scaled-out +// instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -21453,7 +20399,7 @@ func (client AppsClient) ListInstanceProcessThreadsSlotPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -21523,7 +20469,7 @@ func (client AppsClient) ListInstanceProcessThreadsSlotComplete(ctx context.Cont return } -// ListMetadata gets the metadata of an app. +// ListMetadata description for Gets the metadata of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -21575,7 +20521,7 @@ func (client AppsClient) ListMetadataPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -21608,7 +20554,7 @@ func (client AppsClient) ListMetadataResponder(resp *http.Response) (result Stri return } -// ListMetadataSlot gets the metadata of an app. +// ListMetadataSlot description for Gets the metadata of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -21663,7 +20609,7 @@ func (client AppsClient) ListMetadataSlotPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -21696,525 +20642,7 @@ func (client AppsClient) ListMetadataSlotResponder(resp *http.Response) (result return } -// ListMetricDefinitions gets all metric definitions of an app (or deployment slot, if specified). -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the app. -func (client AppsClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, name string) (result ResourceMetricDefinitionCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListMetricDefinitions") - defer func() { - sc := -1 - if result.rmdc.Response.Response != nil { - sc = result.rmdc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListMetricDefinitions", err.Error()) - } - - result.fn = client.listMetricDefinitionsNextResults - req, err := client.ListMetricDefinitionsPreparer(ctx, resourceGroupName, name) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitions", nil, "Failure preparing request") - return - } - - resp, err := client.ListMetricDefinitionsSender(req) - if err != nil { - result.rmdc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitions", resp, "Failure sending request") - return - } - - result.rmdc, err = client.ListMetricDefinitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitions", resp, "Failure responding to request") - } - - return -} - -// ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request. -func (client AppsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metricdefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always -// closes the http.Response Body. -func (client AppsClient) ListMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMetricDefinitionsNextResults retrieves the next set of results, if any. -func (client AppsClient) listMetricDefinitionsNextResults(ctx context.Context, lastResults ResourceMetricDefinitionCollection) (result ResourceMetricDefinitionCollection, err error) { - req, err := lastResults.resourceMetricDefinitionCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMetricDefinitionsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMetricDefinitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMetricDefinitionsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppsClient) ListMetricDefinitionsComplete(ctx context.Context, resourceGroupName string, name string) (result ResourceMetricDefinitionCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListMetricDefinitions") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMetricDefinitions(ctx, resourceGroupName, name) - return -} - -// ListMetricDefinitionsSlot gets all metric definitions of an app (or deployment slot, if specified). -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the app. -// slot - name of the deployment slot. If a slot is not specified, the API will get metric definitions of the -// production slot. -func (client AppsClient) ListMetricDefinitionsSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result ResourceMetricDefinitionCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListMetricDefinitionsSlot") - defer func() { - sc := -1 - if result.rmdc.Response.Response != nil { - sc = result.rmdc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListMetricDefinitionsSlot", err.Error()) - } - - result.fn = client.listMetricDefinitionsSlotNextResults - req, err := client.ListMetricDefinitionsSlotPreparer(ctx, resourceGroupName, name, slot) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitionsSlot", nil, "Failure preparing request") - return - } - - resp, err := client.ListMetricDefinitionsSlotSender(req) - if err != nil { - result.rmdc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitionsSlot", resp, "Failure sending request") - return - } - - result.rmdc, err = client.ListMetricDefinitionsSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricDefinitionsSlot", resp, "Failure responding to request") - } - - return -} - -// ListMetricDefinitionsSlotPreparer prepares the ListMetricDefinitionsSlot request. -func (client AppsClient) ListMetricDefinitionsSlotPreparer(ctx context.Context, resourceGroupName string, name string, slot string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/metricdefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMetricDefinitionsSlotSender sends the ListMetricDefinitionsSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListMetricDefinitionsSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMetricDefinitionsSlotResponder handles the response to the ListMetricDefinitionsSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) ListMetricDefinitionsSlotResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMetricDefinitionsSlotNextResults retrieves the next set of results, if any. -func (client AppsClient) listMetricDefinitionsSlotNextResults(ctx context.Context, lastResults ResourceMetricDefinitionCollection) (result ResourceMetricDefinitionCollection, err error) { - req, err := lastResults.resourceMetricDefinitionCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsSlotNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMetricDefinitionsSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsSlotNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMetricDefinitionsSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricDefinitionsSlotNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMetricDefinitionsSlotComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppsClient) ListMetricDefinitionsSlotComplete(ctx context.Context, resourceGroupName string, name string, slot string) (result ResourceMetricDefinitionCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListMetricDefinitionsSlot") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMetricDefinitionsSlot(ctx, resourceGroupName, name, slot) - return -} - -// ListMetrics gets performance metrics of an app (or deployment slot, if specified). -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the app. -// details - specify "true" to include metric details in the response. It is "false" by default. -// filter - return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value -// eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq -// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. -func (client AppsClient) ListMetrics(ctx context.Context, resourceGroupName string, name string, details *bool, filter string) (result ResourceMetricCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListMetrics") - defer func() { - sc := -1 - if result.rmc.Response.Response != nil { - sc = result.rmc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListMetrics", err.Error()) - } - - result.fn = client.listMetricsNextResults - req, err := client.ListMetricsPreparer(ctx, resourceGroupName, name, details, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetrics", nil, "Failure preparing request") - return - } - - resp, err := client.ListMetricsSender(req) - if err != nil { - result.rmc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetrics", resp, "Failure sending request") - return - } - - result.rmc, err = client.ListMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetrics", resp, "Failure responding to request") - } - - return -} - -// ListMetricsPreparer prepares the ListMetrics request. -func (client AppsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, name string, details *bool, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if details != nil { - queryParameters["details"] = autorest.Encode("query", *details) - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metrics", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMetricsSender sends the ListMetrics request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListMetricsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMetricsResponder handles the response to the ListMetrics request. The method always -// closes the http.Response Body. -func (client AppsClient) ListMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMetricsNextResults retrieves the next set of results, if any. -func (client AppsClient) listMetricsNextResults(ctx context.Context, lastResults ResourceMetricCollection) (result ResourceMetricCollection, err error) { - req, err := lastResults.resourceMetricCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMetricsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMetricsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppsClient) ListMetricsComplete(ctx context.Context, resourceGroupName string, name string, details *bool, filter string) (result ResourceMetricCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListMetrics") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMetrics(ctx, resourceGroupName, name, details, filter) - return -} - -// ListMetricsSlot gets performance metrics of an app (or deployment slot, if specified). -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the app. -// slot - name of the deployment slot. If a slot is not specified, the API will get metrics of the production -// slot. -// details - specify "true" to include metric details in the response. It is "false" by default. -// filter - return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value -// eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq -// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. -func (client AppsClient) ListMetricsSlot(ctx context.Context, resourceGroupName string, name string, slot string, details *bool, filter string) (result ResourceMetricCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListMetricsSlot") - defer func() { - sc := -1 - if result.rmc.Response.Response != nil { - sc = result.rmc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListMetricsSlot", err.Error()) - } - - result.fn = client.listMetricsSlotNextResults - req, err := client.ListMetricsSlotPreparer(ctx, resourceGroupName, name, slot, details, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricsSlot", nil, "Failure preparing request") - return - } - - resp, err := client.ListMetricsSlotSender(req) - if err != nil { - result.rmc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricsSlot", resp, "Failure sending request") - return - } - - result.rmc, err = client.ListMetricsSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListMetricsSlot", resp, "Failure responding to request") - } - - return -} - -// ListMetricsSlotPreparer prepares the ListMetricsSlot request. -func (client AppsClient) ListMetricsSlotPreparer(ctx context.Context, resourceGroupName string, name string, slot string, details *bool, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if details != nil { - queryParameters["details"] = autorest.Encode("query", *details) - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/metrics", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMetricsSlotSender sends the ListMetricsSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListMetricsSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMetricsSlotResponder handles the response to the ListMetricsSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) ListMetricsSlotResponder(resp *http.Response) (result ResourceMetricCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMetricsSlotNextResults retrieves the next set of results, if any. -func (client AppsClient) listMetricsSlotNextResults(ctx context.Context, lastResults ResourceMetricCollection) (result ResourceMetricCollection, err error) { - req, err := lastResults.resourceMetricCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsSlotNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMetricsSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsSlotNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMetricsSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "listMetricsSlotNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMetricsSlotComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppsClient) ListMetricsSlotComplete(ctx context.Context, resourceGroupName string, name string, slot string, details *bool, filter string) (result ResourceMetricCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListMetricsSlot") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMetricsSlot(ctx, resourceGroupName, name, slot, details, filter) - return -} - -// ListNetworkFeatures gets all network features used by the app (or deployment slot, if specified). +// ListNetworkFeatures description for Gets all network features used by the app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -22268,7 +20696,7 @@ func (client AppsClient) ListNetworkFeaturesPreparer(ctx context.Context, resour "view": autorest.Encode("path", view), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -22301,7 +20729,8 @@ func (client AppsClient) ListNetworkFeaturesResponder(resp *http.Response) (resu return } -// ListNetworkFeaturesSlot gets all network features used by the app (or deployment slot, if specified). +// ListNetworkFeaturesSlot description for Gets all network features used by the app (or deployment slot, if +// specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -22358,7 +20787,7 @@ func (client AppsClient) ListNetworkFeaturesSlotPreparer(ctx context.Context, re "view": autorest.Encode("path", view), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -22391,7 +20820,7 @@ func (client AppsClient) ListNetworkFeaturesSlotResponder(resp *http.Response) ( return } -// ListPerfMonCounters gets perfmon counters for web app. +// ListPerfMonCounters description for Gets perfmon counters for web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -22447,7 +20876,7 @@ func (client AppsClient) ListPerfMonCountersPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -22520,7 +20949,7 @@ func (client AppsClient) ListPerfMonCountersComplete(ctx context.Context, resour return } -// ListPerfMonCountersSlot gets perfmon counters for web app. +// ListPerfMonCountersSlot description for Gets perfmon counters for web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -22578,7 +21007,7 @@ func (client AppsClient) ListPerfMonCountersSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -22651,7 +21080,7 @@ func (client AppsClient) ListPerfMonCountersSlotComplete(ctx context.Context, re return } -// ListPremierAddOns gets the premier add-ons of an app. +// ListPremierAddOns description for Gets the premier add-ons of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -22703,7 +21132,7 @@ func (client AppsClient) ListPremierAddOnsPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -22736,7 +21165,7 @@ func (client AppsClient) ListPremierAddOnsResponder(resp *http.Response) (result return } -// ListPremierAddOnsSlot gets the premier add-ons of an app. +// ListPremierAddOnsSlot description for Gets the premier add-ons of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -22791,7 +21220,7 @@ func (client AppsClient) ListPremierAddOnsSlotPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -22824,8 +21253,8 @@ func (client AppsClient) ListPremierAddOnsSlotResponder(resp *http.Response) (re return } -// ListProcesses get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a -// web site. +// ListProcesses description for Get list of processes for a web site, or a deployment slot, or for a specific +// scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -22878,7 +21307,7 @@ func (client AppsClient) ListProcessesPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -22948,8 +21377,8 @@ func (client AppsClient) ListProcessesComplete(ctx context.Context, resourceGrou return } -// ListProcessesSlot get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance -// in a web site. +// ListProcessesSlot description for Get list of processes for a web site, or a deployment slot, or for a specific +// scaled-out instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -23005,7 +21434,7 @@ func (client AppsClient) ListProcessesSlotPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -23075,7 +21504,8 @@ func (client AppsClient) ListProcessesSlotComplete(ctx context.Context, resource return } -// ListProcessModules list module information for a process by its ID for a specific scaled-out instance in a web site. +// ListProcessModules description for List module information for a process by its ID for a specific scaled-out +// instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -23130,7 +21560,7 @@ func (client AppsClient) ListProcessModulesPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -23200,8 +21630,8 @@ func (client AppsClient) ListProcessModulesComplete(ctx context.Context, resourc return } -// ListProcessModulesSlot list module information for a process by its ID for a specific scaled-out instance in a web -// site. +// ListProcessModulesSlot description for List module information for a process by its ID for a specific scaled-out +// instance in a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -23259,7 +21689,7 @@ func (client AppsClient) ListProcessModulesSlotPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -23329,7 +21759,8 @@ func (client AppsClient) ListProcessModulesSlotComplete(ctx context.Context, res return } -// ListProcessThreads list the threads in a process by its ID for a specific scaled-out instance in a web site. +// ListProcessThreads description for List the threads in a process by its ID for a specific scaled-out instance in a +// web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -23384,7 +21815,7 @@ func (client AppsClient) ListProcessThreadsPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -23454,7 +21885,8 @@ func (client AppsClient) ListProcessThreadsComplete(ctx context.Context, resourc return } -// ListProcessThreadsSlot list the threads in a process by its ID for a specific scaled-out instance in a web site. +// ListProcessThreadsSlot description for List the threads in a process by its ID for a specific scaled-out instance in +// a web site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -23512,7 +21944,7 @@ func (client AppsClient) ListProcessThreadsSlotPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -23582,7 +22014,7 @@ func (client AppsClient) ListProcessThreadsSlotComplete(ctx context.Context, res return } -// ListPublicCertificates get public certificates for an app or a deployment slot. +// ListPublicCertificates description for Get public certificates for an app or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -23635,7 +22067,7 @@ func (client AppsClient) ListPublicCertificatesPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -23705,7 +22137,7 @@ func (client AppsClient) ListPublicCertificatesComplete(ctx context.Context, res return } -// ListPublicCertificatesSlot get public certificates for an app or a deployment slot. +// ListPublicCertificatesSlot description for Get public certificates for an app or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -23761,7 +22193,7 @@ func (client AppsClient) ListPublicCertificatesSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -23831,7 +22263,7 @@ func (client AppsClient) ListPublicCertificatesSlotComplete(ctx context.Context, return } -// ListPublishingCredentials gets the Git/FTP publishing credentials of an app. +// ListPublishingCredentials description for Gets the Git/FTP publishing credentials of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -23877,7 +22309,7 @@ func (client AppsClient) ListPublishingCredentialsPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -23916,7 +22348,7 @@ func (client AppsClient) ListPublishingCredentialsResponder(resp *http.Response) return } -// ListPublishingCredentialsSlot gets the Git/FTP publishing credentials of an app. +// ListPublishingCredentialsSlot description for Gets the Git/FTP publishing credentials of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -23965,7 +22397,7 @@ func (client AppsClient) ListPublishingCredentialsSlotPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24004,7 +22436,8 @@ func (client AppsClient) ListPublishingCredentialsSlotResponder(resp *http.Respo return } -// ListPublishingProfileXMLWithSecrets gets the publishing profile for an app (or deployment slot, if specified). +// ListPublishingProfileXMLWithSecrets description for Gets the publishing profile for an app (or deployment slot, if +// specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -24058,7 +22491,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24092,7 +22525,8 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsResponder(resp *http return } -// ListPublishingProfileXMLWithSecretsSlot gets the publishing profile for an app (or deployment slot, if specified). +// ListPublishingProfileXMLWithSecretsSlot description for Gets the publishing profile for an app (or deployment slot, +// if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -24149,7 +22583,7 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsSlotPreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24183,7 +22617,8 @@ func (client AppsClient) ListPublishingProfileXMLWithSecretsSlotResponder(resp * return } -// ListRelayServiceConnections gets hybrid connections configured for an app (or deployment slot, if specified). +// ListRelayServiceConnections description for Gets hybrid connections configured for an app (or deployment slot, if +// specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -24235,7 +22670,7 @@ func (client AppsClient) ListRelayServiceConnectionsPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24268,7 +22703,8 @@ func (client AppsClient) ListRelayServiceConnectionsResponder(resp *http.Respons return } -// ListRelayServiceConnectionsSlot gets hybrid connections configured for an app (or deployment slot, if specified). +// ListRelayServiceConnectionsSlot description for Gets hybrid connections configured for an app (or deployment slot, +// if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -24323,7 +22759,7 @@ func (client AppsClient) ListRelayServiceConnectionsSlotPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24356,7 +22792,256 @@ func (client AppsClient) ListRelayServiceConnectionsSlotResponder(resp *http.Res return } -// ListSiteExtensions get list of siteextensions for a web site, or a deployment slot. +// ListSiteBackups description for Gets existing backups of an app. +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the app. +func (client AppsClient) ListSiteBackups(ctx context.Context, resourceGroupName string, name string) (result BackupItemCollectionPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListSiteBackups") + defer func() { + sc := -1 + if result.bic.Response.Response != nil { + sc = result.bic.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("web.AppsClient", "ListSiteBackups", err.Error()) + } + + result.fn = client.listSiteBackupsNextResults + req, err := client.ListSiteBackupsPreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackups", nil, "Failure preparing request") + return + } + + resp, err := client.ListSiteBackupsSender(req) + if err != nil { + result.bic.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackups", resp, "Failure sending request") + return + } + + result.bic, err = client.ListSiteBackupsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackups", resp, "Failure responding to request") + } + + return +} + +// ListSiteBackupsPreparer prepares the ListSiteBackups request. +func (client AppsClient) ListSiteBackupsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-08-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listbackups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSiteBackupsSender sends the ListSiteBackups request. The method will close the +// http.Response Body if it receives an error. +func (client AppsClient) ListSiteBackupsSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListSiteBackupsResponder handles the response to the ListSiteBackups request. The method always +// closes the http.Response Body. +func (client AppsClient) ListSiteBackupsResponder(resp *http.Response) (result BackupItemCollection, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listSiteBackupsNextResults retrieves the next set of results, if any. +func (client AppsClient) listSiteBackupsNextResults(ctx context.Context, lastResults BackupItemCollection) (result BackupItemCollection, err error) { + req, err := lastResults.backupItemCollectionPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSiteBackupsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsNextResults", resp, "Failure sending next results request") + } + result, err = client.ListSiteBackupsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListSiteBackupsComplete enumerates all values, automatically crossing page boundaries as required. +func (client AppsClient) ListSiteBackupsComplete(ctx context.Context, resourceGroupName string, name string) (result BackupItemCollectionIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListSiteBackups") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListSiteBackups(ctx, resourceGroupName, name) + return +} + +// ListSiteBackupsSlot description for Gets existing backups of an app. +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the app. +// slot - name of the deployment slot. If a slot is not specified, the API will get backups of the production +// slot. +func (client AppsClient) ListSiteBackupsSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result BackupItemCollectionPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListSiteBackupsSlot") + defer func() { + sc := -1 + if result.bic.Response.Response != nil { + sc = result.bic.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("web.AppsClient", "ListSiteBackupsSlot", err.Error()) + } + + result.fn = client.listSiteBackupsSlotNextResults + req, err := client.ListSiteBackupsSlotPreparer(ctx, resourceGroupName, name, slot) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackupsSlot", nil, "Failure preparing request") + return + } + + resp, err := client.ListSiteBackupsSlotSender(req) + if err != nil { + result.bic.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackupsSlot", resp, "Failure sending request") + return + } + + result.bic, err = client.ListSiteBackupsSlotResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSiteBackupsSlot", resp, "Failure responding to request") + } + + return +} + +// ListSiteBackupsSlotPreparer prepares the ListSiteBackupsSlot request. +func (client AppsClient) ListSiteBackupsSlotPreparer(ctx context.Context, resourceGroupName string, name string, slot string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "slot": autorest.Encode("path", slot), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-08-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/listbackups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSiteBackupsSlotSender sends the ListSiteBackupsSlot request. The method will close the +// http.Response Body if it receives an error. +func (client AppsClient) ListSiteBackupsSlotSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// ListSiteBackupsSlotResponder handles the response to the ListSiteBackupsSlot request. The method always +// closes the http.Response Body. +func (client AppsClient) ListSiteBackupsSlotResponder(resp *http.Response) (result BackupItemCollection, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listSiteBackupsSlotNextResults retrieves the next set of results, if any. +func (client AppsClient) listSiteBackupsSlotNextResults(ctx context.Context, lastResults BackupItemCollection) (result BackupItemCollection, err error) { + req, err := lastResults.backupItemCollectionPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsSlotNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSiteBackupsSlotSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsSlotNextResults", resp, "Failure sending next results request") + } + result, err = client.ListSiteBackupsSlotResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsClient", "listSiteBackupsSlotNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListSiteBackupsSlotComplete enumerates all values, automatically crossing page boundaries as required. +func (client AppsClient) ListSiteBackupsSlotComplete(ctx context.Context, resourceGroupName string, name string, slot string) (result BackupItemCollectionIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListSiteBackupsSlot") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListSiteBackupsSlot(ctx, resourceGroupName, name, slot) + return +} + +// ListSiteExtensions description for Get list of siteextensions for a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -24409,7 +23094,7 @@ func (client AppsClient) ListSiteExtensionsPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24479,12 +23164,11 @@ func (client AppsClient) ListSiteExtensionsComplete(ctx context.Context, resourc return } -// ListSiteExtensionsSlot get list of siteextensions for a web site, or a deployment slot. +// ListSiteExtensionsSlot description for Get list of siteextensions for a web site, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. -// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the -// production slot. +// slot - name of the deployment slot. If a slot is not specified, the API uses the production slot. func (client AppsClient) ListSiteExtensionsSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result SiteExtensionInfoCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListSiteExtensionsSlot") @@ -24535,7 +23219,7 @@ func (client AppsClient) ListSiteExtensionsSlotPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24605,7 +23289,7 @@ func (client AppsClient) ListSiteExtensionsSlotComplete(ctx context.Context, res return } -// ListSitePushSettings gets the Push settings associated with web app. +// ListSitePushSettings description for Gets the Push settings associated with web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -24657,7 +23341,7 @@ func (client AppsClient) ListSitePushSettingsPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24690,7 +23374,7 @@ func (client AppsClient) ListSitePushSettingsResponder(resp *http.Response) (res return } -// ListSitePushSettingsSlot gets the Push settings associated with web app. +// ListSitePushSettingsSlot description for Gets the Push settings associated with web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -24744,7 +23428,7 @@ func (client AppsClient) ListSitePushSettingsSlotPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24777,8 +23461,8 @@ func (client AppsClient) ListSitePushSettingsSlotResponder(resp *http.Response) return } -// ListSlotConfigurationNames gets the names of app settings and connection strings that stick to the slot (not -// swapped). +// ListSlotConfigurationNames description for Gets the names of app settings and connection strings that stick to the +// slot (not swapped). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -24830,7 +23514,7 @@ func (client AppsClient) ListSlotConfigurationNamesPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24863,7 +23547,8 @@ func (client AppsClient) ListSlotConfigurationNamesResponder(resp *http.Response return } -// ListSlotDifferencesFromProduction get the difference in configuration settings between two web app slots. +// ListSlotDifferencesFromProduction description for Get the difference in configuration settings between two web app +// slots. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -24920,7 +23605,7 @@ func (client AppsClient) ListSlotDifferencesFromProductionPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -24992,7 +23677,7 @@ func (client AppsClient) ListSlotDifferencesFromProductionComplete(ctx context.C return } -// ListSlotDifferencesSlot get the difference in configuration settings between two web app slots. +// ListSlotDifferencesSlot description for Get the difference in configuration settings between two web app slots. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -25051,7 +23736,7 @@ func (client AppsClient) ListSlotDifferencesSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -25123,7 +23808,7 @@ func (client AppsClient) ListSlotDifferencesSlotComplete(ctx context.Context, re return } -// ListSlots gets an app's deployment slots. +// ListSlots description for Gets an app's deployment slots. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -25176,7 +23861,7 @@ func (client AppsClient) ListSlotsPreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -25246,7 +23931,7 @@ func (client AppsClient) ListSlotsComplete(ctx context.Context, resourceGroupNam return } -// ListSnapshots returns all Snapshots to the user. +// ListSnapshots description for Returns all Snapshots to the user. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - website Name. @@ -25299,7 +23984,7 @@ func (client AppsClient) ListSnapshotsPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -25369,7 +24054,7 @@ func (client AppsClient) ListSnapshotsComplete(ctx context.Context, resourceGrou return } -// ListSnapshotsFromDRSecondary returns all Snapshots to the user from DRSecondary endpoint. +// ListSnapshotsFromDRSecondary description for Returns all Snapshots to the user from DRSecondary endpoint. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - website Name. @@ -25422,7 +24107,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondaryPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -25492,7 +24177,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondaryComplete(ctx context.Contex return } -// ListSnapshotsFromDRSecondarySlot returns all Snapshots to the user from DRSecondary endpoint. +// ListSnapshotsFromDRSecondarySlot description for Returns all Snapshots to the user from DRSecondary endpoint. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - website Name. @@ -25547,7 +24232,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondarySlotPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -25617,7 +24302,7 @@ func (client AppsClient) ListSnapshotsFromDRSecondarySlotComplete(ctx context.Co return } -// ListSnapshotsSlot returns all Snapshots to the user. +// ListSnapshotsSlot description for Returns all Snapshots to the user. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - website Name. @@ -25672,7 +24357,7 @@ func (client AppsClient) ListSnapshotsSlotPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -25742,7 +24427,7 @@ func (client AppsClient) ListSnapshotsSlotComplete(ctx context.Context, resource return } -// ListSyncFunctionTriggers this is to allow calling via powershell and ARM template. +// ListSyncFunctionTriggers description for This is to allow calling via powershell and ARM template. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -25794,7 +24479,7 @@ func (client AppsClient) ListSyncFunctionTriggersPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -25827,7 +24512,7 @@ func (client AppsClient) ListSyncFunctionTriggersResponder(resp *http.Response) return } -// ListSyncFunctionTriggersSlot this is to allow calling via powershell and ARM template. +// ListSyncFunctionTriggersSlot description for This is to allow calling via powershell and ARM template. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -25881,7 +24566,7 @@ func (client AppsClient) ListSyncFunctionTriggersSlotPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -25914,177 +24599,7 @@ func (client AppsClient) ListSyncFunctionTriggersSlotResponder(resp *http.Respon return } -// ListSyncStatus this is to allow calling via powershell and ARM template. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the app. -func (client AppsClient) ListSyncStatus(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListSyncStatus") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListSyncStatus", err.Error()) - } - - req, err := client.ListSyncStatusPreparer(ctx, resourceGroupName, name) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatus", nil, "Failure preparing request") - return - } - - resp, err := client.ListSyncStatusSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatus", resp, "Failure sending request") - return - } - - result, err = client.ListSyncStatusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatus", resp, "Failure responding to request") - } - - return -} - -// ListSyncStatusPreparer prepares the ListSyncStatus request. -func (client AppsClient) ListSyncStatusPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/listsyncstatus", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListSyncStatusSender sends the ListSyncStatus request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListSyncStatusSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListSyncStatusResponder handles the response to the ListSyncStatus request. The method always -// closes the http.Response Body. -func (client AppsClient) ListSyncStatusResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// ListSyncStatusSlot this is to allow calling via powershell and ARM template. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the app. -// slot - name of the deployment slot. -func (client AppsClient) ListSyncStatusSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListSyncStatusSlot") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "ListSyncStatusSlot", err.Error()) - } - - req, err := client.ListSyncStatusSlotPreparer(ctx, resourceGroupName, name, slot) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatusSlot", nil, "Failure preparing request") - return - } - - resp, err := client.ListSyncStatusSlotSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatusSlot", resp, "Failure sending request") - return - } - - result, err = client.ListSyncStatusSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "ListSyncStatusSlot", resp, "Failure responding to request") - } - - return -} - -// ListSyncStatusSlotPreparer prepares the ListSyncStatusSlot request. -func (client AppsClient) ListSyncStatusSlotPreparer(ctx context.Context, resourceGroupName string, name string, slot string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/listsyncstatus", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListSyncStatusSlotSender sends the ListSyncStatusSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) ListSyncStatusSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListSyncStatusSlotResponder handles the response to the ListSyncStatusSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) ListSyncStatusSlotResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// ListTriggeredWebJobHistory list a triggered web job's history for an app, or a deployment slot. +// ListTriggeredWebJobHistory description for List a triggered web job's history for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -26139,7 +24654,7 @@ func (client AppsClient) ListTriggeredWebJobHistoryPreparer(ctx context.Context, "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -26209,13 +24724,12 @@ func (client AppsClient) ListTriggeredWebJobHistoryComplete(ctx context.Context, return } -// ListTriggeredWebJobHistorySlot list a triggered web job's history for an app, or a deployment slot. +// ListTriggeredWebJobHistorySlot description for List a triggered web job's history for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. // webJobName - name of Web Job. -// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the -// production slot. +// slot - name of the deployment slot. If a slot is not specified, the API uses the production slot. func (client AppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (result TriggeredJobHistoryCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListTriggeredWebJobHistorySlot") @@ -26267,7 +24781,7 @@ func (client AppsClient) ListTriggeredWebJobHistorySlotPreparer(ctx context.Cont "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -26337,7 +24851,7 @@ func (client AppsClient) ListTriggeredWebJobHistorySlotComplete(ctx context.Cont return } -// ListTriggeredWebJobs list triggered web jobs for an app, or a deployment slot. +// ListTriggeredWebJobs description for List triggered web jobs for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -26390,7 +24904,7 @@ func (client AppsClient) ListTriggeredWebJobsPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -26460,7 +24974,7 @@ func (client AppsClient) ListTriggeredWebJobsComplete(ctx context.Context, resou return } -// ListTriggeredWebJobsSlot list triggered web jobs for an app, or a deployment slot. +// ListTriggeredWebJobsSlot description for List triggered web jobs for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -26516,7 +25030,7 @@ func (client AppsClient) ListTriggeredWebJobsSlotPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -26586,7 +25100,7 @@ func (client AppsClient) ListTriggeredWebJobsSlotComplete(ctx context.Context, r return } -// ListUsages gets the quota usage information of an app (or deployment slot, if specified). +// ListUsages description for Gets the quota usage information of an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -26642,7 +25156,7 @@ func (client AppsClient) ListUsagesPreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -26715,7 +25229,7 @@ func (client AppsClient) ListUsagesComplete(ctx context.Context, resourceGroupNa return } -// ListUsagesSlot gets the quota usage information of an app (or deployment slot, if specified). +// ListUsagesSlot description for Gets the quota usage information of an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -26774,7 +25288,7 @@ func (client AppsClient) ListUsagesSlotPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -26847,7 +25361,7 @@ func (client AppsClient) ListUsagesSlotComplete(ctx context.Context, resourceGro return } -// ListVnetConnections gets the virtual networks the app (or deployment slot) is connected to. +// ListVnetConnections description for Gets the virtual networks the app (or deployment slot) is connected to. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -26899,7 +25413,7 @@ func (client AppsClient) ListVnetConnectionsPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -26932,7 +25446,7 @@ func (client AppsClient) ListVnetConnectionsResponder(resp *http.Response) (resu return } -// ListVnetConnectionsSlot gets the virtual networks the app (or deployment slot) is connected to. +// ListVnetConnectionsSlot description for Gets the virtual networks the app (or deployment slot) is connected to. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -26987,7 +25501,7 @@ func (client AppsClient) ListVnetConnectionsSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27020,7 +25534,7 @@ func (client AppsClient) ListVnetConnectionsSlotResponder(resp *http.Response) ( return } -// ListWebJobs list webjobs for an app, or a deployment slot. +// ListWebJobs description for List webjobs for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -27073,7 +25587,7 @@ func (client AppsClient) ListWebJobsPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27143,7 +25657,7 @@ func (client AppsClient) ListWebJobsComplete(ctx context.Context, resourceGroupN return } -// ListWebJobsSlot list webjobs for an app, or a deployment slot. +// ListWebJobsSlot description for List webjobs for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -27199,7 +25713,7 @@ func (client AppsClient) ListWebJobsSlotPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27269,7 +25783,7 @@ func (client AppsClient) ListWebJobsSlotComplete(ctx context.Context, resourceGr return } -// MigrateMySQL migrates a local (in-app) MySql database to a remote MySql database. +// MigrateMySQL description for Migrates a local (in-app) MySql database to a remote MySql database. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -27319,7 +25833,7 @@ func (client AppsClient) MigrateMySQLPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27360,7 +25874,7 @@ func (client AppsClient) MigrateMySQLResponder(resp *http.Response) (result Oper return } -// MigrateStorage restores a web app. +// MigrateStorage description for Restores a web app. // Parameters: // subscriptionName - azure subscription. // resourceGroupName - name of the resource group to which the resource belongs. @@ -27413,7 +25927,7 @@ func (client AppsClient) MigrateStoragePreparer(ctx context.Context, subscriptio "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, "subscriptionName": autorest.Encode("query", subscriptionName), @@ -27455,8 +25969,8 @@ func (client AppsClient) MigrateStorageResponder(resp *http.Response) (result St return } -// PutPrivateAccessVnet sets data around private site access enablement and authorized Virtual Networks that can access -// the site. +// PutPrivateAccessVnet description for Sets data around private site access enablement and authorized Virtual Networks +// that can access the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -27509,7 +26023,7 @@ func (client AppsClient) PutPrivateAccessVnetPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27544,8 +26058,8 @@ func (client AppsClient) PutPrivateAccessVnetResponder(resp *http.Response) (res return } -// PutPrivateAccessVnetSlot sets data around private site access enablement and authorized Virtual Networks that can -// access the site. +// PutPrivateAccessVnetSlot description for Sets data around private site access enablement and authorized Virtual +// Networks that can access the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -27600,7 +26114,7 @@ func (client AppsClient) PutPrivateAccessVnetSlotPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27635,7 +26149,7 @@ func (client AppsClient) PutPrivateAccessVnetSlotResponder(resp *http.Response) return } -// RecoverSiteConfigurationSnapshot reverts the configuration of an app to a previous snapshot. +// RecoverSiteConfigurationSnapshot description for Reverts the configuration of an app to a previous snapshot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -27689,7 +26203,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27721,7 +26235,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotResponder(resp *http.Re return } -// RecoverSiteConfigurationSnapshotSlot reverts the configuration of an app to a previous snapshot. +// RecoverSiteConfigurationSnapshotSlot description for Reverts the configuration of an app to a previous snapshot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -27778,7 +26292,7 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotSlotPreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27810,8 +26324,8 @@ func (client AppsClient) RecoverSiteConfigurationSnapshotSlotResponder(resp *htt return } -// ResetProductionSlotConfig resets the configuration settings of the current slot if they were previously modified by -// calling the API with POST. +// ResetProductionSlotConfig description for Resets the configuration settings of the current slot if they were +// previously modified by calling the API with POST. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -27863,7 +26377,7 @@ func (client AppsClient) ResetProductionSlotConfigPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27895,8 +26409,8 @@ func (client AppsClient) ResetProductionSlotConfigResponder(resp *http.Response) return } -// ResetSlotConfigurationSlot resets the configuration settings of the current slot if they were previously modified by -// calling the API with POST. +// ResetSlotConfigurationSlot description for Resets the configuration settings of the current slot if they were +// previously modified by calling the API with POST. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -27951,7 +26465,7 @@ func (client AppsClient) ResetSlotConfigurationSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -27983,7 +26497,7 @@ func (client AppsClient) ResetSlotConfigurationSlotResponder(resp *http.Response return } -// Restart restarts an app (or deployment slot, if specified). +// Restart description for Restarts an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -28039,7 +26553,7 @@ func (client AppsClient) RestartPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28077,7 +26591,7 @@ func (client AppsClient) RestartResponder(resp *http.Response) (result autorest. return } -// RestartSlot restarts an app (or deployment slot, if specified). +// RestartSlot description for Restarts an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -28135,7 +26649,7 @@ func (client AppsClient) RestartSlotPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28173,7 +26687,7 @@ func (client AppsClient) RestartSlotResponder(resp *http.Response) (result autor return } -// Restore restores a specific backup to another app (or deployment slot, if specified). +// Restore description for Restores a specific backup to another app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -28227,7 +26741,7 @@ func (client AppsClient) RestorePreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28267,7 +26781,7 @@ func (client AppsClient) RestoreResponder(resp *http.Response) (result autorest. return } -// RestoreFromBackupBlob restores an app from a backup blob in Azure Storage. +// RestoreFromBackupBlob description for Restores an app from a backup blob in Azure Storage. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -28319,7 +26833,7 @@ func (client AppsClient) RestoreFromBackupBlobPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28359,7 +26873,7 @@ func (client AppsClient) RestoreFromBackupBlobResponder(resp *http.Response) (re return } -// RestoreFromBackupBlobSlot restores an app from a backup blob in Azure Storage. +// RestoreFromBackupBlobSlot description for Restores an app from a backup blob in Azure Storage. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -28414,7 +26928,7 @@ func (client AppsClient) RestoreFromBackupBlobSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28454,7 +26968,7 @@ func (client AppsClient) RestoreFromBackupBlobSlotResponder(resp *http.Response) return } -// RestoreFromDeletedApp restores a deleted web app to this web app. +// RestoreFromDeletedApp description for Restores a deleted web app to this web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -28501,7 +27015,7 @@ func (client AppsClient) RestoreFromDeletedAppPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28541,7 +27055,7 @@ func (client AppsClient) RestoreFromDeletedAppResponder(resp *http.Response) (re return } -// RestoreFromDeletedAppSlot restores a deleted web app to this web app. +// RestoreFromDeletedAppSlot description for Restores a deleted web app to this web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -28590,7 +27104,7 @@ func (client AppsClient) RestoreFromDeletedAppSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28630,7 +27144,7 @@ func (client AppsClient) RestoreFromDeletedAppSlotResponder(resp *http.Response) return } -// RestoreSlot restores a specific backup to another app (or deployment slot, if specified). +// RestoreSlot description for Restores a specific backup to another app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -28687,7 +27201,7 @@ func (client AppsClient) RestoreSlotPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28727,7 +27241,7 @@ func (client AppsClient) RestoreSlotResponder(resp *http.Response) (result autor return } -// RestoreSnapshot restores a web app from a snapshot. +// RestoreSnapshot description for Restores a web app from a snapshot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -28778,7 +27292,7 @@ func (client AppsClient) RestoreSnapshotPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28818,7 +27332,7 @@ func (client AppsClient) RestoreSnapshotResponder(resp *http.Response) (result a return } -// RestoreSnapshotSlot restores a web app from a snapshot. +// RestoreSnapshotSlot description for Restores a web app from a snapshot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -28871,7 +27385,7 @@ func (client AppsClient) RestoreSnapshotSlotPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28911,7 +27425,7 @@ func (client AppsClient) RestoreSnapshotSlotResponder(resp *http.Response) (resu return } -// RunTriggeredWebJob run a triggered web job for an app, or a deployment slot. +// RunTriggeredWebJob description for Run a triggered web job for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -28965,7 +27479,7 @@ func (client AppsClient) RunTriggeredWebJobPreparer(ctx context.Context, resourc "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -28997,13 +27511,12 @@ func (client AppsClient) RunTriggeredWebJobResponder(resp *http.Response) (resul return } -// RunTriggeredWebJobSlot run a triggered web job for an app, or a deployment slot. +// RunTriggeredWebJobSlot description for Run a triggered web job for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. // webJobName - name of Web Job. -// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the -// production slot. +// slot - name of the deployment slot. If a slot is not specified, the API uses the production slot. func (client AppsClient) RunTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (result autorest.Response, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.RunTriggeredWebJobSlot") @@ -29054,7 +27567,7 @@ func (client AppsClient) RunTriggeredWebJobSlotPreparer(ctx context.Context, res "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29086,7 +27599,7 @@ func (client AppsClient) RunTriggeredWebJobSlotResponder(resp *http.Response) (r return } -// Start starts an app (or deployment slot, if specified). +// Start description for Starts an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -29138,7 +27651,7 @@ func (client AppsClient) StartPreparer(ctx context.Context, resourceGroupName st "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29170,7 +27683,7 @@ func (client AppsClient) StartResponder(resp *http.Response) (result autorest.Re return } -// StartContinuousWebJob start a continuous web job for an app, or a deployment slot. +// StartContinuousWebJob description for Start a continuous web job for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -29224,7 +27737,7 @@ func (client AppsClient) StartContinuousWebJobPreparer(ctx context.Context, reso "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29256,7 +27769,7 @@ func (client AppsClient) StartContinuousWebJobResponder(resp *http.Response) (re return } -// StartContinuousWebJobSlot start a continuous web job for an app, or a deployment slot. +// StartContinuousWebJobSlot description for Start a continuous web job for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -29313,7 +27826,7 @@ func (client AppsClient) StartContinuousWebJobSlotPreparer(ctx context.Context, "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29345,7 +27858,7 @@ func (client AppsClient) StartContinuousWebJobSlotResponder(resp *http.Response) return } -// StartNetworkTrace start capturing network packets for the site. +// StartNetworkTrace description for Start capturing network packets for the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -29394,7 +27907,7 @@ func (client AppsClient) StartNetworkTracePreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29442,7 +27955,7 @@ func (client AppsClient) StartNetworkTraceResponder(resp *http.Response) (result return } -// StartNetworkTraceSlot start capturing network packets for the site. +// StartNetworkTraceSlot description for Start capturing network packets for the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -29493,7 +28006,7 @@ func (client AppsClient) StartNetworkTraceSlotPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29541,7 +28054,7 @@ func (client AppsClient) StartNetworkTraceSlotResponder(resp *http.Response) (re return } -// StartSlot starts an app (or deployment slot, if specified). +// StartSlot description for Starts an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -29595,7 +28108,7 @@ func (client AppsClient) StartSlotPreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29627,7 +28140,7 @@ func (client AppsClient) StartSlotResponder(resp *http.Response) (result autores return } -// StartWebSiteNetworkTrace start capturing network packets for the site (To be deprecated). +// StartWebSiteNetworkTrace description for Start capturing network packets for the site (To be deprecated). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -29682,7 +28195,7 @@ func (client AppsClient) StartWebSiteNetworkTracePreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29724,7 +28237,7 @@ func (client AppsClient) StartWebSiteNetworkTraceResponder(resp *http.Response) return } -// StartWebSiteNetworkTraceOperation start capturing network packets for the site. +// StartWebSiteNetworkTraceOperation description for Start capturing network packets for the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -29773,7 +28286,7 @@ func (client AppsClient) StartWebSiteNetworkTraceOperationPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29821,7 +28334,7 @@ func (client AppsClient) StartWebSiteNetworkTraceOperationResponder(resp *http.R return } -// StartWebSiteNetworkTraceOperationSlot start capturing network packets for the site. +// StartWebSiteNetworkTraceOperationSlot description for Start capturing network packets for the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -29872,7 +28385,7 @@ func (client AppsClient) StartWebSiteNetworkTraceOperationSlotPreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -29920,7 +28433,7 @@ func (client AppsClient) StartWebSiteNetworkTraceOperationSlotResponder(resp *ht return } -// StartWebSiteNetworkTraceSlot start capturing network packets for the site (To be deprecated). +// StartWebSiteNetworkTraceSlot description for Start capturing network packets for the site (To be deprecated). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -29977,7 +28490,7 @@ func (client AppsClient) StartWebSiteNetworkTraceSlotPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30019,7 +28532,7 @@ func (client AppsClient) StartWebSiteNetworkTraceSlotResponder(resp *http.Respon return } -// Stop stops an app (or deployment slot, if specified). +// Stop description for Stops an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -30071,7 +28584,7 @@ func (client AppsClient) StopPreparer(ctx context.Context, resourceGroupName str "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30103,7 +28616,7 @@ func (client AppsClient) StopResponder(resp *http.Response) (result autorest.Res return } -// StopContinuousWebJob stop a continuous web job for an app, or a deployment slot. +// StopContinuousWebJob description for Stop a continuous web job for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -30157,7 +28670,7 @@ func (client AppsClient) StopContinuousWebJobPreparer(ctx context.Context, resou "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30189,7 +28702,7 @@ func (client AppsClient) StopContinuousWebJobResponder(resp *http.Response) (res return } -// StopContinuousWebJobSlot stop a continuous web job for an app, or a deployment slot. +// StopContinuousWebJobSlot description for Stop a continuous web job for an app, or a deployment slot. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site name. @@ -30246,7 +28759,7 @@ func (client AppsClient) StopContinuousWebJobSlotPreparer(ctx context.Context, r "webJobName": autorest.Encode("path", webJobName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30278,7 +28791,7 @@ func (client AppsClient) StopContinuousWebJobSlotResponder(resp *http.Response) return } -// StopNetworkTrace stop ongoing capturing network packets for the site. +// StopNetworkTrace description for Stop ongoing capturing network packets for the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -30330,7 +28843,7 @@ func (client AppsClient) StopNetworkTracePreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30362,7 +28875,7 @@ func (client AppsClient) StopNetworkTraceResponder(resp *http.Response) (result return } -// StopNetworkTraceSlot stop ongoing capturing network packets for the site. +// StopNetworkTraceSlot description for Stop ongoing capturing network packets for the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -30416,7 +28929,7 @@ func (client AppsClient) StopNetworkTraceSlotPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30448,7 +28961,7 @@ func (client AppsClient) StopNetworkTraceSlotResponder(resp *http.Response) (res return } -// StopSlot stops an app (or deployment slot, if specified). +// StopSlot description for Stops an app (or deployment slot, if specified). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -30502,7 +29015,7 @@ func (client AppsClient) StopSlotPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30534,7 +29047,7 @@ func (client AppsClient) StopSlotResponder(resp *http.Response) (result autorest return } -// StopWebSiteNetworkTrace stop ongoing capturing network packets for the site. +// StopWebSiteNetworkTrace description for Stop ongoing capturing network packets for the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -30586,7 +29099,7 @@ func (client AppsClient) StopWebSiteNetworkTracePreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30618,7 +29131,7 @@ func (client AppsClient) StopWebSiteNetworkTraceResponder(resp *http.Response) ( return } -// StopWebSiteNetworkTraceSlot stop ongoing capturing network packets for the site. +// StopWebSiteNetworkTraceSlot description for Stop ongoing capturing network packets for the site. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -30672,7 +29185,7 @@ func (client AppsClient) StopWebSiteNetworkTraceSlotPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30704,7 +29217,7 @@ func (client AppsClient) StopWebSiteNetworkTraceSlotResponder(resp *http.Respons return } -// SwapSlotSlot swaps two deployment slots of an app. +// SwapSlotSlot description for Swaps two deployment slots of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -30756,7 +29269,7 @@ func (client AppsClient) SwapSlotSlotPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30796,7 +29309,7 @@ func (client AppsClient) SwapSlotSlotResponder(resp *http.Response) (result auto return } -// SwapSlotWithProduction swaps two deployment slots of an app. +// SwapSlotWithProduction description for Swaps two deployment slots of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -30846,7 +29359,7 @@ func (client AppsClient) SwapSlotWithProductionPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -30886,177 +29399,7 @@ func (client AppsClient) SwapSlotWithProductionResponder(resp *http.Response) (r return } -// SyncFunctions syncs function trigger metadata to the management database -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the app. -func (client AppsClient) SyncFunctions(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.SyncFunctions") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "SyncFunctions", err.Error()) - } - - req, err := client.SyncFunctionsPreparer(ctx, resourceGroupName, name) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctions", nil, "Failure preparing request") - return - } - - resp, err := client.SyncFunctionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctions", resp, "Failure sending request") - return - } - - result, err = client.SyncFunctionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctions", resp, "Failure responding to request") - } - - return -} - -// SyncFunctionsPreparer prepares the SyncFunctions request. -func (client AppsClient) SyncFunctionsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/sync", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// SyncFunctionsSender sends the SyncFunctions request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) SyncFunctionsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// SyncFunctionsResponder handles the response to the SyncFunctions request. The method always -// closes the http.Response Body. -func (client AppsClient) SyncFunctionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// SyncFunctionsSlot syncs function trigger metadata to the management database -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the app. -// slot - name of the deployment slot. -func (client AppsClient) SyncFunctionsSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.SyncFunctionsSlot") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppsClient", "SyncFunctionsSlot", err.Error()) - } - - req, err := client.SyncFunctionsSlotPreparer(ctx, resourceGroupName, name, slot) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionsSlot", nil, "Failure preparing request") - return - } - - resp, err := client.SyncFunctionsSlotSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionsSlot", resp, "Failure sending request") - return - } - - result, err = client.SyncFunctionsSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppsClient", "SyncFunctionsSlot", resp, "Failure responding to request") - } - - return -} - -// SyncFunctionsSlotPreparer prepares the SyncFunctionsSlot request. -func (client AppsClient) SyncFunctionsSlotPreparer(ctx context.Context, resourceGroupName string, name string, slot string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "slot": autorest.Encode("path", slot), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/sync", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// SyncFunctionsSlotSender sends the SyncFunctionsSlot request. The method will close the -// http.Response Body if it receives an error. -func (client AppsClient) SyncFunctionsSlotSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// SyncFunctionsSlotResponder handles the response to the SyncFunctionsSlot request. The method always -// closes the http.Response Body. -func (client AppsClient) SyncFunctionsSlotResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// SyncFunctionTriggers syncs function trigger metadata to the management database +// SyncFunctionTriggers description for Syncs function trigger metadata to the scale controller // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -31108,7 +29451,7 @@ func (client AppsClient) SyncFunctionTriggersPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31140,7 +29483,7 @@ func (client AppsClient) SyncFunctionTriggersResponder(resp *http.Response) (res return } -// SyncFunctionTriggersSlot syncs function trigger metadata to the management database +// SyncFunctionTriggersSlot description for Syncs function trigger metadata to the scale controller // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -31194,7 +29537,7 @@ func (client AppsClient) SyncFunctionTriggersSlotPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31226,7 +29569,7 @@ func (client AppsClient) SyncFunctionTriggersSlotResponder(resp *http.Response) return } -// SyncRepository sync web app repository. +// SyncRepository description for Sync web app repository. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -31278,7 +29621,7 @@ func (client AppsClient) SyncRepositoryPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31310,7 +29653,7 @@ func (client AppsClient) SyncRepositoryResponder(resp *http.Response) (result au return } -// SyncRepositorySlot sync web app repository. +// SyncRepositorySlot description for Sync web app repository. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -31364,7 +29707,7 @@ func (client AppsClient) SyncRepositorySlotPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31396,7 +29739,8 @@ func (client AppsClient) SyncRepositorySlotResponder(resp *http.Response) (resul return } -// Update creates a new web, mobile, or API app in an existing resource group, or updates an existing app. +// Update description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing +// app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - unique name of the app to create or update. To create or update a deployment slot, use the {slot} @@ -31450,7 +29794,7 @@ func (client AppsClient) UpdatePreparer(ctx context.Context, resourceGroupName s "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31485,7 +29829,7 @@ func (client AppsClient) UpdateResponder(resp *http.Response) (result Site, err return } -// UpdateApplicationSettings replaces the application settings of an app. +// UpdateApplicationSettings description for Replaces the application settings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -31538,7 +29882,7 @@ func (client AppsClient) UpdateApplicationSettingsPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31573,7 +29917,7 @@ func (client AppsClient) UpdateApplicationSettingsResponder(resp *http.Response) return } -// UpdateApplicationSettingsSlot replaces the application settings of an app. +// UpdateApplicationSettingsSlot description for Replaces the application settings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -31629,7 +29973,7 @@ func (client AppsClient) UpdateApplicationSettingsSlotPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31664,7 +30008,7 @@ func (client AppsClient) UpdateApplicationSettingsSlotResponder(resp *http.Respo return } -// UpdateAuthSettings updates the Authentication / Authorization settings associated with web app. +// UpdateAuthSettings description for Updates the Authentication / Authorization settings associated with web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -31717,7 +30061,7 @@ func (client AppsClient) UpdateAuthSettingsPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31752,7 +30096,7 @@ func (client AppsClient) UpdateAuthSettingsResponder(resp *http.Response) (resul return } -// UpdateAuthSettingsSlot updates the Authentication / Authorization settings associated with web app. +// UpdateAuthSettingsSlot description for Updates the Authentication / Authorization settings associated with web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -31807,7 +30151,7 @@ func (client AppsClient) UpdateAuthSettingsSlotPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31842,7 +30186,7 @@ func (client AppsClient) UpdateAuthSettingsSlotResponder(resp *http.Response) (r return } -// UpdateAzureStorageAccounts updates the Azure storage account configurations of an app. +// UpdateAzureStorageAccounts description for Updates the Azure storage account configurations of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -31895,7 +30239,7 @@ func (client AppsClient) UpdateAzureStorageAccountsPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -31930,7 +30274,7 @@ func (client AppsClient) UpdateAzureStorageAccountsResponder(resp *http.Response return } -// UpdateAzureStorageAccountsSlot updates the Azure storage account configurations of an app. +// UpdateAzureStorageAccountsSlot description for Updates the Azure storage account configurations of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -31986,7 +30330,7 @@ func (client AppsClient) UpdateAzureStorageAccountsSlotPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32021,7 +30365,7 @@ func (client AppsClient) UpdateAzureStorageAccountsSlotResponder(resp *http.Resp return } -// UpdateBackupConfiguration updates the backup configuration of an app. +// UpdateBackupConfiguration description for Updates the backup configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32083,7 +30427,7 @@ func (client AppsClient) UpdateBackupConfigurationPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32118,7 +30462,7 @@ func (client AppsClient) UpdateBackupConfigurationResponder(resp *http.Response) return } -// UpdateBackupConfigurationSlot updates the backup configuration of an app. +// UpdateBackupConfigurationSlot description for Updates the backup configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32183,7 +30527,7 @@ func (client AppsClient) UpdateBackupConfigurationSlotPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32218,7 +30562,7 @@ func (client AppsClient) UpdateBackupConfigurationSlotResponder(resp *http.Respo return } -// UpdateConfiguration updates the configuration of an app. +// UpdateConfiguration description for Updates the configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32271,7 +30615,7 @@ func (client AppsClient) UpdateConfigurationPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32306,7 +30650,7 @@ func (client AppsClient) UpdateConfigurationResponder(resp *http.Response) (resu return } -// UpdateConfigurationSlot updates the configuration of an app. +// UpdateConfigurationSlot description for Updates the configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32362,7 +30706,7 @@ func (client AppsClient) UpdateConfigurationSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32397,7 +30741,7 @@ func (client AppsClient) UpdateConfigurationSlotResponder(resp *http.Response) ( return } -// UpdateConnectionStrings replaces the connection strings of an app. +// UpdateConnectionStrings description for Replaces the connection strings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32450,7 +30794,7 @@ func (client AppsClient) UpdateConnectionStringsPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32485,7 +30829,7 @@ func (client AppsClient) UpdateConnectionStringsResponder(resp *http.Response) ( return } -// UpdateConnectionStringsSlot replaces the connection strings of an app. +// UpdateConnectionStringsSlot description for Replaces the connection strings of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32541,7 +30885,7 @@ func (client AppsClient) UpdateConnectionStringsSlotPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32576,7 +30920,7 @@ func (client AppsClient) UpdateConnectionStringsSlotResponder(resp *http.Respons return } -// UpdateDiagnosticLogsConfig updates the logging configuration of an app. +// UpdateDiagnosticLogsConfig description for Updates the logging configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32645,7 +30989,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfigPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32680,7 +31024,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfigResponder(resp *http.Response return } -// UpdateDiagnosticLogsConfigSlot updates the logging configuration of an app. +// UpdateDiagnosticLogsConfigSlot description for Updates the logging configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32752,7 +31096,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSlotPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32787,8 +31131,8 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSlotResponder(resp *http.Resp return } -// UpdateDomainOwnershipIdentifier creates a domain ownership identifier for web app, or updates an existing ownership -// identifier. +// UpdateDomainOwnershipIdentifier description for Creates a domain ownership identifier for web app, or updates an +// existing ownership identifier. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32843,7 +31187,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32878,8 +31222,8 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierResponder(resp *http.Res return } -// UpdateDomainOwnershipIdentifierSlot creates a domain ownership identifier for web app, or updates an existing -// ownership identifier. +// UpdateDomainOwnershipIdentifierSlot description for Creates a domain ownership identifier for web app, or updates an +// existing ownership identifier. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -32937,7 +31281,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierSlotPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -32972,7 +31316,7 @@ func (client AppsClient) UpdateDomainOwnershipIdentifierSlotResponder(resp *http return } -// UpdateHybridConnection creates a new Hybrid Connection using a Service Bus relay. +// UpdateHybridConnection description for Creates a new Hybrid Connection using a Service Bus relay. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -33029,7 +31373,7 @@ func (client AppsClient) UpdateHybridConnectionPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33064,7 +31408,7 @@ func (client AppsClient) UpdateHybridConnectionResponder(resp *http.Response) (r return } -// UpdateHybridConnectionSlot creates a new Hybrid Connection using a Service Bus relay. +// UpdateHybridConnectionSlot description for Creates a new Hybrid Connection using a Service Bus relay. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - the name of the web app. @@ -33123,7 +31467,7 @@ func (client AppsClient) UpdateHybridConnectionSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33158,7 +31502,7 @@ func (client AppsClient) UpdateHybridConnectionSlotResponder(resp *http.Response return } -// UpdateMetadata replaces the metadata of an app. +// UpdateMetadata description for Replaces the metadata of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -33211,7 +31555,7 @@ func (client AppsClient) UpdateMetadataPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33246,7 +31590,7 @@ func (client AppsClient) UpdateMetadataResponder(resp *http.Response) (result St return } -// UpdateMetadataSlot replaces the metadata of an app. +// UpdateMetadataSlot description for Replaces the metadata of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -33302,7 +31646,7 @@ func (client AppsClient) UpdateMetadataSlotPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33337,7 +31681,7 @@ func (client AppsClient) UpdateMetadataSlotResponder(resp *http.Response) (resul return } -// UpdatePremierAddOn updates a named add-on of an app. +// UpdatePremierAddOn description for Updates a named add-on of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -33392,7 +31736,7 @@ func (client AppsClient) UpdatePremierAddOnPreparer(ctx context.Context, resourc "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33427,7 +31771,7 @@ func (client AppsClient) UpdatePremierAddOnResponder(resp *http.Response) (resul return } -// UpdatePremierAddOnSlot updates a named add-on of an app. +// UpdatePremierAddOnSlot description for Updates a named add-on of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -33485,7 +31829,7 @@ func (client AppsClient) UpdatePremierAddOnSlotPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33520,8 +31864,8 @@ func (client AppsClient) UpdatePremierAddOnSlotResponder(resp *http.Response) (r return } -// UpdateRelayServiceConnection creates a new hybrid connection configuration (PUT), or updates an existing one -// (PATCH). +// UpdateRelayServiceConnection description for Creates a new hybrid connection configuration (PUT), or updates an +// existing one (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -33576,7 +31920,7 @@ func (client AppsClient) UpdateRelayServiceConnectionPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33611,8 +31955,8 @@ func (client AppsClient) UpdateRelayServiceConnectionResponder(resp *http.Respon return } -// UpdateRelayServiceConnectionSlot creates a new hybrid connection configuration (PUT), or updates an existing one -// (PATCH). +// UpdateRelayServiceConnectionSlot description for Creates a new hybrid connection configuration (PUT), or updates an +// existing one (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -33670,7 +32014,7 @@ func (client AppsClient) UpdateRelayServiceConnectionSlotPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33705,7 +32049,7 @@ func (client AppsClient) UpdateRelayServiceConnectionSlotResponder(resp *http.Re return } -// UpdateSitePushSettings updates the Push settings associated with web app. +// UpdateSitePushSettings description for Updates the Push settings associated with web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -33761,7 +32105,7 @@ func (client AppsClient) UpdateSitePushSettingsPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33796,7 +32140,7 @@ func (client AppsClient) UpdateSitePushSettingsResponder(resp *http.Response) (r return } -// UpdateSitePushSettingsSlot updates the Push settings associated with web app. +// UpdateSitePushSettingsSlot description for Updates the Push settings associated with web app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -33854,7 +32198,7 @@ func (client AppsClient) UpdateSitePushSettingsSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33889,7 +32233,8 @@ func (client AppsClient) UpdateSitePushSettingsSlotResponder(resp *http.Response return } -// UpdateSlot creates a new web, mobile, or API app in an existing resource group, or updates an existing app. +// UpdateSlot description for Creates a new web, mobile, or API app in an existing resource group, or updates an +// existing app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - unique name of the app to create or update. To create or update a deployment slot, use the {slot} @@ -33946,7 +32291,7 @@ func (client AppsClient) UpdateSlotPreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -33981,8 +32326,8 @@ func (client AppsClient) UpdateSlotResponder(resp *http.Response) (result Site, return } -// UpdateSlotConfigurationNames updates the names of application settings and connection string that remain with the -// slot during swap operation. +// UpdateSlotConfigurationNames description for Updates the names of application settings and connection string that +// remain with the slot during swap operation. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -34035,7 +32380,7 @@ func (client AppsClient) UpdateSlotConfigurationNamesPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -34070,7 +32415,7 @@ func (client AppsClient) UpdateSlotConfigurationNamesResponder(resp *http.Respon return } -// UpdateSourceControl updates the source control configuration of an app. +// UpdateSourceControl description for Updates the source control configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -34123,7 +32468,7 @@ func (client AppsClient) UpdateSourceControlPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -34158,7 +32503,7 @@ func (client AppsClient) UpdateSourceControlResponder(resp *http.Response) (resu return } -// UpdateSourceControlSlot updates the source control configuration of an app. +// UpdateSourceControlSlot description for Updates the source control configuration of an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -34214,7 +32559,7 @@ func (client AppsClient) UpdateSourceControlSlotPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -34249,9 +32594,9 @@ func (client AppsClient) UpdateSourceControlSlotResponder(resp *http.Response) ( return } -// UpdateSwiftVirtualNetworkConnection integrates this Web App with a Virtual Network. This requires that 1) -// "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been -// delegated, and is not +// UpdateSwiftVirtualNetworkConnection description for Integrates this Web App with a Virtual Network. This requires +// that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already +// been delegated, and is not // in use by another App Service Plan other than the one this App is in. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. @@ -34305,7 +32650,7 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnectionPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -34340,9 +32685,9 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnectionResponder(resp *http return } -// UpdateSwiftVirtualNetworkConnectionSlot integrates this Web App with a Virtual Network. This requires that 1) -// "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been -// delegated, and is not +// UpdateSwiftVirtualNetworkConnectionSlot description for Integrates this Web App with a Virtual Network. This +// requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has +// already been delegated, and is not // in use by another App Service Plan other than the one this App is in. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. @@ -34399,7 +32744,7 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSlotPreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -34434,8 +32779,8 @@ func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSlotResponder(resp * return } -// UpdateVnetConnection adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties -// (PATCH). +// UpdateVnetConnection description for Adds a Virtual Network connection to an app or slot (PUT) or updates the +// connection properties (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -34490,7 +32835,7 @@ func (client AppsClient) UpdateVnetConnectionPreparer(ctx context.Context, resou "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -34525,7 +32870,8 @@ func (client AppsClient) UpdateVnetConnectionResponder(resp *http.Response) (res return } -// UpdateVnetConnectionGateway adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). +// UpdateVnetConnectionGateway description for Adds a gateway to a connected Virtual Network (PUT) or updates it +// (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -34582,7 +32928,7 @@ func (client AppsClient) UpdateVnetConnectionGatewayPreparer(ctx context.Context "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -34617,7 +32963,8 @@ func (client AppsClient) UpdateVnetConnectionGatewayResponder(resp *http.Respons return } -// UpdateVnetConnectionGatewaySlot adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). +// UpdateVnetConnectionGatewaySlot description for Adds a gateway to a connected Virtual Network (PUT) or updates it +// (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -34677,7 +33024,7 @@ func (client AppsClient) UpdateVnetConnectionGatewaySlotPreparer(ctx context.Con "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -34712,8 +33059,8 @@ func (client AppsClient) UpdateVnetConnectionGatewaySlotResponder(resp *http.Res return } -// UpdateVnetConnectionSlot adds a Virtual Network connection to an app or slot (PUT) or updates the connection -// properties (PATCH). +// UpdateVnetConnectionSlot description for Adds a Virtual Network connection to an app or slot (PUT) or updates the +// connection properties (PATCH). // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the app. @@ -34771,7 +33118,7 @@ func (client AppsClient) UpdateVnetConnectionSlotPreparer(ctx context.Context, r "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/appservicecertificateorders.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/appservicecertificateorders.go index 8af6a8d62e88..0d457aba40ff 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/appservicecertificateorders.go @@ -41,7 +41,7 @@ func NewAppServiceCertificateOrdersClientWithBaseURI(baseURI string, subscriptio return AppServiceCertificateOrdersClient{NewWithBaseURI(baseURI, subscriptionID)} } -// CreateOrUpdate create or update a certificate purchase order. +// CreateOrUpdate description for Create or update a certificate purchase order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -95,7 +95,7 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdatePreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -136,7 +136,7 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdateResponder(resp *ht return } -// CreateOrUpdateCertificate creates or updates a certificate and associates with key vault secret. +// CreateOrUpdateCertificate description for Creates or updates a certificate and associates with key vault secret. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -185,7 +185,7 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdateCertificatePrepare "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -226,7 +226,7 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdateCertificateRespond return } -// Delete delete an existing certificate order. +// Delete description for Delete an existing certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -278,7 +278,7 @@ func (client AppServiceCertificateOrdersClient) DeletePreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -310,7 +310,7 @@ func (client AppServiceCertificateOrdersClient) DeleteResponder(resp *http.Respo return } -// DeleteCertificate delete the certificate associated with a certificate order. +// DeleteCertificate description for Delete the certificate associated with a certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -364,7 +364,7 @@ func (client AppServiceCertificateOrdersClient) DeleteCertificatePreparer(ctx co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -396,7 +396,7 @@ func (client AppServiceCertificateOrdersClient) DeleteCertificateResponder(resp return } -// Get get a certificate order. +// Get description for Get a certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order.. @@ -448,7 +448,7 @@ func (client AppServiceCertificateOrdersClient) GetPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -481,7 +481,7 @@ func (client AppServiceCertificateOrdersClient) GetResponder(resp *http.Response return } -// GetCertificate get the certificate associated with a certificate order. +// GetCertificate description for Get the certificate associated with a certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -535,7 +535,7 @@ func (client AppServiceCertificateOrdersClient) GetCertificatePreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -568,7 +568,7 @@ func (client AppServiceCertificateOrdersClient) GetCertificateResponder(resp *ht return } -// List list all certificate orders in a subscription. +// List description for List all certificate orders in a subscription. func (client AppServiceCertificateOrdersClient) List(ctx context.Context) (result AppServiceCertificateOrderCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceCertificateOrdersClient.List") @@ -608,7 +608,7 @@ func (client AppServiceCertificateOrdersClient) ListPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -678,7 +678,7 @@ func (client AppServiceCertificateOrdersClient) ListComplete(ctx context.Context return } -// ListByResourceGroup get certificate orders in a resource group. +// ListByResourceGroup description for Get certificate orders in a resource group. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. func (client AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AppServiceCertificateOrderCollectionPage, err error) { @@ -729,7 +729,7 @@ func (client AppServiceCertificateOrdersClient) ListByResourceGroupPreparer(ctx "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -799,7 +799,7 @@ func (client AppServiceCertificateOrdersClient) ListByResourceGroupComplete(ctx return } -// ListCertificates list all certificates associated with a certificate order. +// ListCertificates description for List all certificates associated with a certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -852,7 +852,7 @@ func (client AppServiceCertificateOrdersClient) ListCertificatesPreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -922,7 +922,7 @@ func (client AppServiceCertificateOrdersClient) ListCertificatesComplete(ctx con return } -// Reissue reissue an existing certificate order. +// Reissue description for Reissue an existing certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -975,7 +975,7 @@ func (client AppServiceCertificateOrdersClient) ReissuePreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1009,7 +1009,7 @@ func (client AppServiceCertificateOrdersClient) ReissueResponder(resp *http.Resp return } -// Renew renew an existing certificate order. +// Renew description for Renew an existing certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -1062,7 +1062,7 @@ func (client AppServiceCertificateOrdersClient) RenewPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1096,7 +1096,7 @@ func (client AppServiceCertificateOrdersClient) RenewResponder(resp *http.Respon return } -// ResendEmail resend certificate email. +// ResendEmail description for Resend certificate email. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -1148,7 +1148,7 @@ func (client AppServiceCertificateOrdersClient) ResendEmailPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1180,7 +1180,7 @@ func (client AppServiceCertificateOrdersClient) ResendEmailResponder(resp *http. return } -// ResendRequestEmails verify domain ownership for this certificate order. +// ResendRequestEmails description for Verify domain ownership for this certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -1233,7 +1233,7 @@ func (client AppServiceCertificateOrdersClient) ResendRequestEmailsPreparer(ctx "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1267,7 +1267,7 @@ func (client AppServiceCertificateOrdersClient) ResendRequestEmailsResponder(res return } -// RetrieveCertificateActions retrieve the list of certificate actions. +// RetrieveCertificateActions description for Retrieve the list of certificate actions. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the certificate order. @@ -1319,7 +1319,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateActionsPrepar "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1352,7 +1352,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateActionsRespon return } -// RetrieveCertificateEmailHistory retrieve email history. +// RetrieveCertificateEmailHistory description for Retrieve email history. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the certificate order. @@ -1404,7 +1404,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistoryP "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1437,7 +1437,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistoryR return } -// RetrieveSiteSeal verify domain ownership for this certificate order. +// RetrieveSiteSeal description for Verify domain ownership for this certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -1490,7 +1490,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveSiteSealPreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1525,7 +1525,7 @@ func (client AppServiceCertificateOrdersClient) RetrieveSiteSealResponder(resp * return } -// Update create or update a certificate purchase order. +// Update description for Create or update a certificate purchase order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -1578,7 +1578,7 @@ func (client AppServiceCertificateOrdersClient) UpdatePreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1613,7 +1613,7 @@ func (client AppServiceCertificateOrdersClient) UpdateResponder(resp *http.Respo return } -// UpdateCertificate creates or updates a certificate and associates with key vault secret. +// UpdateCertificate description for Creates or updates a certificate and associates with key vault secret. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -1668,7 +1668,7 @@ func (client AppServiceCertificateOrdersClient) UpdateCertificatePreparer(ctx co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1703,7 +1703,7 @@ func (client AppServiceCertificateOrdersClient) UpdateCertificateResponder(resp return } -// ValidatePurchaseInformation validate information for a certificate order. +// ValidatePurchaseInformation description for Validate information for a certificate order. // Parameters: // appServiceCertificateOrder - information for a certificate order. func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformation(ctx context.Context, appServiceCertificateOrder AppServiceCertificateOrder) (result autorest.Response, err error) { @@ -1755,7 +1755,7 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformationPrepa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1789,7 +1789,7 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformationRespo return } -// VerifyDomainOwnership verify domain ownership for this certificate order. +// VerifyDomainOwnership description for Verify domain ownership for this certificate order. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // certificateOrderName - name of the certificate order. @@ -1841,7 +1841,7 @@ func (client AppServiceCertificateOrdersClient) VerifyDomainOwnershipPreparer(ct "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceenvironments.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/appserviceenvironments.go similarity index 80% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceenvironments.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/appserviceenvironments.go index e8f8bafdb05c..39ee38393b90 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceenvironments.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/appserviceenvironments.go @@ -41,7 +41,7 @@ func NewAppServiceEnvironmentsClientWithBaseURI(baseURI string, subscriptionID s return AppServiceEnvironmentsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// ChangeVnet move an App Service Environment to a different VNET. +// ChangeVnet description for Move an App Service Environment to a different VNET. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -88,7 +88,7 @@ func (client AppServiceEnvironmentsClient) ChangeVnetPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -173,7 +173,7 @@ func (client AppServiceEnvironmentsClient) ChangeVnetComplete(ctx context.Contex return } -// CreateOrUpdate create or update an App Service Environment. +// CreateOrUpdate description for Create or update an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -227,7 +227,7 @@ func (client AppServiceEnvironmentsClient) CreateOrUpdatePreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -261,14 +261,14 @@ func (client AppServiceEnvironmentsClient) CreateOrUpdateResponder(resp *http.Re err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } -// CreateOrUpdateMultiRolePool create or update a multi-role pool. +// CreateOrUpdateMultiRolePool description for Create or update a multi-role pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -315,7 +315,7 @@ func (client AppServiceEnvironmentsClient) CreateOrUpdateMultiRolePoolPreparer(c "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -349,14 +349,14 @@ func (client AppServiceEnvironmentsClient) CreateOrUpdateMultiRolePoolResponder( err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } -// CreateOrUpdateWorkerPool create or update a worker pool. +// CreateOrUpdateWorkerPool description for Create or update a worker pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -405,7 +405,7 @@ func (client AppServiceEnvironmentsClient) CreateOrUpdateWorkerPoolPreparer(ctx "workerPoolName": autorest.Encode("path", workerPoolName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -439,14 +439,14 @@ func (client AppServiceEnvironmentsClient) CreateOrUpdateWorkerPoolResponder(res err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } -// Delete delete an App Service Environment. +// Delete description for Delete an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -494,7 +494,7 @@ func (client AppServiceEnvironmentsClient) DeletePreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -529,13 +529,13 @@ func (client AppServiceEnvironmentsClient) DeleteResponder(resp *http.Response) err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp return } -// Get get the properties of an App Service Environment. +// Get description for Get the properties of an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -587,7 +587,7 @@ func (client AppServiceEnvironmentsClient) GetPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -620,7 +620,7 @@ func (client AppServiceEnvironmentsClient) GetResponder(resp *http.Response) (re return } -// GetDiagnosticsItem get a diagnostics item for an App Service Environment. +// GetDiagnosticsItem description for Get a diagnostics item for an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -674,7 +674,7 @@ func (client AppServiceEnvironmentsClient) GetDiagnosticsItemPreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -707,8 +707,8 @@ func (client AppServiceEnvironmentsClient) GetDiagnosticsItemResponder(resp *htt return } -// GetInboundNetworkDependenciesEndpoints get the network endpoints of all inbound dependencies of an App Service -// Environment. +// GetInboundNetworkDependenciesEndpoints description for Get the network endpoints of all inbound dependencies of an +// App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -761,7 +761,7 @@ func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoint "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -831,7 +831,7 @@ func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoint return } -// GetMultiRolePool get properties of a multi-role pool. +// GetMultiRolePool description for Get properties of a multi-role pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -883,7 +883,7 @@ func (client AppServiceEnvironmentsClient) GetMultiRolePoolPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -916,8 +916,8 @@ func (client AppServiceEnvironmentsClient) GetMultiRolePoolResponder(resp *http. return } -// GetOutboundNetworkDependenciesEndpoints get the network endpoints of all outbound dependencies of an App Service -// Environment. +// GetOutboundNetworkDependenciesEndpoints description for Get the network endpoints of all outbound dependencies of an +// App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -970,7 +970,7 @@ func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoin "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1040,7 +1040,92 @@ func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoin return } -// GetWorkerPool get properties of a worker pool. +// GetVipInfo description for Get IP addresses assigned to an App Service Environment. +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the App Service Environment. +func (client AppServiceEnvironmentsClient) GetVipInfo(ctx context.Context, resourceGroupName string, name string) (result AddressResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.GetVipInfo") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("web.AppServiceEnvironmentsClient", "GetVipInfo", err.Error()) + } + + req, err := client.GetVipInfoPreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetVipInfo", nil, "Failure preparing request") + return + } + + resp, err := client.GetVipInfoSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetVipInfo", resp, "Failure sending request") + return + } + + result, err = client.GetVipInfoResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetVipInfo", resp, "Failure responding to request") + } + + return +} + +// GetVipInfoPreparer prepares the GetVipInfo request. +func (client AppServiceEnvironmentsClient) GetVipInfoPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-08-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetVipInfoSender sends the GetVipInfo request. The method will close the +// http.Response Body if it receives an error. +func (client AppServiceEnvironmentsClient) GetVipInfoSender(req *http.Request) (*http.Response, error) { + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) + return autorest.SendWithSender(client, req, sd...) +} + +// GetVipInfoResponder handles the response to the GetVipInfo request. The method always +// closes the http.Response Body. +func (client AppServiceEnvironmentsClient) GetVipInfoResponder(resp *http.Response) (result AddressResponse, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetWorkerPool description for Get properties of a worker pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -1094,7 +1179,7 @@ func (client AppServiceEnvironmentsClient) GetWorkerPoolPreparer(ctx context.Con "workerPoolName": autorest.Encode("path", workerPoolName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1127,7 +1212,7 @@ func (client AppServiceEnvironmentsClient) GetWorkerPoolResponder(resp *http.Res return } -// List get all App Service Environments for a subscription. +// List description for Get all App Service Environments for a subscription. func (client AppServiceEnvironmentsClient) List(ctx context.Context) (result AppServiceEnvironmentCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.List") @@ -1167,7 +1252,7 @@ func (client AppServiceEnvironmentsClient) ListPreparer(ctx context.Context) (*h "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1237,7 +1322,7 @@ func (client AppServiceEnvironmentsClient) ListComplete(ctx context.Context) (re return } -// ListAppServicePlans get all App Service plans in an App Service Environment. +// ListAppServicePlans description for Get all App Service plans in an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -1290,7 +1375,7 @@ func (client AppServiceEnvironmentsClient) ListAppServicePlansPreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1360,7 +1445,7 @@ func (client AppServiceEnvironmentsClient) ListAppServicePlansComplete(ctx conte return } -// ListByResourceGroup get all App Service Environments in a resource group. +// ListByResourceGroup description for Get all App Service Environments in a resource group. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. func (client AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AppServiceEnvironmentCollectionPage, err error) { @@ -1411,7 +1496,7 @@ func (client AppServiceEnvironmentsClient) ListByResourceGroupPreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1481,7 +1566,7 @@ func (client AppServiceEnvironmentsClient) ListByResourceGroupComplete(ctx conte return } -// ListCapacities get the used, available, and total worker capacity an App Service Environment. +// ListCapacities description for Get the used, available, and total worker capacity an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -1534,7 +1619,7 @@ func (client AppServiceEnvironmentsClient) ListCapacitiesPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1604,7 +1689,7 @@ func (client AppServiceEnvironmentsClient) ListCapacitiesComplete(ctx context.Co return } -// ListDiagnostics get diagnostic information for an App Service Environment. +// ListDiagnostics description for Get diagnostic information for an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -1656,7 +1741,7 @@ func (client AppServiceEnvironmentsClient) ListDiagnosticsPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1689,17 +1774,18 @@ func (client AppServiceEnvironmentsClient) ListDiagnosticsResponder(resp *http.R return } -// ListMetricDefinitions get global metric definitions of an App Service Environment. +// ListMultiRoleMetricDefinitions description for Get metric definitions for a multi-role pool of an App Service +// Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. -func (client AppServiceEnvironmentsClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, name string) (result MetricDefinition, err error) { +func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context.Context, resourceGroupName string, name string) (result ResourceMetricDefinitionCollectionPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMetricDefinitions") + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRoleMetricDefinitions") defer func() { sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode + if result.rmdc.Response.Response != nil { + sc = result.rmdc.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -1709,39 +1795,40 @@ func (client AppServiceEnvironmentsClient) ListMetricDefinitions(ctx context.Con Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMetricDefinitions", err.Error()) + return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", err.Error()) } - req, err := client.ListMetricDefinitionsPreparer(ctx, resourceGroupName, name) + result.fn = client.listMultiRoleMetricDefinitionsNextResults + req, err := client.ListMultiRoleMetricDefinitionsPreparer(ctx, resourceGroupName, name) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetricDefinitions", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", nil, "Failure preparing request") return } - resp, err := client.ListMetricDefinitionsSender(req) + resp, err := client.ListMultiRoleMetricDefinitionsSender(req) if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetricDefinitions", resp, "Failure sending request") + result.rmdc.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", resp, "Failure sending request") return } - result, err = client.ListMetricDefinitionsResponder(resp) + result.rmdc, err = client.ListMultiRoleMetricDefinitionsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetricDefinitions", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", resp, "Failure responding to request") } return } -// ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request. -func (client AppServiceEnvironmentsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { +// ListMultiRoleMetricDefinitionsPreparer prepares the ListMultiRoleMetricDefinitions request. +func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { pathParameters := map[string]interface{}{ "name": autorest.Encode("path", name), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1749,21 +1836,21 @@ func (client AppServiceEnvironmentsClient) ListMetricDefinitionsPreparer(ctx con preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metricdefinitions", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the +// ListMultiRoleMetricDefinitionsSender sends the ListMultiRoleMetricDefinitions request. The method will close the // http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error) { +func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsSender(req *http.Request) (*http.Response, error) { sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) return autorest.SendWithSender(client, req, sd...) } -// ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always +// ListMultiRoleMetricDefinitionsResponder handles the response to the ListMultiRoleMetricDefinitions request. The method always // closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinition, err error) { +func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1774,21 +1861,56 @@ func (client AppServiceEnvironmentsClient) ListMetricDefinitionsResponder(resp * return } -// ListMetrics get global metrics of an App Service Environment. +// listMultiRoleMetricDefinitionsNextResults retrieves the next set of results, if any. +func (client AppServiceEnvironmentsClient) listMultiRoleMetricDefinitionsNextResults(ctx context.Context, lastResults ResourceMetricDefinitionCollection) (result ResourceMetricDefinitionCollection, err error) { + req, err := lastResults.resourceMetricDefinitionCollectionPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListMultiRoleMetricDefinitionsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", resp, "Failure sending next results request") + } + result, err = client.ListMultiRoleMetricDefinitionsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListMultiRoleMetricDefinitionsComplete enumerates all values, automatically crossing page boundaries as required. +func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsComplete(ctx context.Context, resourceGroupName string, name string) (result ResourceMetricDefinitionCollectionIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRoleMetricDefinitions") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListMultiRoleMetricDefinitions(ctx, resourceGroupName, name) + return +} + +// ListMultiRolePoolInstanceMetricDefinitions description for Get metric definitions for a specific instance of a +// multi-role pool of an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. -// details - specify true to include instance details. The default is false. -// filter - return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: -// $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and -// endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. -func (client AppServiceEnvironmentsClient) ListMetrics(ctx context.Context, resourceGroupName string, name string, details *bool, filter string) (result ResourceMetricCollectionPage, err error) { +// instance - name of the instance in the multi-role pool. +func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions(ctx context.Context, resourceGroupName string, name string, instance string) (result ResourceMetricDefinitionCollectionPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMetrics") + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePoolInstanceMetricDefinitions") defer func() { sc := -1 - if result.rmc.Response.Response != nil { - sc = result.rmc.Response.Response.StatusCode + if result.rmdc.Response.Response != nil { + sc = result.rmdc.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -1798,68 +1920,63 @@ func (client AppServiceEnvironmentsClient) ListMetrics(ctx context.Context, reso Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMetrics", err.Error()) + return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", err.Error()) } - result.fn = client.listMetricsNextResults - req, err := client.ListMetricsPreparer(ctx, resourceGroupName, name, details, filter) + result.fn = client.listMultiRolePoolInstanceMetricDefinitionsNextResults + req, err := client.ListMultiRolePoolInstanceMetricDefinitionsPreparer(ctx, resourceGroupName, name, instance) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetrics", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", nil, "Failure preparing request") return } - resp, err := client.ListMetricsSender(req) + resp, err := client.ListMultiRolePoolInstanceMetricDefinitionsSender(req) if err != nil { - result.rmc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetrics", resp, "Failure sending request") + result.rmdc.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", resp, "Failure sending request") return } - result.rmc, err = client.ListMetricsResponder(resp) + result.rmdc, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMetrics", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", resp, "Failure responding to request") } return } -// ListMetricsPreparer prepares the ListMetrics request. -func (client AppServiceEnvironmentsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, name string, details *bool, filter string) (*http.Request, error) { +// ListMultiRolePoolInstanceMetricDefinitionsPreparer prepares the ListMultiRolePoolInstanceMetricDefinitions request. +func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, name string, instance string) (*http.Request, error) { pathParameters := map[string]interface{}{ + "instance": autorest.Encode("path", instance), "name": autorest.Encode("path", name), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } - if details != nil { - queryParameters["details"] = autorest.Encode("query", *details) - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metrics", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListMetricsSender sends the ListMetrics request. The method will close the +// ListMultiRolePoolInstanceMetricDefinitionsSender sends the ListMultiRolePoolInstanceMetricDefinitions request. The method will close the // http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListMetricsSender(req *http.Request) (*http.Response, error) { +func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsSender(req *http.Request) (*http.Response, error) { sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) return autorest.SendWithSender(client, req, sd...) } -// ListMetricsResponder handles the response to the ListMetrics request. The method always +// ListMultiRolePoolInstanceMetricDefinitionsResponder handles the response to the ListMultiRolePoolInstanceMetricDefinitions request. The method always // closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { +func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1870,31 +1987,31 @@ func (client AppServiceEnvironmentsClient) ListMetricsResponder(resp *http.Respo return } -// listMetricsNextResults retrieves the next set of results, if any. -func (client AppServiceEnvironmentsClient) listMetricsNextResults(ctx context.Context, lastResults ResourceMetricCollection) (result ResourceMetricCollection, err error) { - req, err := lastResults.resourceMetricCollectionPreparer(ctx) +// listMultiRolePoolInstanceMetricDefinitionsNextResults retrieves the next set of results, if any. +func (client AppServiceEnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsNextResults(ctx context.Context, lastResults ResourceMetricDefinitionCollection) (result ResourceMetricDefinitionCollection, err error) { + req, err := lastResults.resourceMetricDefinitionCollectionPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMetricsNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", nil, "Failure preparing next results request") } if req == nil { return } - resp, err := client.ListMetricsSender(req) + resp, err := client.ListMultiRolePoolInstanceMetricDefinitionsSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMetricsNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", resp, "Failure sending next results request") } - result, err = client.ListMetricsResponder(resp) + result, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMetricsNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") } return } -// ListMetricsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServiceEnvironmentsClient) ListMetricsComplete(ctx context.Context, resourceGroupName string, name string, details *bool, filter string) (result ResourceMetricCollectionIterator, err error) { +// ListMultiRolePoolInstanceMetricDefinitionsComplete enumerates all values, automatically crossing page boundaries as required. +func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsComplete(ctx context.Context, resourceGroupName string, name string, instance string) (result ResourceMetricDefinitionCollectionIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMetrics") + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePoolInstanceMetricDefinitions") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -1903,21 +2020,21 @@ func (client AppServiceEnvironmentsClient) ListMetricsComplete(ctx context.Conte tracing.EndSpan(ctx, sc, err) }() } - result.page, err = client.ListMetrics(ctx, resourceGroupName, name, details, filter) + result.page, err = client.ListMultiRolePoolInstanceMetricDefinitions(ctx, resourceGroupName, name, instance) return } -// ListMultiRoleMetricDefinitions get metric definitions for a multi-role pool of an App Service Environment. +// ListMultiRolePools description for Get all multi-role pools. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context.Context, resourceGroupName string, name string) (result ResourceMetricDefinitionCollectionPage, err error) { +func (client AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, resourceGroupName string, name string) (result WorkerPoolCollectionPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRoleMetricDefinitions") + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePools") defer func() { sc := -1 - if result.rmdc.Response.Response != nil { - sc = result.rmdc.Response.Response.StatusCode + if result.wpc.Response.Response != nil { + sc = result.wpc.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -1927,40 +2044,40 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx co Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", err.Error()) + return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRolePools", err.Error()) } - result.fn = client.listMultiRoleMetricDefinitionsNextResults - req, err := client.ListMultiRoleMetricDefinitionsPreparer(ctx, resourceGroupName, name) + result.fn = client.listMultiRolePoolsNextResults + req, err := client.ListMultiRolePoolsPreparer(ctx, resourceGroupName, name) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", nil, "Failure preparing request") return } - resp, err := client.ListMultiRoleMetricDefinitionsSender(req) + resp, err := client.ListMultiRolePoolsSender(req) if err != nil { - result.rmdc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", resp, "Failure sending request") + result.wpc.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", resp, "Failure sending request") return } - result.rmdc, err = client.ListMultiRoleMetricDefinitionsResponder(resp) + result.wpc, err = client.ListMultiRolePoolsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetricDefinitions", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", resp, "Failure responding to request") } return } -// ListMultiRoleMetricDefinitionsPreparer prepares the ListMultiRoleMetricDefinitions request. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { +// ListMultiRolePoolsPreparer prepares the ListMultiRolePools request. +func (client AppServiceEnvironmentsClient) ListMultiRolePoolsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { pathParameters := map[string]interface{}{ "name": autorest.Encode("path", name), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1968,21 +2085,21 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsPrepare preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListMultiRoleMetricDefinitionsSender sends the ListMultiRoleMetricDefinitions request. The method will close the +// ListMultiRolePoolsSender sends the ListMultiRolePools request. The method will close the // http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsSender(req *http.Request) (*http.Response, error) { +func (client AppServiceEnvironmentsClient) ListMultiRolePoolsSender(req *http.Request) (*http.Response, error) { sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) return autorest.SendWithSender(client, req, sd...) } -// ListMultiRoleMetricDefinitionsResponder handles the response to the ListMultiRoleMetricDefinitions request. The method always +// ListMultiRolePoolsResponder handles the response to the ListMultiRolePools request. The method always // closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { +func (client AppServiceEnvironmentsClient) ListMultiRolePoolsResponder(resp *http.Response) (result WorkerPoolCollection, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1993,31 +2110,31 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsRespond return } -// listMultiRoleMetricDefinitionsNextResults retrieves the next set of results, if any. -func (client AppServiceEnvironmentsClient) listMultiRoleMetricDefinitionsNextResults(ctx context.Context, lastResults ResourceMetricDefinitionCollection) (result ResourceMetricDefinitionCollection, err error) { - req, err := lastResults.resourceMetricDefinitionCollectionPreparer(ctx) +// listMultiRolePoolsNextResults retrieves the next set of results, if any. +func (client AppServiceEnvironmentsClient) listMultiRolePoolsNextResults(ctx context.Context, lastResults WorkerPoolCollection) (result WorkerPoolCollection, err error) { + req, err := lastResults.workerPoolCollectionPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", nil, "Failure preparing next results request") } if req == nil { return } - resp, err := client.ListMultiRoleMetricDefinitionsSender(req) + resp, err := client.ListMultiRolePoolsSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", resp, "Failure sending next results request") } - result, err = client.ListMultiRoleMetricDefinitionsResponder(resp) + result, err = client.ListMultiRolePoolsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricDefinitionsNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", resp, "Failure responding to next results request") } return } -// ListMultiRoleMetricDefinitionsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsComplete(ctx context.Context, resourceGroupName string, name string) (result ResourceMetricDefinitionCollectionIterator, err error) { +// ListMultiRolePoolsComplete enumerates all values, automatically crossing page boundaries as required. +func (client AppServiceEnvironmentsClient) ListMultiRolePoolsComplete(ctx context.Context, resourceGroupName string, name string) (result WorkerPoolCollectionIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRoleMetricDefinitions") + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePools") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -2026,28 +2143,21 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitionsComplet tracing.EndSpan(ctx, sc, err) }() } - result.page, err = client.ListMultiRoleMetricDefinitions(ctx, resourceGroupName, name) + result.page, err = client.ListMultiRolePools(ctx, resourceGroupName, name) return } -// ListMultiRoleMetrics get metrics for a multi-role pool of an App Service Environment. +// ListMultiRolePoolSkus description for Get available SKUs for scaling a multi-role pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. -// startTime - beginning time of the metrics query. -// endTime - end time of the metrics query. -// timeGrain - time granularity of the metrics query. -// details - specify true to include instance details. The default is false. -// filter - return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: -// $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and -// endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetrics(ctx context.Context, resourceGroupName string, name string, startTime string, endTime string, timeGrain string, details *bool, filter string) (result ResourceMetricCollectionPage, err error) { +func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, resourceGroupName string, name string) (result SkuInfoCollectionPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRoleMetrics") + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePoolSkus") defer func() { sc := -1 - if result.rmc.Response.Response != nil { - sc = result.rmc.Response.Response.StatusCode + if result.sic.Response.Response != nil { + sc = result.sic.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -2057,543 +2167,26 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleMetrics(ctx context.Cont Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRoleMetrics", err.Error()) + return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", err.Error()) } - result.fn = client.listMultiRoleMetricsNextResults - req, err := client.ListMultiRoleMetricsPreparer(ctx, resourceGroupName, name, startTime, endTime, timeGrain, details, filter) + result.fn = client.listMultiRolePoolSkusNextResults + req, err := client.ListMultiRolePoolSkusPreparer(ctx, resourceGroupName, name) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetrics", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", nil, "Failure preparing request") return } - resp, err := client.ListMultiRoleMetricsSender(req) + resp, err := client.ListMultiRolePoolSkusSender(req) if err != nil { - result.rmc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetrics", resp, "Failure sending request") + result.sic.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", resp, "Failure sending request") return } - result.rmc, err = client.ListMultiRoleMetricsResponder(resp) + result.sic, err = client.ListMultiRolePoolSkusResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRoleMetrics", resp, "Failure responding to request") - } - - return -} - -// ListMultiRoleMetricsPreparer prepares the ListMultiRoleMetrics request. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetricsPreparer(ctx context.Context, resourceGroupName string, name string, startTime string, endTime string, timeGrain string, details *bool, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(startTime) > 0 { - queryParameters["startTime"] = autorest.Encode("query", startTime) - } - if len(endTime) > 0 { - queryParameters["endTime"] = autorest.Encode("query", endTime) - } - if len(timeGrain) > 0 { - queryParameters["timeGrain"] = autorest.Encode("query", timeGrain) - } - if details != nil { - queryParameters["details"] = autorest.Encode("query", *details) - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metrics", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMultiRoleMetricsSender sends the ListMultiRoleMetrics request. The method will close the -// http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetricsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMultiRoleMetricsResponder handles the response to the ListMultiRoleMetrics request. The method always -// closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMultiRoleMetricsNextResults retrieves the next set of results, if any. -func (client AppServiceEnvironmentsClient) listMultiRoleMetricsNextResults(ctx context.Context, lastResults ResourceMetricCollection) (result ResourceMetricCollection, err error) { - req, err := lastResults.resourceMetricCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMultiRoleMetricsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMultiRoleMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRoleMetricsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMultiRoleMetricsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServiceEnvironmentsClient) ListMultiRoleMetricsComplete(ctx context.Context, resourceGroupName string, name string, startTime string, endTime string, timeGrain string, details *bool, filter string) (result ResourceMetricCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRoleMetrics") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMultiRoleMetrics(ctx, resourceGroupName, name, startTime, endTime, timeGrain, details, filter) - return -} - -// ListMultiRolePoolInstanceMetricDefinitions get metric definitions for a specific instance of a multi-role pool of an -// App Service Environment. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the App Service Environment. -// instance - name of the instance in the multi-role pool. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions(ctx context.Context, resourceGroupName string, name string, instance string) (result ResourceMetricDefinitionCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePoolInstanceMetricDefinitions") - defer func() { - sc := -1 - if result.rmdc.Response.Response != nil { - sc = result.rmdc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", err.Error()) - } - - result.fn = client.listMultiRolePoolInstanceMetricDefinitionsNextResults - req, err := client.ListMultiRolePoolInstanceMetricDefinitionsPreparer(ctx, resourceGroupName, name, instance) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", nil, "Failure preparing request") - return - } - - resp, err := client.ListMultiRolePoolInstanceMetricDefinitionsSender(req) - if err != nil { - result.rmdc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", resp, "Failure sending request") - return - } - - result.rmdc, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetricDefinitions", resp, "Failure responding to request") - } - - return -} - -// ListMultiRolePoolInstanceMetricDefinitionsPreparer prepares the ListMultiRolePoolInstanceMetricDefinitions request. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, name string, instance string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "instance": autorest.Encode("path", instance), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMultiRolePoolInstanceMetricDefinitionsSender sends the ListMultiRolePoolInstanceMetricDefinitions request. The method will close the -// http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMultiRolePoolInstanceMetricDefinitionsResponder handles the response to the ListMultiRolePoolInstanceMetricDefinitions request. The method always -// closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMultiRolePoolInstanceMetricDefinitionsNextResults retrieves the next set of results, if any. -func (client AppServiceEnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsNextResults(ctx context.Context, lastResults ResourceMetricDefinitionCollection) (result ResourceMetricDefinitionCollection, err error) { - req, err := lastResults.resourceMetricDefinitionCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMultiRolePoolInstanceMetricDefinitionsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMultiRolePoolInstanceMetricDefinitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricDefinitionsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMultiRolePoolInstanceMetricDefinitionsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitionsComplete(ctx context.Context, resourceGroupName string, name string, instance string) (result ResourceMetricDefinitionCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePoolInstanceMetricDefinitions") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMultiRolePoolInstanceMetricDefinitions(ctx, resourceGroupName, name, instance) - return -} - -// ListMultiRolePoolInstanceMetrics get metrics for a specific instance of a multi-role pool of an App Service -// Environment. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the App Service Environment. -// instance - name of the instance in the multi-role pool. -// details - specify true to include instance details. The default is false. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetrics(ctx context.Context, resourceGroupName string, name string, instance string, details *bool) (result ResourceMetricCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePoolInstanceMetrics") - defer func() { - sc := -1 - if result.rmc.Response.Response != nil { - sc = result.rmc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetrics", err.Error()) - } - - result.fn = client.listMultiRolePoolInstanceMetricsNextResults - req, err := client.ListMultiRolePoolInstanceMetricsPreparer(ctx, resourceGroupName, name, instance, details) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetrics", nil, "Failure preparing request") - return - } - - resp, err := client.ListMultiRolePoolInstanceMetricsSender(req) - if err != nil { - result.rmc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetrics", resp, "Failure sending request") - return - } - - result.rmc, err = client.ListMultiRolePoolInstanceMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolInstanceMetrics", resp, "Failure responding to request") - } - - return -} - -// ListMultiRolePoolInstanceMetricsPreparer prepares the ListMultiRolePoolInstanceMetrics request. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricsPreparer(ctx context.Context, resourceGroupName string, name string, instance string, details *bool) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "instance": autorest.Encode("path", instance), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if details != nil { - queryParameters["details"] = autorest.Encode("query", *details) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metrics", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMultiRolePoolInstanceMetricsSender sends the ListMultiRolePoolInstanceMetrics request. The method will close the -// http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMultiRolePoolInstanceMetricsResponder handles the response to the ListMultiRolePoolInstanceMetrics request. The method always -// closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMultiRolePoolInstanceMetricsNextResults retrieves the next set of results, if any. -func (client AppServiceEnvironmentsClient) listMultiRolePoolInstanceMetricsNextResults(ctx context.Context, lastResults ResourceMetricCollection) (result ResourceMetricCollection, err error) { - req, err := lastResults.resourceMetricCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMultiRolePoolInstanceMetricsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMultiRolePoolInstanceMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolInstanceMetricsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMultiRolePoolInstanceMetricsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricsComplete(ctx context.Context, resourceGroupName string, name string, instance string, details *bool) (result ResourceMetricCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePoolInstanceMetrics") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMultiRolePoolInstanceMetrics(ctx, resourceGroupName, name, instance, details) - return -} - -// ListMultiRolePools get all multi-role pools. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the App Service Environment. -func (client AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, resourceGroupName string, name string) (result WorkerPoolCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePools") - defer func() { - sc := -1 - if result.wpc.Response.Response != nil { - sc = result.wpc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRolePools", err.Error()) - } - - result.fn = client.listMultiRolePoolsNextResults - req, err := client.ListMultiRolePoolsPreparer(ctx, resourceGroupName, name) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", nil, "Failure preparing request") - return - } - - resp, err := client.ListMultiRolePoolsSender(req) - if err != nil { - result.wpc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", resp, "Failure sending request") - return - } - - result.wpc, err = client.ListMultiRolePoolsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePools", resp, "Failure responding to request") - } - - return -} - -// ListMultiRolePoolsPreparer prepares the ListMultiRolePools request. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMultiRolePoolsSender sends the ListMultiRolePools request. The method will close the -// http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMultiRolePoolsResponder handles the response to the ListMultiRolePools request. The method always -// closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolsResponder(resp *http.Response) (result WorkerPoolCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMultiRolePoolsNextResults retrieves the next set of results, if any. -func (client AppServiceEnvironmentsClient) listMultiRolePoolsNextResults(ctx context.Context, lastResults WorkerPoolCollection) (result WorkerPoolCollection, err error) { - req, err := lastResults.workerPoolCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMultiRolePoolsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMultiRolePoolsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listMultiRolePoolsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMultiRolePoolsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolsComplete(ctx context.Context, resourceGroupName string, name string) (result WorkerPoolCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePools") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMultiRolePools(ctx, resourceGroupName, name) - return -} - -// ListMultiRolePoolSkus get available SKUs for scaling a multi-role pool. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the App Service Environment. -func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, resourceGroupName string, name string) (result SkuInfoCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListMultiRolePoolSkus") - defer func() { - sc := -1 - if result.sic.Response.Response != nil { - sc = result.sic.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", err.Error()) - } - - result.fn = client.listMultiRolePoolSkusNextResults - req, err := client.ListMultiRolePoolSkusPreparer(ctx, resourceGroupName, name) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", nil, "Failure preparing request") - return - } - - resp, err := client.ListMultiRolePoolSkusSender(req) - if err != nil { - result.sic.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", resp, "Failure sending request") - return - } - - result.sic, err = client.ListMultiRolePoolSkusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListMultiRolePoolSkus", resp, "Failure responding to request") } return @@ -2607,7 +2200,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkusPreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2677,7 +2270,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolSkusComplete(ctx con return } -// ListMultiRoleUsages get usage metrics for a multi-role pool of an App Service Environment. +// ListMultiRoleUsages description for Get usage metrics for a multi-role pool of an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -2730,7 +2323,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleUsagesPreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2800,7 +2393,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRoleUsagesComplete(ctx conte return } -// ListOperations list all currently running operations on the App Service Environment. +// ListOperations description for List all currently running operations on the App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -2852,7 +2445,7 @@ func (client AppServiceEnvironmentsClient) ListOperationsPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2885,7 +2478,7 @@ func (client AppServiceEnvironmentsClient) ListOperationsResponder(resp *http.Re return } -// ListUsages get global usage metrics of an App Service Environment. +// ListUsages description for Get global usage metrics of an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -2914,181 +2507,59 @@ func (client AppServiceEnvironmentsClient) ListUsages(ctx context.Context, resou result.fn = client.listUsagesNextResults req, err := client.ListUsagesPreparer(ctx, resourceGroupName, name, filter) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", nil, "Failure preparing request") - return - } - - resp, err := client.ListUsagesSender(req) - if err != nil { - result.cuqc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", resp, "Failure sending request") - return - } - - result.cuqc, err = client.ListUsagesResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", resp, "Failure responding to request") - } - - return -} - -// ListUsagesPreparer prepares the ListUsages request. -func (client AppServiceEnvironmentsClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, name string, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/usages", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListUsagesSender sends the ListUsages request. The method will close the -// http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListUsagesSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListUsagesResponder handles the response to the ListUsages request. The method always -// closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListUsagesResponder(resp *http.Response) (result CsmUsageQuotaCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listUsagesNextResults retrieves the next set of results, if any. -func (client AppServiceEnvironmentsClient) listUsagesNextResults(ctx context.Context, lastResults CsmUsageQuotaCollection) (result CsmUsageQuotaCollection, err error) { - req, err := lastResults.csmUsageQuotaCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListUsagesSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", resp, "Failure sending next results request") - } - result, err = client.ListUsagesResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListUsagesComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServiceEnvironmentsClient) ListUsagesComplete(ctx context.Context, resourceGroupName string, name string, filter string) (result CsmUsageQuotaCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListUsages") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListUsages(ctx, resourceGroupName, name, filter) - return -} - -// ListVips get IP addresses assigned to an App Service Environment. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the App Service Environment. -func (client AppServiceEnvironmentsClient) ListVips(ctx context.Context, resourceGroupName string, name string) (result AddressResponse, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListVips") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListVips", err.Error()) - } - - req, err := client.ListVipsPreparer(ctx, resourceGroupName, name) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListVips", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", nil, "Failure preparing request") return } - resp, err := client.ListVipsSender(req) + resp, err := client.ListUsagesSender(req) if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListVips", resp, "Failure sending request") + result.cuqc.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", resp, "Failure sending request") return } - result, err = client.ListVipsResponder(resp) + result.cuqc, err = client.ListUsagesResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListVips", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListUsages", resp, "Failure responding to request") } return } -// ListVipsPreparer prepares the ListVips request. -func (client AppServiceEnvironmentsClient) ListVipsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { +// ListUsagesPreparer prepares the ListUsages request. +func (client AppServiceEnvironmentsClient) ListUsagesPreparer(ctx context.Context, resourceGroupName string, name string, filter string) (*http.Request, error) { pathParameters := map[string]interface{}{ "name": autorest.Encode("path", name), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } + if len(filter) > 0 { + queryParameters["$filter"] = filter + } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/usages", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListVipsSender sends the ListVips request. The method will close the +// ListUsagesSender sends the ListUsages request. The method will close the // http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListVipsSender(req *http.Request) (*http.Response, error) { +func (client AppServiceEnvironmentsClient) ListUsagesSender(req *http.Request) (*http.Response, error) { sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) return autorest.SendWithSender(client, req, sd...) } -// ListVipsResponder handles the response to the ListVips request. The method always +// ListUsagesResponder handles the response to the ListUsages request. The method always // closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListVipsResponder(resp *http.Response) (result AddressResponse, err error) { +func (client AppServiceEnvironmentsClient) ListUsagesResponder(resp *http.Response) (result CsmUsageQuotaCollection, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -3099,7 +2570,44 @@ func (client AppServiceEnvironmentsClient) ListVipsResponder(resp *http.Response return } -// ListWebApps get all apps in an App Service Environment. +// listUsagesNextResults retrieves the next set of results, if any. +func (client AppServiceEnvironmentsClient) listUsagesNextResults(ctx context.Context, lastResults CsmUsageQuotaCollection) (result CsmUsageQuotaCollection, err error) { + req, err := lastResults.csmUsageQuotaCollectionPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListUsagesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", resp, "Failure sending next results request") + } + result, err = client.ListUsagesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listUsagesNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListUsagesComplete enumerates all values, automatically crossing page boundaries as required. +func (client AppServiceEnvironmentsClient) ListUsagesComplete(ctx context.Context, resourceGroupName string, name string, filter string) (result CsmUsageQuotaCollectionIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListUsages") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListUsages(ctx, resourceGroupName, name, filter) + return +} + +// ListWebApps description for Get all apps in an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -3153,7 +2661,7 @@ func (client AppServiceEnvironmentsClient) ListWebAppsPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3226,7 +2734,8 @@ func (client AppServiceEnvironmentsClient) ListWebAppsComplete(ctx context.Conte return } -// ListWebWorkerMetricDefinitions get metric definitions for a worker pool of an App Service Environment. +// ListWebWorkerMetricDefinitions description for Get metric definitions for a worker pool of an App Service +// Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -3281,7 +2790,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitionsPrepare "workerPoolName": autorest.Encode("path", workerPoolName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3351,142 +2860,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitionsComplet return } -// ListWebWorkerMetrics get metrics for a worker pool of a AppServiceEnvironment (App Service Environment). -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the App Service Environment. -// workerPoolName - name of worker pool -// details - specify true to include instance details. The default is false. -// filter - return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: -// $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and -// endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. -func (client AppServiceEnvironmentsClient) ListWebWorkerMetrics(ctx context.Context, resourceGroupName string, name string, workerPoolName string, details *bool, filter string) (result ResourceMetricCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListWebWorkerMetrics") - defer func() { - sc := -1 - if result.rmc.Response.Response != nil { - sc = result.rmc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListWebWorkerMetrics", err.Error()) - } - - result.fn = client.listWebWorkerMetricsNextResults - req, err := client.ListWebWorkerMetricsPreparer(ctx, resourceGroupName, name, workerPoolName, details, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetrics", nil, "Failure preparing request") - return - } - - resp, err := client.ListWebWorkerMetricsSender(req) - if err != nil { - result.rmc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetrics", resp, "Failure sending request") - return - } - - result.rmc, err = client.ListWebWorkerMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWebWorkerMetrics", resp, "Failure responding to request") - } - - return -} - -// ListWebWorkerMetricsPreparer prepares the ListWebWorkerMetrics request. -func (client AppServiceEnvironmentsClient) ListWebWorkerMetricsPreparer(ctx context.Context, resourceGroupName string, name string, workerPoolName string, details *bool, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "workerPoolName": autorest.Encode("path", workerPoolName), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if details != nil { - queryParameters["details"] = autorest.Encode("query", *details) - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/metrics", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListWebWorkerMetricsSender sends the ListWebWorkerMetrics request. The method will close the -// http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListWebWorkerMetricsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListWebWorkerMetricsResponder handles the response to the ListWebWorkerMetrics request. The method always -// closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListWebWorkerMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listWebWorkerMetricsNextResults retrieves the next set of results, if any. -func (client AppServiceEnvironmentsClient) listWebWorkerMetricsNextResults(ctx context.Context, lastResults ResourceMetricCollection) (result ResourceMetricCollection, err error) { - req, err := lastResults.resourceMetricCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerMetricsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListWebWorkerMetricsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerMetricsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListWebWorkerMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWebWorkerMetricsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListWebWorkerMetricsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServiceEnvironmentsClient) ListWebWorkerMetricsComplete(ctx context.Context, resourceGroupName string, name string, workerPoolName string, details *bool, filter string) (result ResourceMetricCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListWebWorkerMetrics") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListWebWorkerMetrics(ctx, resourceGroupName, name, workerPoolName, details, filter) - return -} - -// ListWebWorkerUsages get usage metrics for a worker pool of an App Service Environment. +// ListWebWorkerUsages description for Get usage metrics for a worker pool of an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -3541,7 +2915,7 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerUsagesPreparer(ctx conte "workerPoolName": autorest.Encode("path", workerPoolName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3611,8 +2985,8 @@ func (client AppServiceEnvironmentsClient) ListWebWorkerUsagesComplete(ctx conte return } -// ListWorkerPoolInstanceMetricDefinitions get metric definitions for a specific instance of a worker pool of an App -// Service Environment. +// ListWorkerPoolInstanceMetricDefinitions description for Get metric definitions for a specific instance of a worker +// pool of an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -3669,7 +3043,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitio "workerPoolName": autorest.Encode("path", workerPoolName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3739,144 +3113,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitio return } -// ListWorkerPoolInstanceMetrics get metrics for a specific instance of a worker pool of an App Service Environment. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the App Service Environment. -// workerPoolName - name of the worker pool. -// instance - name of the instance in the worker pool. -// details - specify true to include instance details. The default is false. -// filter - return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: -// $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and -// endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. -func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetrics(ctx context.Context, resourceGroupName string, name string, workerPoolName string, instance string, details *bool, filter string) (result ResourceMetricCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListWorkerPoolInstanceMetrics") - defer func() { - sc := -1 - if result.rmc.Response.Response != nil { - sc = result.rmc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetrics", err.Error()) - } - - result.fn = client.listWorkerPoolInstanceMetricsNextResults - req, err := client.ListWorkerPoolInstanceMetricsPreparer(ctx, resourceGroupName, name, workerPoolName, instance, details, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetrics", nil, "Failure preparing request") - return - } - - resp, err := client.ListWorkerPoolInstanceMetricsSender(req) - if err != nil { - result.rmc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetrics", resp, "Failure sending request") - return - } - - result.rmc, err = client.ListWorkerPoolInstanceMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "ListWorkerPoolInstanceMetrics", resp, "Failure responding to request") - } - - return -} - -// ListWorkerPoolInstanceMetricsPreparer prepares the ListWorkerPoolInstanceMetrics request. -func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricsPreparer(ctx context.Context, resourceGroupName string, name string, workerPoolName string, instance string, details *bool, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "instance": autorest.Encode("path", instance), - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "workerPoolName": autorest.Encode("path", workerPoolName), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if details != nil { - queryParameters["details"] = autorest.Encode("query", *details) - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metrics", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListWorkerPoolInstanceMetricsSender sends the ListWorkerPoolInstanceMetrics request. The method will close the -// http.Response Body if it receives an error. -func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListWorkerPoolInstanceMetricsResponder handles the response to the ListWorkerPoolInstanceMetrics request. The method always -// closes the http.Response Body. -func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listWorkerPoolInstanceMetricsNextResults retrieves the next set of results, if any. -func (client AppServiceEnvironmentsClient) listWorkerPoolInstanceMetricsNextResults(ctx context.Context, lastResults ResourceMetricCollection) (result ResourceMetricCollection, err error) { - req, err := lastResults.resourceMetricCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolInstanceMetricsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListWorkerPoolInstanceMetricsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolInstanceMetricsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListWorkerPoolInstanceMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "listWorkerPoolInstanceMetricsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListWorkerPoolInstanceMetricsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricsComplete(ctx context.Context, resourceGroupName string, name string, workerPoolName string, instance string, details *bool, filter string) (result ResourceMetricCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.ListWorkerPoolInstanceMetrics") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListWorkerPoolInstanceMetrics(ctx, resourceGroupName, name, workerPoolName, instance, details, filter) - return -} - -// ListWorkerPools get all worker pools of an App Service Environment. +// ListWorkerPools description for Get all worker pools of an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -3929,7 +3166,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolsPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -3999,7 +3236,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolsComplete(ctx context.C return } -// ListWorkerPoolSkus get available SKUs for scaling a worker pool. +// ListWorkerPoolSkus description for Get available SKUs for scaling a worker pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -4054,7 +3291,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolSkusPreparer(ctx contex "workerPoolName": autorest.Encode("path", workerPoolName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4124,7 +3361,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolSkusComplete(ctx contex return } -// Reboot reboot all machines in an App Service Environment. +// Reboot description for Reboot all machines in an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -4176,7 +3413,7 @@ func (client AppServiceEnvironmentsClient) RebootPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4202,13 +3439,13 @@ func (client AppServiceEnvironmentsClient) RebootResponder(resp *http.Response) err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp return } -// Resume resume an App Service Environment. +// Resume description for Resume an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -4254,7 +3491,7 @@ func (client AppServiceEnvironmentsClient) ResumePreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4335,7 +3572,7 @@ func (client AppServiceEnvironmentsClient) ResumeComplete(ctx context.Context, r return } -// Suspend suspend an App Service Environment. +// Suspend description for Suspend an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -4381,7 +3618,7 @@ func (client AppServiceEnvironmentsClient) SuspendPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4462,7 +3699,7 @@ func (client AppServiceEnvironmentsClient) SuspendComplete(ctx context.Context, return } -// Update create or update an App Service Environment. +// Update description for Create or update an App Service Environment. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -4515,7 +3752,7 @@ func (client AppServiceEnvironmentsClient) UpdatePreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4543,14 +3780,14 @@ func (client AppServiceEnvironmentsClient) UpdateResponder(resp *http.Response) err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } -// UpdateMultiRolePool create or update a multi-role pool. +// UpdateMultiRolePool description for Create or update a multi-role pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -4603,7 +3840,7 @@ func (client AppServiceEnvironmentsClient) UpdateMultiRolePoolPreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4631,14 +3868,14 @@ func (client AppServiceEnvironmentsClient) UpdateMultiRolePoolResponder(resp *ht err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } -// UpdateWorkerPool create or update a worker pool. +// UpdateWorkerPool description for Create or update a worker pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service Environment. @@ -4693,7 +3930,7 @@ func (client AppServiceEnvironmentsClient) UpdateWorkerPoolPreparer(ctx context. "workerPoolName": autorest.Encode("path", workerPoolName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -4721,7 +3958,7 @@ func (client AppServiceEnvironmentsClient) UpdateWorkerPoolResponder(resp *http. err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusBadRequest, http.StatusNotFound, http.StatusConflict), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceplans.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/appserviceplans.go similarity index 88% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceplans.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/appserviceplans.go index 3324503f3dab..24b03add793b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceplans.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/appserviceplans.go @@ -41,7 +41,7 @@ func NewAppServicePlansClientWithBaseURI(baseURI string, subscriptionID string) return AppServicePlansClient{NewWithBaseURI(baseURI, subscriptionID)} } -// CreateOrUpdate creates or updates an App Service Plan. +// CreateOrUpdate description for Creates or updates an App Service Plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -88,7 +88,7 @@ func (client AppServicePlansClient) CreateOrUpdatePreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -122,14 +122,14 @@ func (client AppServicePlansClient) CreateOrUpdateResponder(resp *http.Response) err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } -// CreateOrUpdateVnetRoute create or update a Virtual Network route in an App Service plan. +// CreateOrUpdateVnetRoute description for Create or update a Virtual Network route in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -186,7 +186,7 @@ func (client AppServicePlansClient) CreateOrUpdateVnetRoutePreparer(ctx context. "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -221,7 +221,7 @@ func (client AppServicePlansClient) CreateOrUpdateVnetRouteResponder(resp *http. return } -// Delete delete an App Service plan. +// Delete description for Delete an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -273,7 +273,7 @@ func (client AppServicePlansClient) DeletePreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -305,7 +305,7 @@ func (client AppServicePlansClient) DeleteResponder(resp *http.Response) (result return } -// DeleteHybridConnection delete a Hybrid Connection in use in an App Service plan. +// DeleteHybridConnection description for Delete a Hybrid Connection in use in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -361,7 +361,7 @@ func (client AppServicePlansClient) DeleteHybridConnectionPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -393,7 +393,7 @@ func (client AppServicePlansClient) DeleteHybridConnectionResponder(resp *http.R return } -// DeleteVnetRoute delete a Virtual Network route in an App Service plan. +// DeleteVnetRoute description for Delete a Virtual Network route in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -449,7 +449,7 @@ func (client AppServicePlansClient) DeleteVnetRoutePreparer(ctx context.Context, "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -481,7 +481,7 @@ func (client AppServicePlansClient) DeleteVnetRouteResponder(resp *http.Response return } -// Get get an App Service plan. +// Get description for Get an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -533,7 +533,7 @@ func (client AppServicePlansClient) GetPreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -566,7 +566,7 @@ func (client AppServicePlansClient) GetResponder(resp *http.Response) (result Ap return } -// GetHybridConnection retrieve a Hybrid Connection in use in an App Service plan. +// GetHybridConnection description for Retrieve a Hybrid Connection in use in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -622,7 +622,7 @@ func (client AppServicePlansClient) GetHybridConnectionPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -655,7 +655,8 @@ func (client AppServicePlansClient) GetHybridConnectionResponder(resp *http.Resp return } -// GetHybridConnectionPlanLimit get the maximum number of Hybrid Connections allowed in an App Service plan. +// GetHybridConnectionPlanLimit description for Get the maximum number of Hybrid Connections allowed in an App Service +// plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -707,7 +708,7 @@ func (client AppServicePlansClient) GetHybridConnectionPlanLimitPreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -740,7 +741,7 @@ func (client AppServicePlansClient) GetHybridConnectionPlanLimitResponder(resp * return } -// GetRouteForVnet get a Virtual Network route in an App Service plan. +// GetRouteForVnet description for Get a Virtual Network route in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -796,7 +797,7 @@ func (client AppServicePlansClient) GetRouteForVnetPreparer(ctx context.Context, "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -829,7 +830,7 @@ func (client AppServicePlansClient) GetRouteForVnetResponder(resp *http.Response return } -// GetServerFarmSkus gets all selectable SKUs for a given App Service Plan +// GetServerFarmSkus description for Gets all selectable SKUs for a given App Service Plan // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of App Service Plan @@ -881,7 +882,7 @@ func (client AppServicePlansClient) GetServerFarmSkusPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -914,7 +915,7 @@ func (client AppServicePlansClient) GetServerFarmSkusResponder(resp *http.Respon return } -// GetVnetFromServerFarm get a Virtual Network associated with an App Service plan. +// GetVnetFromServerFarm description for Get a Virtual Network associated with an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -968,7 +969,7 @@ func (client AppServicePlansClient) GetVnetFromServerFarmPreparer(ctx context.Co "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1001,7 +1002,7 @@ func (client AppServicePlansClient) GetVnetFromServerFarmResponder(resp *http.Re return } -// GetVnetGateway get a Virtual Network gateway. +// GetVnetGateway description for Get a Virtual Network gateway. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -1057,7 +1058,7 @@ func (client AppServicePlansClient) GetVnetGatewayPreparer(ctx context.Context, "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1090,7 +1091,7 @@ func (client AppServicePlansClient) GetVnetGatewayResponder(resp *http.Response) return } -// List get all App Service plans for a subscription. +// List description for Get all App Service plans for a subscription. // Parameters: // detailed - specify true to return all App Service plan properties. The default is // false, which returns a subset of the properties. @@ -1134,7 +1135,7 @@ func (client AppServicePlansClient) ListPreparer(ctx context.Context, detailed * "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1207,7 +1208,7 @@ func (client AppServicePlansClient) ListComplete(ctx context.Context, detailed * return } -// ListByResourceGroup get all App Service plans in a resource group. +// ListByResourceGroup description for Get all App Service plans in a resource group. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. func (client AppServicePlansClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AppServicePlanCollectionPage, err error) { @@ -1258,7 +1259,7 @@ func (client AppServicePlansClient) ListByResourceGroupPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1328,7 +1329,7 @@ func (client AppServicePlansClient) ListByResourceGroupComplete(ctx context.Cont return } -// ListCapabilities list all capabilities of an App Service plan. +// ListCapabilities description for List all capabilities of an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -1380,7 +1381,7 @@ func (client AppServicePlansClient) ListCapabilitiesPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1413,7 +1414,7 @@ func (client AppServicePlansClient) ListCapabilitiesResponder(resp *http.Respons return } -// ListHybridConnectionKeys get the send key name and value of a Hybrid Connection. +// ListHybridConnectionKeys description for Get the send key name and value of a Hybrid Connection. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -1469,7 +1470,7 @@ func (client AppServicePlansClient) ListHybridConnectionKeysPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1502,7 +1503,7 @@ func (client AppServicePlansClient) ListHybridConnectionKeysResponder(resp *http return } -// ListHybridConnections retrieve all Hybrid Connections in use in an App Service plan. +// ListHybridConnections description for Retrieve all Hybrid Connections in use in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -1555,7 +1556,7 @@ func (client AppServicePlansClient) ListHybridConnectionsPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1625,263 +1626,7 @@ func (client AppServicePlansClient) ListHybridConnectionsComplete(ctx context.Co return } -// ListMetricDefintions get metrics that can be queried for an App Service plan, and their definitions. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the App Service plan. -func (client AppServicePlansClient) ListMetricDefintions(ctx context.Context, resourceGroupName string, name string) (result ResourceMetricDefinitionCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServicePlansClient.ListMetricDefintions") - defer func() { - sc := -1 - if result.rmdc.Response.Response != nil { - sc = result.rmdc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServicePlansClient", "ListMetricDefintions", err.Error()) - } - - result.fn = client.listMetricDefintionsNextResults - req, err := client.ListMetricDefintionsPreparer(ctx, resourceGroupName, name) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetricDefintions", nil, "Failure preparing request") - return - } - - resp, err := client.ListMetricDefintionsSender(req) - if err != nil { - result.rmdc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetricDefintions", resp, "Failure sending request") - return - } - - result.rmdc, err = client.ListMetricDefintionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetricDefintions", resp, "Failure responding to request") - } - - return -} - -// ListMetricDefintionsPreparer prepares the ListMetricDefintions request. -func (client AppServicePlansClient) ListMetricDefintionsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/metricdefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMetricDefintionsSender sends the ListMetricDefintions request. The method will close the -// http.Response Body if it receives an error. -func (client AppServicePlansClient) ListMetricDefintionsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMetricDefintionsResponder handles the response to the ListMetricDefintions request. The method always -// closes the http.Response Body. -func (client AppServicePlansClient) ListMetricDefintionsResponder(resp *http.Response) (result ResourceMetricDefinitionCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMetricDefintionsNextResults retrieves the next set of results, if any. -func (client AppServicePlansClient) listMetricDefintionsNextResults(ctx context.Context, lastResults ResourceMetricDefinitionCollection) (result ResourceMetricDefinitionCollection, err error) { - req, err := lastResults.resourceMetricDefinitionCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricDefintionsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMetricDefintionsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricDefintionsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMetricDefintionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricDefintionsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMetricDefintionsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServicePlansClient) ListMetricDefintionsComplete(ctx context.Context, resourceGroupName string, name string) (result ResourceMetricDefinitionCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServicePlansClient.ListMetricDefintions") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMetricDefintions(ctx, resourceGroupName, name) - return -} - -// ListMetrics get metrics for an App Service plan. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -// name - name of the App Service plan. -// details - specify true to include instance details. The default is false. -// filter - return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: -// $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and -// endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. -func (client AppServicePlansClient) ListMetrics(ctx context.Context, resourceGroupName string, name string, details *bool, filter string) (result ResourceMetricCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServicePlansClient.ListMetrics") - defer func() { - sc := -1 - if result.rmc.Response.Response != nil { - sc = result.rmc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.AppServicePlansClient", "ListMetrics", err.Error()) - } - - result.fn = client.listMetricsNextResults - req, err := client.ListMetricsPreparer(ctx, resourceGroupName, name, details, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetrics", nil, "Failure preparing request") - return - } - - resp, err := client.ListMetricsSender(req) - if err != nil { - result.rmc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetrics", resp, "Failure sending request") - return - } - - result.rmc, err = client.ListMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "ListMetrics", resp, "Failure responding to request") - } - - return -} - -// ListMetricsPreparer prepares the ListMetrics request. -func (client AppServicePlansClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, name string, details *bool, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "name": autorest.Encode("path", name), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if details != nil { - queryParameters["details"] = autorest.Encode("query", *details) - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/metrics", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListMetricsSender sends the ListMetrics request. The method will close the -// http.Response Body if it receives an error. -func (client AppServicePlansClient) ListMetricsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ListMetricsResponder handles the response to the ListMetrics request. The method always -// closes the http.Response Body. -func (client AppServicePlansClient) ListMetricsResponder(resp *http.Response) (result ResourceMetricCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listMetricsNextResults retrieves the next set of results, if any. -func (client AppServicePlansClient) listMetricsNextResults(ctx context.Context, lastResults ResourceMetricCollection) (result ResourceMetricCollection, err error) { - req, err := lastResults.resourceMetricCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListMetricsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListMetricsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.AppServicePlansClient", "listMetricsNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListMetricsComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppServicePlansClient) ListMetricsComplete(ctx context.Context, resourceGroupName string, name string, details *bool, filter string) (result ResourceMetricCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AppServicePlansClient.ListMetrics") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListMetrics(ctx, resourceGroupName, name, details, filter) - return -} - -// ListRoutesForVnet get all routes that are associated with a Virtual Network in an App Service plan. +// ListRoutesForVnet description for Get all routes that are associated with a Virtual Network in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -1935,7 +1680,7 @@ func (client AppServicePlansClient) ListRoutesForVnetPreparer(ctx context.Contex "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1968,7 +1713,7 @@ func (client AppServicePlansClient) ListRoutesForVnetResponder(resp *http.Respon return } -// ListUsages gets server farm usage information +// ListUsages description for Gets server farm usage information // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of App Service Plan @@ -2023,7 +1768,7 @@ func (client AppServicePlansClient) ListUsagesPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2096,7 +1841,7 @@ func (client AppServicePlansClient) ListUsagesComplete(ctx context.Context, reso return } -// ListVnets get all Virtual Networks associated with an App Service plan. +// ListVnets description for Get all Virtual Networks associated with an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -2148,7 +1893,7 @@ func (client AppServicePlansClient) ListVnetsPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2181,7 +1926,7 @@ func (client AppServicePlansClient) ListVnetsResponder(resp *http.Response) (res return } -// ListWebApps get all apps associated with an App Service plan. +// ListWebApps description for Get all apps associated with an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -2239,7 +1984,7 @@ func (client AppServicePlansClient) ListWebAppsPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2318,7 +2063,7 @@ func (client AppServicePlansClient) ListWebAppsComplete(ctx context.Context, res return } -// ListWebAppsByHybridConnection get all apps that use a Hybrid Connection in an App Service Plan. +// ListWebAppsByHybridConnection description for Get all apps that use a Hybrid Connection in an App Service Plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -2375,7 +2120,7 @@ func (client AppServicePlansClient) ListWebAppsByHybridConnectionPreparer(ctx co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2445,7 +2190,7 @@ func (client AppServicePlansClient) ListWebAppsByHybridConnectionComplete(ctx co return } -// RebootWorker reboot a worker machine in an App Service plan. +// RebootWorker description for Reboot a worker machine in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -2499,7 +2244,7 @@ func (client AppServicePlansClient) RebootWorkerPreparer(ctx context.Context, re "workerName": autorest.Encode("path", workerName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2531,7 +2276,7 @@ func (client AppServicePlansClient) RebootWorkerResponder(resp *http.Response) ( return } -// RestartWebApps restart all apps in an App Service plan. +// RestartWebApps description for Restart all apps in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -2586,7 +2331,7 @@ func (client AppServicePlansClient) RestartWebAppsPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2621,7 +2366,7 @@ func (client AppServicePlansClient) RestartWebAppsResponder(resp *http.Response) return } -// Update creates or updates an App Service Plan. +// Update description for Creates or updates an App Service Plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -2674,7 +2419,7 @@ func (client AppServicePlansClient) UpdatePreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2709,7 +2454,7 @@ func (client AppServicePlansClient) UpdateResponder(resp *http.Response) (result return } -// UpdateVnetGateway update a Virtual Network gateway. +// UpdateVnetGateway description for Update a Virtual Network gateway. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -2769,7 +2514,7 @@ func (client AppServicePlansClient) UpdateVnetGatewayPreparer(ctx context.Contex "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2804,7 +2549,7 @@ func (client AppServicePlansClient) UpdateVnetGatewayResponder(resp *http.Respon return } -// UpdateVnetRoute create or update a Virtual Network route in an App Service plan. +// UpdateVnetRoute description for Create or update a Virtual Network route in an App Service plan. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the App Service plan. @@ -2861,7 +2606,7 @@ func (client AppServicePlansClient) UpdateVnetRoutePreparer(ctx context.Context, "vnetName": autorest.Encode("path", vnetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/certificateregistrationprovider.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/certificateregistrationprovider.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/certificateregistrationprovider.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/certificateregistrationprovider.go index 20728a9f2286..907ccd3ed5da 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/certificateregistrationprovider.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/certificateregistrationprovider.go @@ -41,7 +41,8 @@ func NewCertificateRegistrationProviderClientWithBaseURI(baseURI string, subscri return CertificateRegistrationProviderClient{NewWithBaseURI(baseURI, subscriptionID)} } -// ListOperations implements Csm operations Api to exposes the list of available Csm Apis under the resource provider +// ListOperations description for Implements Csm operations Api to exposes the list of available Csm Apis under the +// resource provider func (client CertificateRegistrationProviderClient) ListOperations(ctx context.Context) (result CsmOperationCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CertificateRegistrationProviderClient.ListOperations") @@ -77,7 +78,7 @@ func (client CertificateRegistrationProviderClient) ListOperations(ctx context.C // ListOperationsPreparer prepares the ListOperations request. func (client CertificateRegistrationProviderClient) ListOperationsPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/certificates.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/certificates.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/certificates.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/certificates.go index b1640960c58c..9ebfaaa94d97 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/certificates.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/certificates.go @@ -41,7 +41,7 @@ func NewCertificatesClientWithBaseURI(baseURI string, subscriptionID string) Cer return CertificatesClient{NewWithBaseURI(baseURI, subscriptionID)} } -// CreateOrUpdate create or update a certificate. +// CreateOrUpdate description for Create or update a certificate. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the certificate. @@ -97,7 +97,7 @@ func (client CertificatesClient) CreateOrUpdatePreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -132,7 +132,7 @@ func (client CertificatesClient) CreateOrUpdateResponder(resp *http.Response) (r return } -// Delete delete a certificate. +// Delete description for Delete a certificate. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the certificate. @@ -184,7 +184,7 @@ func (client CertificatesClient) DeletePreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -216,7 +216,7 @@ func (client CertificatesClient) DeleteResponder(resp *http.Response) (result au return } -// Get get a certificate. +// Get description for Get a certificate. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the certificate. @@ -268,7 +268,7 @@ func (client CertificatesClient) GetPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -301,7 +301,7 @@ func (client CertificatesClient) GetResponder(resp *http.Response) (result Certi return } -// List get all certificates for a subscription. +// List description for Get all certificates for a subscription. func (client CertificatesClient) List(ctx context.Context) (result CertificateCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CertificatesClient.List") @@ -341,7 +341,7 @@ func (client CertificatesClient) ListPreparer(ctx context.Context) (*http.Reques "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -411,7 +411,7 @@ func (client CertificatesClient) ListComplete(ctx context.Context) (result Certi return } -// ListByResourceGroup get all certificates in a resource group. +// ListByResourceGroup description for Get all certificates in a resource group. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. func (client CertificatesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result CertificateCollectionPage, err error) { @@ -462,7 +462,7 @@ func (client CertificatesClient) ListByResourceGroupPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -532,7 +532,7 @@ func (client CertificatesClient) ListByResourceGroupComplete(ctx context.Context return } -// Update create or update a certificate. +// Update description for Create or update a certificate. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of the certificate. @@ -585,7 +585,7 @@ func (client CertificatesClient) UpdatePreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/client.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/client.go similarity index 91% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/client.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/client.go index 01215bd8bb60..7109055e5dff 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/client.go @@ -1,4 +1,4 @@ -// Package web implements the Azure ARM Web service API version 2018-02-01. +// Package web implements the Azure ARM Web service API version 2019-08-01. // // WebSite Management Client package web @@ -55,7 +55,7 @@ func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { } } -// CheckNameAvailability check if a resource name is available. +// CheckNameAvailability description for Check if a resource name is available. // Parameters: // request - name availability request. func (client BaseClient) CheckNameAvailability(ctx context.Context, request ResourceNameAvailabilityRequest) (result ResourceNameAvailability, err error) { @@ -102,7 +102,7 @@ func (client BaseClient) CheckNameAvailabilityPreparer(ctx context.Context, requ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -137,7 +137,7 @@ func (client BaseClient) CheckNameAvailabilityResponder(resp *http.Response) (re return } -// GetPublishingUser gets publishing user +// GetPublishingUser description for Gets publishing user func (client BaseClient) GetPublishingUser(ctx context.Context) (result User, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetPublishingUser") @@ -172,7 +172,7 @@ func (client BaseClient) GetPublishingUser(ctx context.Context) (result User, er // GetPublishingUserPreparer prepares the GetPublishingUser request. func (client BaseClient) GetPublishingUserPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -205,7 +205,7 @@ func (client BaseClient) GetPublishingUserResponder(resp *http.Response) (result return } -// GetSourceControl gets source control token +// GetSourceControl description for Gets source control token // Parameters: // sourceControlType - type of source control func (client BaseClient) GetSourceControl(ctx context.Context, sourceControlType string) (result SourceControl, err error) { @@ -246,7 +246,7 @@ func (client BaseClient) GetSourceControlPreparer(ctx context.Context, sourceCon "sourceControlType": autorest.Encode("path", sourceControlType), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -279,7 +279,7 @@ func (client BaseClient) GetSourceControlResponder(resp *http.Response) (result return } -// GetSubscriptionDeploymentLocations gets list of available geo regions plus ministamps +// GetSubscriptionDeploymentLocations description for Gets list of available geo regions plus ministamps func (client BaseClient) GetSubscriptionDeploymentLocations(ctx context.Context) (result DeploymentLocations, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetSubscriptionDeploymentLocations") @@ -318,7 +318,7 @@ func (client BaseClient) GetSubscriptionDeploymentLocationsPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -351,7 +351,7 @@ func (client BaseClient) GetSubscriptionDeploymentLocationsResponder(resp *http. return } -// ListBillingMeters gets a list of meters for a given location. +// ListBillingMeters description for Gets a list of meters for a given location. // Parameters: // billingLocation - azure Location of billable resource // osType - app Service OS type meters used for @@ -394,7 +394,7 @@ func (client BaseClient) ListBillingMetersPreparer(ctx context.Context, billingL "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -470,7 +470,7 @@ func (client BaseClient) ListBillingMetersComplete(ctx context.Context, billingL return } -// ListGeoRegions get a list of available geographical regions. +// ListGeoRegions description for Get a list of available geographical regions. // Parameters: // sku - name of SKU used to filter the regions. // linuxWorkersEnabled - specify true if you want to filter to only regions that support Linux @@ -518,7 +518,7 @@ func (client BaseClient) ListGeoRegionsPreparer(ctx context.Context, sku SkuName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -600,7 +600,7 @@ func (client BaseClient) ListGeoRegionsComplete(ctx context.Context, sku SkuName return } -// ListPremierAddOnOffers list all premier add-on offers. +// ListPremierAddOnOffers description for List all premier add-on offers. func (client BaseClient) ListPremierAddOnOffers(ctx context.Context) (result PremierAddOnOfferCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.ListPremierAddOnOffers") @@ -640,7 +640,7 @@ func (client BaseClient) ListPremierAddOnOffersPreparer(ctx context.Context) (*h "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -710,7 +710,7 @@ func (client BaseClient) ListPremierAddOnOffersComplete(ctx context.Context) (re return } -// ListSiteIdentifiersAssignedToHostName list all apps that are assigned to a hostname. +// ListSiteIdentifiersAssignedToHostName description for List all apps that are assigned to a hostname. // Parameters: // nameIdentifier - hostname information. func (client BaseClient) ListSiteIdentifiersAssignedToHostName(ctx context.Context, nameIdentifier NameIdentifier) (result IdentifierCollectionPage, err error) { @@ -752,7 +752,7 @@ func (client BaseClient) ListSiteIdentifiersAssignedToHostNamePreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -824,7 +824,7 @@ func (client BaseClient) ListSiteIdentifiersAssignedToHostNameComplete(ctx conte return } -// ListSkus list all SKUs. +// ListSkus description for List all SKUs. func (client BaseClient) ListSkus(ctx context.Context) (result SkuInfos, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.ListSkus") @@ -863,7 +863,7 @@ func (client BaseClient) ListSkusPreparer(ctx context.Context) (*http.Request, e "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -896,7 +896,7 @@ func (client BaseClient) ListSkusResponder(resp *http.Response) (result SkuInfos return } -// ListSourceControls gets the source controls available for Azure websites. +// ListSourceControls description for Gets the source controls available for Azure websites. func (client BaseClient) ListSourceControls(ctx context.Context) (result SourceControlCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.ListSourceControls") @@ -932,7 +932,7 @@ func (client BaseClient) ListSourceControls(ctx context.Context) (result SourceC // ListSourceControlsPreparer prepares the ListSourceControls request. func (client BaseClient) ListSourceControlsPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1002,7 +1002,7 @@ func (client BaseClient) ListSourceControlsComplete(ctx context.Context) (result return } -// Move move resources between resource groups. +// Move description for Move resources between resource groups. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // moveResourceEnvelope - object that represents the resource to move. @@ -1059,7 +1059,7 @@ func (client BaseClient) MovePreparer(ctx context.Context, resourceGroupName str "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1093,7 +1093,7 @@ func (client BaseClient) MoveResponder(resp *http.Response) (result autorest.Res return } -// UpdatePublishingUser updates publishing user +// UpdatePublishingUser description for Updates publishing user // Parameters: // userDetails - details of publishing user func (client BaseClient) UpdatePublishingUser(ctx context.Context, userDetails User) (result User, err error) { @@ -1137,7 +1137,7 @@ func (client BaseClient) UpdatePublishingUser(ctx context.Context, userDetails U // UpdatePublishingUserPreparer prepares the UpdatePublishingUser request. func (client BaseClient) UpdatePublishingUserPreparer(ctx context.Context, userDetails User) (*http.Request, error) { - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1172,7 +1172,7 @@ func (client BaseClient) UpdatePublishingUserResponder(resp *http.Response) (res return } -// UpdateSourceControl updates source control token +// UpdateSourceControl description for Updates source control token // Parameters: // sourceControlType - type of source control // requestMessage - source control token information @@ -1214,7 +1214,7 @@ func (client BaseClient) UpdateSourceControlPreparer(ctx context.Context, source "sourceControlType": autorest.Encode("path", sourceControlType), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1249,7 +1249,7 @@ func (client BaseClient) UpdateSourceControlResponder(resp *http.Response) (resu return } -// Validate validate if a resource can be created. +// Validate description for Validate if a resource can be created. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // validateRequest - request with the resources to validate. @@ -1307,7 +1307,7 @@ func (client BaseClient) ValidatePreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1342,92 +1342,7 @@ func (client BaseClient) ValidateResponder(resp *http.Response) (result Validate return } -// ValidateContainerSettings validate if the container settings are correct. -// Parameters: -// resourceGroupName - name of the resource group to which the resource belongs. -func (client BaseClient) ValidateContainerSettings(ctx context.Context, validateContainerSettingsRequest ValidateContainerSettingsRequest, resourceGroupName string) (result SetObject, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.ValidateContainerSettings") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("web.BaseClient", "ValidateContainerSettings", err.Error()) - } - - req, err := client.ValidateContainerSettingsPreparer(ctx, validateContainerSettingsRequest, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "web.BaseClient", "ValidateContainerSettings", nil, "Failure preparing request") - return - } - - resp, err := client.ValidateContainerSettingsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "web.BaseClient", "ValidateContainerSettings", resp, "Failure sending request") - return - } - - result, err = client.ValidateContainerSettingsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.BaseClient", "ValidateContainerSettings", resp, "Failure responding to request") - } - - return -} - -// ValidateContainerSettingsPreparer prepares the ValidateContainerSettings request. -func (client BaseClient) ValidateContainerSettingsPreparer(ctx context.Context, validateContainerSettingsRequest ValidateContainerSettingsRequest, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-02-01" - 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.Web/validateContainerSettings", pathParameters), - autorest.WithJSON(validateContainerSettingsRequest), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ValidateContainerSettingsSender sends the ValidateContainerSettings request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ValidateContainerSettingsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) -} - -// ValidateContainerSettingsResponder handles the response to the ValidateContainerSettings request. The method always -// closes the http.Response Body. -func (client BaseClient) ValidateContainerSettingsResponder(resp *http.Response) (result SetObject, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// ValidateMove validate whether a resource can be moved. +// ValidateMove description for Validate whether a resource can be moved. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // moveResourceEnvelope - object that represents the resource to move. @@ -1484,7 +1399,7 @@ func (client BaseClient) ValidateMovePreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1518,8 +1433,8 @@ func (client BaseClient) ValidateMoveResponder(resp *http.Response) (result auto return } -// VerifyHostingEnvironmentVnet verifies if this VNET is compatible with an App Service Environment by analyzing the -// Network Security Group rules. +// VerifyHostingEnvironmentVnet description for Verifies if this VNET is compatible with an App Service Environment by +// analyzing the Network Security Group rules. // Parameters: // parameters - VNET information func (client BaseClient) VerifyHostingEnvironmentVnet(ctx context.Context, parameters VnetParameters) (result VnetValidationFailureDetails, err error) { @@ -1560,7 +1475,7 @@ func (client BaseClient) VerifyHostingEnvironmentVnetPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/deletedwebapps.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/deletedwebapps.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/deletedwebapps.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/deletedwebapps.go index 46a014df4b9e..2d9a5c49caed 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/deletedwebapps.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/deletedwebapps.go @@ -40,7 +40,7 @@ func NewDeletedWebAppsClientWithBaseURI(baseURI string, subscriptionID string) D return DeletedWebAppsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// GetDeletedWebAppByLocation get deleted app for a subscription at location. +// GetDeletedWebAppByLocation description for Get deleted app for a subscription at location. // Parameters: // deletedSiteID - the numeric ID of the deleted app, e.g. 12345 func (client DeletedWebAppsClient) GetDeletedWebAppByLocation(ctx context.Context, location string, deletedSiteID string) (result DeletedSite, err error) { @@ -83,7 +83,7 @@ func (client DeletedWebAppsClient) GetDeletedWebAppByLocationPreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -116,7 +116,7 @@ func (client DeletedWebAppsClient) GetDeletedWebAppByLocationResponder(resp *htt return } -// List get all deleted apps for a subscription. +// List description for Get all deleted apps for a subscription. func (client DeletedWebAppsClient) List(ctx context.Context) (result DeletedWebAppCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DeletedWebAppsClient.List") @@ -156,7 +156,7 @@ func (client DeletedWebAppsClient) ListPreparer(ctx context.Context) (*http.Requ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -226,7 +226,7 @@ func (client DeletedWebAppsClient) ListComplete(ctx context.Context) (result Del return } -// ListByLocation get all deleted apps for a subscription at location +// ListByLocation description for Get all deleted apps for a subscription at location func (client DeletedWebAppsClient) ListByLocation(ctx context.Context, location string) (result DeletedWebAppCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DeletedWebAppsClient.ListByLocation") @@ -267,7 +267,7 @@ func (client DeletedWebAppsClient) ListByLocationPreparer(ctx context.Context, l "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/diagnostics.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/diagnostics.go similarity index 94% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/diagnostics.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/diagnostics.go index b6c4d90884b1..6ae727b35a28 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/diagnostics.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/diagnostics.go @@ -42,7 +42,7 @@ func NewDiagnosticsClientWithBaseURI(baseURI string, subscriptionID string) Diag return DiagnosticsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// ExecuteSiteAnalysis execute Analysis +// ExecuteSiteAnalysis description for Execute Analysis // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -104,7 +104,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -146,7 +146,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisResponder(resp *http.Response return } -// ExecuteSiteAnalysisSlot execute Analysis +// ExecuteSiteAnalysisSlot description for Execute Analysis // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -210,7 +210,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisSlotPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -252,7 +252,7 @@ func (client DiagnosticsClient) ExecuteSiteAnalysisSlotResponder(resp *http.Resp return } -// ExecuteSiteDetector execute Detector +// ExecuteSiteDetector description for Execute Detector // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -314,7 +314,7 @@ func (client DiagnosticsClient) ExecuteSiteDetectorPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -356,7 +356,7 @@ func (client DiagnosticsClient) ExecuteSiteDetectorResponder(resp *http.Response return } -// ExecuteSiteDetectorSlot execute Detector +// ExecuteSiteDetectorSlot description for Execute Detector // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -420,7 +420,7 @@ func (client DiagnosticsClient) ExecuteSiteDetectorSlotPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -462,7 +462,7 @@ func (client DiagnosticsClient) ExecuteSiteDetectorSlotResponder(resp *http.Resp return } -// GetHostingEnvironmentDetectorResponse get Hosting Environment Detector Response +// GetHostingEnvironmentDetectorResponse description for Get Hosting Environment Detector Response // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - app Service Environment Name @@ -522,7 +522,7 @@ func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponsePreparer(ct "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -564,13 +564,13 @@ func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponseResponder(r return } -// GetSiteAnalysis get Site Analysis +// GetSiteAnalysis description for Get Site Analysis // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name // diagnosticCategory - diagnostic Category // analysisName - analysis Name -func (client DiagnosticsClient) GetSiteAnalysis(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string) (result DiagnosticAnalysis, err error) { +func (client DiagnosticsClient) GetSiteAnalysis(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string) (result AnalysisDefinition, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticsClient.GetSiteAnalysis") defer func() { @@ -620,7 +620,7 @@ func (client DiagnosticsClient) GetSiteAnalysisPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -642,7 +642,7 @@ func (client DiagnosticsClient) GetSiteAnalysisSender(req *http.Request) (*http. // GetSiteAnalysisResponder handles the response to the GetSiteAnalysis request. The method always // closes the http.Response Body. -func (client DiagnosticsClient) GetSiteAnalysisResponder(resp *http.Response) (result DiagnosticAnalysis, err error) { +func (client DiagnosticsClient) GetSiteAnalysisResponder(resp *http.Response) (result AnalysisDefinition, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -653,14 +653,14 @@ func (client DiagnosticsClient) GetSiteAnalysisResponder(resp *http.Response) (r return } -// GetSiteAnalysisSlot get Site Analysis +// GetSiteAnalysisSlot description for Get Site Analysis // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name // diagnosticCategory - diagnostic Category // analysisName - analysis Name // slot - slot - optional -func (client DiagnosticsClient) GetSiteAnalysisSlot(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, slot string) (result DiagnosticAnalysis, err error) { +func (client DiagnosticsClient) GetSiteAnalysisSlot(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, slot string) (result AnalysisDefinition, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticsClient.GetSiteAnalysisSlot") defer func() { @@ -711,7 +711,7 @@ func (client DiagnosticsClient) GetSiteAnalysisSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -733,7 +733,7 @@ func (client DiagnosticsClient) GetSiteAnalysisSlotSender(req *http.Request) (*h // GetSiteAnalysisSlotResponder handles the response to the GetSiteAnalysisSlot request. The method always // closes the http.Response Body. -func (client DiagnosticsClient) GetSiteAnalysisSlotResponder(resp *http.Response) (result DiagnosticAnalysis, err error) { +func (client DiagnosticsClient) GetSiteAnalysisSlotResponder(resp *http.Response) (result AnalysisDefinition, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -744,19 +744,19 @@ func (client DiagnosticsClient) GetSiteAnalysisSlotResponder(resp *http.Response return } -// GetSiteDetector get Detector +// GetSiteDetector description for Get Detector // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name // diagnosticCategory - diagnostic Category // detectorName - detector Name -func (client DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string) (result DiagnosticDetectorCollectionPage, err error) { +func (client DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string) (result DetectorDefinition, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticsClient.GetSiteDetector") defer func() { sc := -1 - if result.ddc.Response.Response != nil { - sc = result.ddc.Response.Response.StatusCode + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -769,7 +769,6 @@ func (client DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGro return result, validation.NewError("web.DiagnosticsClient", "GetSiteDetector", err.Error()) } - result.fn = client.getSiteDetectorNextResults req, err := client.GetSiteDetectorPreparer(ctx, resourceGroupName, siteName, diagnosticCategory, detectorName) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetector", nil, "Failure preparing request") @@ -778,12 +777,12 @@ func (client DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGro resp, err := client.GetSiteDetectorSender(req) if err != nil { - result.ddc.Response = autorest.Response{Response: resp} + result.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetector", resp, "Failure sending request") return } - result.ddc, err = client.GetSiteDetectorResponder(resp) + result, err = client.GetSiteDetectorResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetector", resp, "Failure responding to request") } @@ -801,7 +800,7 @@ func (client DiagnosticsClient) GetSiteDetectorPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -823,7 +822,7 @@ func (client DiagnosticsClient) GetSiteDetectorSender(req *http.Request) (*http. // GetSiteDetectorResponder handles the response to the GetSiteDetector request. The method always // closes the http.Response Body. -func (client DiagnosticsClient) GetSiteDetectorResponder(resp *http.Response) (result DiagnosticDetectorCollection, err error) { +func (client DiagnosticsClient) GetSiteDetectorResponder(resp *http.Response) (result DetectorDefinition, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -834,44 +833,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponder(resp *http.Response) (r return } -// getSiteDetectorNextResults retrieves the next set of results, if any. -func (client DiagnosticsClient) getSiteDetectorNextResults(ctx context.Context, lastResults DiagnosticDetectorCollection) (result DiagnosticDetectorCollection, err error) { - req, err := lastResults.diagnosticDetectorCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.GetSiteDetectorSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorNextResults", resp, "Failure sending next results request") - } - result, err = client.GetSiteDetectorResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorNextResults", resp, "Failure responding to next results request") - } - return -} - -// GetSiteDetectorComplete enumerates all values, automatically crossing page boundaries as required. -func (client DiagnosticsClient) GetSiteDetectorComplete(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string) (result DiagnosticDetectorCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticsClient.GetSiteDetector") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.GetSiteDetector(ctx, resourceGroupName, siteName, diagnosticCategory, detectorName) - return -} - -// GetSiteDetectorResponse get site detector response +// GetSiteDetectorResponse description for Get site detector response // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -931,7 +893,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponsePreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -973,7 +935,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponseResponder(resp *http.Resp return } -// GetSiteDetectorResponseSlot get site detector response +// GetSiteDetectorResponseSlot description for Get site detector response // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -1035,7 +997,7 @@ func (client DiagnosticsClient) GetSiteDetectorResponseSlotPreparer(ctx context. "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1077,20 +1039,20 @@ func (client DiagnosticsClient) GetSiteDetectorResponseSlotResponder(resp *http. return } -// GetSiteDetectorSlot get Detector +// GetSiteDetectorSlot description for Get Detector // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name // diagnosticCategory - diagnostic Category // detectorName - detector Name // slot - slot Name -func (client DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string, slot string) (result DiagnosticDetectorCollectionPage, err error) { +func (client DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string, slot string) (result DetectorDefinition, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticsClient.GetSiteDetectorSlot") defer func() { sc := -1 - if result.ddc.Response.Response != nil { - sc = result.ddc.Response.Response.StatusCode + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -1103,7 +1065,6 @@ func (client DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourc return result, validation.NewError("web.DiagnosticsClient", "GetSiteDetectorSlot", err.Error()) } - result.fn = client.getSiteDetectorSlotNextResults req, err := client.GetSiteDetectorSlotPreparer(ctx, resourceGroupName, siteName, diagnosticCategory, detectorName, slot) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorSlot", nil, "Failure preparing request") @@ -1112,12 +1073,12 @@ func (client DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourc resp, err := client.GetSiteDetectorSlotSender(req) if err != nil { - result.ddc.Response = autorest.Response{Response: resp} + result.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorSlot", resp, "Failure sending request") return } - result.ddc, err = client.GetSiteDetectorSlotResponder(resp) + result, err = client.GetSiteDetectorSlotResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorSlot", resp, "Failure responding to request") } @@ -1136,7 +1097,7 @@ func (client DiagnosticsClient) GetSiteDetectorSlotPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1158,7 +1119,7 @@ func (client DiagnosticsClient) GetSiteDetectorSlotSender(req *http.Request) (*h // GetSiteDetectorSlotResponder handles the response to the GetSiteDetectorSlot request. The method always // closes the http.Response Body. -func (client DiagnosticsClient) GetSiteDetectorSlotResponder(resp *http.Response) (result DiagnosticDetectorCollection, err error) { +func (client DiagnosticsClient) GetSiteDetectorSlotResponder(resp *http.Response) (result DetectorDefinition, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1169,44 +1130,7 @@ func (client DiagnosticsClient) GetSiteDetectorSlotResponder(resp *http.Response return } -// getSiteDetectorSlotNextResults retrieves the next set of results, if any. -func (client DiagnosticsClient) getSiteDetectorSlotNextResults(ctx context.Context, lastResults DiagnosticDetectorCollection) (result DiagnosticDetectorCollection, err error) { - req, err := lastResults.diagnosticDetectorCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorSlotNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.GetSiteDetectorSlotSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorSlotNextResults", resp, "Failure sending next results request") - } - result, err = client.GetSiteDetectorSlotResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "getSiteDetectorSlotNextResults", resp, "Failure responding to next results request") - } - return -} - -// GetSiteDetectorSlotComplete enumerates all values, automatically crossing page boundaries as required. -func (client DiagnosticsClient) GetSiteDetectorSlotComplete(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string, slot string) (result DiagnosticDetectorCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticsClient.GetSiteDetectorSlot") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.GetSiteDetectorSlot(ctx, resourceGroupName, siteName, diagnosticCategory, detectorName, slot) - return -} - -// GetSiteDiagnosticCategory get Diagnostics Category +// GetSiteDiagnosticCategory description for Get Diagnostics Category // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -1260,7 +1184,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategoryPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1293,7 +1217,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategoryResponder(resp *http.Re return } -// GetSiteDiagnosticCategorySlot get Diagnostics Category +// GetSiteDiagnosticCategorySlot description for Get Diagnostics Category // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -1349,7 +1273,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategorySlotPreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1382,7 +1306,7 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategorySlotResponder(resp *htt return } -// ListHostingEnvironmentDetectorResponses list Hosting Environment Detector Responses +// ListHostingEnvironmentDetectorResponses description for List Hosting Environment Detector Responses // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - site Name @@ -1435,7 +1359,7 @@ func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponsesPreparer( "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1505,7 +1429,7 @@ func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponsesComplete( return } -// ListSiteAnalyses get Site Analyses +// ListSiteAnalyses description for Get Site Analyses // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -1560,7 +1484,7 @@ func (client DiagnosticsClient) ListSiteAnalysesPreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1630,7 +1554,7 @@ func (client DiagnosticsClient) ListSiteAnalysesComplete(ctx context.Context, re return } -// ListSiteAnalysesSlot get Site Analyses +// ListSiteAnalysesSlot description for Get Site Analyses // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -1687,7 +1611,7 @@ func (client DiagnosticsClient) ListSiteAnalysesSlotPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1757,7 +1681,7 @@ func (client DiagnosticsClient) ListSiteAnalysesSlotComplete(ctx context.Context return } -// ListSiteDetectorResponses list Site Detector Responses +// ListSiteDetectorResponses description for List Site Detector Responses // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -1810,7 +1734,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1880,7 +1804,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesComplete(ctx context.Co return } -// ListSiteDetectorResponsesSlot list Site Detector Responses +// ListSiteDetectorResponsesSlot description for List Site Detector Responses // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -1935,7 +1859,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesSlotPreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2005,7 +1929,7 @@ func (client DiagnosticsClient) ListSiteDetectorResponsesSlotComplete(ctx contex return } -// ListSiteDetectors get Detectors +// ListSiteDetectors description for Get Detectors // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -2060,7 +1984,7 @@ func (client DiagnosticsClient) ListSiteDetectorsPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2130,7 +2054,7 @@ func (client DiagnosticsClient) ListSiteDetectorsComplete(ctx context.Context, r return } -// ListSiteDetectorsSlot get Detectors +// ListSiteDetectorsSlot description for Get Detectors // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -2187,7 +2111,7 @@ func (client DiagnosticsClient) ListSiteDetectorsSlotPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2257,7 +2181,7 @@ func (client DiagnosticsClient) ListSiteDetectorsSlotComplete(ctx context.Contex return } -// ListSiteDiagnosticCategories get Diagnostics Categories +// ListSiteDiagnosticCategories description for Get Diagnostics Categories // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -2310,7 +2234,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -2380,7 +2304,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesComplete(ctx context return } -// ListSiteDiagnosticCategoriesSlot get Diagnostics Categories +// ListSiteDiagnosticCategoriesSlot description for Get Diagnostics Categories // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site Name @@ -2435,7 +2359,7 @@ func (client DiagnosticsClient) ListSiteDiagnosticCategoriesSlotPreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/domainregistrationprovider.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/domainregistrationprovider.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/domainregistrationprovider.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/domainregistrationprovider.go index b289d1585171..b886fa4fde2d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/domainregistrationprovider.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/domainregistrationprovider.go @@ -40,7 +40,8 @@ func NewDomainRegistrationProviderClientWithBaseURI(baseURI string, subscription return DomainRegistrationProviderClient{NewWithBaseURI(baseURI, subscriptionID)} } -// ListOperations implements Csm operations Api to exposes the list of available Csm Apis under the resource provider +// ListOperations description for Implements Csm operations Api to exposes the list of available Csm Apis under the +// resource provider func (client DomainRegistrationProviderClient) ListOperations(ctx context.Context) (result CsmOperationCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DomainRegistrationProviderClient.ListOperations") @@ -76,7 +77,7 @@ func (client DomainRegistrationProviderClient) ListOperations(ctx context.Contex // ListOperationsPreparer prepares the ListOperations request. func (client DomainRegistrationProviderClient) ListOperationsPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/domains.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/domains.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/domains.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/domains.go index 1f6c3b749419..29a4fbec2377 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/domains.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/domains.go @@ -41,10 +41,10 @@ func NewDomainsClientWithBaseURI(baseURI string, subscriptionID string) DomainsC return DomainsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// CheckAvailability check if a domain is available for registration. +// CheckAvailability description for Check if a domain is available for registration. // Parameters: // identifier - name of the domain. -func (client DomainsClient) CheckAvailability(ctx context.Context, identifier NameIdentifier) (result DomainAvailablilityCheckResult, err error) { +func (client DomainsClient) CheckAvailability(ctx context.Context, identifier NameIdentifier) (result DomainAvailabilityCheckResult, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DomainsClient.CheckAvailability") defer func() { @@ -82,7 +82,7 @@ func (client DomainsClient) CheckAvailabilityPreparer(ctx context.Context, ident "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -106,7 +106,7 @@ func (client DomainsClient) CheckAvailabilitySender(req *http.Request) (*http.Re // CheckAvailabilityResponder handles the response to the CheckAvailability request. The method always // closes the http.Response Body. -func (client DomainsClient) CheckAvailabilityResponder(resp *http.Response) (result DomainAvailablilityCheckResult, err error) { +func (client DomainsClient) CheckAvailabilityResponder(resp *http.Response) (result DomainAvailabilityCheckResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -117,7 +117,7 @@ func (client DomainsClient) CheckAvailabilityResponder(resp *http.Response) (res return } -// CreateOrUpdate creates or updates a domain. +// CreateOrUpdate description for Creates or updates a domain. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of the domain. @@ -222,7 +222,7 @@ func (client DomainsClient) CreateOrUpdatePreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -263,8 +263,8 @@ func (client DomainsClient) CreateOrUpdateResponder(resp *http.Response) (result return } -// CreateOrUpdateOwnershipIdentifier creates an ownership identifier for a domain or updates identifier details for an -// existing identifer +// CreateOrUpdateOwnershipIdentifier description for Creates an ownership identifier for a domain or updates identifier +// details for an existing identifer // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of domain. @@ -319,7 +319,7 @@ func (client DomainsClient) CreateOrUpdateOwnershipIdentifierPreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -354,7 +354,7 @@ func (client DomainsClient) CreateOrUpdateOwnershipIdentifierResponder(resp *htt return } -// Delete delete a domain. +// Delete description for Delete a domain. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of the domain. @@ -408,7 +408,7 @@ func (client DomainsClient) DeletePreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -443,7 +443,7 @@ func (client DomainsClient) DeleteResponder(resp *http.Response) (result autores return } -// DeleteOwnershipIdentifier delete ownership identifier for domain +// DeleteOwnershipIdentifier description for Delete ownership identifier for domain // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of domain. @@ -497,7 +497,7 @@ func (client DomainsClient) DeleteOwnershipIdentifierPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -529,7 +529,7 @@ func (client DomainsClient) DeleteOwnershipIdentifierResponder(resp *http.Respon return } -// Get get a domain. +// Get description for Get a domain. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of the domain. @@ -581,7 +581,7 @@ func (client DomainsClient) GetPreparer(ctx context.Context, resourceGroupName s "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -614,7 +614,7 @@ func (client DomainsClient) GetResponder(resp *http.Response) (result Domain, er return } -// GetControlCenterSsoRequest generate a single sign-on request for the domain management portal. +// GetControlCenterSsoRequest description for Generate a single sign-on request for the domain management portal. func (client DomainsClient) GetControlCenterSsoRequest(ctx context.Context) (result DomainControlCenterSsoRequest, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DomainsClient.GetControlCenterSsoRequest") @@ -653,7 +653,7 @@ func (client DomainsClient) GetControlCenterSsoRequestPreparer(ctx context.Conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -686,7 +686,7 @@ func (client DomainsClient) GetControlCenterSsoRequestResponder(resp *http.Respo return } -// GetOwnershipIdentifier get ownership identifier for domain +// GetOwnershipIdentifier description for Get ownership identifier for domain // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of domain. @@ -740,7 +740,7 @@ func (client DomainsClient) GetOwnershipIdentifierPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -773,7 +773,7 @@ func (client DomainsClient) GetOwnershipIdentifierResponder(resp *http.Response) return } -// List get all domains in a subscription. +// List description for Get all domains in a subscription. func (client DomainsClient) List(ctx context.Context) (result DomainCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/DomainsClient.List") @@ -813,7 +813,7 @@ func (client DomainsClient) ListPreparer(ctx context.Context) (*http.Request, er "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -883,7 +883,7 @@ func (client DomainsClient) ListComplete(ctx context.Context) (result DomainColl return } -// ListByResourceGroup get all domains in a resource group. +// ListByResourceGroup description for Get all domains in a resource group. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. func (client DomainsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DomainCollectionPage, err error) { @@ -934,7 +934,7 @@ func (client DomainsClient) ListByResourceGroupPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1004,7 +1004,7 @@ func (client DomainsClient) ListByResourceGroupComplete(ctx context.Context, res return } -// ListOwnershipIdentifiers lists domain ownership identifiers. +// ListOwnershipIdentifiers description for Lists domain ownership identifiers. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of domain. @@ -1057,7 +1057,7 @@ func (client DomainsClient) ListOwnershipIdentifiersPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1127,7 +1127,7 @@ func (client DomainsClient) ListOwnershipIdentifiersComplete(ctx context.Context return } -// ListRecommendations get domain name recommendations based on keywords. +// ListRecommendations description for Get domain name recommendations based on keywords. // Parameters: // parameters - search parameters for domain name recommendations. func (client DomainsClient) ListRecommendations(ctx context.Context, parameters DomainRecommendationSearchParameters) (result NameIdentifierCollectionPage, err error) { @@ -1169,7 +1169,7 @@ func (client DomainsClient) ListRecommendationsPreparer(ctx context.Context, par "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1241,7 +1241,7 @@ func (client DomainsClient) ListRecommendationsComplete(ctx context.Context, par return } -// Renew renew a domain. +// Renew description for Renew a domain. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of the domain. @@ -1293,7 +1293,7 @@ func (client DomainsClient) RenewPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1319,13 +1319,13 @@ func (client DomainsClient) RenewResponder(resp *http.Response) (result autorest err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent, http.StatusBadRequest, http.StatusInternalServerError), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp return } -// Update creates or updates a domain. +// Update description for Creates or updates a domain. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of the domain. @@ -1380,7 +1380,7 @@ func (client DomainsClient) UpdatePreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1415,8 +1415,8 @@ func (client DomainsClient) UpdateResponder(resp *http.Response) (result Domain, return } -// UpdateOwnershipIdentifier creates an ownership identifier for a domain or updates identifier details for an existing -// identifer +// UpdateOwnershipIdentifier description for Creates an ownership identifier for a domain or updates identifier details +// for an existing identifer // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // domainName - name of domain. @@ -1471,7 +1471,7 @@ func (client DomainsClient) UpdateOwnershipIdentifierPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/models.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/models.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/models.go index 24b150a12227..d06b77a42eeb 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/models.go @@ -31,7 +31,7 @@ import ( ) // The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web" +const fqdn = "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web" // AccessControlEntryAction enumerates the values for access control entry action. type AccessControlEntryAction string @@ -375,6 +375,32 @@ func PossibleComputeModeOptionsValues() []ComputeModeOptions { return []ComputeModeOptions{ComputeModeOptionsDedicated, ComputeModeOptionsDynamic, ComputeModeOptionsShared} } +// ConfigReferenceLocation enumerates the values for config reference location. +type ConfigReferenceLocation string + +const ( + // ApplicationSetting ... + ApplicationSetting ConfigReferenceLocation = "ApplicationSetting" +) + +// PossibleConfigReferenceLocationValues returns an array of possible values for the ConfigReferenceLocation const type. +func PossibleConfigReferenceLocationValues() []ConfigReferenceLocation { + return []ConfigReferenceLocation{ApplicationSetting} +} + +// ConfigReferenceSource enumerates the values for config reference source. +type ConfigReferenceSource string + +const ( + // KeyVault ... + KeyVault ConfigReferenceSource = "KeyVault" +) + +// PossibleConfigReferenceSourceValues returns an array of possible values for the ConfigReferenceSource const type. +func PossibleConfigReferenceSourceValues() []ConfigReferenceSource { + return []ConfigReferenceSource{KeyVault} +} + // ConnectionStringType enumerates the values for connection string type. type ConnectionStringType string @@ -810,15 +836,13 @@ const ( ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" // ManagedServiceIdentityTypeSystemAssigned ... ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" - // ManagedServiceIdentityTypeSystemAssignedUserAssigned ... - ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned, UserAssigned" // ManagedServiceIdentityTypeUserAssigned ... ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" ) // PossibleManagedServiceIdentityTypeValues returns an array of possible values for the ManagedServiceIdentityType const type. func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { - return []ManagedServiceIdentityType{ManagedServiceIdentityTypeNone, ManagedServiceIdentityTypeSystemAssigned, ManagedServiceIdentityTypeSystemAssignedUserAssigned, ManagedServiceIdentityTypeUserAssigned} + return []ManagedServiceIdentityType{ManagedServiceIdentityTypeNone, ManagedServiceIdentityTypeSystemAssigned, ManagedServiceIdentityTypeUserAssigned} } // MSDeployLogEntryType enumerates the values for ms deploy log entry type. @@ -1009,6 +1033,35 @@ func PossibleRenderingTypeValues() []RenderingType { return []RenderingType{NoGraph, Table, TimeSeries, TimeSeriesPerInstance} } +// ResolveStatus enumerates the values for resolve status. +type ResolveStatus string + +const ( + // AccessToKeyVaultDenied ... + AccessToKeyVaultDenied ResolveStatus = "AccessToKeyVaultDenied" + // Initialized ... + Initialized ResolveStatus = "Initialized" + // InvalidSyntax ... + InvalidSyntax ResolveStatus = "InvalidSyntax" + // MSINotEnabled ... + MSINotEnabled ResolveStatus = "MSINotEnabled" + // OtherReasons ... + OtherReasons ResolveStatus = "OtherReasons" + // Resolved ... + Resolved ResolveStatus = "Resolved" + // SecretNotFound ... + SecretNotFound ResolveStatus = "SecretNotFound" + // SecretVersionNotFound ... + SecretVersionNotFound ResolveStatus = "SecretVersionNotFound" + // VaultNotFound ... + VaultNotFound ResolveStatus = "VaultNotFound" +) + +// PossibleResolveStatusValues returns an array of possible values for the ResolveStatus const type. +func PossibleResolveStatusValues() []ResolveStatus { + return []ResolveStatus{AccessToKeyVaultDenied, Initialized, InvalidSyntax, MSINotEnabled, OtherReasons, Resolved, SecretNotFound, SecretVersionNotFound, VaultNotFound} +} + // ResourceScopeType enumerates the values for resource scope type. type ResourceScopeType string @@ -1073,11 +1126,13 @@ const ( ScmTypeTfs ScmType = "Tfs" // ScmTypeVSO ... ScmTypeVSO ScmType = "VSO" + // ScmTypeVSTSRM ... + ScmTypeVSTSRM ScmType = "VSTSRM" ) // PossibleScmTypeValues returns an array of possible values for the ScmType const type. func PossibleScmTypeValues() []ScmType { - return []ScmType{ScmTypeBitbucketGit, ScmTypeBitbucketHg, ScmTypeCodePlexGit, ScmTypeCodePlexHg, ScmTypeDropbox, ScmTypeExternalGit, ScmTypeExternalHg, ScmTypeGitHub, ScmTypeLocalGit, ScmTypeNone, ScmTypeOneDrive, ScmTypeTfs, ScmTypeVSO} + return []ScmType{ScmTypeBitbucketGit, ScmTypeBitbucketHg, ScmTypeCodePlexGit, ScmTypeCodePlexHg, ScmTypeDropbox, ScmTypeExternalGit, ScmTypeExternalHg, ScmTypeGitHub, ScmTypeLocalGit, ScmTypeNone, ScmTypeOneDrive, ScmTypeTfs, ScmTypeVSO, ScmTypeVSTSRM} } // SiteAvailabilityState enumerates the values for site availability state. @@ -1133,6 +1188,23 @@ func PossibleSiteLoadBalancingValues() []SiteLoadBalancing { return []SiteLoadBalancing{LeastRequests, LeastResponseTime, RequestHash, WeightedRoundRobin, WeightedTotalTraffic} } +// SiteRuntimeState enumerates the values for site runtime state. +type SiteRuntimeState string + +const ( + // READY ... + READY SiteRuntimeState = "READY" + // STOPPED ... + STOPPED SiteRuntimeState = "STOPPED" + // UNKNOWN ... + UNKNOWN SiteRuntimeState = "UNKNOWN" +) + +// PossibleSiteRuntimeStateValues returns an array of possible values for the SiteRuntimeState const type. +func PossibleSiteRuntimeStateValues() []SiteRuntimeState { + return []SiteRuntimeState{READY, STOPPED, UNKNOWN} +} + // SkuName enumerates the values for sku name. type SkuName string @@ -1310,13 +1382,15 @@ const ( WorkerSizeOptionsLarge WorkerSizeOptions = "Large" // WorkerSizeOptionsMedium ... WorkerSizeOptionsMedium WorkerSizeOptions = "Medium" + // WorkerSizeOptionsNestedSmall ... + WorkerSizeOptionsNestedSmall WorkerSizeOptions = "NestedSmall" // WorkerSizeOptionsSmall ... WorkerSizeOptionsSmall WorkerSizeOptions = "Small" ) // PossibleWorkerSizeOptionsValues returns an array of possible values for the WorkerSizeOptions const type. func PossibleWorkerSizeOptionsValues() []WorkerSizeOptions { - return []WorkerSizeOptions{WorkerSizeOptionsD1, WorkerSizeOptionsD2, WorkerSizeOptionsD3, WorkerSizeOptionsDefault, WorkerSizeOptionsLarge, WorkerSizeOptionsMedium, WorkerSizeOptionsSmall} + return []WorkerSizeOptions{WorkerSizeOptionsD1, WorkerSizeOptionsD2, WorkerSizeOptionsD3, WorkerSizeOptionsDefault, WorkerSizeOptionsLarge, WorkerSizeOptionsMedium, WorkerSizeOptionsNestedSmall, WorkerSizeOptionsSmall} } // AbnormalTimePeriod class representing Abnormal Time Period identified in diagnosis @@ -1350,6 +1424,92 @@ type Address struct { // AddressResponse describes main public IP address and any extra virtual IPs. type AddressResponse struct { autorest.Response `json:"-"` + // AddressResponseProperties - AddressResponse resource specific properties + *AddressResponseProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource Name. + Name *string `json:"name,omitempty"` + // Kind - Kind of resource. + Kind *string `json:"kind,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AddressResponse. +func (ar AddressResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ar.AddressResponseProperties != nil { + objectMap["properties"] = ar.AddressResponseProperties + } + if ar.Kind != nil { + objectMap["kind"] = ar.Kind + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AddressResponse struct. +func (ar *AddressResponse) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var addressResponseProperties AddressResponseProperties + err = json.Unmarshal(*v, &addressResponseProperties) + if err != nil { + return err + } + ar.AddressResponseProperties = &addressResponseProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ar.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ar.Name = &name + } + case "kind": + if v != nil { + var kind string + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + ar.Kind = &kind + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ar.Type = &typeVar + } + } + } + + return nil +} + +// AddressResponseProperties addressResponse resource specific properties +type AddressResponseProperties struct { // ServiceIPAddress - Main public virtual IP. ServiceIPAddress *string `json:"serviceIpAddress,omitempty"` // InternalIPAddress - Virtual Network internal IP address of the App Service Environment if it is in internal load-balancing mode. @@ -1376,6 +1536,7 @@ type AnalysisData struct { // AnalysisDefinition definition of Analysis type AnalysisDefinition struct { + autorest.Response `json:"-"` // AnalysisDefinitionProperties - AnalysisDefinition resource specific properties *AnalysisDefinitionProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id. @@ -1472,6 +1633,29 @@ type APIDefinitionInfo struct { URL *string `json:"url,omitempty"` } +// APIKVReference description of site key vault references. +type APIKVReference struct { + Reference *string `json:"reference,omitempty"` + // Status - Possible values include: 'Initialized', 'Resolved', 'InvalidSyntax', 'MSINotEnabled', 'VaultNotFound', 'SecretNotFound', 'SecretVersionNotFound', 'AccessToKeyVaultDenied', 'OtherReasons' + Status ResolveStatus `json:"status,omitempty"` + VaultName *string `json:"vaultName,omitempty"` + SecretName *string `json:"secretName,omitempty"` + SecretVersion *string `json:"secretVersion,omitempty"` + // IdentityType - Possible values include: 'ManagedServiceIdentityTypeNone', 'ManagedServiceIdentityTypeSystemAssigned', 'ManagedServiceIdentityTypeUserAssigned' + IdentityType ManagedServiceIdentityType `json:"identityType,omitempty"` + Details *string `json:"details,omitempty"` + // Source - Possible values include: 'KeyVault' + Source ConfigReferenceSource `json:"source,omitempty"` + // Location - Possible values include: 'ApplicationSetting' + Location ConfigReferenceLocation `json:"location,omitempty"` +} + +// APIManagementConfig azure API management (APIM) configuration linked to the app. +type APIManagementConfig struct { + // ID - APIM-Api Identifier. + ID *string `json:"id,omitempty"` +} + // AppCollection collection of App Service apps. type AppCollection struct { autorest.Response `json:"-"` @@ -1792,12 +1976,13 @@ type ApplicationStack struct { type ApplicationStackCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. - Value *[]ApplicationStack `json:"value,omitempty"` + Value *[]ApplicationStackResource `json:"value,omitempty"` // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } -// ApplicationStackCollectionIterator provides access to a complete listing of ApplicationStack values. +// ApplicationStackCollectionIterator provides access to a complete listing of ApplicationStackResource +// values. type ApplicationStackCollectionIterator struct { i int page ApplicationStackCollectionPage @@ -1848,9 +2033,9 @@ func (iter ApplicationStackCollectionIterator) Response() ApplicationStackCollec // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. -func (iter ApplicationStackCollectionIterator) Value() ApplicationStack { +func (iter ApplicationStackCollectionIterator) Value() ApplicationStackResource { if !iter.page.NotDone() { - return ApplicationStack{} + return ApplicationStackResource{} } return iter.page.Values()[iter.i] } @@ -1877,7 +2062,7 @@ func (asc ApplicationStackCollection) applicationStackCollectionPreparer(ctx con autorest.WithBaseURL(to.String(asc.NextLink))) } -// ApplicationStackCollectionPage contains a page of ApplicationStack values. +// ApplicationStackCollectionPage contains a page of ApplicationStackResource values. type ApplicationStackCollectionPage struct { fn func(context.Context, ApplicationStackCollection) (ApplicationStackCollection, error) asc ApplicationStackCollection @@ -1922,7 +2107,7 @@ func (page ApplicationStackCollectionPage) Response() ApplicationStackCollection } // Values returns the slice of values for the current page or nil if there are no values. -func (page ApplicationStackCollectionPage) Values() []ApplicationStack { +func (page ApplicationStackCollectionPage) Values() []ApplicationStackResource { if page.asc.IsEmpty() { return nil } @@ -1934,6 +2119,138 @@ func NewApplicationStackCollectionPage(getNextPage func(context.Context, Applica return ApplicationStackCollectionPage{fn: getNextPage} } +// ApplicationStackResource ARM resource for a ApplicationStack. +type ApplicationStackResource struct { + // ApplicationStack - Core resource properties + *ApplicationStack `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource Name. + Name *string `json:"name,omitempty"` + // Kind - Kind of resource. + Kind *string `json:"kind,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationStackResource. +func (asr ApplicationStackResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if asr.ApplicationStack != nil { + objectMap["properties"] = asr.ApplicationStack + } + if asr.Kind != nil { + objectMap["kind"] = asr.Kind + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationStackResource struct. +func (asr *ApplicationStackResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationStack ApplicationStack + err = json.Unmarshal(*v, &applicationStack) + if err != nil { + return err + } + asr.ApplicationStack = &applicationStack + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + asr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + asr.Name = &name + } + case "kind": + if v != nil { + var kind string + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + asr.Kind = &kind + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asr.Type = &typeVar + } + } + } + + return nil +} + +// AppsCopyProductionSlotFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AppsCopyProductionSlotFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AppsCopyProductionSlotFuture) Result(client AppsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsCopyProductionSlotFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("web.AppsCopyProductionSlotFuture") + return + } + ar.Response = future.Response() + return +} + +// AppsCopySlotSlotFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type AppsCopySlotSlotFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AppsCopySlotSlotFuture) Result(client AppsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppsCopySlotSlotFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("web.AppsCopySlotSlotFuture") + return + } + ar.Response = future.Response() + return +} + // AppsCreateFunctionFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type AppsCreateFunctionFuture struct { @@ -6194,6 +6511,8 @@ type CertificatePatchResourceProperties struct { KeyVaultSecretStatus KeyVaultSecretStatus `json:"keyVaultSecretStatus,omitempty"` // ServerFarmID - Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". ServerFarmID *string `json:"serverFarmId,omitempty"` + // CanonicalName - CNAME of the certificate to be issued via free certificate + CanonicalName *string `json:"canonicalName,omitempty"` } // CertificateProperties certificate resource specific properties @@ -6236,6 +6555,8 @@ type CertificateProperties struct { KeyVaultSecretStatus KeyVaultSecretStatus `json:"keyVaultSecretStatus,omitempty"` // ServerFarmID - Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". ServerFarmID *string `json:"serverFarmId,omitempty"` + // CanonicalName - CNAME of the certificate to be issued via free certificate + CanonicalName *string `json:"canonicalName,omitempty"` } // CloningInfo information needed for cloning operation. @@ -6377,6 +6698,60 @@ type Contact struct { Phone *string `json:"phone,omitempty"` } +// ContainerCPUStatistics ... +type ContainerCPUStatistics struct { + CPUUsage *ContainerCPUUsage `json:"cpuUsage,omitempty"` + SystemCPUUsage *int64 `json:"systemCpuUsage,omitempty"` + OnlineCPUCount *int32 `json:"onlineCpuCount,omitempty"` + ThrottlingData *ContainerThrottlingData `json:"throttlingData,omitempty"` +} + +// ContainerCPUUsage ... +type ContainerCPUUsage struct { + TotalUsage *int64 `json:"totalUsage,omitempty"` + PerCPUUsage *[]int64 `json:"perCpuUsage,omitempty"` + KernelModeUsage *int64 `json:"kernelModeUsage,omitempty"` + UserModeUsage *int64 `json:"userModeUsage,omitempty"` +} + +// ContainerInfo ... +type ContainerInfo struct { + CurrentTimeStamp *date.Time `json:"currentTimeStamp,omitempty"` + PreviousTimeStamp *date.Time `json:"previousTimeStamp,omitempty"` + CurrentCPUStats *ContainerCPUStatistics `json:"currentCpuStats,omitempty"` + PreviousCPUStats *ContainerCPUStatistics `json:"previousCpuStats,omitempty"` + MemoryStats *ContainerMemoryStatistics `json:"memoryStats,omitempty"` + Name *string `json:"name,omitempty"` + ID *string `json:"id,omitempty"` + Eth0 *ContainerNetworkInterfaceStatistics `json:"eth0,omitempty"` +} + +// ContainerMemoryStatistics ... +type ContainerMemoryStatistics struct { + Usage *int64 `json:"usage,omitempty"` + MaxUsage *int64 `json:"maxUsage,omitempty"` + Limit *int64 `json:"limit,omitempty"` +} + +// ContainerNetworkInterfaceStatistics ... +type ContainerNetworkInterfaceStatistics struct { + RxBytes *int64 `json:"rxBytes,omitempty"` + RxPackets *int64 `json:"rxPackets,omitempty"` + RxErrors *int64 `json:"rxErrors,omitempty"` + RxDropped *int64 `json:"rxDropped,omitempty"` + TxBytes *int64 `json:"txBytes,omitempty"` + TxPackets *int64 `json:"txPackets,omitempty"` + TxErrors *int64 `json:"txErrors,omitempty"` + TxDropped *int64 `json:"txDropped,omitempty"` +} + +// ContainerThrottlingData ... +type ContainerThrottlingData struct { + Periods *int32 `json:"periods,omitempty"` + ThrottledPeriods *int32 `json:"throttledPeriods,omitempty"` + ThrottledTime *int32 `json:"throttledTime,omitempty"` +} + // ContinuousWebJob continuous Web Job Information. type ContinuousWebJob struct { autorest.Response `json:"-"` @@ -6681,6 +7056,17 @@ type CorsSettings struct { SupportCredentials *bool `json:"supportCredentials,omitempty"` } +// CsmCopySlotEntity copy deployment slot parameters. +type CsmCopySlotEntity struct { + // TargetSlot - Destination deployment slot during copy operation. + TargetSlot *string `json:"targetSlot,omitempty"` + // SiteConfig - The site object which will be merged with the source slot site + // to produce new destination slot site object. + // null to just copy source slot content. Otherwise a Site + // object with properties to override source slot site. + SiteConfig *SiteConfig `json:"siteConfig,omitempty"` +} + // CsmMoveResourceEnvelope object with a list of the resources that need to be moved and the resource group // they should be moved to. type CsmMoveResourceEnvelope struct { @@ -7858,6 +8244,7 @@ type DetectorAbnormalTimePeriod struct { // DetectorDefinition class representing detector definition type DetectorDefinition struct { + autorest.Response `json:"-"` // DetectorDefinitionProperties - DetectorDefinition resource specific properties *DetectorDefinitionProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id. @@ -9113,8 +9500,8 @@ func (d *Domain) UnmarshalJSON(body []byte) error { return nil } -// DomainAvailablilityCheckResult domain availability check result. -type DomainAvailablilityCheckResult struct { +// DomainAvailabilityCheckResult domain availability check result. +type DomainAvailabilityCheckResult struct { autorest.Response `json:"-"` // Name - Name of the domain. Name *string `json:"name,omitempty"` @@ -9767,8 +10154,8 @@ type EndpointDetail struct { Port *int32 `json:"port,omitempty"` // Latency - The time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port. Latency *float64 `json:"latency,omitempty"` - // IsAccessable - Whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port. - IsAccessable *bool `json:"isAccessable,omitempty"` + // IsAccessible - Whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port. + IsAccessible *bool `json:"isAccessible,omitempty"` } // ErrorEntity body of the error response returned from the API. @@ -10072,7 +10459,7 @@ type FunctionEnvelopeProperties struct { InvokeURLTemplate *string `json:"invoke_url_template,omitempty"` // Language - The function language Language *string `json:"language,omitempty"` - // IsDisabled - Value indicating whether the function is disabled + // IsDisabled - Gets or sets a value indicating whether the function is disabled IsDisabled *bool `json:"isDisabled,omitempty"` } @@ -10216,14 +10603,6 @@ type FunctionSecretsProperties struct { TriggerURL *string `json:"trigger_url,omitempty"` } -// GeoDistribution a global distribution definition. -type GeoDistribution struct { - // Location - Location. - Location *string `json:"location,omitempty"` - // NumberOfWorkers - NumberOfWorkers. - NumberOfWorkers *int32 `json:"numberOfWorkers,omitempty"` -} - // GeoRegion geographical region. type GeoRegion struct { // GeoRegionProperties - GeoRegion resource specific properties @@ -10462,6 +10841,8 @@ type GeoRegionProperties struct { Description *string `json:"description,omitempty"` // DisplayName - READ-ONLY; Display name for region. DisplayName *string `json:"displayName,omitempty"` + // OrgDomain - READ-ONLY; Display name for region. + OrgDomain *string `json:"orgDomain,omitempty"` } // GlobalCsmSkuDescription a Global SKU Description. @@ -10508,8 +10889,8 @@ type HostingEnvironmentDiagnostics struct { autorest.Response `json:"-"` // Name - Name/identifier of the diagnostics. Name *string `json:"name,omitempty"` - // DiagnosicsOutput - Diagnostics output. - DiagnosicsOutput *string `json:"diagnosicsOutput,omitempty"` + // DiagnosticsOutput - Diagnostics output. + DiagnosticsOutput *string `json:"diagnosticsOutput,omitempty"` } // HostingEnvironmentProfile specification for an App Service Environment to use for this resource. @@ -10522,32 +10903,6 @@ type HostingEnvironmentProfile struct { Type *string `json:"type,omitempty"` } -// HostKeys functions host level keys. -type HostKeys struct { - autorest.Response `json:"-"` - // MasterKey - Secret key. - MasterKey *string `json:"masterKey,omitempty"` - // FunctionKeys - Host level function keys. - FunctionKeys map[string]*string `json:"functionKeys"` - // SystemKeys - System keys. - SystemKeys map[string]*string `json:"systemKeys"` -} - -// MarshalJSON is the custom marshaler for HostKeys. -func (hk HostKeys) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if hk.MasterKey != nil { - objectMap["masterKey"] = hk.MasterKey - } - if hk.FunctionKeys != nil { - objectMap["functionKeys"] = hk.FunctionKeys - } - if hk.SystemKeys != nil { - objectMap["systemKeys"] = hk.SystemKeys - } - return json.Marshal(objectMap) -} - // HostName details of a hostname derived from a domain. type HostName struct { // Name - Name of the hostname. @@ -11524,8 +11879,8 @@ func NewIdentifierCollectionPage(getNextPage func(context.Context, IdentifierCol // IdentifierProperties identifier resource specific properties type IdentifierProperties struct { - // ID - String representation of the identity. - ID *string `json:"id,omitempty"` + // Value - String representation of the identity. + Value *string `json:"id,omitempty"` } // InboundEnvironmentEndpoint the IP Addresses and Ports that require inbound network access to and within @@ -11991,30 +12346,209 @@ func (j JobProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// KeyInfo function key info. -type KeyInfo struct { +// KeyVaultReferenceCollection web app key vault reference and status ARM resource. +type KeyVaultReferenceCollection struct { autorest.Response `json:"-"` - // Name - Key name + // KeyVaultReferenceCollectionProperties - KeyVaultReferenceCollection resource specific properties + *KeyVaultReferenceCollectionProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` - // Value - Key value - Value *string `json:"value,omitempty"` -} - -// ListCapability ... -type ListCapability struct { - autorest.Response `json:"-"` - Value *[]Capability `json:"value,omitempty"` + // Kind - Kind of resource. + Kind *string `json:"kind,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` } -// ListCertificateEmail ... -type ListCertificateEmail struct { - autorest.Response `json:"-"` - Value *[]CertificateEmail `json:"value,omitempty"` +// MarshalJSON is the custom marshaler for KeyVaultReferenceCollection. +func (kvrc KeyVaultReferenceCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if kvrc.KeyVaultReferenceCollectionProperties != nil { + objectMap["properties"] = kvrc.KeyVaultReferenceCollectionProperties + } + if kvrc.Kind != nil { + objectMap["kind"] = kvrc.Kind + } + return json.Marshal(objectMap) } -// ListCertificateOrderAction ... -type ListCertificateOrderAction struct { - autorest.Response `json:"-"` +// UnmarshalJSON is the custom unmarshaler for KeyVaultReferenceCollection struct. +func (kvrc *KeyVaultReferenceCollection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var keyVaultReferenceCollectionProperties KeyVaultReferenceCollectionProperties + err = json.Unmarshal(*v, &keyVaultReferenceCollectionProperties) + if err != nil { + return err + } + kvrc.KeyVaultReferenceCollectionProperties = &keyVaultReferenceCollectionProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + kvrc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + kvrc.Name = &name + } + case "kind": + if v != nil { + var kind string + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + kvrc.Kind = &kind + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + kvrc.Type = &typeVar + } + } + } + + return nil +} + +// KeyVaultReferenceCollectionProperties keyVaultReferenceCollection resource specific properties +type KeyVaultReferenceCollectionProperties struct { + KeyToReferenceStatuses map[string]*APIKVReference `json:"keyToReferenceStatuses"` +} + +// MarshalJSON is the custom marshaler for KeyVaultReferenceCollectionProperties. +func (kvrc KeyVaultReferenceCollectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if kvrc.KeyToReferenceStatuses != nil { + objectMap["keyToReferenceStatuses"] = kvrc.KeyToReferenceStatuses + } + return json.Marshal(objectMap) +} + +// KeyVaultReferenceResource web app key vault reference and status ARM resource. +type KeyVaultReferenceResource struct { + autorest.Response `json:"-"` + // APIKVReference - Core resource properties + *APIKVReference `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource Name. + Name *string `json:"name,omitempty"` + // Kind - Kind of resource. + Kind *string `json:"kind,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for KeyVaultReferenceResource. +func (kvrr KeyVaultReferenceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if kvrr.APIKVReference != nil { + objectMap["properties"] = kvrr.APIKVReference + } + if kvrr.Kind != nil { + objectMap["kind"] = kvrr.Kind + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for KeyVaultReferenceResource struct. +func (kvrr *KeyVaultReferenceResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var aPIKVReference APIKVReference + err = json.Unmarshal(*v, &aPIKVReference) + if err != nil { + return err + } + kvrr.APIKVReference = &aPIKVReference + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + kvrr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + kvrr.Name = &name + } + case "kind": + if v != nil { + var kind string + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + kvrr.Kind = &kind + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + kvrr.Type = &typeVar + } + } + } + + return nil +} + +// ListCapability ... +type ListCapability struct { + autorest.Response `json:"-"` + Value *[]Capability `json:"value,omitempty"` +} + +// ListCertificateEmail ... +type ListCertificateEmail struct { + autorest.Response `json:"-"` + Value *[]CertificateEmail `json:"value,omitempty"` +} + +// ListCertificateOrderAction ... +type ListCertificateOrderAction struct { + autorest.Response `json:"-"` Value *[]CertificateOrderAction `json:"value,omitempty"` } @@ -12065,7 +12599,7 @@ type LogSpecification struct { // ManagedServiceIdentity managed service identity. type ManagedServiceIdentity struct { - // Type - Type of managed service identity. Possible values include: 'ManagedServiceIdentityTypeSystemAssigned', 'ManagedServiceIdentityTypeUserAssigned', 'ManagedServiceIdentityTypeSystemAssignedUserAssigned', 'ManagedServiceIdentityTypeNone' + // Type - Type of managed service identity. Possible values include: 'ManagedServiceIdentityTypeNone', 'ManagedServiceIdentityTypeSystemAssigned', 'ManagedServiceIdentityTypeUserAssigned' Type ManagedServiceIdentityType `json:"type,omitempty"` // TenantID - READ-ONLY; Tenant of managed service identity. TenantID *string `json:"tenantId,omitempty"` @@ -12095,119 +12629,12 @@ type ManagedServiceIdentityUserAssignedIdentitiesValue struct { ClientID *string `json:"clientId,omitempty"` } -// MetricAvailabilily metric availability and retention. -type MetricAvailabilily struct { - // TimeGrain - Time grain. - TimeGrain *string `json:"timeGrain,omitempty"` - // Retention - Retention period for the current time grain. - Retention *string `json:"retention,omitempty"` -} - // MetricAvailability retention policy of a resource metric. type MetricAvailability struct { TimeGrain *string `json:"timeGrain,omitempty"` BlobDuration *string `json:"blobDuration,omitempty"` } -// MetricDefinition metadata for a metric. -type MetricDefinition struct { - autorest.Response `json:"-"` - // MetricDefinitionProperties - MetricDefinition resource specific properties - *MetricDefinitionProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Resource Id. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource Name. - Name *string `json:"name,omitempty"` - // Kind - Kind of resource. - Kind *string `json:"kind,omitempty"` - // Type - READ-ONLY; Resource type. - Type *string `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MetricDefinition. -func (md MetricDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if md.MetricDefinitionProperties != nil { - objectMap["properties"] = md.MetricDefinitionProperties - } - if md.Kind != nil { - objectMap["kind"] = md.Kind - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for MetricDefinition struct. -func (md *MetricDefinition) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var metricDefinitionProperties MetricDefinitionProperties - err = json.Unmarshal(*v, &metricDefinitionProperties) - if err != nil { - return err - } - md.MetricDefinitionProperties = &metricDefinitionProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - md.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - md.Name = &name - } - case "kind": - if v != nil { - var kind string - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - md.Kind = &kind - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - md.Type = &typeVar - } - } - } - - return nil -} - -// MetricDefinitionProperties metricDefinition resource specific properties -type MetricDefinitionProperties struct { - // Unit - READ-ONLY; Unit of the metric. - Unit *string `json:"unit,omitempty"` - // PrimaryAggregationType - READ-ONLY; Primary aggregation type. - PrimaryAggregationType *string `json:"primaryAggregationType,omitempty"` - // MetricAvailabilities - READ-ONLY; List of time grains supported for the metric together with retention period. - MetricAvailabilities *[]MetricAvailabilily `json:"metricAvailabilities,omitempty"` - // DisplayName - READ-ONLY; Friendly name shown in the UI. - DisplayName *string `json:"displayName,omitempty"` -} - // MetricSpecification definition of a single resource metric. type MetricSpecification struct { Name *string `json:"name,omitempty"` @@ -12225,6 +12652,7 @@ type MetricSpecification struct { Dimensions *[]Dimension `json:"dimensions,omitempty"` Category *string `json:"category,omitempty"` Availabilities *[]MetricAvailability `json:"availabilities,omitempty"` + SupportedTimeGrainTypes *[]string `json:"supportedTimeGrainTypes,omitempty"` } // MigrateMySQLRequest mySQL migration request. @@ -14677,7 +15105,6 @@ type ProcessModuleInfoProperties struct { // ProcessThreadInfo process Thread Information. type ProcessThreadInfo struct { - autorest.Response `json:"-"` // ProcessThreadInfoProperties - ProcessThreadInfo resource specific properties *ProcessThreadInfoProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource Id. @@ -14930,8 +15357,6 @@ type ProcessThreadInfoProperties struct { TotalProcessorTime *string `json:"total_processor_time,omitempty"` // UserProcessorTime - User processor time. UserProcessorTime *string `json:"user_processor_time,omitempty"` - // PriviledgedProcessorTime - Privileged processor time. - PriviledgedProcessorTime *string `json:"priviledged_processor_time,omitempty"` // State - Thread state. State *string `json:"state,omitempty"` // WaitReason - Wait reason. @@ -15302,9 +15727,9 @@ type RampUpRule struct { ActionHostName *string `json:"actionHostName,omitempty"` // ReroutePercentage - Percentage of the traffic which will be redirected to ActionHostName. ReroutePercentage *float64 `json:"reroutePercentage,omitempty"` - // ChangeStep - In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches - // MinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes. - // Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. + // ChangeStep - In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or + // MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm + // can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl. ChangeStep *float64 `json:"changeStep,omitempty"` // ChangeIntervalInMinutes - Specifies interval in minutes to reevaluate ReroutePercentage. ChangeIntervalInMinutes *int32 `json:"changeIntervalInMinutes,omitempty"` @@ -16454,28 +16879,6 @@ type ResourceHealthMetadataProperties struct { SignalAvailability *bool `json:"signalAvailability,omitempty"` } -// ResourceMetric object representing a metric for any resource . -type ResourceMetric struct { - // Name - READ-ONLY; Name of metric. - Name *ResourceMetricName `json:"name,omitempty"` - // Unit - READ-ONLY; Metric unit. - Unit *string `json:"unit,omitempty"` - // TimeGrain - READ-ONLY; Metric granularity. E.g PT1H, PT5M, P1D - TimeGrain *string `json:"timeGrain,omitempty"` - // StartTime - READ-ONLY; Metric start time. - StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - READ-ONLY; Metric end time. - EndTime *date.Time `json:"endTime,omitempty"` - // ResourceID - READ-ONLY; Metric resource Id. - ResourceID *string `json:"resourceId,omitempty"` - // ID - READ-ONLY; Resource Id. - ID *string `json:"id,omitempty"` - // MetricValues - READ-ONLY; Metric values. - MetricValues *[]ResourceMetricValue `json:"metricValues,omitempty"` - // Properties - READ-ONLY; Resource metric properties collection. - Properties *[]ResourceMetricProperty `json:"properties,omitempty"` -} - // ResourceMetricAvailability metrics availability and retention. type ResourceMetricAvailability struct { // TimeGrain - READ-ONLY; Time grain . @@ -16484,152 +16887,6 @@ type ResourceMetricAvailability struct { Retention *string `json:"retention,omitempty"` } -// ResourceMetricCollection collection of metric responses. -type ResourceMetricCollection struct { - autorest.Response `json:"-"` - // Value - Collection of resources. - Value *[]ResourceMetric `json:"value,omitempty"` - // NextLink - READ-ONLY; Link to next page of resources. - NextLink *string `json:"nextLink,omitempty"` -} - -// ResourceMetricCollectionIterator provides access to a complete listing of ResourceMetric values. -type ResourceMetricCollectionIterator struct { - i int - page ResourceMetricCollectionPage -} - -// 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 *ResourceMetricCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ResourceMetricCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// 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 *ResourceMetricCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ResourceMetricCollectionIterator) 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 ResourceMetricCollectionIterator) Response() ResourceMetricCollection { - 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 ResourceMetricCollectionIterator) Value() ResourceMetric { - if !iter.page.NotDone() { - return ResourceMetric{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the ResourceMetricCollectionIterator type. -func NewResourceMetricCollectionIterator(page ResourceMetricCollectionPage) ResourceMetricCollectionIterator { - return ResourceMetricCollectionIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (rmc ResourceMetricCollection) IsEmpty() bool { - return rmc.Value == nil || len(*rmc.Value) == 0 -} - -// resourceMetricCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (rmc ResourceMetricCollection) resourceMetricCollectionPreparer(ctx context.Context) (*http.Request, error) { - if rmc.NextLink == nil || len(to.String(rmc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(rmc.NextLink))) -} - -// ResourceMetricCollectionPage contains a page of ResourceMetric values. -type ResourceMetricCollectionPage struct { - fn func(context.Context, ResourceMetricCollection) (ResourceMetricCollection, error) - rmc ResourceMetricCollection -} - -// 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 *ResourceMetricCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ResourceMetricCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.rmc) - if err != nil { - return err - } - page.rmc = next - return nil -} - -// 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 *ResourceMetricCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ResourceMetricCollectionPage) NotDone() bool { - return !page.rmc.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page ResourceMetricCollectionPage) Response() ResourceMetricCollection { - return page.rmc -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page ResourceMetricCollectionPage) Values() []ResourceMetric { - if page.rmc.IsEmpty() { - return nil - } - return *page.rmc.Value -} - -// Creates a new instance of the ResourceMetricCollectionPage type. -func NewResourceMetricCollectionPage(getNextPage func(context.Context, ResourceMetricCollection) (ResourceMetricCollection, error)) ResourceMetricCollectionPage { - return ResourceMetricCollectionPage{fn: getNextPage} -} - // ResourceMetricDefinition metadata for the metrics. type ResourceMetricDefinition struct { // ResourceMetricDefinitionProperties - ResourceMetricDefinition resource specific properties @@ -16883,40 +17140,6 @@ func (rmd ResourceMetricDefinitionProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// ResourceMetricName name of a metric for any resource . -type ResourceMetricName struct { - // Value - READ-ONLY; metric name value. - Value *string `json:"value,omitempty"` - // LocalizedValue - READ-ONLY; Localized metric name value. - LocalizedValue *string `json:"localizedValue,omitempty"` -} - -// ResourceMetricProperty resource metric property. -type ResourceMetricProperty struct { - // Key - Key for resource metric property. - Key *string `json:"key,omitempty"` - // Value - Value of pair. - Value *string `json:"value,omitempty"` -} - -// ResourceMetricValue value of resource metric. -type ResourceMetricValue struct { - // Timestamp - READ-ONLY; Value timestamp. - Timestamp *string `json:"timestamp,omitempty"` - // Average - READ-ONLY; Value average. - Average *float64 `json:"average,omitempty"` - // Minimum - READ-ONLY; Value minimum. - Minimum *float64 `json:"minimum,omitempty"` - // Maximum - READ-ONLY; Value maximum. - Maximum *float64 `json:"maximum,omitempty"` - // Total - READ-ONLY; Value total. - Total *float64 `json:"total,omitempty"` - // Count - READ-ONLY; Value count. - Count *float64 `json:"count,omitempty"` - // Properties - READ-ONLY; Resource metric properties collection. - Properties *[]ResourceMetricProperty `json:"properties,omitempty"` -} - // ResourceNameAvailability information regarding availability of a resource name. type ResourceNameAvailability struct { autorest.Response `json:"-"` @@ -17440,8 +17663,6 @@ type SiteConfig struct { PublishingUsername *string `json:"publishingUsername,omitempty"` // AppSettings - Application settings. AppSettings *[]NameValuePair `json:"appSettings,omitempty"` - // AzureStorageAccounts - User-provided Azure storage accounts. - AzureStorageAccounts map[string]*AzureStorageInfoValue `json:"azureStorageAccounts"` // ConnectionStrings - Connection strings. ConnectionStrings *[]ConnStringInfo `json:"connectionStrings,omitempty"` // MachineKey - READ-ONLY; Site MachineKey. @@ -17450,7 +17671,7 @@ type SiteConfig struct { HandlerMappings *[]HandlerMapping `json:"handlerMappings,omitempty"` // DocumentRoot - Document root. DocumentRoot *string `json:"documentRoot,omitempty"` - // ScmType - SCM type. Possible values include: 'ScmTypeNone', 'ScmTypeDropbox', 'ScmTypeTfs', 'ScmTypeLocalGit', 'ScmTypeGitHub', 'ScmTypeCodePlexGit', 'ScmTypeCodePlexHg', 'ScmTypeBitbucketGit', 'ScmTypeBitbucketHg', 'ScmTypeExternalGit', 'ScmTypeExternalHg', 'ScmTypeOneDrive', 'ScmTypeVSO' + // ScmType - SCM type. Possible values include: 'ScmTypeNone', 'ScmTypeDropbox', 'ScmTypeTfs', 'ScmTypeLocalGit', 'ScmTypeGitHub', 'ScmTypeCodePlexGit', 'ScmTypeCodePlexHg', 'ScmTypeBitbucketGit', 'ScmTypeBitbucketHg', 'ScmTypeExternalGit', 'ScmTypeExternalHg', 'ScmTypeOneDrive', 'ScmTypeVSO', 'ScmTypeVSTSRM' ScmType ScmType `json:"scmType,omitempty"` // Use32BitWorkerProcess - true to use 32-bit worker process; otherwise, false. Use32BitWorkerProcess *bool `json:"use32BitWorkerProcess,omitempty"` @@ -17490,6 +17711,8 @@ type SiteConfig struct { Push *PushSettings `json:"push,omitempty"` // APIDefinition - Information about the formal API definition for the app. APIDefinition *APIDefinitionInfo `json:"apiDefinition,omitempty"` + // APIManagementConfig - Azure API management settings linked to the app. + APIManagementConfig *APIManagementConfig `json:"apiManagementConfig,omitempty"` // AutoSwapSlotName - Auto-swap slot name. AutoSwapSlotName *string `json:"autoSwapSlotName,omitempty"` // LocalMySQLEnabled - true to enable local MySQL; otherwise, false. @@ -17510,171 +17733,11 @@ type SiteConfig struct { MinTLSVersion SupportedTLSVersions `json:"minTlsVersion,omitempty"` // FtpsState - State of FTP / FTPS service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled' FtpsState FtpsState `json:"ftpsState,omitempty"` - // ReservedInstanceCount - Number of reserved instances. - // This setting only applies to the Consumption Plan - ReservedInstanceCount *int32 `json:"reservedInstanceCount,omitempty"` -} - -// MarshalJSON is the custom marshaler for SiteConfig. -func (sc SiteConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sc.NumberOfWorkers != nil { - objectMap["numberOfWorkers"] = sc.NumberOfWorkers - } - if sc.DefaultDocuments != nil { - objectMap["defaultDocuments"] = sc.DefaultDocuments - } - if sc.NetFrameworkVersion != nil { - objectMap["netFrameworkVersion"] = sc.NetFrameworkVersion - } - if sc.PhpVersion != nil { - objectMap["phpVersion"] = sc.PhpVersion - } - if sc.PythonVersion != nil { - objectMap["pythonVersion"] = sc.PythonVersion - } - if sc.NodeVersion != nil { - objectMap["nodeVersion"] = sc.NodeVersion - } - if sc.LinuxFxVersion != nil { - objectMap["linuxFxVersion"] = sc.LinuxFxVersion - } - if sc.WindowsFxVersion != nil { - objectMap["windowsFxVersion"] = sc.WindowsFxVersion - } - if sc.RequestTracingEnabled != nil { - objectMap["requestTracingEnabled"] = sc.RequestTracingEnabled - } - if sc.RequestTracingExpirationTime != nil { - objectMap["requestTracingExpirationTime"] = sc.RequestTracingExpirationTime - } - if sc.RemoteDebuggingEnabled != nil { - objectMap["remoteDebuggingEnabled"] = sc.RemoteDebuggingEnabled - } - if sc.RemoteDebuggingVersion != nil { - objectMap["remoteDebuggingVersion"] = sc.RemoteDebuggingVersion - } - if sc.HTTPLoggingEnabled != nil { - objectMap["httpLoggingEnabled"] = sc.HTTPLoggingEnabled - } - if sc.LogsDirectorySizeLimit != nil { - objectMap["logsDirectorySizeLimit"] = sc.LogsDirectorySizeLimit - } - if sc.DetailedErrorLoggingEnabled != nil { - objectMap["detailedErrorLoggingEnabled"] = sc.DetailedErrorLoggingEnabled - } - if sc.PublishingUsername != nil { - objectMap["publishingUsername"] = sc.PublishingUsername - } - if sc.AppSettings != nil { - objectMap["appSettings"] = sc.AppSettings - } - if sc.AzureStorageAccounts != nil { - objectMap["azureStorageAccounts"] = sc.AzureStorageAccounts - } - if sc.ConnectionStrings != nil { - objectMap["connectionStrings"] = sc.ConnectionStrings - } - if sc.HandlerMappings != nil { - objectMap["handlerMappings"] = sc.HandlerMappings - } - if sc.DocumentRoot != nil { - objectMap["documentRoot"] = sc.DocumentRoot - } - if sc.ScmType != "" { - objectMap["scmType"] = sc.ScmType - } - if sc.Use32BitWorkerProcess != nil { - objectMap["use32BitWorkerProcess"] = sc.Use32BitWorkerProcess - } - if sc.WebSocketsEnabled != nil { - objectMap["webSocketsEnabled"] = sc.WebSocketsEnabled - } - if sc.AlwaysOn != nil { - objectMap["alwaysOn"] = sc.AlwaysOn - } - if sc.JavaVersion != nil { - objectMap["javaVersion"] = sc.JavaVersion - } - if sc.JavaContainer != nil { - objectMap["javaContainer"] = sc.JavaContainer - } - if sc.JavaContainerVersion != nil { - objectMap["javaContainerVersion"] = sc.JavaContainerVersion - } - if sc.AppCommandLine != nil { - objectMap["appCommandLine"] = sc.AppCommandLine - } - if sc.ManagedPipelineMode != "" { - objectMap["managedPipelineMode"] = sc.ManagedPipelineMode - } - if sc.VirtualApplications != nil { - objectMap["virtualApplications"] = sc.VirtualApplications - } - if sc.LoadBalancing != "" { - objectMap["loadBalancing"] = sc.LoadBalancing - } - if sc.Experiments != nil { - objectMap["experiments"] = sc.Experiments - } - if sc.Limits != nil { - objectMap["limits"] = sc.Limits - } - if sc.AutoHealEnabled != nil { - objectMap["autoHealEnabled"] = sc.AutoHealEnabled - } - if sc.AutoHealRules != nil { - objectMap["autoHealRules"] = sc.AutoHealRules - } - if sc.TracingOptions != nil { - objectMap["tracingOptions"] = sc.TracingOptions - } - if sc.VnetName != nil { - objectMap["vnetName"] = sc.VnetName - } - if sc.Cors != nil { - objectMap["cors"] = sc.Cors - } - if sc.Push != nil { - objectMap["push"] = sc.Push - } - if sc.APIDefinition != nil { - objectMap["apiDefinition"] = sc.APIDefinition - } - if sc.AutoSwapSlotName != nil { - objectMap["autoSwapSlotName"] = sc.AutoSwapSlotName - } - if sc.LocalMySQLEnabled != nil { - objectMap["localMySqlEnabled"] = sc.LocalMySQLEnabled - } - if sc.ManagedServiceIdentityID != nil { - objectMap["managedServiceIdentityId"] = sc.ManagedServiceIdentityID - } - if sc.XManagedServiceIdentityID != nil { - objectMap["xManagedServiceIdentityId"] = sc.XManagedServiceIdentityID - } - if sc.IPSecurityRestrictions != nil { - objectMap["ipSecurityRestrictions"] = sc.IPSecurityRestrictions - } - if sc.ScmIPSecurityRestrictions != nil { - objectMap["scmIpSecurityRestrictions"] = sc.ScmIPSecurityRestrictions - } - if sc.ScmIPSecurityRestrictionsUseMain != nil { - objectMap["scmIpSecurityRestrictionsUseMain"] = sc.ScmIPSecurityRestrictionsUseMain - } - if sc.HTTP20Enabled != nil { - objectMap["http20Enabled"] = sc.HTTP20Enabled - } - if sc.MinTLSVersion != "" { - objectMap["minTlsVersion"] = sc.MinTLSVersion - } - if sc.FtpsState != "" { - objectMap["ftpsState"] = sc.FtpsState - } - if sc.ReservedInstanceCount != nil { - objectMap["reservedInstanceCount"] = sc.ReservedInstanceCount - } - return json.Marshal(objectMap) + // PreWarmedInstanceCount - Number of preWarmed instances. + // This setting only applies to the Consumption and Elastic Plans + PreWarmedInstanceCount *int32 `json:"preWarmedInstanceCount,omitempty"` + // HealthCheckPath - Health check path + HealthCheckPath *string `json:"healthCheckPath,omitempty"` } // SiteConfigResource web app configuration ARM resource. @@ -18520,6 +18583,127 @@ type SiteInstanceProperties struct { SiteInstanceName *string `json:"siteInstanceName,omitempty"` } +// SiteInstanceStatus ... +type SiteInstanceStatus struct { + autorest.Response `json:"-"` + // SiteInstanceStatusProperties - WebSiteInstanceStatus resource specific properties + *SiteInstanceStatusProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource Name. + Name *string `json:"name,omitempty"` + // Kind - Kind of resource. + Kind *string `json:"kind,omitempty"` + // Type - READ-ONLY; Resource type. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SiteInstanceStatus. +func (sis SiteInstanceStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sis.SiteInstanceStatusProperties != nil { + objectMap["properties"] = sis.SiteInstanceStatusProperties + } + if sis.Kind != nil { + objectMap["kind"] = sis.Kind + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SiteInstanceStatus struct. +func (sis *SiteInstanceStatus) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var siteInstanceStatusProperties SiteInstanceStatusProperties + err = json.Unmarshal(*v, &siteInstanceStatusProperties) + if err != nil { + return err + } + sis.SiteInstanceStatusProperties = &siteInstanceStatusProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sis.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sis.Name = &name + } + case "kind": + if v != nil { + var kind string + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + sis.Kind = &kind + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sis.Type = &typeVar + } + } + } + + return nil +} + +// SiteInstanceStatusProperties webSiteInstanceStatus resource specific properties +type SiteInstanceStatusProperties struct { + // State - Possible values include: 'READY', 'STOPPED', 'UNKNOWN' + State SiteRuntimeState `json:"state,omitempty"` + // StatusURL - Link to the GetStatusApi in Kudu + StatusURL *string `json:"statusUrl,omitempty"` + // DetectorURL - Link to the Diagnose and Solve Portal + DetectorURL *string `json:"detectorUrl,omitempty"` + // ConsoleURL - Link to the Diagnose and Solve Portal + ConsoleURL *string `json:"consoleUrl,omitempty"` + Containers map[string]*ContainerInfo `json:"containers"` +} + +// MarshalJSON is the custom marshaler for SiteInstanceStatusProperties. +func (sis SiteInstanceStatusProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sis.State != "" { + objectMap["state"] = sis.State + } + if sis.StatusURL != nil { + objectMap["statusUrl"] = sis.StatusURL + } + if sis.DetectorURL != nil { + objectMap["detectorUrl"] = sis.DetectorURL + } + if sis.ConsoleURL != nil { + objectMap["consoleUrl"] = sis.ConsoleURL + } + if sis.Containers != nil { + objectMap["containers"] = sis.Containers + } + return json.Marshal(objectMap) +} + // SiteLimits metric limits set on an app. type SiteLimits struct { // MaxPercentageCPU - Maximum allowed CPU usage percentage. @@ -18790,7 +18974,7 @@ type SitePatchResourceProperties struct { HostNamesDisabled *bool `json:"hostNamesDisabled,omitempty"` // OutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. OutboundIPAddresses *string `json:"outboundIpAddresses,omitempty"` - // PossibleOutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants. Read-only. + // PossibleOutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants except dataComponent. Read-only. PossibleOutboundIPAddresses *string `json:"possibleOutboundIpAddresses,omitempty"` // ContainerSize - Size of the function container. ContainerSize *int32 `json:"containerSize,omitempty"` @@ -18818,8 +19002,6 @@ type SitePatchResourceProperties struct { RedundancyMode RedundancyMode `json:"redundancyMode,omitempty"` // InProgressOperationID - READ-ONLY; Specifies an operation id if this site has a pending operation. InProgressOperationID *uuid.UUID `json:"inProgressOperationId,omitempty"` - // GeoDistributions - GeoDistributions for this site - GeoDistributions *[]GeoDistribution `json:"geoDistributions,omitempty"` } // SitePhpErrorLogFlag used for getting PHP error logging flag. @@ -18971,7 +19153,7 @@ type SiteProperties struct { HostNamesDisabled *bool `json:"hostNamesDisabled,omitempty"` // OutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. OutboundIPAddresses *string `json:"outboundIpAddresses,omitempty"` - // PossibleOutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants. Read-only. + // PossibleOutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants except dataComponent. Read-only. PossibleOutboundIPAddresses *string `json:"possibleOutboundIpAddresses,omitempty"` // ContainerSize - Size of the function container. ContainerSize *int32 `json:"containerSize,omitempty"` @@ -18999,8 +19181,6 @@ type SiteProperties struct { RedundancyMode RedundancyMode `json:"redundancyMode,omitempty"` // InProgressOperationID - READ-ONLY; Specifies an operation id if this site has a pending operation. InProgressOperationID *uuid.UUID `json:"inProgressOperationId,omitempty"` - // GeoDistributions - GeoDistributions for this site - GeoDistributions *[]GeoDistribution `json:"geoDistributions,omitempty"` } // SiteSeal site seal @@ -20313,6 +20493,12 @@ type StackMajorVersion struct { MinorVersions *[]StackMinorVersion `json:"minorVersions,omitempty"` // ApplicationInsights - true if this supports Application Insights; otherwise, false. ApplicationInsights *bool `json:"applicationInsights,omitempty"` + // IsPreview - true if this stack is in Preview, otherwise false. + IsPreview *bool `json:"isPreview,omitempty"` + // IsDeprecated - true if this stack has been deprecated, otherwise false. + IsDeprecated *bool `json:"isDeprecated,omitempty"` + // IsHidden - true if this stack should be hidden for new customers on portal, otherwise false. + IsHidden *bool `json:"isHidden,omitempty"` } // StackMinorVersion application stack minor version. @@ -20339,7 +20525,7 @@ type StampCapacity struct { Unit *string `json:"unit,omitempty"` // ComputeMode - Shared/dedicated workers. Possible values include: 'ComputeModeOptionsShared', 'ComputeModeOptionsDedicated', 'ComputeModeOptionsDynamic' ComputeMode ComputeModeOptions `json:"computeMode,omitempty"` - // WorkerSize - Size of the machines. Possible values include: 'WorkerSizeOptionsSmall', 'WorkerSizeOptionsMedium', 'WorkerSizeOptionsLarge', 'WorkerSizeOptionsD1', 'WorkerSizeOptionsD2', 'WorkerSizeOptionsD3', 'WorkerSizeOptionsDefault' + // WorkerSize - Size of the machines. Possible values include: 'WorkerSizeOptionsSmall', 'WorkerSizeOptionsMedium', 'WorkerSizeOptionsLarge', 'WorkerSizeOptionsD1', 'WorkerSizeOptionsD2', 'WorkerSizeOptionsD3', 'WorkerSizeOptionsNestedSmall', 'WorkerSizeOptionsDefault' WorkerSize WorkerSizeOptions `json:"workerSize,omitempty"` // WorkerSizeID - Size ID of machines: // 0 - Small @@ -22240,22 +22426,6 @@ type UserProperties struct { ScmURI *string `json:"scmUri,omitempty"` } -// ValidateContainerSettingsRequest container settings validation request context -type ValidateContainerSettingsRequest struct { - // BaseURL - Base URL of the container registry - BaseURL *string `json:"baseUrl,omitempty"` - // Username - Username for to access the container registry - Username *string `json:"username,omitempty"` - // Password - Password for to access the container registry - Password *string `json:"password,omitempty"` - // Repository - Repository name (image name) - Repository *string `json:"repository,omitempty"` - // Tag - Image tag - Tag *string `json:"tag,omitempty"` - // Platform - Platform (windows or linux) - Platform *string `json:"platform,omitempty"` -} - // ValidateProperties app properties used for validation. type ValidateProperties struct { // ServerFarmID - ARM resource ID of an App Service plan that would host the app. @@ -22272,6 +22442,18 @@ type ValidateProperties struct { HostingEnvironment *string `json:"hostingEnvironment,omitempty"` // IsXenon - true if App Service plan is running as a windows container IsXenon *bool `json:"isXenon,omitempty"` + // ContainerRegistryBaseURL - Base URL of the container registry + ContainerRegistryBaseURL *string `json:"containerRegistryBaseUrl,omitempty"` + // ContainerRegistryUsername - Username for to access the container registry + ContainerRegistryUsername *string `json:"containerRegistryUsername,omitempty"` + // ContainerRegistryPassword - Password for to access the container registry + ContainerRegistryPassword *string `json:"containerRegistryPassword,omitempty"` + // ContainerImageRepository - Repository name (image name) + ContainerImageRepository *string `json:"containerImageRepository,omitempty"` + // ContainerImageTag - Image tag + ContainerImageTag *string `json:"containerImageTag,omitempty"` + // ContainerImagePlatform - Platform (windows or linux) + ContainerImagePlatform *string `json:"containerImagePlatform,omitempty"` } // ValidateRequest resource validation request content. @@ -22402,6 +22584,8 @@ type VirtualIPMapping struct { InternalHTTPSPort *int32 `json:"internalHttpsPort,omitempty"` // InUse - Is virtual IP mapping in use. InUse *bool `json:"inUse,omitempty"` + // ServiceName - name of the service that virtual IP is assigned to + ServiceName *string `json:"serviceName,omitempty"` } // VirtualNetworkProfile specification for using a Virtual Network. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/provider.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/provider.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/provider.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/provider.go index c24ca0866e5c..bcbf208112cd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/provider.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/provider.go @@ -40,7 +40,7 @@ func NewProviderClientWithBaseURI(baseURI string, subscriptionID string) Provide return ProviderClient{NewWithBaseURI(baseURI, subscriptionID)} } -// GetAvailableStacks get available application frameworks and their versions +// GetAvailableStacks description for Get available application frameworks and their versions func (client ProviderClient) GetAvailableStacks(ctx context.Context, osTypeSelected string) (result ApplicationStackCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ProviderClient.GetAvailableStacks") @@ -76,7 +76,7 @@ func (client ProviderClient) GetAvailableStacks(ctx context.Context, osTypeSelec // GetAvailableStacksPreparer prepares the GetAvailableStacks request. func (client ProviderClient) GetAvailableStacksPreparer(ctx context.Context, osTypeSelected string) (*http.Request, error) { - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -149,7 +149,7 @@ func (client ProviderClient) GetAvailableStacksComplete(ctx context.Context, osT return } -// GetAvailableStacksOnPrem get available application frameworks and their versions +// GetAvailableStacksOnPrem description for Get available application frameworks and their versions func (client ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, osTypeSelected string) (result ApplicationStackCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ProviderClient.GetAvailableStacksOnPrem") @@ -189,7 +189,7 @@ func (client ProviderClient) GetAvailableStacksOnPremPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -262,8 +262,8 @@ func (client ProviderClient) GetAvailableStacksOnPremComplete(ctx context.Contex return } -// ListOperations gets all available operations for the Microsoft.Web resource provider. Also exposes resource metric -// definitions +// ListOperations description for Gets all available operations for the Microsoft.Web resource provider. Also exposes +// resource metric definitions func (client ProviderClient) ListOperations(ctx context.Context) (result CsmOperationCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ProviderClient.ListOperations") @@ -299,7 +299,7 @@ func (client ProviderClient) ListOperations(ctx context.Context) (result CsmOper // ListOperationsPreparer prepares the ListOperations request. func (client ProviderClient) ListOperationsPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/recommendations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/recommendations.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/recommendations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/recommendations.go index 89c4e3421530..e97d6099b247 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/recommendations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/recommendations.go @@ -41,7 +41,7 @@ func NewRecommendationsClientWithBaseURI(baseURI string, subscriptionID string) return RecommendationsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// DisableAllForHostingEnvironment disable all recommendations for an app. +// DisableAllForHostingEnvironment description for Disable all recommendations for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // environmentName - name of the app. @@ -93,7 +93,7 @@ func (client RecommendationsClient) DisableAllForHostingEnvironmentPreparer(ctx "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, "environmentName": autorest.Encode("query", environmentName), @@ -126,7 +126,7 @@ func (client RecommendationsClient) DisableAllForHostingEnvironmentResponder(res return } -// DisableAllForWebApp disable all recommendations for an app. +// DisableAllForWebApp description for Disable all recommendations for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - name of the app. @@ -178,7 +178,7 @@ func (client RecommendationsClient) DisableAllForWebAppPreparer(ctx context.Cont "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -210,7 +210,7 @@ func (client RecommendationsClient) DisableAllForWebAppResponder(resp *http.Resp return } -// DisableRecommendationForHostingEnvironment disables the specific rule for a web site permanently. +// DisableRecommendationForHostingEnvironment description for Disables the specific rule for a web site permanently. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // environmentName - site name @@ -264,7 +264,7 @@ func (client RecommendationsClient) DisableRecommendationForHostingEnvironmentPr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, "environmentName": autorest.Encode("query", environmentName), @@ -297,7 +297,7 @@ func (client RecommendationsClient) DisableRecommendationForHostingEnvironmentRe return } -// DisableRecommendationForSite disables the specific rule for a web site permanently. +// DisableRecommendationForSite description for Disables the specific rule for a web site permanently. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - site name @@ -351,7 +351,7 @@ func (client RecommendationsClient) DisableRecommendationForSitePreparer(ctx con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -383,8 +383,8 @@ func (client RecommendationsClient) DisableRecommendationForSiteResponder(resp * return } -// DisableRecommendationForSubscription disables the specified rule so it will not apply to a subscription in the -// future. +// DisableRecommendationForSubscription description for Disables the specified rule so it will not apply to a +// subscription in the future. // Parameters: // name - rule name func (client RecommendationsClient) DisableRecommendationForSubscription(ctx context.Context, name string) (result autorest.Response, err error) { @@ -426,7 +426,7 @@ func (client RecommendationsClient) DisableRecommendationForSubscriptionPreparer "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -458,7 +458,7 @@ func (client RecommendationsClient) DisableRecommendationForSubscriptionResponde return } -// GetRuleDetailsByHostingEnvironment get a recommendation rule for an app. +// GetRuleDetailsByHostingEnvironment description for Get a recommendation rule for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // hostingEnvironmentName - name of the hosting environment. @@ -515,7 +515,7 @@ func (client RecommendationsClient) GetRuleDetailsByHostingEnvironmentPreparer(c "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -554,7 +554,7 @@ func (client RecommendationsClient) GetRuleDetailsByHostingEnvironmentResponder( return } -// GetRuleDetailsByWebApp get a recommendation rule for an app. +// GetRuleDetailsByWebApp description for Get a recommendation rule for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - name of the app. @@ -611,7 +611,7 @@ func (client RecommendationsClient) GetRuleDetailsByWebAppPreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -650,7 +650,7 @@ func (client RecommendationsClient) GetRuleDetailsByWebAppResponder(resp *http.R return } -// List list all recommendations for a subscription. +// List description for List all recommendations for a subscription. // Parameters: // featured - specify true to return only the most critical recommendations. The default is // false, which returns all recommendations. @@ -696,7 +696,7 @@ func (client RecommendationsClient) ListPreparer(ctx context.Context, featured * "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -772,7 +772,8 @@ func (client RecommendationsClient) ListComplete(ctx context.Context, featured * return } -// ListHistoryForHostingEnvironment get past recommendations for an app, optionally specified by the time range. +// ListHistoryForHostingEnvironment description for Get past recommendations for an app, optionally specified by the +// time range. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // hostingEnvironmentName - name of the hosting environment. @@ -830,7 +831,7 @@ func (client RecommendationsClient) ListHistoryForHostingEnvironmentPreparer(ctx "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -906,7 +907,7 @@ func (client RecommendationsClient) ListHistoryForHostingEnvironmentComplete(ctx return } -// ListHistoryForWebApp get past recommendations for an app, optionally specified by the time range. +// ListHistoryForWebApp description for Get past recommendations for an app, optionally specified by the time range. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - name of the app. @@ -964,7 +965,7 @@ func (client RecommendationsClient) ListHistoryForWebAppPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1040,7 +1041,7 @@ func (client RecommendationsClient) ListHistoryForWebAppComplete(ctx context.Con return } -// ListRecommendedRulesForHostingEnvironment get all recommendations for an app. +// ListRecommendedRulesForHostingEnvironment description for Get all recommendations for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // hostingEnvironmentName - name of the app. @@ -1097,7 +1098,7 @@ func (client RecommendationsClient) ListRecommendedRulesForHostingEnvironmentPre "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1173,7 +1174,7 @@ func (client RecommendationsClient) ListRecommendedRulesForHostingEnvironmentCom return } -// ListRecommendedRulesForWebApp get all recommendations for an app. +// ListRecommendedRulesForWebApp description for Get all recommendations for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - name of the app. @@ -1230,7 +1231,7 @@ func (client RecommendationsClient) ListRecommendedRulesForWebAppPreparer(ctx co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1306,7 +1307,7 @@ func (client RecommendationsClient) ListRecommendedRulesForWebAppComplete(ctx co return } -// ResetAllFilters reset all recommendation opt-out settings for a subscription. +// ResetAllFilters description for Reset all recommendation opt-out settings for a subscription. func (client RecommendationsClient) ResetAllFilters(ctx context.Context) (result autorest.Response, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/RecommendationsClient.ResetAllFilters") @@ -1345,7 +1346,7 @@ func (client RecommendationsClient) ResetAllFiltersPreparer(ctx context.Context) "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -1377,7 +1378,7 @@ func (client RecommendationsClient) ResetAllFiltersResponder(resp *http.Response return } -// ResetAllFiltersForHostingEnvironment reset all recommendation opt-out settings for an app. +// ResetAllFiltersForHostingEnvironment description for Reset all recommendation opt-out settings for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // environmentName - name of the app. @@ -1429,7 +1430,7 @@ func (client RecommendationsClient) ResetAllFiltersForHostingEnvironmentPreparer "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, "environmentName": autorest.Encode("query", environmentName), @@ -1462,7 +1463,7 @@ func (client RecommendationsClient) ResetAllFiltersForHostingEnvironmentResponde return } -// ResetAllFiltersForWebApp reset all recommendation opt-out settings for an app. +// ResetAllFiltersForWebApp description for Reset all recommendation opt-out settings for an app. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // siteName - name of the app. @@ -1514,7 +1515,7 @@ func (client RecommendationsClient) ResetAllFiltersForWebAppPreparer(ctx context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/resourcehealthmetadata.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/resourcehealthmetadata.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/resourcehealthmetadata.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/resourcehealthmetadata.go index b43c6e5f64c0..ff89c6a5f2e9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/resourcehealthmetadata.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/resourcehealthmetadata.go @@ -41,7 +41,7 @@ func NewResourceHealthMetadataClientWithBaseURI(baseURI string, subscriptionID s return ResourceHealthMetadataClient{NewWithBaseURI(baseURI, subscriptionID)} } -// GetBySite gets the category of ResourceHealthMetadata to use for the given site +// GetBySite description for Gets the category of ResourceHealthMetadata to use for the given site // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app @@ -93,7 +93,7 @@ func (client ResourceHealthMetadataClient) GetBySitePreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -126,7 +126,7 @@ func (client ResourceHealthMetadataClient) GetBySiteResponder(resp *http.Respons return } -// GetBySiteSlot gets the category of ResourceHealthMetadata to use for the given site +// GetBySiteSlot description for Gets the category of ResourceHealthMetadata to use for the given site // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app @@ -180,7 +180,7 @@ func (client ResourceHealthMetadataClient) GetBySiteSlotPreparer(ctx context.Con "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -213,7 +213,7 @@ func (client ResourceHealthMetadataClient) GetBySiteSlotResponder(resp *http.Res return } -// List list all ResourceHealthMetadata for all sites in the subscription. +// List description for List all ResourceHealthMetadata for all sites in the subscription. func (client ResourceHealthMetadataClient) List(ctx context.Context) (result ResourceHealthMetadataCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ResourceHealthMetadataClient.List") @@ -253,7 +253,7 @@ func (client ResourceHealthMetadataClient) ListPreparer(ctx context.Context) (*h "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -323,7 +323,8 @@ func (client ResourceHealthMetadataClient) ListComplete(ctx context.Context) (re return } -// ListByResourceGroup list all ResourceHealthMetadata for all sites in the resource group in the subscription. +// ListByResourceGroup description for List all ResourceHealthMetadata for all sites in the resource group in the +// subscription. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. func (client ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ResourceHealthMetadataCollectionPage, err error) { @@ -374,7 +375,7 @@ func (client ResourceHealthMetadataClient) ListByResourceGroupPreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -444,7 +445,7 @@ func (client ResourceHealthMetadataClient) ListByResourceGroupComplete(ctx conte return } -// ListBySite gets the category of ResourceHealthMetadata to use for the given site as a collection +// ListBySite description for Gets the category of ResourceHealthMetadata to use for the given site as a collection // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -497,7 +498,7 @@ func (client ResourceHealthMetadataClient) ListBySitePreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -567,7 +568,7 @@ func (client ResourceHealthMetadataClient) ListBySiteComplete(ctx context.Contex return } -// ListBySiteSlot gets the category of ResourceHealthMetadata to use for the given site as a collection +// ListBySiteSlot description for Gets the category of ResourceHealthMetadata to use for the given site as a collection // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. // name - name of web app. @@ -622,7 +623,7 @@ func (client ResourceHealthMetadataClient) ListBySiteSlotPreparer(ctx context.Co "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/topleveldomains.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/topleveldomains.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/topleveldomains.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/topleveldomains.go index 969de2a398a6..c06f49a25cb4 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/topleveldomains.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/topleveldomains.go @@ -40,7 +40,7 @@ func NewTopLevelDomainsClientWithBaseURI(baseURI string, subscriptionID string) return TopLevelDomainsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Get get details of a top-level domain. +// Get description for Get details of a top-level domain. // Parameters: // name - name of the top-level domain. func (client TopLevelDomainsClient) Get(ctx context.Context, name string) (result TopLevelDomain, err error) { @@ -82,7 +82,7 @@ func (client TopLevelDomainsClient) GetPreparer(ctx context.Context, name string "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -115,7 +115,7 @@ func (client TopLevelDomainsClient) GetResponder(resp *http.Response) (result To return } -// List get all top-level domains supported for registration. +// List description for Get all top-level domains supported for registration. func (client TopLevelDomainsClient) List(ctx context.Context) (result TopLevelDomainCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/TopLevelDomainsClient.List") @@ -155,7 +155,7 @@ func (client TopLevelDomainsClient) ListPreparer(ctx context.Context) (*http.Req "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -225,7 +225,7 @@ func (client TopLevelDomainsClient) ListComplete(ctx context.Context) (result To return } -// ListAgreements gets all legal agreements that user needs to accept before purchasing a domain. +// ListAgreements description for Gets all legal agreements that user needs to accept before purchasing a domain. // Parameters: // name - name of the top-level domain. // agreementOption - domain agreement options. @@ -269,7 +269,7 @@ func (client TopLevelDomainsClient) ListAgreementsPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-02-01" + const APIVersion = "2019-08-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/version.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/version.go similarity index 94% rename from vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/version.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/version.go index 596623e11a99..21f486dc5341 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web/version.go @@ -21,7 +21,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.Number + " web/2018-02-01" + return "Azure-SDK-For-Go/" + version.Number + " web/2019-08-01" } // Version returns the semantic version (see http://semver.org) of the client. diff --git a/vendor/modules.txt b/vendor/modules.txt index dd8f3ed3b3f1..ef8827c62e16 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -80,7 +80,7 @@ github.com/Azure/azure-sdk-for-go/services/signalr/mgmt/2018-10-01/signalr github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-04-01/storage github.com/Azure/azure-sdk-for-go/services/streamanalytics/mgmt/2016-03-01/streamanalytics github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2018-04-01/trafficmanager -github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web +github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web github.com/Azure/azure-sdk-for-go/version # github.com/Azure/go-autorest/autorest v0.9.3 github.com/Azure/go-autorest/autorest diff --git a/website/docs/d/app_service.html.markdown b/website/docs/d/app_service.html.markdown index 4af3f9c513b3..07d6832efc6b 100644 --- a/website/docs/d/app_service.html.markdown +++ b/website/docs/d/app_service.html.markdown @@ -135,8 +135,6 @@ A `ip_restriction` block exports the following: * `websockets_enabled` - Are WebSockets enabled for this App Service? -* `virtual_network_name` - The name of the Virtual Network which this App Service is attached to. - ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions: diff --git a/website/docs/d/client_config.html.markdown b/website/docs/d/client_config.html.markdown index 7bbdd012b265..f63a262ce5c9 100644 --- a/website/docs/d/client_config.html.markdown +++ b/website/docs/d/client_config.html.markdown @@ -34,14 +34,6 @@ There are no arguments available for this data source. --- -~> **Note:** the following fields are only available when authenticating via a Service Principal (as opposed to using the Azure CLI) and have been deprecated: - -* `service_principal_application_id` is the Service Principal Application ID (same as `client_id`). -* `service_principal_object_id` is the Service Principal Object ID (now available via `object_id`). - -~> **Note:** To better understand "application" and "service principal", please read -[Application and service principal objects in Azure Active Directory](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects). - ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions: diff --git a/website/docs/guides/2.0-upgrade-guide.html.markdown b/website/docs/guides/2.0-upgrade-guide.html.markdown index 026dc51329dc..d6b72b7bd8ad 100644 --- a/website/docs/guides/2.0-upgrade-guide.html.markdown +++ b/website/docs/guides/2.0-upgrade-guide.html.markdown @@ -173,6 +173,8 @@ The deprecated `vault_uri` field has been replaced by the `key_vault_id` field a The deprecated block `agent_pool_profile` will be removed. This has been replaced by the `default_node_pool` block. +The deprecated `default_node_pool.dns_prefix` field has been removed + ### Data Source: `azurerm_network_interface` The deprecated field `internal_fqdn` will be removed. @@ -191,7 +193,7 @@ Azure Scheduler is being retired in favour of Logic Apps ([more information can ### Data Source: `azurerm_virtual_network` -The deprecated field `address_space` will be removed. +The deprecated field `address_spaces` will be removed. ### Resource: `azurerm_api_management` @@ -213,6 +215,16 @@ The deprecated field `disable_triple_des_chipers` will be removed in favour of The deprecated field `disable_triple_des_ciphers` will be removed in favour of the `enable_triple_des_ciphers` property. +### Resource: `azurerm_app_service` + +The `identity.type` field no longer supports the combined value `"SystemAssigned, UserAssigned"` as this has been removed from the API + +The `site_config.ip_restriction.ip_address` must now be specified in CIDR notation to match the API + +The `site_config.ip_restriction.subnet_mask` field has been removed as it is not longer used. + +The `site_config.virtual_network_name` field has been removed as it it no longer used + ### Resource: `azurerm_app_service_plan` The fields in the `properties` block (`app_service_environment_id`, `reserved` and `per_site_scaling`) have been moved to the top level - as such the `properties` block will be removed. @@ -225,6 +237,8 @@ The deprecated `ip_address_list` field in the `backend_address_pool` block will The default value for the `body` field within the `match` block will change from `*` to an empty string. +The deprecated `disabled_ssl_protocols` field will be removed in favour of `ssl_policy`.`disabled_protocols` + ### Resource: `azurerm_application_insights` The `application_type` field now has strict case sensitivity in line with the API. @@ -335,6 +349,14 @@ The deprecated `internal_public_ip_address_id` field in the `ip_configuration` b The `forwarding_protocol` property now defaults to `HttpsOnly` +### Resource: `azurerm_function_app` + +The `site_config.ip_restriction.ip_address` must now be specified in CIDR notation to match the API + +The `site_config.ip_restriction.subnet_mask` field has been removed as it is not longer used. + +The `site_config.virtual_network_name` field has been removed as it it no longer used + ### Resource: `azurerm_iothub` The deprecated `sku.tier` property will be remove. @@ -367,6 +389,10 @@ The `service_principal` will be changing from a Set to a List, which will allow The deprecated `location` field will be removed, since this is no longer used. +### Resource: `azurerm_lb_nat_pool` + +The deprecated `location` field will be removed, since this is no longer used. + ### Resource: `azurerm_lb_nat_probe` The deprecated `location` field will be removed, since this is no longer used. @@ -403,11 +429,14 @@ The deprecated `vault_uri` field has been replaced by the `key_vault_id` field a The deprecated `vault_uri` field has been replaced by the `key_vault_id` field and will be removed. - ### Resource: `azurerm_key_vault_secret` The deprecated `vault_uri` field has been replaced by the `key_vault_id` field and will be removed. +### Resource: `azurerm_kubernetes_cluster` + +The deprecated `default_node_pool.dns_prefix` field has been removed + ### Resource: `azurerm_log_analytics_linked_service` The `resource_id` field has been moved from the `linked_service_properties` block to the top-level. diff --git a/website/docs/r/app_service.html.markdown b/website/docs/r/app_service.html.markdown index 2477588640e4..71470c6a9892 100644 --- a/website/docs/r/app_service.html.markdown +++ b/website/docs/r/app_service.html.markdown @@ -225,8 +225,6 @@ Additional examples of how to run Containers via the `azurerm_app_service` resou ~> **NOTE:** when using an App Service Plan in the `Free` or `Shared` Tiers `use_32_bit_worker_process` must be set to `true`. -* `virtual_network_name` - (Optional) The name of the Virtual Network which this App Service should be attached to. - * `websockets_enabled` - (Optional) Should WebSockets be enabled? --- @@ -305,11 +303,9 @@ A `google` block supports the following: A `ip_restriction` block supports the following: -* `ip_address` - (Optional) The IP Address used for this IP Restriction. - -* `subnet_mask` - (Optional) The Subnet mask used for this IP Restriction. Defaults to `255.255.255.255`. +* `ip_address` - (Optional) The IP Address used for this IP Restriction in CIDR notation. -* `virtual_network_subnet_id` - (Optional.The Virtual Network Subnet ID used for this IP Restriction. +* `virtual_network_subnet_id` - (Optional) The Virtual Network Subnet ID used for this IP Restriction. -> **NOTE:** One of either `ip_address` or `virtual_network_subnet_id` must be specified diff --git a/website/docs/r/application_gateway.html.markdown b/website/docs/r/application_gateway.html.markdown index bf82ef35af58..70240d8b3c21 100644 --- a/website/docs/r/application_gateway.html.markdown +++ b/website/docs/r/application_gateway.html.markdown @@ -151,9 +151,6 @@ The following arguments are supported: * `trusted_root_certificate` - (Optional) One or more `trusted_root_certificate` blocks as defined below. -* `disabled_ssl_protocols` - (Optional / **Deprecated**) A list of SSL Protocols which should be disabled on this Application Gateway. Possible values are `TLSv1_0`, `TLSv1_1` and `TLSv1_2`. -~> **NOTE:** `disabled_ssl_protocols ` has been deprecated in favour of `disabled_protocols` in the `ssl_policy` block. - * `ssl_policy` (Optional) a `ssl policy` block as defined below. * `enable_http2` - (Optional) Is HTTP2 enabled on the application gateway resource? Defaults to `false`. @@ -206,12 +203,8 @@ A `backend_address_pool` block supports the following: * `fqdns` - (Optional) A list of FQDN's which should be part of the Backend Address Pool. -* `fqdn_list` - (Optional **Deprecated**) A list of FQDN's which should be part of the Backend Address Pool. This field has been deprecated in favour of `fqdns` and will be removed in v2.0 of the AzureRM Provider. - * `ip_addresses` - (Optional) A list of IP Addresses which should be part of the Backend Address Pool. -* `ip_address_list` - (Optional **Deprecated**) A list of IP Addresses which should be part of the Backend Address Pool. This field has been deprecated in favour of `ip_addresses` and will be removed in v2.0 of the AzureRM Provider. - --- A `backend_http_settings` block supports the following: diff --git a/website/docs/r/container_group.html.markdown b/website/docs/r/container_group.html.markdown index cf5fc059d2c0..1e6dbcf32733 100644 --- a/website/docs/r/container_group.html.markdown +++ b/website/docs/r/container_group.html.markdown @@ -129,10 +129,6 @@ A `container` block supports: * `liveness_probe` - (Optional) The definition of a readiness probe for this container as documented in the `liveness_probe` block below. Changing this forces a new resource to be created. -* `command` - (Optional) A command line to be run on the container. Changing this forces a new resource to be created. - -~> **NOTE:** The field `command` has been deprecated in favor of `commands` to better match the API. - * `commands` - (Optional) A list of commands which should be run on the container. Changing this forces a new resource to be created. * `volume` - (Optional) The definition of a volume mount for this container as documented in the `volume` block below. Changing this forces a new resource to be created. diff --git a/website/docs/r/function_app.html.markdown b/website/docs/r/function_app.html.markdown index 5ab0845ff867..201478edd4b0 100644 --- a/website/docs/r/function_app.html.markdown +++ b/website/docs/r/function_app.html.markdown @@ -136,14 +136,13 @@ The following arguments are supported: `site_config` supports the following: * `always_on` - (Optional) Should the Function App be loaded at all times? Defaults to `false`. + * `use_32_bit_worker_process` - (Optional) Should the Function App run in 32 bit mode, rather than 64 bit mode? Defaults to `true`. ~> **Note:** when using an App Service Plan in the `Free` or `Shared` Tiers `use_32_bit_worker_process` must be set to `true`. * `websockets_enabled` - (Optional) Should WebSockets be enabled? -* `virtual_network_name` - (Optional) The name of the Virtual Network which this App Service should be attached to. - * `linux_fx_version` - (Optional) Linux App Framework and version for the AppService, e.g. `DOCKER|(golang:latest)`. * `http2_enabled` - (Optional) Specifies whether or not the http2 protocol should be enabled. Defaults to `false`. diff --git a/website/docs/r/kubernetes_cluster.html.markdown b/website/docs/r/kubernetes_cluster.html.markdown index cafa7ce36a4f..c8b599827b0f 100644 --- a/website/docs/r/kubernetes_cluster.html.markdown +++ b/website/docs/r/kubernetes_cluster.html.markdown @@ -73,10 +73,6 @@ The following arguments are supported: * `service_principal` - (Required) A `service_principal` block as documented below. -* `agent_pool_profile` - (Optional) One or more `agent_pool_profile` blocks as defined below. - -~> **NOTE:** The `agent_pool_profile` block has been superseded by the `default_node_pool` block and will be removed in 2.0. For additional node pools beyond default, see [azurerm_kubernetes_cluster_node_pool](https://www.terraform.io/docs/providers/azurerm/r/kubernetes_cluster_node_pool.html). - * `addon_profile` - (Optional) A `addon_profile` block as defined below. * `api_server_authorized_ip_ranges` - (Optional) The IP ranges to whitelist for incoming traffic to the masters. @@ -158,48 +154,6 @@ A `addon_profile` block supports the following: --- -A `agent_pool_profile` block supports the following: - -~> **NOTE:** The `agent_pool_profile` block has been superseded by the `default_node_pool` block and will be removed in 2.0. For additional node pools beyond default, see [azurerm_kubernetes_cluster_node_pool](https://www.terraform.io/docs/providers/azurerm/r/kubernetes_cluster_node_pool.html). - -* `name` - (Required) Unique name of the Agent Pool Profile in the context of the Subscription and Resource Group. Changing this forces a new resource to be created. - -* `count` - (Optional) Number of Agents (VMs) in the Pool. Possible values must be in the range of 1 to 100 (inclusive). Defaults to `1`. - --> **NOTE:** If you're using AutoScaling, you may wish to use [Terraform's `ignore_changes` functionality](https://www.terraform.io/docs/configuration/resources.html#ignore_changes) to ignore changes to this field. - -* `vm_size` - (Required) The size of each VM in the Agent Pool (e.g. `Standard_F1`). Changing this forces a new resource to be created. - -* `availability_zones` - (Optional) Availability zones for nodes. The property `type` of the `agent_pool_profile` must be set to `VirtualMachineScaleSets` in order to use availability zones. - --> **NOTE:** To configure Availability Zones the `load_balancer_sku` must be set to `Standard` - -* `enable_auto_scaling` - (Optional) Whether to enable [auto-scaler](https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler). Note that auto scaling feature requires the that the `type` is set to `VirtualMachineScaleSets` - -* `enable_node_public_ip` - (Optional) Should each node have a Public IP Address? Changing this forces a new resource to be created. - -* `min_count` - (Optional) Minimum number of nodes for auto-scaling. - -* `max_count` - (Optional) Maximum number of nodes for auto-scaling. - -* `max_pods` - (Optional) The maximum number of pods that can run on each agent. Changing this forces a new resource to be created. - -* `node_taints` - (Optional) A list of Kubernetes taints which should be applied to nodes in the agent pool (e.g `key=value:NoSchedule`) - -* `os_disk_size_gb` - (Optional) The Agent Operating System disk size in GB. Changing this forces a new resource to be created. - -* `os_type` - (Optional) The Operating System used for the Agents. Possible values are `Linux` and `Windows`. Changing this forces a new resource to be created. Defaults to `Linux`. - -* `type` - (Optional) Type of the Agent Pool. Possible values are `AvailabilitySet` and `VirtualMachineScaleSets`. Changing this forces a new resource to be created. Defaults to `AvailabilitySet`. - -* `vnet_subnet_id` - (Optional) The ID of the Subnet where the Agents in the Pool should be provisioned. Changing this forces a new resource to be created. - --> **NOTE:** At this time the `vnet_subnet_id` must be the same for all node pools in the cluster - -~> **NOTE:** A route table must be configured on this Subnet. - ---- - A `azure_active_directory` block supports the following: * `client_app_id` - (Required) The Client ID of an Azure Active Directory Application. @@ -245,8 +199,6 @@ A `default_node_pool` block supports the following: * `type` - (Optional) The type of Node Pool which should be created. Possible values are `AvailabilitySet` and `VirtualMachineScaleSets`. Defaults to `VirtualMachineScaleSets`. --> **NOTE:** This default value differs from the default value for the `agent_pool_profile` block and matches a change to the default within AKS. - * `vnet_subnet_id` - (Required) The ID of a Subnet where the Kubernetes Node Pool should exist. Changing this forces a new resource to be created. ~> **NOTE:** A Route Table must be configured on this Subnet. @@ -297,8 +249,6 @@ A `network_profile` block supports the following: * `network_plugin` - (Required) Network plugin to use for networking. Currently supported values are `azure` and `kubenet`. Changing this forces a new resource to be created. --> **NOTE:** When `network_plugin` is set to `azure` - the `vnet_subnet_id` field in the `agent_pool_profile` block must be set and `pod_cidr` must not be set. - * `network_policy` - (Optional) Sets up network policy to be used with Azure CNI. [Network policy allows us to control the traffic flow between pods](https://docs.microsoft.com/en-us/azure/aks/use-network-policies). This field can only be set when `network_plugin` is set to `azure`. Currently supported values are `calico` and `azure`. Changing this forces a new resource to be created. * `dns_service_ip` - (Optional) IP address within the Kubernetes service address range that will be used by cluster service discovery (kube-dns). This is required when `network_plugin` is set to `azure`. Changing this forces a new resource to be created. diff --git a/website/docs/r/virtual_machine_extension.html.markdown b/website/docs/r/virtual_machine_extension.html.markdown index 305a0a0f1f11..ff7c5ada4052 100644 --- a/website/docs/r/virtual_machine_extension.html.markdown +++ b/website/docs/r/virtual_machine_extension.html.markdown @@ -132,8 +132,7 @@ The following arguments are supported: * `name` - (Required) The name of the virtual machine extension peering. Changing this forces a new resource to be created. -* `virtual_machine_id` - (Required) The resource ID of the virtual machine. Changing this forces a new - resource to be created +* `virtual_machine_id` - (Required) The ID of the Virtual Machine. Changing this forces a new resource to be created * `publisher` - (Required) The publisher of the extension, available publishers can be found by using the Azure CLI.