// Create a Preparer by which to prepare the RegenerateKey request. func (client StorageAccountsClient) RegenerateKeyRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsPost(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey")) }
// ListPreparer prepares the List request. func (client ImportTasksClient) ListPreparer(skip *int32, top *int32, orderby string) (*http.Request, error) { pathParameters := map[string]interface{}{ "appCollection": autorest.Encode("path", client.AppCollection), "appName": autorest.Encode("path", client.AppName), "resourceGroupName": autorest.Encode("path", client.ResourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } if skip != nil { queryParameters["$skip"] = autorest.Encode("query", *skip) } if top != nil { queryParameters["$top"] = autorest.Encode("query", *top) } if len(orderby) > 0 { queryParameters["$orderby"] = autorest.Encode("query", orderby) } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/devices/importTasks", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare(&http.Request{}) }
// Create a Preparer by which to prepare the RegenerateSecretKey request. func (client WorkflowAccessKeysClient) RegenerateSecretKeyRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsPost(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/accessKeys/{accessKeyName}/regenerate")) }
// GetAppsPreparer prepares the GetApps request. func (client ManagementClient) GetAppsPreparer(hostName string, filter string, top *int32, selectParameter string) (*http.Request, error) { pathParameters := map[string]interface{}{ "hostName": autorest.Encode("path", hostName), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } if len(filter) > 0 { queryParameters["$filter"] = autorest.Encode("query", filter) } if top != nil { queryParameters["$top"] = autorest.Encode("query", *top) } if len(selectParameter) > 0 { queryParameters["$select"] = autorest.Encode("query", selectParameter) } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/providers/Microsoft.Intune/locations/{hostName}/apps", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare(&http.Request{}) }
// LogoutUserPreparer prepares the LogoutUser request. func (client ManagementClient) LogoutUserPreparer() (*http.Request, error) { preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/user/logout")) return preparer.Prepare(&http.Request{}) }
// ListPreparer prepares the List request. func (client VirtualMachineClient) ListPreparer(resourceGroupName string, labName string, filter string, top *int32, orderBy string) (*http.Request, error) { pathParameters := map[string]interface{}{ "labName": autorest.Encode("path", labName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } if len(filter) > 0 { queryParameters["$filter"] = autorest.Encode("query", filter) } if top != nil { queryParameters["$top"] = autorest.Encode("query", *top) } if len(orderBy) > 0 { queryParameters["$orderBy"] = autorest.Encode("query", orderBy) } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare(&http.Request{}) }
// Create a Preparer by which to prepare the List request. func (client ResourceGroupsClient) ListRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourcegroups")) }
// ListPreparer prepares the List request. func (client VirtualMachineImagesClient) ListPreparer(location string, publisherName string, offer string, skus string, filter string, top *int32, orderby string) (*http.Request, error) { pathParameters := map[string]interface{}{ "location": autorest.Encode("path", location), "offer": autorest.Encode("path", offer), "publisherName": autorest.Encode("path", publisherName), "skus": autorest.Encode("path", skus), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } if len(filter) > 0 { queryParameters["$filter"] = autorest.Encode("query", filter) } if top != nil { queryParameters["$top"] = autorest.Encode("query", *top) } if len(orderby) > 0 { queryParameters["$orderby"] = autorest.Encode("query", orderby) } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare(&http.Request{}) }
// Create a Preparer by which to prepare the List request. func (client ProvidersClient) ListRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/providers")) }
// CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client RecordSetsClient) CreateOrUpdatePreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string, ifNoneMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ "recordType": autorest.Encode("path", recordType), "relativeRecordSetName": relativeRecordSetName, "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), "zoneName": autorest.Encode("path", zoneName), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } preparer := autorest.CreatePreparer( autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}/{recordType}/{relativeRecordSetName}", pathParameters), autorest.WithJSON(parameters), autorest.WithQueryParameters(queryParameters)) if len(ifMatch) > 0 { preparer = autorest.DecoratePreparer(preparer, autorest.WithHeader("If-Match", autorest.String(ifMatch))) } if len(ifNoneMatch) > 0 { preparer = autorest.DecoratePreparer(preparer, autorest.WithHeader("If-None-Match", autorest.String(ifNoneMatch))) } return preparer.Prepare(&http.Request{}) }
// Create a Preparer by which to prepare the Get request. func (client WorkflowTriggerHistoriesClient) GetRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}")) }
// DeletePreparer prepares the Delete request. func (client ZonesClient) DeletePreparer(resourceGroupName string, zoneName string, ifMatch string, ifNoneMatch string, cancel <-chan struct{}) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), "zoneName": autorest.Encode("path", zoneName), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } preparer := autorest.CreatePreparer( autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnszones/{zoneName}", pathParameters), autorest.WithQueryParameters(queryParameters)) if len(ifMatch) > 0 { preparer = autorest.DecoratePreparer(preparer, autorest.WithHeader("If-Match", autorest.String(ifMatch))) } if len(ifNoneMatch) > 0 { preparer = autorest.DecoratePreparer(preparer, autorest.WithHeader("If-None-Match", autorest.String(ifNoneMatch))) } return preparer.Prepare(&http.Request{Cancel: cancel}) }
// ListPreparer prepares the List request. func (client VirtualMachineScaleSetVMsClient) ListPreparer(resourceGroupName string, virtualMachineScaleSetName string, filter string, selectParameter string, expand string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } if len(filter) > 0 { queryParameters["$filter"] = autorest.Encode("query", filter) } if len(selectParameter) > 0 { queryParameters["$select"] = autorest.Encode("query", selectParameter) } if len(expand) > 0 { queryParameters["$expand"] = autorest.Encode("query", expand) } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare(&http.Request{}) }
// ListJobHistoryPreparer prepares the ListJobHistory request. func (client JobsClient) ListJobHistoryPreparer(resourceGroupName string, jobCollectionName string, jobName string, top *int32, skip *int32, filter string) (*http.Request, error) { pathParameters := map[string]interface{}{ "jobCollectionName": autorest.Encode("path", jobCollectionName), "jobName": autorest.Encode("path", jobName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } if top != nil { queryParameters["$top"] = autorest.Encode("query", *top) } if skip != nil { queryParameters["$skip"] = autorest.Encode("query", *skip) } if len(filter) > 0 { queryParameters["$filter"] = autorest.Encode("query", filter) } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}/history", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare(&http.Request{}) }
// Create a Preparer by which to prepare the Reset request. func (client VirtualNetworkGatewaysClient) ResetRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsPost(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualnetworkgateways/{virtualNetworkGatewayName}/reset")) }
// Create a Preparer by which to prepare the Unregister request. func (client ProvidersClient) UnregisterRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsPost(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister")) }
// Create a Preparer by which to prepare the List request. func (client ResourceProviderOperationDetailsClient) ListRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/providers/{resourceProviderNamespace}/operations")) }
// Create a Preparer by which to prepare the Validate request. func (client DeploymentsClient) ValidateRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsPost(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.resources/deployments/{deploymentName}/validate")) }
// Create a Preparer by which to prepare the CreateOrUpdate request. func (client ResourceGroupsClient) CreateOrUpdateRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}")) }
// Create a Preparer by which to prepare the Get request. func (client DeploymentsClient) GetRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}")) }
// Create a Preparer by which to prepare the List request. func (client LocalNetworkGatewaysClient) ListRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways")) }
// Create a Preparer by which to prepare the MoveResources request. func (client ResourcesClient) MoveResourcesRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsPost(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources")) }
// GetInventoryPreparer prepares the GetInventory request. func (client ManagementClient) GetInventoryPreparer() (*http.Request, error) { preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPath("/store/inventory")) return preparer.Prepare(&http.Request{}) }
// Create a Preparer by which to prepare the Get request. func (client ResourcesClient) GetRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}")) }
// Create a Preparer by which to prepare the ListJobHistory request. func (client JobsClient) ListJobHistoryRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}/history")) }
// Create a Preparer by which to prepare the CreateOrUpdate request. func (client ServicesClient) CreateOrUpdateRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsPut(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}")) }
// ListPreparer prepares the List request. func (client Client) ListPreparer(filter string, expand string, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } if len(filter) > 0 { queryParameters["$filter"] = autorest.Encode("query", filter) } if len(expand) > 0 { queryParameters["$expand"] = autorest.Encode("query", expand) } if top != nil { queryParameters["$top"] = autorest.Encode("query", *top) } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resources", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare(&http.Request{}) }
// Create a Preparer by which to prepare the List request. func (client QueryKeysClient) ListRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}/listQueryKeys")) }
// ListBySubscriptionPreparer prepares the ListBySubscription request. func (client LabOperationsClient) ListBySubscriptionPreparer(filter string, top *int32, orderBy string) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } queryParameters := map[string]interface{}{ "api-version": client.APIVersion, } if len(filter) > 0 { queryParameters["$filter"] = autorest.Encode("query", filter) } if top != nil { queryParameters["$top"] = autorest.Encode("query", *top) } if len(orderBy) > 0 { queryParameters["$orderBy"] = autorest.Encode("query", orderBy) } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.DevTestLab/labs", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare(&http.Request{}) }
// Create a Preparer by which to prepare the List request. func (client StorageAccountsClient) ListRequestPreparer() autorest.Preparer { return autorest.CreatePreparer( autorest.AsJSON(), autorest.AsGet(), autorest.WithBaseURL(client.BaseUri), autorest.WithPath("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts")) }