// UpdatePublishingUserPreparer prepares the UpdatePublishingUser request. func (client ProviderClient) UpdatePublishingUserPreparer(requestMessage User) (*http.Request, error) { queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/providers/Microsoft.Web/publishingUsers/web"), autorest.WithJSON(requestMessage), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client TagsClient) CreateOrUpdatePreparer(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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/tagNames/{tagName}"), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// UpdateSourceControlPreparer prepares the UpdateSourceControl request. func (client ProviderClient) UpdateSourceControlPreparer(sourceControlType string, requestMessage SourceControl) (*http.Request, error) { pathParameters := map[string]interface{}{ "sourceControlType": url.QueryEscape(sourceControlType), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/providers/Microsoft.Web/sourcecontrols/{sourceControlType}"), autorest.WithJSON(requestMessage), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// UpdateSubscriptionPublishingCredentialsPreparer prepares the UpdateSubscriptionPublishingCredentials request. func (client GlobalClient) UpdateSubscriptionPublishingCredentialsPreparer(requestMessage User) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials"), autorest.WithJSON(requestMessage), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdateMAMPolicyPreparer prepares the CreateOrUpdateMAMPolicy request. func (client AndroidClient) CreateOrUpdateMAMPolicyPreparer(hostName string, policyName string, parameters AndroidMAMPolicy) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client PolicyDefinitionsClient) CreateOrUpdatePreparer(policyDefinitionName string, parameters PolicyDefinition) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdateAtSubscriptionLevelPreparer prepares the CreateOrUpdateAtSubscriptionLevel request. func (client ManagementLocksClient) CreateOrUpdateAtSubscriptionLevelPreparer(lockName string, parameters ManagementLockProperties) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateByIDPreparer prepares the CreateByID request. func (client PolicyAssignmentsClient) CreateByIDPreparer(policyAssignmentID string, parameters PolicyAssignment) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/{policyAssignmentId}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client ServicesClient) CreateOrUpdatePreparer(resourceGroupName string, serviceName string, parameters ServiceCreateOrUpdateParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": url.QueryEscape(resourceGroupName), "serviceName": url.QueryEscape(serviceName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdateCertificateOrderPreparer prepares the CreateOrUpdateCertificateOrder request. func (client CertificateOrdersClient) CreateOrUpdateCertificateOrderPreparer(resourceGroupName string, name string, certificateDistinguishedName CertificateOrder) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}"), autorest.WithJSON(certificateDistinguishedName), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client AvailabilitySetsClient) CreateOrUpdatePreparer(resourceGroupName string, name string, parameters AvailabilitySet) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{name}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// AddGroupForMAMPolicyPreparer prepares the AddGroupForMAMPolicy request. func (client AndroidClient) AddGroupForMAMPolicyPreparer(hostName string, policyName string, groupID string, parameters MAMPolicyAppIDOrGroupIDPayload) (*http.Request, error) { pathParameters := map[string]interface{}{ "groupId": url.QueryEscape(groupID), "hostName": url.QueryEscape(hostName), "policyName": url.QueryEscape(policyName), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/groups/{groupId}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdateDomainPreparer prepares the CreateOrUpdateDomain request. func (client DomainsClient) CreateOrUpdateDomainPreparer(resourceGroupName string, domainName string, domain Domain) (*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, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}"), autorest.WithJSON(domain), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client DeploymentsClient) CreateOrUpdatePreparer(resourceGroupName string, deploymentName string, parameters Deployment) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreatePreparer prepares the Create request. func (client AccountsClient) CreatePreparer(resourceGroupName string, accountName string, parameters AccountCreateParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": url.QueryEscape(accountName), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreatePreparer prepares the Create request. func (client RoleAssignmentsClient) CreatePreparer(scope string, roleAssignmentName string, parameters RoleAssignmentCreateParameters) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client ZonesClient) CreateOrUpdatePreparer(resourceGroupName string, zoneName string, parameters ZoneCreateOrUpdateParameters, ifMatch string, ifNoneMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ "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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client JobCollectionsClient) CreateOrUpdatePreparer(resourceGroupName string, jobCollectionName string, jobCollection JobCollectionDefinition) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}"), autorest.WithJSON(jobCollection), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client VirtualNetworksClient) CreateOrUpdatePreparer(resourceGroupName string, virtualNetworkName string, parameters VirtualNetwork) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualnetworks/{virtualNetworkName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreatePreparer prepares the Create request. func (client ProfilesClient) CreatePreparer(profileName string, profileProperties ProfileCreateParameters, 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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}"), autorest.WithJSON(profileProperties), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client WorkflowsClient) CreateOrUpdatePreparer(resourceGroupName string, workflowName string, workflow Workflow) (*http.Request, error) { pathParameters := map[string]interface{}{ "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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}"), autorest.WithJSON(workflow), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdateManagedHostingEnvironmentPreparer prepares the CreateOrUpdateManagedHostingEnvironment request. func (client ManagedHostingEnvironmentsClient) CreateOrUpdateManagedHostingEnvironmentPreparer(resourceGroupName string, name string, managedHostingEnvironmentEnvelope HostingEnvironment) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}"), autorest.WithJSON(managedHostingEnvironmentEnvelope), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreatePreparer prepares the Create request. func (client ManagementClient) CreatePreparer(resourceGroupName string, namespaceName string, notificationHubName string, parameters NotificationHubCreateOrUpdateParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ "namespaceName": url.QueryEscape(namespaceName), "notificationHubName": url.QueryEscape(notificationHubName), "resourceGroupName": url.QueryEscape(resourceGroupName), "subscriptionId": url.QueryEscape(client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": APIVersion, } return autorest.Prepare(&http.Request{}, autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdatePreparer(resourceGroupName string, circuitName string, peeringName string, peeringParameters ExpressRouteCircuitPeering) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}"), autorest.WithJSON(peeringParameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client ManagementClient) CreateOrUpdatePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, apiVersion string, parameters GenericResource) (*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.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}"), autorest.WithJSON(parameters), autorest.WithPathParameters(pathParameters), autorest.WithQueryParameters(queryParameters)) }