// DeleteByIDPreparer prepares the DeleteByID request. func (client PolicyAssignmentsClient) DeleteByIDPreparer(policyAssignmentID string) (*http.Request, error) { pathParameters := map[string]interface{}{ "policyAssignmentId": policyAssignmentID, "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/{policyAssignmentId}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client PolicyDefinitionsClient) DeletePreparer(policyDefinitionName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "policyDefinitionName": url.QueryEscape(policyDefinitionName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeleteMAMPolicyPreparer prepares the DeleteMAMPolicy request. func (client AndroidClient) DeleteMAMPolicyPreparer(hostName string, policyName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "hostName": url.QueryEscape(hostName), "policyName": url.QueryEscape(policyName), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeleteAtSubscriptionLevelPreparer prepares the DeleteAtSubscriptionLevel request. func (client ManagementLocksClient) DeleteAtSubscriptionLevelPreparer(lockName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "lockName": url.QueryEscape(lockName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client TagsClient) DeletePreparer(tagName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": url.QueryEscape(client.SubscriptionID), "tagName": url.QueryEscape(tagName), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/tagNames/{tagName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client JobCollectionsClient) DeletePreparer(resourceGroupName string, jobCollectionName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "jobCollectionName": url.QueryEscape(jobCollectionName), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client DeploymentsClient) DeletePreparer(resourceGroupName string, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": url.QueryEscape(deploymentName), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client RoleAssignmentsClient) DeletePreparer(scope string, roleAssignmentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "roleAssignmentName": url.QueryEscape(roleAssignmentName), "scope": scope, "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeleteCertificateOrderPreparer prepares the DeleteCertificateOrder request. func (client CertificateOrdersClient) DeleteCertificateOrderPreparer(resourceGroupName string, name string) (*http.Request, error) { pathParameters := map[string]interface{}{ "name": url.QueryEscape(name), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client VirtualNetworksClient) DeletePreparer(resourceGroupName string, virtualNetworkName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), "virtualNetworkName": url.QueryEscape(virtualNetworkName), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualnetworks/{virtualNetworkName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeleteIfExistsPreparer prepares the DeleteIfExists request. func (client ProfilesClient) DeleteIfExistsPreparer(profileName string, resourceGroupName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "profileName": url.QueryEscape(profileName), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client WorkflowAccessKeysClient) DeletePreparer(resourceGroupName string, workflowName string, accessKeyName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accessKeyName": url.QueryEscape(accessKeyName), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), "workflowName": url.QueryEscape(workflowName), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/accessKeys/{accessKeyName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request. func (client NamespacesClient) DeleteAuthorizationRulePreparer(resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "authorizationRuleName": url.QueryEscape(authorizationRuleName), "namespaceName": url.QueryEscape(namespaceName), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client VirtualMachineScaleSetVMsClient) DeletePreparer(resourceGroupName string, vmScaleSetName string, instanceID string) (*http.Request, error) { pathParameters := map[string]interface{}{ "instanceId": url.QueryEscape(instanceID), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), "vmScaleSetName": url.QueryEscape(vmScaleSetName), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client ExpressRouteCircuitPeeringsClient) DeletePreparer(resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "circuitName": url.QueryEscape(circuitName), "peeringName": url.QueryEscape(peeringName), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client RecordSetsClient) DeletePreparer(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ "recordType": url.QueryEscape(string(recordType)), "relativeRecordSetName": relativeRecordSetName, "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), "zoneName": url.QueryEscape(zoneName), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}/{recordType}/{relativeRecordSetName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeleteManagedHostingEnvironmentPreparer prepares the DeleteManagedHostingEnvironment request. func (client ManagedHostingEnvironmentsClient) DeleteManagedHostingEnvironmentPreparer(resourceGroupName string, name string, forceDelete *bool) (*http.Request, error) { pathParameters := map[string]interface{}{ "name": url.QueryEscape(name), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } if forceDelete != nil { queryParameters["forceDelete"] = forceDelete } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeletePreparer prepares the Delete request. func (client ManagementClient) DeletePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string) (*http.Request, error) { pathParameters := map[string]interface{}{ "parentResourcePath": parentResourcePath, "resourceGroupName": url.QueryEscape(resourceGroupName), "resourceName": url.QueryEscape(resourceName), "resourceProviderNamespace": url.QueryEscape(resourceProviderNamespace), "resourceType": resourceType, "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// DeleteDomainPreparer prepares the DeleteDomain request. func (client DomainsClient) DeleteDomainPreparer(resourceGroupName string, domainName string, forceHardDeleteDomain *bool) (*http.Request, error) { pathParameters := map[string]interface{}{ "domainName": url.QueryEscape(domainName), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } if forceHardDeleteDomain != nil { queryParameters["forceHardDeleteDomain"] = forceHardDeleteDomain } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }