Documentation ¶
Overview ¶
Package migrate implements the Azure ARM Migrate service API version 2018-02-02.
Move your workloads to Azure.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AssessedDisk
- type AssessedMachine
- type AssessedMachineProperties
- type AssessedMachineResultList
- type AssessedMachinesClient
- func (client AssessedMachinesClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (result AssessedMachine, err error)
- func (client AssessedMachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client AssessedMachinesClient) GetResponder(resp *http.Response) (result AssessedMachine, err error)
- func (client AssessedMachinesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client AssessedMachinesClient) ListByAssessment(ctx context.Context, resourceGroupName string, projectName string, ...) (result AssessedMachineResultList, err error)
- func (client AssessedMachinesClient) ListByAssessmentPreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client AssessedMachinesClient) ListByAssessmentResponder(resp *http.Response) (result AssessedMachineResultList, err error)
- func (client AssessedMachinesClient) ListByAssessmentSender(req *http.Request) (*http.Response, error)
- type AssessedNetworkAdapter
- type Assessment
- type AssessmentOptionsClient
- func (client AssessmentOptionsClient) Get(ctx context.Context, locationName string) (result AssessmentOptionsResultList, err error)
- func (client AssessmentOptionsClient) GetPreparer(ctx context.Context, locationName string) (*http.Request, error)
- func (client AssessmentOptionsClient) GetResponder(resp *http.Response) (result AssessmentOptionsResultList, err error)
- func (client AssessmentOptionsClient) GetSender(req *http.Request) (*http.Response, error)
- type AssessmentOptionsResultList
- type AssessmentProperties
- type AssessmentResultList
- type AssessmentSizingCriterion
- type AssessmentStage
- type AssessmentStatus
- type AssessmentsClient
- func (client AssessmentsClient) Create(ctx context.Context, resourceGroupName string, projectName string, ...) (result Assessment, err error)
- func (client AssessmentsClient) CreatePreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client AssessmentsClient) CreateResponder(resp *http.Response) (result Assessment, err error)
- func (client AssessmentsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client AssessmentsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (result autorest.Response, err error)
- func (client AssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client AssessmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client AssessmentsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client AssessmentsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (result Assessment, err error)
- func (client AssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client AssessmentsClient) GetReportDownloadURL(ctx context.Context, resourceGroupName string, projectName string, ...) (result DownloadURL, err error)
- func (client AssessmentsClient) GetReportDownloadURLPreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client AssessmentsClient) GetReportDownloadURLResponder(resp *http.Response) (result DownloadURL, err error)
- func (client AssessmentsClient) GetReportDownloadURLSender(req *http.Request) (*http.Response, error)
- func (client AssessmentsClient) GetResponder(resp *http.Response) (result Assessment, err error)
- func (client AssessmentsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client AssessmentsClient) ListByGroup(ctx context.Context, resourceGroupName string, projectName string, ...) (result AssessmentResultList, err error)
- func (client AssessmentsClient) ListByGroupPreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client AssessmentsClient) ListByGroupResponder(resp *http.Response) (result AssessmentResultList, err error)
- func (client AssessmentsClient) ListByGroupSender(req *http.Request) (*http.Response, error)
- func (client AssessmentsClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string) (result AssessmentResultList, err error)
- func (client AssessmentsClient) ListByProjectPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
- func (client AssessmentsClient) ListByProjectResponder(resp *http.Response) (result AssessmentResultList, err error)
- func (client AssessmentsClient) ListByProjectSender(req *http.Request) (*http.Response, error)
- type AzureDiskSize
- type AzureDiskSuitabilityExplanation
- type AzureDiskType
- type AzureHybridUseBenefit
- type AzureLocation
- type AzureNetworkAdapterSuitabilityExplanation
- type AzureOfferCode
- type AzurePricingTier
- type AzureStorageRedundancy
- type AzureVMSize
- type AzureVMSuitabilityExplanation
- type BaseClient
- type CheckNameAvailabilityParameters
- type CheckNameAvailabilityResult
- type CloudError
- type CloudErrorBody
- type CloudSuitability
- type Currency
- type DiscoveryStatus
- type Disk
- type DownloadURL
- type Group
- type GroupProperties
- type GroupResultList
- type GroupsClient
- func (client GroupsClient) Create(ctx context.Context, resourceGroupName string, projectName string, ...) (result Group, err error)
- func (client GroupsClient) CreatePreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client GroupsClient) CreateResponder(resp *http.Response) (result Group, err error)
- func (client GroupsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (result autorest.Response, err error)
- func (client GroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client GroupsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (result Group, err error)
- func (client GroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client GroupsClient) GetResponder(resp *http.Response) (result Group, err error)
- func (client GroupsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string) (result GroupResultList, err error)
- func (client GroupsClient) ListByProjectPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
- func (client GroupsClient) ListByProjectResponder(resp *http.Response) (result GroupResultList, err error)
- func (client GroupsClient) ListByProjectSender(req *http.Request) (*http.Response, error)
- type LocationClient
- func (client LocationClient) CheckNameAvailability(ctx context.Context, locationName string, ...) (result CheckNameAvailabilityResult, err error)
- func (client LocationClient) CheckNameAvailabilityPreparer(ctx context.Context, locationName string, ...) (*http.Request, error)
- func (client LocationClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error)
- func (client LocationClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
- type Machine
- type MachineBootType
- type MachineProperties
- type MachineResultList
- type MachinesClient
- func (client MachinesClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (result Machine, err error)
- func (client MachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client MachinesClient) GetResponder(resp *http.Response) (result Machine, err error)
- func (client MachinesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client MachinesClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string) (result MachineResultList, err error)
- func (client MachinesClient) ListByProjectPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
- func (client MachinesClient) ListByProjectResponder(resp *http.Response) (result MachineResultList, err error)
- func (client MachinesClient) ListByProjectSender(req *http.Request) (*http.Response, error)
- type NameAvailabilityReason
- type NetworkAdapter
- type Operation
- type OperationDisplay
- type OperationResultList
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationResultList, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationResultList, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type Percentile
- type Project
- type ProjectKey
- type ProjectProperties
- type ProjectResultList
- type ProjectsClient
- func (client ProjectsClient) Create(ctx context.Context, resourceGroupName string, projectName string, ...) (result Project, err error)
- func (client ProjectsClient) CreatePreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client ProjectsClient) CreateResponder(resp *http.Response) (result Project, err error)
- func (client ProjectsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client ProjectsClient) Delete(ctx context.Context, resourceGroupName string, projectName string) (result autorest.Response, err error)
- func (client ProjectsClient) DeletePreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
- func (client ProjectsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ProjectsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ProjectsClient) Get(ctx context.Context, resourceGroupName string, projectName string) (result Project, err error)
- func (client ProjectsClient) GetKeys(ctx context.Context, resourceGroupName string, projectName string) (result ProjectKey, err error)
- func (client ProjectsClient) GetKeysPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
- func (client ProjectsClient) GetKeysResponder(resp *http.Response) (result ProjectKey, err error)
- func (client ProjectsClient) GetKeysSender(req *http.Request) (*http.Response, error)
- func (client ProjectsClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
- func (client ProjectsClient) GetResponder(resp *http.Response) (result Project, err error)
- func (client ProjectsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ProjectsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ProjectResultList, err error)
- func (client ProjectsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client ProjectsClient) ListByResourceGroupResponder(resp *http.Response) (result ProjectResultList, err error)
- func (client ProjectsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ProjectsClient) ListBySubscription(ctx context.Context) (result ProjectResultList, err error)
- func (client ProjectsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
- func (client ProjectsClient) ListBySubscriptionResponder(resp *http.Response) (result ProjectResultList, err error)
- func (client ProjectsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client ProjectsClient) Update(ctx context.Context, resourceGroupName string, projectName string, ...) (result Project, err error)
- func (client ProjectsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, projectName string, ...) (*http.Request, error)
- func (client ProjectsClient) UpdateResponder(resp *http.Response) (result Project, err error)
- func (client ProjectsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type ProvisioningState
- type TimeRange
- type VMFamily
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Migrate
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type AssessedDisk ¶
type AssessedDisk struct { // Name - READ-ONLY; Name of the assessed disk. Name *string `json:"name,omitempty"` // GigabytesProvisioned - READ-ONLY; Gigabytes of storage provisioned for this disk. GigabytesProvisioned *float64 `json:"gigabytesProvisioned,omitempty"` // GigabytesConsumed - READ-ONLY; Gigabytes of storage consumed by this disk. GigabytesConsumed *float64 `json:"gigabytesConsumed,omitempty"` // MegabytesPerSecondOfRead - READ-ONLY; Disk throughput in MegaBytes per second. MegabytesPerSecondOfRead *float64 `json:"megabytesPerSecondOfRead,omitempty"` // MegabytesPerSecondOfReadDataPointsExpected - READ-ONLY; Expected data points for MegaBytes per second of read. MegabytesPerSecondOfReadDataPointsExpected *int32 `json:"megabytesPerSecondOfReadDataPointsExpected,omitempty"` // MegabytesPerSecondOfReadDataPointsReceived - READ-ONLY; Received data points for MegaBytes per second of read. MegabytesPerSecondOfReadDataPointsReceived *int32 `json:"megabytesPerSecondOfReadDataPointsReceived,omitempty"` // MegabytesPerSecondOfWrite - READ-ONLY; Disk throughput in MegaBytes per second. MegabytesPerSecondOfWrite *float64 `json:"megabytesPerSecondOfWrite,omitempty"` // MegabytesPerSecondOfWriteDataPointsExpected - READ-ONLY; Expected data points for MegaBytes per second of write. MegabytesPerSecondOfWriteDataPointsExpected *int32 `json:"megabytesPerSecondOfWriteDataPointsExpected,omitempty"` // MegabytesPerSecondOfWriteDataPointsReceived - READ-ONLY; Received data points for MegaBytes per second of write. MegabytesPerSecondOfWriteDataPointsReceived *int32 `json:"megabytesPerSecondOfWriteDataPointsReceived,omitempty"` // NumberOfReadOperationsPerSecond - READ-ONLY; Number of read operations per second for the disk. NumberOfReadOperationsPerSecond *float64 `json:"numberOfReadOperationsPerSecond,omitempty"` // NumberOfReadOperationsPerSecondDataPointsExpected - READ-ONLY; Expected number of data points for read operations per second. NumberOfReadOperationsPerSecondDataPointsExpected *int32 `json:"numberOfReadOperationsPerSecondDataPointsExpected,omitempty"` // NumberOfReadOperationsPerSecondDataPointsReceived - READ-ONLY; Received number of data points for read operations per second. NumberOfReadOperationsPerSecondDataPointsReceived *int32 `json:"numberOfReadOperationsPerSecondDataPointsReceived,omitempty"` // NumberOfWriteOperationsPerSecond - READ-ONLY; Number of read and write operations per second for the disk. NumberOfWriteOperationsPerSecond *float64 `json:"numberOfWriteOperationsPerSecond,omitempty"` // NumberOfWriteOperationsPerSecondDataPointsExpected - READ-ONLY; Expected number of data points for write operations per second. NumberOfWriteOperationsPerSecondDataPointsExpected *int32 `json:"numberOfWriteOperationsPerSecondDataPointsExpected,omitempty"` // NumberOfWriteOperationsPerSecondDataPointsReceived - READ-ONLY; Received number of data points for write operations per second. NumberOfWriteOperationsPerSecondDataPointsReceived *int32 `json:"numberOfWriteOperationsPerSecondDataPointsReceived,omitempty"` // MonthlyStorageCost - READ-ONLY; Estimated aggregate storage cost for a 31-day month for this disk. MonthlyStorageCost *float64 `json:"monthlyStorageCost,omitempty"` // RecommendedDiskType - READ-ONLY; Storage type selected for this disk. Possible values include: 'AzureDiskTypeUnknown', 'AzureDiskTypeStandard', 'AzureDiskTypePremium' RecommendedDiskType AzureDiskType `json:"recommendedDiskType,omitempty"` // RecommendedDiskSize - READ-ONLY; Recommended Azure size for the disk, given utilization data and preferences set on Assessment. Possible values include: 'Unknown', 'StandardS4', 'StandardS6', 'StandardS10', 'StandardS20', 'StandardS30', 'StandardS40', 'StandardS50', 'PremiumP4', 'PremiumP6', 'PremiumP10', 'PremiumP20', 'PremiumP30', 'PremiumP40', 'PremiumP50' RecommendedDiskSize AzureDiskSize `json:"recommendedDiskSize,omitempty"` // GigabytesForRecommendedDiskSize - READ-ONLY; Gigabytes of storage provided by the recommended Azure disk size. GigabytesForRecommendedDiskSize *int32 `json:"gigabytesForRecommendedDiskSize,omitempty"` // Suitability - READ-ONLY; Whether this disk is suitable for Azure. Possible values include: 'CloudSuitabilityUnknown', 'CloudSuitabilityNotSuitable', 'CloudSuitabilitySuitable', 'CloudSuitabilityConditionallySuitable', 'CloudSuitabilityReadinessUnknown' Suitability CloudSuitability `json:"suitability,omitempty"` // SuitabilityExplanation - READ-ONLY; If disk is suitable, this explains the reasons and mitigation steps. Possible values include: 'AzureDiskSuitabilityExplanationUnknown', 'AzureDiskSuitabilityExplanationNotApplicable', 'AzureDiskSuitabilityExplanationDiskSizeGreaterThanSupported', 'AzureDiskSuitabilityExplanationNoSuitableDiskSizeForIops', 'AzureDiskSuitabilityExplanationNoSuitableDiskSizeForThroughput', 'AzureDiskSuitabilityExplanationNoDiskSizeFoundInSelectedLocation', 'AzureDiskSuitabilityExplanationNoDiskSizeFoundForSelectedRedundancy', 'AzureDiskSuitabilityExplanationInternalErrorOccurredForDiskEvaluation' SuitabilityExplanation AzureDiskSuitabilityExplanation `json:"suitabilityExplanation,omitempty"` }
AssessedDisk a disk assessed for an assessment.
type AssessedMachine ¶
type AssessedMachine struct { autorest.Response `json:"-"` // ID - READ-ONLY; Path reference to this assessed machine. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessments/{assessmentName}/assessedMachines/{assessedMachineName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; Name of the machine. Name *string `json:"name,omitempty"` // ETag - For optimistic concurrency control. ETag *string `json:"eTag,omitempty"` // Type - READ-ONLY; Type of the object = [Microsoft.Migrate/projects/groups/assessments/assessedMachines]. Type *string `json:"type,omitempty"` // AssessedMachineProperties - Properties of an assessed machine. *AssessedMachineProperties `json:"properties,omitempty"` }
AssessedMachine a machine evaluated as part of an assessment.
func (AssessedMachine) MarshalJSON ¶
func (am AssessedMachine) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AssessedMachine.
func (*AssessedMachine) UnmarshalJSON ¶
func (am *AssessedMachine) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AssessedMachine struct.
type AssessedMachineProperties ¶
type AssessedMachineProperties struct { // Groups - READ-ONLY; List of references to the groups that the machine is member of. Groups *[]string `json:"groups,omitempty"` // DiscoveredTimestamp - READ-ONLY; Time when this machine was discovered by Azure Migrate agent. Date-Time represented in ISO-8601 format. DiscoveredTimestamp *date.Time `json:"discoveredTimestamp,omitempty"` // BootType - READ-ONLY; Boot type of the machine. Possible values include: 'MachineBootTypeUnknown', 'MachineBootTypeEFI', 'MachineBootTypeBIOS' BootType MachineBootType `json:"bootType,omitempty"` // DatacenterContainer - READ-ONLY; Container defined in the management solution that this machine is part of in the datacenter. DatacenterContainer *string `json:"datacenterContainer,omitempty"` // DatacenterManagementServer - READ-ONLY; Name of the server hosting the datacenter management solution. DatacenterManagementServer *string `json:"datacenterManagementServer,omitempty"` // DatacenterMachineID - READ-ONLY; ID of the machine as tracked by the datacenter management solution. DatacenterMachineID *string `json:"datacenterMachineId,omitempty"` // DatacenterManagementServerID - READ-ONLY; ID of the server hosting the datacenter management solution. DatacenterManagementServerID *string `json:"datacenterManagementServerId,omitempty"` // Description - READ-ONLY; Description of the machine Description *string `json:"description,omitempty"` // DisplayName - READ-ONLY; User readable name of the machine as defined by the user in their private datacenter. DisplayName *string `json:"displayName,omitempty"` // MegabytesOfMemory - READ-ONLY; Memory in Megabytes. MegabytesOfMemory *float64 `json:"megabytesOfMemory,omitempty"` // NumberOfCores - READ-ONLY; Processor count. NumberOfCores *int32 `json:"numberOfCores,omitempty"` // OperatingSystem - READ-ONLY; Operating System of the machine. OperatingSystem *string `json:"operatingSystem,omitempty"` // MonthlyBandwidthCost - READ-ONLY; Monthly network cost estimate for the network adapters that are attached to this machine as a group, for a 31-day month. MonthlyBandwidthCost *float64 `json:"monthlyBandwidthCost,omitempty"` // MonthlyStorageCost - READ-ONLY; Monthly storage cost estimate for the disks that are attached to this machine as a group, for a 31-day month. MonthlyStorageCost *float64 `json:"monthlyStorageCost,omitempty"` // Disks - READ-ONLY; Dictionary of disks attached to the machine. Key is ID of disk. Value is a disk object. Disks map[string]*AssessedDisk `json:"disks"` // NetworkAdapters - READ-ONLY; Dictionary of network adapters attached to the machine. Key is name of the adapter. Value is a network adapter object. NetworkAdapters map[string]*AssessedNetworkAdapter `json:"networkAdapters"` // RecommendedSize - READ-ONLY; Recommended Azure size for this machine. Possible values include: 'AzureVMSizeUnknown', 'AzureVMSizeBasicA0', 'AzureVMSizeBasicA1', 'AzureVMSizeBasicA2', 'AzureVMSizeBasicA3', 'AzureVMSizeBasicA4', 'AzureVMSizeStandardA0', 'AzureVMSizeStandardA1', 'AzureVMSizeStandardA2', 'AzureVMSizeStandardA3', 'AzureVMSizeStandardA4', 'AzureVMSizeStandardA5', 'AzureVMSizeStandardA6', 'AzureVMSizeStandardA7', 'AzureVMSizeStandardA8', 'AzureVMSizeStandardA9', 'AzureVMSizeStandardA10', 'AzureVMSizeStandardA11', 'AzureVMSizeStandardA1V2', 'AzureVMSizeStandardA2V2', 'AzureVMSizeStandardA4V2', 'AzureVMSizeStandardA8V2', 'AzureVMSizeStandardA2mV2', 'AzureVMSizeStandardA4mV2', 'AzureVMSizeStandardA8mV2', 'AzureVMSizeStandardD1', 'AzureVMSizeStandardD2', 'AzureVMSizeStandardD3', 'AzureVMSizeStandardD4', 'AzureVMSizeStandardD11', 'AzureVMSizeStandardD12', 'AzureVMSizeStandardD13', 'AzureVMSizeStandardD14', 'AzureVMSizeStandardD1V2', 'AzureVMSizeStandardD2V2', 'AzureVMSizeStandardD3V2', 'AzureVMSizeStandardD4V2', 'AzureVMSizeStandardD5V2', 'AzureVMSizeStandardD11V2', 'AzureVMSizeStandardD12V2', 'AzureVMSizeStandardD13V2', 'AzureVMSizeStandardD14V2', 'AzureVMSizeStandardD15V2', 'AzureVMSizeStandardDS1', 'AzureVMSizeStandardDS2', 'AzureVMSizeStandardDS3', 'AzureVMSizeStandardDS4', 'AzureVMSizeStandardDS11', 'AzureVMSizeStandardDS12', 'AzureVMSizeStandardDS13', 'AzureVMSizeStandardDS14', 'AzureVMSizeStandardDS1V2', 'AzureVMSizeStandardDS2V2', 'AzureVMSizeStandardDS3V2', 'AzureVMSizeStandardDS4V2', 'AzureVMSizeStandardDS5V2', 'AzureVMSizeStandardDS11V2', 'AzureVMSizeStandardDS12V2', 'AzureVMSizeStandardDS13V2', 'AzureVMSizeStandardDS14V2', 'AzureVMSizeStandardDS15V2', 'AzureVMSizeStandardF1', 'AzureVMSizeStandardF2', 'AzureVMSizeStandardF4', 'AzureVMSizeStandardF8', 'AzureVMSizeStandardF16', 'AzureVMSizeStandardF1s', 'AzureVMSizeStandardF2s', 'AzureVMSizeStandardF4s', 'AzureVMSizeStandardF8s', 'AzureVMSizeStandardF16s', 'AzureVMSizeStandardG1', 'AzureVMSizeStandardG2', 'AzureVMSizeStandardG3', 'AzureVMSizeStandardG4', 'AzureVMSizeStandardG5', 'AzureVMSizeStandardGS1', 'AzureVMSizeStandardGS2', 'AzureVMSizeStandardGS3', 'AzureVMSizeStandardGS4', 'AzureVMSizeStandardGS5', 'AzureVMSizeStandardH8', 'AzureVMSizeStandardH16', 'AzureVMSizeStandardH8m', 'AzureVMSizeStandardH16m', 'AzureVMSizeStandardH16r', 'AzureVMSizeStandardH16mr', 'AzureVMSizeStandardL4s', 'AzureVMSizeStandardL8s', 'AzureVMSizeStandardL16s', 'AzureVMSizeStandardL32s' RecommendedSize AzureVMSize `json:"recommendedSize,omitempty"` // NumberOfCoresForRecommendedSize - READ-ONLY; Number of CPU cores in the Recommended Azure VM Size. NumberOfCoresForRecommendedSize *int32 `json:"numberOfCoresForRecommendedSize,omitempty"` // MegabytesOfMemoryForRecommendedSize - READ-ONLY; Megabytes of memory in the Recommended Azure VM Size. MegabytesOfMemoryForRecommendedSize *float64 `json:"megabytesOfMemoryForRecommendedSize,omitempty"` // MonthlyComputeCostForRecommendedSize - READ-ONLY; Compute Cost for a 31-day month, if the machine is migrated to Azure with the Recommended Size. MonthlyComputeCostForRecommendedSize *float64 `json:"monthlyComputeCostForRecommendedSize,omitempty"` // PercentageCoresUtilization - READ-ONLY; Utilization percentage of the processor core as observed in the private data center, in the Time Range selected on Assessment, reported as the Percentile value based on the percentile number selected in assessment. PercentageCoresUtilization *float64 `json:"percentageCoresUtilization,omitempty"` // PercentageMemoryUtilization - READ-ONLY; Utilization percentage of the memory as observed in the private data center, in the Time Range selected on Assessment, reported as the Percentile value based on the percentile number selected in assessment. PercentageMemoryUtilization *float64 `json:"percentageMemoryUtilization,omitempty"` // PercentageCoresUtilizationDataPointsExpected - READ-ONLY; Expected data points for percentage of cores utilization. PercentageCoresUtilizationDataPointsExpected *int32 `json:"percentageCoresUtilizationDataPointsExpected,omitempty"` // PercentageCoresUtilizationDataPointsReceived - READ-ONLY; Received data points for percentage of cores utilization. PercentageCoresUtilizationDataPointsReceived *int32 `json:"percentageCoresUtilizationDataPointsReceived,omitempty"` // PercentageMemoryUtilizationDataPointsExpected - READ-ONLY; Expected data points for percentage of memory utilization. PercentageMemoryUtilizationDataPointsExpected *int32 `json:"percentageMemoryUtilizationDataPointsExpected,omitempty"` // PercentageMemoryUtilizationDataPointsReceived - READ-ONLY; Received data points for percentage of memory utilization. PercentageMemoryUtilizationDataPointsReceived *int32 `json:"percentageMemoryUtilizationDataPointsReceived,omitempty"` // Suitability - READ-ONLY; Whether machine is suitable for migration to Azure. Possible values include: 'CloudSuitabilityUnknown', 'CloudSuitabilityNotSuitable', 'CloudSuitabilitySuitable', 'CloudSuitabilityConditionallySuitable', 'CloudSuitabilityReadinessUnknown' Suitability CloudSuitability `json:"suitability,omitempty"` // SuitabilityExplanation - READ-ONLY; If machine is not ready to be migrated, this explains the reasons and mitigation steps. Possible values include: 'AzureVMSuitabilityExplanationUnknown', 'AzureVMSuitabilityExplanationNotApplicable', 'AzureVMSuitabilityExplanationGuestOperatingSystemArchitectureNotSupported', 'AzureVMSuitabilityExplanationGuestOperatingSystemNotSupported', 'AzureVMSuitabilityExplanationBootTypeNotSupported', 'AzureVMSuitabilityExplanationMoreDisksThanSupported', 'AzureVMSuitabilityExplanationNoSuitableVMSizeFound', 'AzureVMSuitabilityExplanationOneOrMoreDisksNotSuitable', 'AzureVMSuitabilityExplanationOneOrMoreAdaptersNotSuitable', 'AzureVMSuitabilityExplanationInternalErrorOccuredDuringComputeEvaluation', 'AzureVMSuitabilityExplanationInternalErrorOccuredDuringStorageEvaluation', 'AzureVMSuitabilityExplanationInternalErrorOccuredDuringNetworkEvaluation', 'AzureVMSuitabilityExplanationNoVMSizeSupportsStoragePerformance', 'AzureVMSuitabilityExplanationNoVMSizeSupportsNetworkPerformance', 'AzureVMSuitabilityExplanationNoVMSizeForSelectedPricingTier', 'AzureVMSuitabilityExplanationNoVMSizeForSelectedAzureLocation', 'AzureVMSuitabilityExplanationCheckRedHatLinuxVersion', 'AzureVMSuitabilityExplanationCheckOpenSuseLinuxVersion', 'AzureVMSuitabilityExplanationCheckWindowsServer2008R2Version', 'AzureVMSuitabilityExplanationCheckCentOsVersion', 'AzureVMSuitabilityExplanationCheckDebianLinuxVersion', 'AzureVMSuitabilityExplanationCheckSuseLinuxVersion', 'AzureVMSuitabilityExplanationCheckOracleLinuxVersion', 'AzureVMSuitabilityExplanationCheckUbuntuLinuxVersion', 'AzureVMSuitabilityExplanationCheckCoreOsLinuxVersion', 'AzureVMSuitabilityExplanationWindowsServerVersionConditionallySupported', 'AzureVMSuitabilityExplanationNoGuestOperatingSystemConditionallySupported', 'AzureVMSuitabilityExplanationWindowsClientVersionsConditionallySupported', 'AzureVMSuitabilityExplanationBootTypeUnknown', 'AzureVMSuitabilityExplanationGuestOperatingSystemUnknown', 'AzureVMSuitabilityExplanationWindowsServerVersionsSupportedWithCaveat', 'AzureVMSuitabilityExplanationWindowsOSNoLongerUnderMSSupport', 'AzureVMSuitabilityExplanationEndorsedWithConditionsLinuxDistributions', 'AzureVMSuitabilityExplanationUnendorsedLinuxDistributions', 'AzureVMSuitabilityExplanationNoVMSizeForStandardPricingTier', 'AzureVMSuitabilityExplanationNoVMSizeForBasicPricingTier' SuitabilityExplanation AzureVMSuitabilityExplanation `json:"suitabilityExplanation,omitempty"` // CreatedTimestamp - READ-ONLY; Time when this machine was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *date.Time `json:"createdTimestamp,omitempty"` // UpdatedTimestamp - READ-ONLY; Time when this machine was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *date.Time `json:"updatedTimestamp,omitempty"` }
AssessedMachineProperties properties of an assessed machine.
func (AssessedMachineProperties) MarshalJSON ¶
func (amp AssessedMachineProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AssessedMachineProperties.
type AssessedMachineResultList ¶
type AssessedMachineResultList struct { autorest.Response `json:"-"` // Value - List of assessed machines. Value *[]AssessedMachine `json:"value,omitempty"` }
AssessedMachineResultList list of assessed machines.
type AssessedMachinesClient ¶
type AssessedMachinesClient struct {
BaseClient
}
AssessedMachinesClient is the move your workloads to Azure.
func NewAssessedMachinesClient ¶
func NewAssessedMachinesClient(subscriptionID string, acceptLanguage string) AssessedMachinesClient
NewAssessedMachinesClient creates an instance of the AssessedMachinesClient client.
func NewAssessedMachinesClientWithBaseURI ¶
func NewAssessedMachinesClientWithBaseURI(baseURI string, subscriptionID string, acceptLanguage string) AssessedMachinesClient
NewAssessedMachinesClientWithBaseURI creates an instance of the AssessedMachinesClient client.
func (AssessedMachinesClient) Get ¶
func (client AssessedMachinesClient) Get(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string, assessedMachineName string) (result AssessedMachine, err error)
Get get an assessed machine with its size & cost estimate that was evaluated in the specified assessment. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project. assessmentName - unique name of an assessment within a project. assessedMachineName - unique name of an assessed machine evaluated as part of an assessment.
func (AssessedMachinesClient) GetPreparer ¶
func (client AssessedMachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string, assessedMachineName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (AssessedMachinesClient) GetResponder ¶
func (client AssessedMachinesClient) GetResponder(resp *http.Response) (result AssessedMachine, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (AssessedMachinesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (AssessedMachinesClient) ListByAssessment ¶
func (client AssessedMachinesClient) ListByAssessment(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string) (result AssessedMachineResultList, err error)
ListByAssessment get list of machines that assessed as part of the specified assessment. Returns a json array of objects of type 'assessedMachine' as specified in the Models section.
Whenever an assessment is created or updated, it goes under computation. During this phase, the 'status' field of Assessment object reports 'Computing'. During the period when the assessment is under computation, the list of assessed machines is empty and no assessed machines are returned by this call. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project. assessmentName - unique name of an assessment within a project.
func (AssessedMachinesClient) ListByAssessmentPreparer ¶
func (client AssessedMachinesClient) ListByAssessmentPreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string) (*http.Request, error)
ListByAssessmentPreparer prepares the ListByAssessment request.
func (AssessedMachinesClient) ListByAssessmentResponder ¶
func (client AssessedMachinesClient) ListByAssessmentResponder(resp *http.Response) (result AssessedMachineResultList, err error)
ListByAssessmentResponder handles the response to the ListByAssessment request. The method always closes the http.Response Body.
func (AssessedMachinesClient) ListByAssessmentSender ¶
func (client AssessedMachinesClient) ListByAssessmentSender(req *http.Request) (*http.Response, error)
ListByAssessmentSender sends the ListByAssessment request. The method will close the http.Response Body if it receives an error.
type AssessedNetworkAdapter ¶
type AssessedNetworkAdapter struct { // MacAddress - READ-ONLY; MAC Address of the network adapter. MacAddress *string `json:"macAddress,omitempty"` // IPAddresses - READ-ONLY; List of IP Addresses on the network adapter. IPAddresses *[]string `json:"ipAddresses,omitempty"` // MonthlyBandwidthCosts - READ-ONLY; Monthly cost estimate for network bandwidth used by this network adapter. MonthlyBandwidthCosts *float64 `json:"monthlyBandwidthCosts,omitempty"` // MegabytesPerSecondReceived - READ-ONLY; Adapter throughput for incoming traffic in MegaBytes per second. MegabytesPerSecondReceived *float64 `json:"megabytesPerSecondReceived,omitempty"` // MegabytesPerSecondReceivedDataPointsExpected - READ-ONLY; Expected data points for incoming traffic in MegaBytes per second. MegabytesPerSecondReceivedDataPointsExpected *int32 `json:"megabytesPerSecondReceivedDataPointsExpected,omitempty"` // MegabytesPerSecondOfReadDataPointsReceived - READ-ONLY; Received data points for incoming traffic in MegaBytes per second. MegabytesPerSecondOfReadDataPointsReceived *int32 `json:"megabytesPerSecondOfReadDataPointsReceived,omitempty"` // MegabytesPerSecondTransmitted - READ-ONLY; Adapter throughput for outgoing traffic in MegaBytes per second. MegabytesPerSecondTransmitted *float64 `json:"megabytesPerSecondTransmitted,omitempty"` // MegabytesPerSecondTransmittedDataPointsExpected - READ-ONLY; Expected data points for outgoing traffic in MegaBytes per second. MegabytesPerSecondTransmittedDataPointsExpected *int32 `json:"megabytesPerSecondTransmittedDataPointsExpected,omitempty"` // MegabytesPerSecondTransmittedDataPointsReceived - READ-ONLY; Received data points for outgoing traffic in MegaBytes per second. MegabytesPerSecondTransmittedDataPointsReceived *int32 `json:"megabytesPerSecondTransmittedDataPointsReceived,omitempty"` // NetGigabytesTransmittedPerMonth - Gigabytes transmitted through this adapter each month. NetGigabytesTransmittedPerMonth *float64 `json:"netGigabytesTransmittedPerMonth,omitempty"` // Suitability - READ-ONLY; Whether this adapter is suitable for Azure. Possible values include: 'CloudSuitabilityUnknown', 'CloudSuitabilityNotSuitable', 'CloudSuitabilitySuitable', 'CloudSuitabilityConditionallySuitable', 'CloudSuitabilityReadinessUnknown' Suitability CloudSuitability `json:"suitability,omitempty"` // SuitabilityExplanation - READ-ONLY; If network adapter is suitable, this explains the reasons and mitigation steps. Possible values include: 'AzureNetworkAdapterSuitabilityExplanationUnknown', 'AzureNetworkAdapterSuitabilityExplanationNotApplicable', 'AzureNetworkAdapterSuitabilityExplanationInternalErrorOccured' SuitabilityExplanation AzureNetworkAdapterSuitabilityExplanation `json:"suitabilityExplanation,omitempty"` }
AssessedNetworkAdapter a network adapter assessed for an assessment.
type Assessment ¶
type Assessment struct { autorest.Response `json:"-"` // ID - READ-ONLY; Path reference to this assessment. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName}/assessment/{assessmentName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; Unique name of an assessment. Name *string `json:"name,omitempty"` // ETag - For optimistic concurrency control. ETag *string `json:"eTag,omitempty"` // Type - READ-ONLY; Type of the object = [Microsoft.Migrate/projects/groups/assessments]. Type *string `json:"type,omitempty"` // AssessmentProperties - Properties of the assessment. *AssessmentProperties `json:"properties,omitempty"` }
Assessment an assessment created for a group in the Migration project.
func (Assessment) MarshalJSON ¶
func (a Assessment) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Assessment.
func (*Assessment) UnmarshalJSON ¶
func (a *Assessment) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Assessment struct.
type AssessmentOptionsClient ¶
type AssessmentOptionsClient struct {
BaseClient
}
AssessmentOptionsClient is the move your workloads to Azure.
func NewAssessmentOptionsClient ¶
func NewAssessmentOptionsClient(subscriptionID string, acceptLanguage string) AssessmentOptionsClient
NewAssessmentOptionsClient creates an instance of the AssessmentOptionsClient client.
func NewAssessmentOptionsClientWithBaseURI ¶
func NewAssessmentOptionsClientWithBaseURI(baseURI string, subscriptionID string, acceptLanguage string) AssessmentOptionsClient
NewAssessmentOptionsClientWithBaseURI creates an instance of the AssessmentOptionsClient client.
func (AssessmentOptionsClient) Get ¶
func (client AssessmentOptionsClient) Get(ctx context.Context, locationName string) (result AssessmentOptionsResultList, err error)
Get get the available options for the properties of an assessment. Parameters: locationName - azure region in which the project is created.
func (AssessmentOptionsClient) GetPreparer ¶
func (client AssessmentOptionsClient) GetPreparer(ctx context.Context, locationName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (AssessmentOptionsClient) GetResponder ¶
func (client AssessmentOptionsClient) GetResponder(resp *http.Response) (result AssessmentOptionsResultList, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
type AssessmentOptionsResultList ¶
type AssessmentOptionsResultList struct { autorest.Response `json:"-"` // VMFamilies - READ-ONLY; Dictionary of VM families grouped by vm family name describing the targeted azure locations of VM family and the category of the family. VMFamilies *[]VMFamily `json:"vmFamilies,omitempty"` // ReservedInstanceVMFamilies - READ-ONLY; List of supported VM Families. ReservedInstanceVMFamilies *[]string `json:"reservedInstanceVmFamilies,omitempty"` }
AssessmentOptionsResultList list of assessment options.
type AssessmentProperties ¶
type AssessmentProperties struct { // AzureLocation - Target Azure location for which the machines should be assessed. These enums are the same as used by Compute API. Possible values include: 'AzureLocationUnknown', 'AzureLocationEastAsia', 'AzureLocationSoutheastAsia', 'AzureLocationAustraliaEast', 'AzureLocationAustraliaSoutheast', 'AzureLocationBrazilSouth', 'AzureLocationCanadaCentral', 'AzureLocationCanadaEast', 'AzureLocationWestEurope', 'AzureLocationNorthEurope', 'AzureLocationCentralIndia', 'AzureLocationSouthIndia', 'AzureLocationWestIndia', 'AzureLocationJapanEast', 'AzureLocationJapanWest', 'AzureLocationKoreaCentral', 'AzureLocationKoreaSouth', 'AzureLocationUkWest', 'AzureLocationUkSouth', 'AzureLocationNorthCentralUs', 'AzureLocationEastUs', 'AzureLocationWestUs2', 'AzureLocationSouthCentralUs', 'AzureLocationCentralUs', 'AzureLocationEastUs2', 'AzureLocationWestUs', 'AzureLocationWestCentralUs', 'AzureLocationGermanyCentral', 'AzureLocationGermanyNortheast', 'AzureLocationChinaNorth', 'AzureLocationChinaEast' AzureLocation AzureLocation `json:"azureLocation,omitempty"` // AzureOfferCode - Offer code according to which cost estimation is done. Possible values include: 'AzureOfferCodeUnknown', 'AzureOfferCodeMSAZR0003P', 'AzureOfferCodeMSAZR0044P', 'AzureOfferCodeMSAZR0059P', 'AzureOfferCodeMSAZR0060P', 'AzureOfferCodeMSAZR0062P', 'AzureOfferCodeMSAZR0063P', 'AzureOfferCodeMSAZR0064P', 'AzureOfferCodeMSAZR0029P', 'AzureOfferCodeMSAZR0022P', 'AzureOfferCodeMSAZR0023P', 'AzureOfferCodeMSAZR0148P', 'AzureOfferCodeMSAZR0025P', 'AzureOfferCodeMSAZR0036P', 'AzureOfferCodeMSAZR0120P', 'AzureOfferCodeMSAZR0121P', 'AzureOfferCodeMSAZR0122P', 'AzureOfferCodeMSAZR0123P', 'AzureOfferCodeMSAZR0124P', 'AzureOfferCodeMSAZR0125P', 'AzureOfferCodeMSAZR0126P', 'AzureOfferCodeMSAZR0127P', 'AzureOfferCodeMSAZR0128P', 'AzureOfferCodeMSAZR0129P', 'AzureOfferCodeMSAZR0130P', 'AzureOfferCodeMSAZR0111P', 'AzureOfferCodeMSAZR0144P', 'AzureOfferCodeMSAZR0149P', 'AzureOfferCodeMSMCAZR0044P', 'AzureOfferCodeMSMCAZR0059P', 'AzureOfferCodeMSMCAZR0060P', 'AzureOfferCodeMSMCAZR0063P', 'AzureOfferCodeMSMCAZR0120P', 'AzureOfferCodeMSMCAZR0121P', 'AzureOfferCodeMSMCAZR0125P', 'AzureOfferCodeMSMCAZR0128P', 'AzureOfferCodeMSAZRDE0003P', 'AzureOfferCodeMSAZRDE0044P' AzureOfferCode AzureOfferCode `json:"azureOfferCode,omitempty"` // AzurePricingTier - Pricing tier for Size evaluation. Possible values include: 'Standard', 'Basic' AzurePricingTier AzurePricingTier `json:"azurePricingTier,omitempty"` // AzureStorageRedundancy - Storage Redundancy type offered by Azure. Possible values include: 'AzureStorageRedundancyUnknown', 'AzureStorageRedundancyLocallyRedundant', 'AzureStorageRedundancyZoneRedundant', 'AzureStorageRedundancyGeoRedundant', 'AzureStorageRedundancyReadAccessGeoRedundant' AzureStorageRedundancy AzureStorageRedundancy `json:"azureStorageRedundancy,omitempty"` // ScalingFactor - Scaling factor used over utilization data to add a performance buffer for new machines to be created in Azure. Min Value = 1.0, Max value = 1.9, Default = 1.3. ScalingFactor *float64 `json:"scalingFactor,omitempty"` // Percentile - Percentile of performance data used to recommend Azure size. Possible values include: 'Percentile50', 'Percentile90', 'Percentile95', 'Percentile99' Percentile Percentile `json:"percentile,omitempty"` // TimeRange - Time range of performance data used to recommend a size. Possible values include: 'Day', 'Week', 'Month' TimeRange TimeRange `json:"timeRange,omitempty"` // Stage - User configurable setting that describes the status of the assessment. Possible values include: 'InProgress', 'UnderReview', 'Approved' Stage AssessmentStage `json:"stage,omitempty"` // Currency - Currency to report prices in. Possible values include: 'CurrencyUnknown', 'CurrencyUSD', 'CurrencyDKK', 'CurrencyCAD', 'CurrencyIDR', 'CurrencyJPY', 'CurrencyKRW', 'CurrencyNZD', 'CurrencyNOK', 'CurrencyRUB', 'CurrencySAR', 'CurrencyZAR', 'CurrencySEK', 'CurrencyTRY', 'CurrencyGBP', 'CurrencyMXN', 'CurrencyMYR', 'CurrencyINR', 'CurrencyHKD', 'CurrencyBRL', 'CurrencyTWD', 'CurrencyEUR', 'CurrencyCHF', 'CurrencyARS', 'CurrencyAUD', 'CurrencyCNY' Currency Currency `json:"currency,omitempty"` // AzureHybridUseBenefit - AHUB discount on windows virtual machines. Possible values include: 'AzureHybridUseBenefitUnknown', 'AzureHybridUseBenefitYes', 'AzureHybridUseBenefitNo' AzureHybridUseBenefit AzureHybridUseBenefit `json:"azureHybridUseBenefit,omitempty"` // DiscountPercentage - Custom discount percentage to be applied on final costs. Can be in the range [0, 100]. DiscountPercentage *float64 `json:"discountPercentage,omitempty"` // ConfidenceRatingInPercentage - READ-ONLY; Confidence rating percentage for assessment. Can be in the range [0, 100]. ConfidenceRatingInPercentage *float64 `json:"confidenceRatingInPercentage,omitempty"` // SizingCriterion - Assessment sizing criterion. Possible values include: 'PerformanceBased', 'AsOnPremises' SizingCriterion AssessmentSizingCriterion `json:"sizingCriterion,omitempty"` // PricesTimestamp - READ-ONLY; Time when the Azure Prices were queried. Date-Time represented in ISO-8601 format. PricesTimestamp *date.Time `json:"pricesTimestamp,omitempty"` // CreatedTimestamp - READ-ONLY; Time when this project was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *date.Time `json:"createdTimestamp,omitempty"` // UpdatedTimestamp - READ-ONLY; Time when this project was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *date.Time `json:"updatedTimestamp,omitempty"` // MonthlyComputeCost - READ-ONLY; Monthly compute cost estimate for the machines that are part of this assessment as a group, for a 31-day month. MonthlyComputeCost *float64 `json:"monthlyComputeCost,omitempty"` // MonthlyBandwidthCost - READ-ONLY; Monthly network cost estimate for the machines that are part of this assessment as a group, for a 31-day month. MonthlyBandwidthCost *float64 `json:"monthlyBandwidthCost,omitempty"` // MonthlyStorageCost - READ-ONLY; Monthly storage cost estimate for the machines that are part of this assessment as a group, for a 31-day month. MonthlyStorageCost *float64 `json:"monthlyStorageCost,omitempty"` // Status - READ-ONLY; Whether the assessment has been created and is valid. Possible values include: 'Created', 'Updated', 'Running', 'Completed', 'Invalid' Status AssessmentStatus `json:"status,omitempty"` // NumberOfMachines - READ-ONLY; Number of assessed machines part of this assessment. NumberOfMachines *int32 `json:"numberOfMachines,omitempty"` }
AssessmentProperties properties of an assessment.
type AssessmentResultList ¶
type AssessmentResultList struct { autorest.Response `json:"-"` // Value - List of assessments. Value *[]Assessment `json:"value,omitempty"` }
AssessmentResultList list of assessments.
type AssessmentSizingCriterion ¶
type AssessmentSizingCriterion string
AssessmentSizingCriterion enumerates the values for assessment sizing criterion.
const ( // AsOnPremises ... AsOnPremises AssessmentSizingCriterion = "AsOnPremises" // PerformanceBased ... PerformanceBased AssessmentSizingCriterion = "PerformanceBased" )
func PossibleAssessmentSizingCriterionValues ¶
func PossibleAssessmentSizingCriterionValues() []AssessmentSizingCriterion
PossibleAssessmentSizingCriterionValues returns an array of possible values for the AssessmentSizingCriterion const type.
type AssessmentStage ¶
type AssessmentStage string
AssessmentStage enumerates the values for assessment stage.
const ( // Approved ... Approved AssessmentStage = "Approved" // InProgress ... InProgress AssessmentStage = "InProgress" // UnderReview ... UnderReview AssessmentStage = "UnderReview" )
func PossibleAssessmentStageValues ¶
func PossibleAssessmentStageValues() []AssessmentStage
PossibleAssessmentStageValues returns an array of possible values for the AssessmentStage const type.
type AssessmentStatus ¶
type AssessmentStatus string
AssessmentStatus enumerates the values for assessment status.
const ( // Completed ... Completed AssessmentStatus = "Completed" // Created ... Created AssessmentStatus = "Created" // Invalid ... Invalid AssessmentStatus = "Invalid" // Running ... Running AssessmentStatus = "Running" // Updated ... Updated AssessmentStatus = "Updated" )
func PossibleAssessmentStatusValues ¶
func PossibleAssessmentStatusValues() []AssessmentStatus
PossibleAssessmentStatusValues returns an array of possible values for the AssessmentStatus const type.
type AssessmentsClient ¶
type AssessmentsClient struct {
BaseClient
}
AssessmentsClient is the move your workloads to Azure.
func NewAssessmentsClient ¶
func NewAssessmentsClient(subscriptionID string, acceptLanguage string) AssessmentsClient
NewAssessmentsClient creates an instance of the AssessmentsClient client.
func NewAssessmentsClientWithBaseURI ¶
func NewAssessmentsClientWithBaseURI(baseURI string, subscriptionID string, acceptLanguage string) AssessmentsClient
NewAssessmentsClientWithBaseURI creates an instance of the AssessmentsClient client.
func (AssessmentsClient) Create ¶
func (client AssessmentsClient) Create(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string, assessment *Assessment) (result Assessment, err error)
Create create a new assessment with the given name and the specified settings. Since name of an assessment in a project is a unique identifier, if an assessment with the name provided already exists, then the existing assessment is updated.
Any PUT operation, resulting in either create or update on an assessment, will cause the assessment to go in a "InProgress" state. This will be indicated by the field 'computationState' on the Assessment object. During this time no other PUT operation will be allowed on that assessment object, nor will a Delete operation. Once the computation for the assessment is complete, the field 'computationState' will be updated to 'Ready', and then other PUT or DELETE operations can happen on the assessment.
When assessment is under computation, any PUT will lead to a 400 - Bad Request error. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project. assessmentName - unique name of an assessment within a project. assessment - new or Updated Assessment object.
func (AssessmentsClient) CreatePreparer ¶
func (client AssessmentsClient) CreatePreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string, assessment *Assessment) (*http.Request, error)
CreatePreparer prepares the Create request.
func (AssessmentsClient) CreateResponder ¶
func (client AssessmentsClient) CreateResponder(resp *http.Response) (result Assessment, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (AssessmentsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (AssessmentsClient) Delete ¶
func (client AssessmentsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string) (result autorest.Response, err error)
Delete delete an assessment from the project. The machines remain in the assessment. Deleting a non-existent assessment results in a no-operation.
When an assessment is under computation, as indicated by the 'computationState' field, it cannot be deleted. Any such attempt will return a 400 - Bad Request. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project. assessmentName - unique name of an assessment within a project.
func (AssessmentsClient) DeletePreparer ¶
func (client AssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (AssessmentsClient) DeleteResponder ¶
func (client AssessmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (AssessmentsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (AssessmentsClient) Get ¶
func (client AssessmentsClient) Get(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string) (result Assessment, err error)
Get get an existing assessment with the specified name. Returns a json object of type 'assessment' as specified in Models section. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project. assessmentName - unique name of an assessment within a project.
func (AssessmentsClient) GetPreparer ¶
func (client AssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (AssessmentsClient) GetReportDownloadURL ¶
func (client AssessmentsClient) GetReportDownloadURL(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string) (result DownloadURL, err error)
GetReportDownloadURL get the URL for downloading the assessment in a report format. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project. assessmentName - unique name of an assessment within a project.
func (AssessmentsClient) GetReportDownloadURLPreparer ¶
func (client AssessmentsClient) GetReportDownloadURLPreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string) (*http.Request, error)
GetReportDownloadURLPreparer prepares the GetReportDownloadURL request.
func (AssessmentsClient) GetReportDownloadURLResponder ¶
func (client AssessmentsClient) GetReportDownloadURLResponder(resp *http.Response) (result DownloadURL, err error)
GetReportDownloadURLResponder handles the response to the GetReportDownloadURL request. The method always closes the http.Response Body.
func (AssessmentsClient) GetReportDownloadURLSender ¶
func (client AssessmentsClient) GetReportDownloadURLSender(req *http.Request) (*http.Response, error)
GetReportDownloadURLSender sends the GetReportDownloadURL request. The method will close the http.Response Body if it receives an error.
func (AssessmentsClient) GetResponder ¶
func (client AssessmentsClient) GetResponder(resp *http.Response) (result Assessment, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (AssessmentsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (AssessmentsClient) ListByGroup ¶
func (client AssessmentsClient) ListByGroup(ctx context.Context, resourceGroupName string, projectName string, groupName string) (result AssessmentResultList, err error)
ListByGroup get all assessments created for the specified group.
Returns a json array of objects of type 'assessment' as specified in Models section. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project.
func (AssessmentsClient) ListByGroupPreparer ¶
func (client AssessmentsClient) ListByGroupPreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string) (*http.Request, error)
ListByGroupPreparer prepares the ListByGroup request.
func (AssessmentsClient) ListByGroupResponder ¶
func (client AssessmentsClient) ListByGroupResponder(resp *http.Response) (result AssessmentResultList, err error)
ListByGroupResponder handles the response to the ListByGroup request. The method always closes the http.Response Body.
func (AssessmentsClient) ListByGroupSender ¶
ListByGroupSender sends the ListByGroup request. The method will close the http.Response Body if it receives an error.
func (AssessmentsClient) ListByProject ¶
func (client AssessmentsClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string) (result AssessmentResultList, err error)
ListByProject get all assessments created in the project.
Returns a json array of objects of type 'assessment' as specified in Models section. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project.
func (AssessmentsClient) ListByProjectPreparer ¶
func (client AssessmentsClient) ListByProjectPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
ListByProjectPreparer prepares the ListByProject request.
func (AssessmentsClient) ListByProjectResponder ¶
func (client AssessmentsClient) ListByProjectResponder(resp *http.Response) (result AssessmentResultList, err error)
ListByProjectResponder handles the response to the ListByProject request. The method always closes the http.Response Body.
func (AssessmentsClient) ListByProjectSender ¶
ListByProjectSender sends the ListByProject request. The method will close the http.Response Body if it receives an error.
type AzureDiskSize ¶
type AzureDiskSize string
AzureDiskSize enumerates the values for azure disk size.
const ( // PremiumP10 ... PremiumP10 AzureDiskSize = "Premium_P10" // PremiumP20 ... PremiumP20 AzureDiskSize = "Premium_P20" // PremiumP30 ... PremiumP30 AzureDiskSize = "Premium_P30" // PremiumP4 ... PremiumP4 AzureDiskSize = "Premium_P4" // PremiumP40 ... PremiumP40 AzureDiskSize = "Premium_P40" // PremiumP50 ... PremiumP50 AzureDiskSize = "Premium_P50" // PremiumP6 ... PremiumP6 AzureDiskSize = "Premium_P6" // StandardS10 ... StandardS10 AzureDiskSize = "Standard_S10" // StandardS20 ... StandardS20 AzureDiskSize = "Standard_S20" // StandardS30 ... StandardS30 AzureDiskSize = "Standard_S30" // StandardS4 ... StandardS4 AzureDiskSize = "Standard_S4" // StandardS40 ... StandardS40 AzureDiskSize = "Standard_S40" // StandardS50 ... StandardS50 AzureDiskSize = "Standard_S50" // StandardS6 ... StandardS6 AzureDiskSize = "Standard_S6" // Unknown ... Unknown AzureDiskSize = "Unknown" )
func PossibleAzureDiskSizeValues ¶
func PossibleAzureDiskSizeValues() []AzureDiskSize
PossibleAzureDiskSizeValues returns an array of possible values for the AzureDiskSize const type.
type AzureDiskSuitabilityExplanation ¶
type AzureDiskSuitabilityExplanation string
AzureDiskSuitabilityExplanation enumerates the values for azure disk suitability explanation.
const ( // AzureDiskSuitabilityExplanationDiskSizeGreaterThanSupported ... AzureDiskSuitabilityExplanationDiskSizeGreaterThanSupported AzureDiskSuitabilityExplanation = "DiskSizeGreaterThanSupported" // AzureDiskSuitabilityExplanationInternalErrorOccurredForDiskEvaluation ... AzureDiskSuitabilityExplanationInternalErrorOccurredForDiskEvaluation AzureDiskSuitabilityExplanation = "InternalErrorOccurredForDiskEvaluation" // AzureDiskSuitabilityExplanationNoDiskSizeFoundForSelectedRedundancy ... AzureDiskSuitabilityExplanationNoDiskSizeFoundForSelectedRedundancy AzureDiskSuitabilityExplanation = "NoDiskSizeFoundForSelectedRedundancy" // AzureDiskSuitabilityExplanationNoDiskSizeFoundInSelectedLocation ... AzureDiskSuitabilityExplanationNoDiskSizeFoundInSelectedLocation AzureDiskSuitabilityExplanation = "NoDiskSizeFoundInSelectedLocation" // AzureDiskSuitabilityExplanationNoSuitableDiskSizeForIops ... AzureDiskSuitabilityExplanationNoSuitableDiskSizeForIops AzureDiskSuitabilityExplanation = "NoSuitableDiskSizeForIops" // AzureDiskSuitabilityExplanationNoSuitableDiskSizeForThroughput ... AzureDiskSuitabilityExplanationNoSuitableDiskSizeForThroughput AzureDiskSuitabilityExplanation = "NoSuitableDiskSizeForThroughput" // AzureDiskSuitabilityExplanationNotApplicable ... AzureDiskSuitabilityExplanationNotApplicable AzureDiskSuitabilityExplanation = "NotApplicable" // AzureDiskSuitabilityExplanationUnknown ... AzureDiskSuitabilityExplanationUnknown AzureDiskSuitabilityExplanation = "Unknown" )
func PossibleAzureDiskSuitabilityExplanationValues ¶
func PossibleAzureDiskSuitabilityExplanationValues() []AzureDiskSuitabilityExplanation
PossibleAzureDiskSuitabilityExplanationValues returns an array of possible values for the AzureDiskSuitabilityExplanation const type.
type AzureDiskType ¶
type AzureDiskType string
AzureDiskType enumerates the values for azure disk type.
const ( // AzureDiskTypePremium ... AzureDiskTypePremium AzureDiskType = "Premium" // AzureDiskTypeStandard ... AzureDiskTypeStandard AzureDiskType = "Standard" // AzureDiskTypeUnknown ... AzureDiskTypeUnknown AzureDiskType = "Unknown" )
func PossibleAzureDiskTypeValues ¶
func PossibleAzureDiskTypeValues() []AzureDiskType
PossibleAzureDiskTypeValues returns an array of possible values for the AzureDiskType const type.
type AzureHybridUseBenefit ¶
type AzureHybridUseBenefit string
AzureHybridUseBenefit enumerates the values for azure hybrid use benefit.
const ( // AzureHybridUseBenefitNo ... AzureHybridUseBenefitNo AzureHybridUseBenefit = "No" // AzureHybridUseBenefitUnknown ... AzureHybridUseBenefitUnknown AzureHybridUseBenefit = "Unknown" // AzureHybridUseBenefitYes ... AzureHybridUseBenefitYes AzureHybridUseBenefit = "Yes" )
func PossibleAzureHybridUseBenefitValues ¶
func PossibleAzureHybridUseBenefitValues() []AzureHybridUseBenefit
PossibleAzureHybridUseBenefitValues returns an array of possible values for the AzureHybridUseBenefit const type.
type AzureLocation ¶
type AzureLocation string
AzureLocation enumerates the values for azure location.
const ( // AzureLocationAustraliaEast ... AzureLocationAustraliaEast AzureLocation = "AustraliaEast" // AzureLocationAustraliaSoutheast ... AzureLocationAustraliaSoutheast AzureLocation = "AustraliaSoutheast" // AzureLocationBrazilSouth ... AzureLocationBrazilSouth AzureLocation = "BrazilSouth" // AzureLocationCanadaCentral ... AzureLocationCanadaCentral AzureLocation = "CanadaCentral" // AzureLocationCanadaEast ... AzureLocationCanadaEast AzureLocation = "CanadaEast" // AzureLocationCentralIndia ... AzureLocationCentralIndia AzureLocation = "CentralIndia" // AzureLocationCentralUs ... AzureLocationCentralUs AzureLocation = "CentralUs" // AzureLocationChinaEast ... AzureLocationChinaEast AzureLocation = "ChinaEast" // AzureLocationChinaNorth ... AzureLocationChinaNorth AzureLocation = "ChinaNorth" // AzureLocationEastAsia ... AzureLocationEastAsia AzureLocation = "EastAsia" // AzureLocationEastUs ... AzureLocationEastUs AzureLocation = "EastUs" // AzureLocationEastUs2 ... AzureLocationEastUs2 AzureLocation = "EastUs2" // AzureLocationGermanyCentral ... AzureLocationGermanyCentral AzureLocation = "GermanyCentral" // AzureLocationGermanyNortheast ... AzureLocationGermanyNortheast AzureLocation = "GermanyNortheast" // AzureLocationJapanEast ... AzureLocationJapanEast AzureLocation = "JapanEast" // AzureLocationJapanWest ... AzureLocationJapanWest AzureLocation = "JapanWest" // AzureLocationKoreaCentral ... AzureLocationKoreaCentral AzureLocation = "KoreaCentral" // AzureLocationKoreaSouth ... AzureLocationKoreaSouth AzureLocation = "KoreaSouth" // AzureLocationNorthCentralUs ... AzureLocationNorthCentralUs AzureLocation = "NorthCentralUs" // AzureLocationNorthEurope ... AzureLocationNorthEurope AzureLocation = "NorthEurope" // AzureLocationSouthCentralUs ... AzureLocationSouthCentralUs AzureLocation = "SouthCentralUs" // AzureLocationSoutheastAsia ... AzureLocationSoutheastAsia AzureLocation = "SoutheastAsia" // AzureLocationSouthIndia ... AzureLocationSouthIndia AzureLocation = "SouthIndia" // AzureLocationUkSouth ... AzureLocationUkSouth AzureLocation = "UkSouth" // AzureLocationUkWest ... AzureLocationUkWest AzureLocation = "UkWest" // AzureLocationUnknown ... AzureLocationUnknown AzureLocation = "Unknown" // AzureLocationWestCentralUs ... AzureLocationWestCentralUs AzureLocation = "WestCentralUs" // AzureLocationWestEurope ... AzureLocationWestEurope AzureLocation = "WestEurope" // AzureLocationWestIndia ... AzureLocationWestIndia AzureLocation = "WestIndia" // AzureLocationWestUs ... AzureLocationWestUs AzureLocation = "WestUs" // AzureLocationWestUs2 ... AzureLocationWestUs2 AzureLocation = "WestUs2" )
func PossibleAzureLocationValues ¶
func PossibleAzureLocationValues() []AzureLocation
PossibleAzureLocationValues returns an array of possible values for the AzureLocation const type.
type AzureNetworkAdapterSuitabilityExplanation ¶
type AzureNetworkAdapterSuitabilityExplanation string
AzureNetworkAdapterSuitabilityExplanation enumerates the values for azure network adapter suitability explanation.
const ( // AzureNetworkAdapterSuitabilityExplanationInternalErrorOccured ... AzureNetworkAdapterSuitabilityExplanationInternalErrorOccured AzureNetworkAdapterSuitabilityExplanation = "InternalErrorOccured" // AzureNetworkAdapterSuitabilityExplanationNotApplicable ... AzureNetworkAdapterSuitabilityExplanationNotApplicable AzureNetworkAdapterSuitabilityExplanation = "NotApplicable" // AzureNetworkAdapterSuitabilityExplanationUnknown ... AzureNetworkAdapterSuitabilityExplanationUnknown AzureNetworkAdapterSuitabilityExplanation = "Unknown" )
func PossibleAzureNetworkAdapterSuitabilityExplanationValues ¶
func PossibleAzureNetworkAdapterSuitabilityExplanationValues() []AzureNetworkAdapterSuitabilityExplanation
PossibleAzureNetworkAdapterSuitabilityExplanationValues returns an array of possible values for the AzureNetworkAdapterSuitabilityExplanation const type.
type AzureOfferCode ¶
type AzureOfferCode string
AzureOfferCode enumerates the values for azure offer code.
const ( // AzureOfferCodeMSAZR0003P ... AzureOfferCodeMSAZR0003P AzureOfferCode = "MSAZR0003P" // AzureOfferCodeMSAZR0022P ... AzureOfferCodeMSAZR0022P AzureOfferCode = "MSAZR0022P" // AzureOfferCodeMSAZR0023P ... AzureOfferCodeMSAZR0023P AzureOfferCode = "MSAZR0023P" // AzureOfferCodeMSAZR0025P ... AzureOfferCodeMSAZR0025P AzureOfferCode = "MSAZR0025P" // AzureOfferCodeMSAZR0029P ... AzureOfferCodeMSAZR0029P AzureOfferCode = "MSAZR0029P" // AzureOfferCodeMSAZR0036P ... AzureOfferCodeMSAZR0036P AzureOfferCode = "MSAZR0036P" // AzureOfferCodeMSAZR0044P ... AzureOfferCodeMSAZR0044P AzureOfferCode = "MSAZR0044P" // AzureOfferCodeMSAZR0059P ... AzureOfferCodeMSAZR0059P AzureOfferCode = "MSAZR0059P" // AzureOfferCodeMSAZR0060P ... AzureOfferCodeMSAZR0060P AzureOfferCode = "MSAZR0060P" // AzureOfferCodeMSAZR0062P ... AzureOfferCodeMSAZR0062P AzureOfferCode = "MSAZR0062P" // AzureOfferCodeMSAZR0063P ... AzureOfferCodeMSAZR0063P AzureOfferCode = "MSAZR0063P" // AzureOfferCodeMSAZR0064P ... AzureOfferCodeMSAZR0064P AzureOfferCode = "MSAZR0064P" // AzureOfferCodeMSAZR0111P ... AzureOfferCodeMSAZR0111P AzureOfferCode = "MSAZR0111P" // AzureOfferCodeMSAZR0120P ... AzureOfferCodeMSAZR0120P AzureOfferCode = "MSAZR0120P" // AzureOfferCodeMSAZR0121P ... AzureOfferCodeMSAZR0121P AzureOfferCode = "MSAZR0121P" // AzureOfferCodeMSAZR0122P ... AzureOfferCodeMSAZR0122P AzureOfferCode = "MSAZR0122P" // AzureOfferCodeMSAZR0123P ... AzureOfferCodeMSAZR0123P AzureOfferCode = "MSAZR0123P" // AzureOfferCodeMSAZR0124P ... AzureOfferCodeMSAZR0124P AzureOfferCode = "MSAZR0124P" // AzureOfferCodeMSAZR0125P ... AzureOfferCodeMSAZR0125P AzureOfferCode = "MSAZR0125P" // AzureOfferCodeMSAZR0126P ... AzureOfferCodeMSAZR0126P AzureOfferCode = "MSAZR0126P" // AzureOfferCodeMSAZR0127P ... AzureOfferCodeMSAZR0127P AzureOfferCode = "MSAZR0127P" // AzureOfferCodeMSAZR0128P ... AzureOfferCodeMSAZR0128P AzureOfferCode = "MSAZR0128P" // AzureOfferCodeMSAZR0129P ... AzureOfferCodeMSAZR0129P AzureOfferCode = "MSAZR0129P" // AzureOfferCodeMSAZR0130P ... AzureOfferCodeMSAZR0130P AzureOfferCode = "MSAZR0130P" // AzureOfferCodeMSAZR0144P ... AzureOfferCodeMSAZR0144P AzureOfferCode = "MSAZR0144P" // AzureOfferCodeMSAZR0148P ... AzureOfferCodeMSAZR0148P AzureOfferCode = "MSAZR0148P" // AzureOfferCodeMSAZR0149P ... AzureOfferCodeMSAZR0149P AzureOfferCode = "MSAZR0149P" // AzureOfferCodeMSAZRDE0003P ... AzureOfferCodeMSAZRDE0003P AzureOfferCode = "MSAZRDE0003P" // AzureOfferCodeMSAZRDE0044P ... AzureOfferCodeMSAZRDE0044P AzureOfferCode = "MSAZRDE0044P" // AzureOfferCodeMSMCAZR0044P ... AzureOfferCodeMSMCAZR0044P AzureOfferCode = "MSMCAZR0044P" // AzureOfferCodeMSMCAZR0059P ... AzureOfferCodeMSMCAZR0059P AzureOfferCode = "MSMCAZR0059P" // AzureOfferCodeMSMCAZR0060P ... AzureOfferCodeMSMCAZR0060P AzureOfferCode = "MSMCAZR0060P" // AzureOfferCodeMSMCAZR0063P ... AzureOfferCodeMSMCAZR0063P AzureOfferCode = "MSMCAZR0063P" // AzureOfferCodeMSMCAZR0120P ... AzureOfferCodeMSMCAZR0120P AzureOfferCode = "MSMCAZR0120P" // AzureOfferCodeMSMCAZR0121P ... AzureOfferCodeMSMCAZR0121P AzureOfferCode = "MSMCAZR0121P" // AzureOfferCodeMSMCAZR0125P ... AzureOfferCodeMSMCAZR0125P AzureOfferCode = "MSMCAZR0125P" // AzureOfferCodeMSMCAZR0128P ... AzureOfferCodeMSMCAZR0128P AzureOfferCode = "MSMCAZR0128P" // AzureOfferCodeUnknown ... AzureOfferCodeUnknown AzureOfferCode = "Unknown" )
func PossibleAzureOfferCodeValues ¶
func PossibleAzureOfferCodeValues() []AzureOfferCode
PossibleAzureOfferCodeValues returns an array of possible values for the AzureOfferCode const type.
type AzurePricingTier ¶
type AzurePricingTier string
AzurePricingTier enumerates the values for azure pricing tier.
const ( // Basic ... Basic AzurePricingTier = "Basic" // Standard ... Standard AzurePricingTier = "Standard" )
func PossibleAzurePricingTierValues ¶
func PossibleAzurePricingTierValues() []AzurePricingTier
PossibleAzurePricingTierValues returns an array of possible values for the AzurePricingTier const type.
type AzureStorageRedundancy ¶
type AzureStorageRedundancy string
AzureStorageRedundancy enumerates the values for azure storage redundancy.
const ( // AzureStorageRedundancyGeoRedundant ... AzureStorageRedundancyGeoRedundant AzureStorageRedundancy = "GeoRedundant" // AzureStorageRedundancyLocallyRedundant ... AzureStorageRedundancyLocallyRedundant AzureStorageRedundancy = "LocallyRedundant" // AzureStorageRedundancyReadAccessGeoRedundant ... AzureStorageRedundancyReadAccessGeoRedundant AzureStorageRedundancy = "ReadAccessGeoRedundant" // AzureStorageRedundancyUnknown ... AzureStorageRedundancyUnknown AzureStorageRedundancy = "Unknown" // AzureStorageRedundancyZoneRedundant ... AzureStorageRedundancyZoneRedundant AzureStorageRedundancy = "ZoneRedundant" )
func PossibleAzureStorageRedundancyValues ¶
func PossibleAzureStorageRedundancyValues() []AzureStorageRedundancy
PossibleAzureStorageRedundancyValues returns an array of possible values for the AzureStorageRedundancy const type.
type AzureVMSize ¶
type AzureVMSize string
AzureVMSize enumerates the values for azure vm size.
const ( // AzureVMSizeBasicA0 ... AzureVMSizeBasicA0 AzureVMSize = "Basic_A0" // AzureVMSizeBasicA1 ... AzureVMSizeBasicA1 AzureVMSize = "Basic_A1" // AzureVMSizeBasicA2 ... AzureVMSizeBasicA2 AzureVMSize = "Basic_A2" // AzureVMSizeBasicA3 ... AzureVMSizeBasicA3 AzureVMSize = "Basic_A3" // AzureVMSizeBasicA4 ... AzureVMSizeBasicA4 AzureVMSize = "Basic_A4" // AzureVMSizeStandardA0 ... AzureVMSizeStandardA0 AzureVMSize = "Standard_A0" // AzureVMSizeStandardA1 ... AzureVMSizeStandardA1 AzureVMSize = "Standard_A1" // AzureVMSizeStandardA10 ... AzureVMSizeStandardA10 AzureVMSize = "Standard_A10" // AzureVMSizeStandardA11 ... AzureVMSizeStandardA11 AzureVMSize = "Standard_A11" // AzureVMSizeStandardA1V2 ... AzureVMSizeStandardA1V2 AzureVMSize = "Standard_A1_v2" // AzureVMSizeStandardA2 ... AzureVMSizeStandardA2 AzureVMSize = "Standard_A2" // AzureVMSizeStandardA2mV2 ... AzureVMSizeStandardA2mV2 AzureVMSize = "Standard_A2m_v2" // AzureVMSizeStandardA2V2 ... AzureVMSizeStandardA2V2 AzureVMSize = "Standard_A2_v2" // AzureVMSizeStandardA3 ... AzureVMSizeStandardA3 AzureVMSize = "Standard_A3" // AzureVMSizeStandardA4 ... AzureVMSizeStandardA4 AzureVMSize = "Standard_A4" // AzureVMSizeStandardA4mV2 ... AzureVMSizeStandardA4mV2 AzureVMSize = "Standard_A4m_v2" // AzureVMSizeStandardA4V2 ... AzureVMSizeStandardA4V2 AzureVMSize = "Standard_A4_v2" // AzureVMSizeStandardA5 ... AzureVMSizeStandardA5 AzureVMSize = "Standard_A5" // AzureVMSizeStandardA6 ... AzureVMSizeStandardA6 AzureVMSize = "Standard_A6" // AzureVMSizeStandardA7 ... AzureVMSizeStandardA7 AzureVMSize = "Standard_A7" // AzureVMSizeStandardA8 ... AzureVMSizeStandardA8 AzureVMSize = "Standard_A8" // AzureVMSizeStandardA8mV2 ... AzureVMSizeStandardA8mV2 AzureVMSize = "Standard_A8m_v2" // AzureVMSizeStandardA8V2 ... AzureVMSizeStandardA8V2 AzureVMSize = "Standard_A8_v2" // AzureVMSizeStandardA9 ... AzureVMSizeStandardA9 AzureVMSize = "Standard_A9" // AzureVMSizeStandardD1 ... AzureVMSizeStandardD1 AzureVMSize = "Standard_D1" // AzureVMSizeStandardD11 ... AzureVMSizeStandardD11 AzureVMSize = "Standard_D11" // AzureVMSizeStandardD11V2 ... AzureVMSizeStandardD11V2 AzureVMSize = "Standard_D11_v2" // AzureVMSizeStandardD12 ... AzureVMSizeStandardD12 AzureVMSize = "Standard_D12" // AzureVMSizeStandardD12V2 ... AzureVMSizeStandardD12V2 AzureVMSize = "Standard_D12_v2" // AzureVMSizeStandardD13 ... AzureVMSizeStandardD13 AzureVMSize = "Standard_D13" // AzureVMSizeStandardD13V2 ... AzureVMSizeStandardD13V2 AzureVMSize = "Standard_D13_v2" // AzureVMSizeStandardD14 ... AzureVMSizeStandardD14 AzureVMSize = "Standard_D14" // AzureVMSizeStandardD14V2 ... AzureVMSizeStandardD14V2 AzureVMSize = "Standard_D14_v2" // AzureVMSizeStandardD15V2 ... AzureVMSizeStandardD15V2 AzureVMSize = "Standard_D15_v2" // AzureVMSizeStandardD1V2 ... AzureVMSizeStandardD1V2 AzureVMSize = "Standard_D1_v2" // AzureVMSizeStandardD2 ... AzureVMSizeStandardD2 AzureVMSize = "Standard_D2" // AzureVMSizeStandardD2V2 ... AzureVMSizeStandardD2V2 AzureVMSize = "Standard_D2_v2" // AzureVMSizeStandardD3 ... AzureVMSizeStandardD3 AzureVMSize = "Standard_D3" // AzureVMSizeStandardD3V2 ... AzureVMSizeStandardD3V2 AzureVMSize = "Standard_D3_v2" // AzureVMSizeStandardD4 ... AzureVMSizeStandardD4 AzureVMSize = "Standard_D4" // AzureVMSizeStandardD4V2 ... AzureVMSizeStandardD4V2 AzureVMSize = "Standard_D4_v2" // AzureVMSizeStandardD5V2 ... AzureVMSizeStandardD5V2 AzureVMSize = "Standard_D5_v2" // AzureVMSizeStandardDS1 ... AzureVMSizeStandardDS1 AzureVMSize = "Standard_DS1" // AzureVMSizeStandardDS11 ... AzureVMSizeStandardDS11 AzureVMSize = "Standard_DS11" // AzureVMSizeStandardDS11V2 ... AzureVMSizeStandardDS11V2 AzureVMSize = "Standard_DS11_v2" // AzureVMSizeStandardDS12 ... AzureVMSizeStandardDS12 AzureVMSize = "Standard_DS12" // AzureVMSizeStandardDS12V2 ... AzureVMSizeStandardDS12V2 AzureVMSize = "Standard_DS12_v2" // AzureVMSizeStandardDS13 ... AzureVMSizeStandardDS13 AzureVMSize = "Standard_DS13" // AzureVMSizeStandardDS13V2 ... AzureVMSizeStandardDS13V2 AzureVMSize = "Standard_DS13_v2" // AzureVMSizeStandardDS14 ... AzureVMSizeStandardDS14 AzureVMSize = "Standard_DS14" // AzureVMSizeStandardDS14V2 ... AzureVMSizeStandardDS14V2 AzureVMSize = "Standard_DS14_v2" // AzureVMSizeStandardDS15V2 ... AzureVMSizeStandardDS15V2 AzureVMSize = "Standard_DS15_v2" // AzureVMSizeStandardDS1V2 ... AzureVMSizeStandardDS1V2 AzureVMSize = "Standard_DS1_v2" // AzureVMSizeStandardDS2 ... AzureVMSizeStandardDS2 AzureVMSize = "Standard_DS2" // AzureVMSizeStandardDS2V2 ... AzureVMSizeStandardDS2V2 AzureVMSize = "Standard_DS2_v2" // AzureVMSizeStandardDS3 ... AzureVMSizeStandardDS3 AzureVMSize = "Standard_DS3" // AzureVMSizeStandardDS3V2 ... AzureVMSizeStandardDS3V2 AzureVMSize = "Standard_DS3_v2" // AzureVMSizeStandardDS4 ... AzureVMSizeStandardDS4 AzureVMSize = "Standard_DS4" // AzureVMSizeStandardDS4V2 ... AzureVMSizeStandardDS4V2 AzureVMSize = "Standard_DS4_v2" // AzureVMSizeStandardDS5V2 ... AzureVMSizeStandardDS5V2 AzureVMSize = "Standard_DS5_v2" // AzureVMSizeStandardF1 ... AzureVMSizeStandardF1 AzureVMSize = "Standard_F1" // AzureVMSizeStandardF16 ... AzureVMSizeStandardF16 AzureVMSize = "Standard_F16" // AzureVMSizeStandardF16s ... AzureVMSizeStandardF16s AzureVMSize = "Standard_F16s" // AzureVMSizeStandardF1s ... AzureVMSizeStandardF1s AzureVMSize = "Standard_F1s" // AzureVMSizeStandardF2 ... AzureVMSizeStandardF2 AzureVMSize = "Standard_F2" // AzureVMSizeStandardF2s ... AzureVMSizeStandardF2s AzureVMSize = "Standard_F2s" // AzureVMSizeStandardF4 ... AzureVMSizeStandardF4 AzureVMSize = "Standard_F4" // AzureVMSizeStandardF4s ... AzureVMSizeStandardF4s AzureVMSize = "Standard_F4s" // AzureVMSizeStandardF8 ... AzureVMSizeStandardF8 AzureVMSize = "Standard_F8" // AzureVMSizeStandardF8s ... AzureVMSizeStandardF8s AzureVMSize = "Standard_F8s" // AzureVMSizeStandardG1 ... AzureVMSizeStandardG1 AzureVMSize = "Standard_G1" // AzureVMSizeStandardG2 ... AzureVMSizeStandardG2 AzureVMSize = "Standard_G2" // AzureVMSizeStandardG3 ... AzureVMSizeStandardG3 AzureVMSize = "Standard_G3" // AzureVMSizeStandardG4 ... AzureVMSizeStandardG4 AzureVMSize = "Standard_G4" // AzureVMSizeStandardG5 ... AzureVMSizeStandardG5 AzureVMSize = "Standard_G5" // AzureVMSizeStandardGS1 ... AzureVMSizeStandardGS1 AzureVMSize = "Standard_GS1" // AzureVMSizeStandardGS2 ... AzureVMSizeStandardGS2 AzureVMSize = "Standard_GS2" // AzureVMSizeStandardGS3 ... AzureVMSizeStandardGS3 AzureVMSize = "Standard_GS3" // AzureVMSizeStandardGS4 ... AzureVMSizeStandardGS4 AzureVMSize = "Standard_GS4" // AzureVMSizeStandardGS5 ... AzureVMSizeStandardGS5 AzureVMSize = "Standard_GS5" // AzureVMSizeStandardH16 ... AzureVMSizeStandardH16 AzureVMSize = "Standard_H16" // AzureVMSizeStandardH16m ... AzureVMSizeStandardH16m AzureVMSize = "Standard_H16m" // AzureVMSizeStandardH16mr ... AzureVMSizeStandardH16mr AzureVMSize = "Standard_H16mr" // AzureVMSizeStandardH16r ... AzureVMSizeStandardH16r AzureVMSize = "Standard_H16r" // AzureVMSizeStandardH8 ... AzureVMSizeStandardH8 AzureVMSize = "Standard_H8" // AzureVMSizeStandardH8m ... AzureVMSizeStandardH8m AzureVMSize = "Standard_H8m" // AzureVMSizeStandardL16s ... AzureVMSizeStandardL16s AzureVMSize = "Standard_L16s" // AzureVMSizeStandardL32s ... AzureVMSizeStandardL32s AzureVMSize = "Standard_L32s" // AzureVMSizeStandardL4s ... AzureVMSizeStandardL4s AzureVMSize = "Standard_L4s" // AzureVMSizeStandardL8s ... AzureVMSizeStandardL8s AzureVMSize = "Standard_L8s" // AzureVMSizeUnknown ... AzureVMSizeUnknown AzureVMSize = "Unknown" )
func PossibleAzureVMSizeValues ¶
func PossibleAzureVMSizeValues() []AzureVMSize
PossibleAzureVMSizeValues returns an array of possible values for the AzureVMSize const type.
type AzureVMSuitabilityExplanation ¶
type AzureVMSuitabilityExplanation string
AzureVMSuitabilityExplanation enumerates the values for azure vm suitability explanation.
const ( // AzureVMSuitabilityExplanationBootTypeNotSupported ... AzureVMSuitabilityExplanationBootTypeNotSupported AzureVMSuitabilityExplanation = "BootTypeNotSupported" // AzureVMSuitabilityExplanationBootTypeUnknown ... AzureVMSuitabilityExplanationBootTypeUnknown AzureVMSuitabilityExplanation = "BootTypeUnknown" // AzureVMSuitabilityExplanationCheckCentOsVersion ... AzureVMSuitabilityExplanationCheckCentOsVersion AzureVMSuitabilityExplanation = "CheckCentOsVersion" // AzureVMSuitabilityExplanationCheckCoreOsLinuxVersion ... AzureVMSuitabilityExplanationCheckCoreOsLinuxVersion AzureVMSuitabilityExplanation = "CheckCoreOsLinuxVersion" // AzureVMSuitabilityExplanationCheckDebianLinuxVersion ... AzureVMSuitabilityExplanationCheckDebianLinuxVersion AzureVMSuitabilityExplanation = "CheckDebianLinuxVersion" // AzureVMSuitabilityExplanationCheckOpenSuseLinuxVersion ... AzureVMSuitabilityExplanationCheckOpenSuseLinuxVersion AzureVMSuitabilityExplanation = "CheckOpenSuseLinuxVersion" // AzureVMSuitabilityExplanationCheckOracleLinuxVersion ... AzureVMSuitabilityExplanationCheckOracleLinuxVersion AzureVMSuitabilityExplanation = "CheckOracleLinuxVersion" // AzureVMSuitabilityExplanationCheckRedHatLinuxVersion ... AzureVMSuitabilityExplanationCheckRedHatLinuxVersion AzureVMSuitabilityExplanation = "CheckRedHatLinuxVersion" // AzureVMSuitabilityExplanationCheckSuseLinuxVersion ... AzureVMSuitabilityExplanationCheckSuseLinuxVersion AzureVMSuitabilityExplanation = "CheckSuseLinuxVersion" // AzureVMSuitabilityExplanationCheckUbuntuLinuxVersion ... AzureVMSuitabilityExplanationCheckUbuntuLinuxVersion AzureVMSuitabilityExplanation = "CheckUbuntuLinuxVersion" // AzureVMSuitabilityExplanationCheckWindowsServer2008R2Version ... AzureVMSuitabilityExplanationCheckWindowsServer2008R2Version AzureVMSuitabilityExplanation = "CheckWindowsServer2008R2Version" // AzureVMSuitabilityExplanationEndorsedWithConditionsLinuxDistributions ... AzureVMSuitabilityExplanationEndorsedWithConditionsLinuxDistributions AzureVMSuitabilityExplanation = "EndorsedWithConditionsLinuxDistributions" // AzureVMSuitabilityExplanationGuestOperatingSystemArchitectureNotSupported ... AzureVMSuitabilityExplanationGuestOperatingSystemArchitectureNotSupported AzureVMSuitabilityExplanation = "GuestOperatingSystemArchitectureNotSupported" // AzureVMSuitabilityExplanationGuestOperatingSystemNotSupported ... AzureVMSuitabilityExplanationGuestOperatingSystemNotSupported AzureVMSuitabilityExplanation = "GuestOperatingSystemNotSupported" // AzureVMSuitabilityExplanationGuestOperatingSystemUnknown ... AzureVMSuitabilityExplanationGuestOperatingSystemUnknown AzureVMSuitabilityExplanation = "GuestOperatingSystemUnknown" // AzureVMSuitabilityExplanationInternalErrorOccuredDuringComputeEvaluation ... AzureVMSuitabilityExplanationInternalErrorOccuredDuringComputeEvaluation AzureVMSuitabilityExplanation = "InternalErrorOccuredDuringComputeEvaluation" // AzureVMSuitabilityExplanationInternalErrorOccuredDuringNetworkEvaluation ... AzureVMSuitabilityExplanationInternalErrorOccuredDuringNetworkEvaluation AzureVMSuitabilityExplanation = "InternalErrorOccuredDuringNetworkEvaluation" // AzureVMSuitabilityExplanationInternalErrorOccuredDuringStorageEvaluation ... AzureVMSuitabilityExplanationInternalErrorOccuredDuringStorageEvaluation AzureVMSuitabilityExplanation = "InternalErrorOccuredDuringStorageEvaluation" // AzureVMSuitabilityExplanationMoreDisksThanSupported ... AzureVMSuitabilityExplanationMoreDisksThanSupported AzureVMSuitabilityExplanation = "MoreDisksThanSupported" // AzureVMSuitabilityExplanationNoGuestOperatingSystemConditionallySupported ... AzureVMSuitabilityExplanationNoGuestOperatingSystemConditionallySupported AzureVMSuitabilityExplanation = "NoGuestOperatingSystemConditionallySupported" // AzureVMSuitabilityExplanationNoSuitableVMSizeFound ... AzureVMSuitabilityExplanationNoSuitableVMSizeFound AzureVMSuitabilityExplanation = "NoSuitableVmSizeFound" // AzureVMSuitabilityExplanationNotApplicable ... AzureVMSuitabilityExplanationNotApplicable AzureVMSuitabilityExplanation = "NotApplicable" // AzureVMSuitabilityExplanationNoVMSizeForBasicPricingTier ... AzureVMSuitabilityExplanationNoVMSizeForBasicPricingTier AzureVMSuitabilityExplanation = "NoVmSizeForBasicPricingTier" // AzureVMSuitabilityExplanationNoVMSizeForSelectedAzureLocation ... AzureVMSuitabilityExplanationNoVMSizeForSelectedAzureLocation AzureVMSuitabilityExplanation = "NoVmSizeForSelectedAzureLocation" // AzureVMSuitabilityExplanationNoVMSizeForSelectedPricingTier ... AzureVMSuitabilityExplanationNoVMSizeForSelectedPricingTier AzureVMSuitabilityExplanation = "NoVmSizeForSelectedPricingTier" // AzureVMSuitabilityExplanationNoVMSizeForStandardPricingTier ... AzureVMSuitabilityExplanationNoVMSizeForStandardPricingTier AzureVMSuitabilityExplanation = "NoVmSizeForStandardPricingTier" // AzureVMSuitabilityExplanationNoVMSizeSupportsNetworkPerformance ... AzureVMSuitabilityExplanationNoVMSizeSupportsNetworkPerformance AzureVMSuitabilityExplanation = "NoVmSizeSupportsNetworkPerformance" // AzureVMSuitabilityExplanationNoVMSizeSupportsStoragePerformance ... AzureVMSuitabilityExplanationNoVMSizeSupportsStoragePerformance AzureVMSuitabilityExplanation = "NoVmSizeSupportsStoragePerformance" // AzureVMSuitabilityExplanationOneOrMoreAdaptersNotSuitable ... AzureVMSuitabilityExplanationOneOrMoreAdaptersNotSuitable AzureVMSuitabilityExplanation = "OneOrMoreAdaptersNotSuitable" // AzureVMSuitabilityExplanationOneOrMoreDisksNotSuitable ... AzureVMSuitabilityExplanationOneOrMoreDisksNotSuitable AzureVMSuitabilityExplanation = "OneOrMoreDisksNotSuitable" // AzureVMSuitabilityExplanationUnendorsedLinuxDistributions ... AzureVMSuitabilityExplanationUnendorsedLinuxDistributions AzureVMSuitabilityExplanation = "UnendorsedLinuxDistributions" // AzureVMSuitabilityExplanationUnknown ... AzureVMSuitabilityExplanationUnknown AzureVMSuitabilityExplanation = "Unknown" // AzureVMSuitabilityExplanationWindowsClientVersionsConditionallySupported ... AzureVMSuitabilityExplanationWindowsClientVersionsConditionallySupported AzureVMSuitabilityExplanation = "WindowsClientVersionsConditionallySupported" // AzureVMSuitabilityExplanationWindowsOSNoLongerUnderMSSupport ... AzureVMSuitabilityExplanationWindowsOSNoLongerUnderMSSupport AzureVMSuitabilityExplanation = "WindowsOSNoLongerUnderMSSupport" // AzureVMSuitabilityExplanationWindowsServerVersionConditionallySupported ... AzureVMSuitabilityExplanationWindowsServerVersionConditionallySupported AzureVMSuitabilityExplanation = "WindowsServerVersionConditionallySupported" // AzureVMSuitabilityExplanationWindowsServerVersionsSupportedWithCaveat ... AzureVMSuitabilityExplanationWindowsServerVersionsSupportedWithCaveat AzureVMSuitabilityExplanation = "WindowsServerVersionsSupportedWithCaveat" )
func PossibleAzureVMSuitabilityExplanationValues ¶
func PossibleAzureVMSuitabilityExplanationValues() []AzureVMSuitabilityExplanation
PossibleAzureVMSuitabilityExplanationValues returns an array of possible values for the AzureVMSuitabilityExplanation const type.
type BaseClient ¶
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string AcceptLanguage string }
BaseClient is the base client for Migrate.
func New ¶
func New(subscriptionID string, acceptLanguage string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string, acceptLanguage string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client.
type CheckNameAvailabilityParameters ¶
type CheckNameAvailabilityParameters struct { // Name - The name to check for availability Name *string `json:"name,omitempty"` // Type - The resource type. Must be set to Microsoft.Migrate/projects Type *string `json:"type,omitempty"` }
CheckNameAvailabilityParameters parameters for a check name availability request.
type CheckNameAvailabilityResult ¶
type CheckNameAvailabilityResult struct { autorest.Response `json:"-"` // NameAvailable - READ-ONLY; Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used. NameAvailable *bool `json:"nameAvailable,omitempty"` // Reason - READ-ONLY; Gets the reason that a project name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'NameAvailabilityReasonAvailable', 'NameAvailabilityReasonInvalid', 'NameAvailabilityReasonAlreadyExists' Reason NameAvailabilityReason `json:"reason,omitempty"` // Message - READ-ONLY; Gets an error message explaining the Reason value in more detail. Message *string `json:"message,omitempty"` }
CheckNameAvailabilityResult the CheckNameAvailability operation response.
type CloudError ¶
type CloudError struct {
Error *CloudErrorBody `json:"error,omitempty"`
}
CloudError an error response from the Azure Migrate service.
type CloudErrorBody ¶
type CloudErrorBody struct { // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // Message - A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` // Target - The target of the particular error. For example, the name of the property in error. Target *string `json:"target,omitempty"` // Details - A list of additional details about the error. Details *[]CloudErrorBody `json:"details,omitempty"` }
CloudErrorBody an error response from the Azure Migrate service.
type CloudSuitability ¶
type CloudSuitability string
CloudSuitability enumerates the values for cloud suitability.
const ( // CloudSuitabilityConditionallySuitable ... CloudSuitabilityConditionallySuitable CloudSuitability = "ConditionallySuitable" // CloudSuitabilityNotSuitable ... CloudSuitabilityNotSuitable CloudSuitability = "NotSuitable" // CloudSuitabilityReadinessUnknown ... CloudSuitabilityReadinessUnknown CloudSuitability = "ReadinessUnknown" // CloudSuitabilitySuitable ... CloudSuitabilitySuitable CloudSuitability = "Suitable" // CloudSuitabilityUnknown ... CloudSuitabilityUnknown CloudSuitability = "Unknown" )
func PossibleCloudSuitabilityValues ¶
func PossibleCloudSuitabilityValues() []CloudSuitability
PossibleCloudSuitabilityValues returns an array of possible values for the CloudSuitability const type.
type Currency ¶
type Currency string
Currency enumerates the values for currency.
const ( // CurrencyARS ... CurrencyARS Currency = "ARS" // CurrencyAUD ... CurrencyAUD Currency = "AUD" // CurrencyBRL ... CurrencyBRL Currency = "BRL" // CurrencyCAD ... CurrencyCAD Currency = "CAD" // CurrencyCHF ... CurrencyCHF Currency = "CHF" // CurrencyCNY ... CurrencyCNY Currency = "CNY" // CurrencyDKK ... CurrencyDKK Currency = "DKK" // CurrencyEUR ... CurrencyEUR Currency = "EUR" // CurrencyGBP ... CurrencyGBP Currency = "GBP" // CurrencyHKD ... CurrencyHKD Currency = "HKD" // CurrencyIDR ... CurrencyIDR Currency = "IDR" // CurrencyINR ... CurrencyINR Currency = "INR" // CurrencyJPY ... CurrencyJPY Currency = "JPY" // CurrencyKRW ... CurrencyKRW Currency = "KRW" // CurrencyMXN ... CurrencyMXN Currency = "MXN" // CurrencyMYR ... CurrencyMYR Currency = "MYR" // CurrencyNOK ... CurrencyNOK Currency = "NOK" // CurrencyNZD ... CurrencyNZD Currency = "NZD" // CurrencyRUB ... CurrencyRUB Currency = "RUB" // CurrencySAR ... CurrencySAR Currency = "SAR" // CurrencySEK ... CurrencySEK Currency = "SEK" // CurrencyTRY ... CurrencyTRY Currency = "TRY" // CurrencyTWD ... CurrencyTWD Currency = "TWD" // CurrencyUnknown ... CurrencyUnknown Currency = "Unknown" // CurrencyUSD ... CurrencyUSD Currency = "USD" // CurrencyZAR ... CurrencyZAR Currency = "ZAR" )
func PossibleCurrencyValues ¶
func PossibleCurrencyValues() []Currency
PossibleCurrencyValues returns an array of possible values for the Currency const type.
type DiscoveryStatus ¶
type DiscoveryStatus string
DiscoveryStatus enumerates the values for discovery status.
const ( // DiscoveryStatusCompleted ... DiscoveryStatusCompleted DiscoveryStatus = "Completed" // DiscoveryStatusInProgress ... DiscoveryStatusInProgress DiscoveryStatus = "InProgress" // DiscoveryStatusNotStarted ... DiscoveryStatusNotStarted DiscoveryStatus = "NotStarted" // DiscoveryStatusUnknown ... DiscoveryStatusUnknown DiscoveryStatus = "Unknown" )
func PossibleDiscoveryStatusValues ¶
func PossibleDiscoveryStatusValues() []DiscoveryStatus
PossibleDiscoveryStatusValues returns an array of possible values for the DiscoveryStatus const type.
type Disk ¶
type Disk struct { // GigabytesAllocated - READ-ONLY; Gigabytes of storage provisioned for this disk. GigabytesAllocated *float64 `json:"gigabytesAllocated,omitempty"` // GigabytesConsumed - READ-ONLY; Gigabytes of storage consumed by this disk. GigabytesConsumed *float64 `json:"gigabytesConsumed,omitempty"` }
Disk a disk discovered on a machine.
type DownloadURL ¶
type DownloadURL struct { autorest.Response `json:"-"` // AssessmentReportURL - READ-ONLY; Hyperlink to download report. AssessmentReportURL *string `json:"assessmentReportUrl,omitempty"` // ExpirationTime - READ-ONLY; Expiry date of download url. ExpirationTime *date.Time `json:"expirationTime,omitempty"` }
DownloadURL download URL for assessment report.
type Group ¶
type Group struct { autorest.Response `json:"-"` // ID - READ-ONLY; Path reference to this group. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/groups/{groupName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; Name of the group. Name *string `json:"name,omitempty"` // ETag - For optimistic concurrency control. ETag *string `json:"eTag,omitempty"` // Type - READ-ONLY; Type of the object = [Microsoft.Migrate/projects/groups]. Type *string `json:"type,omitempty"` // GroupProperties - Properties of the group. *GroupProperties `json:"properties,omitempty"` }
Group a group created in a Migration project.
func (Group) MarshalJSON ¶
MarshalJSON is the custom marshaler for Group.
func (*Group) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Group struct.
type GroupProperties ¶
type GroupProperties struct { // Machines - List of machine names that are part of this group. Machines *[]string `json:"machines,omitempty"` // Assessments - READ-ONLY; List of References to Assessments created on this group. Assessments *[]string `json:"assessments,omitempty"` // CreatedTimestamp - READ-ONLY; Time when this project was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *date.Time `json:"createdTimestamp,omitempty"` // UpdatedTimestamp - READ-ONLY; Time when this project was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *date.Time `json:"updatedTimestamp,omitempty"` }
GroupProperties properties of group resource.
type GroupResultList ¶
type GroupResultList struct { autorest.Response `json:"-"` // Value - List of groups. Value *[]Group `json:"value,omitempty"` }
GroupResultList list of groups.
type GroupsClient ¶
type GroupsClient struct {
BaseClient
}
GroupsClient is the move your workloads to Azure.
func NewGroupsClient ¶
func NewGroupsClient(subscriptionID string, acceptLanguage string) GroupsClient
NewGroupsClient creates an instance of the GroupsClient client.
func NewGroupsClientWithBaseURI ¶
func NewGroupsClientWithBaseURI(baseURI string, subscriptionID string, acceptLanguage string) GroupsClient
NewGroupsClientWithBaseURI creates an instance of the GroupsClient client.
func (GroupsClient) Create ¶
func (client GroupsClient) Create(ctx context.Context, resourceGroupName string, projectName string, groupName string, group *Group) (result Group, err error)
Create create a new group by sending a json object of type 'group' as given in Models section as part of the Request Body. The group name in a project is unique. Labels can be applied on a group as part of creation.
If a group with the groupName specified in the URL already exists, then this call acts as an update.
This operation is Idempotent. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project. group - new or Updated Group object.
func (GroupsClient) CreatePreparer ¶
func (client GroupsClient) CreatePreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string, group *Group) (*http.Request, error)
CreatePreparer prepares the Create request.
func (GroupsClient) CreateResponder ¶
func (client GroupsClient) CreateResponder(resp *http.Response) (result Group, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (GroupsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (GroupsClient) Delete ¶
func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, groupName string) (result autorest.Response, err error)
Delete delete the group from the project. The machines remain in the project. Deleting a non-existent group results in a no-operation.
A group is an aggregation mechanism for machines in a project. Therefore, deleting group does not delete machines in it. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project.
func (GroupsClient) DeletePreparer ¶
func (client GroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (GroupsClient) DeleteResponder ¶
func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (GroupsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (GroupsClient) Get ¶
func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, projectName string, groupName string) (result Group, err error)
Get get information related to a specific group in the project. Returns a json object of type 'group' as specified in the models section. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. groupName - unique name of a group within a project.
func (GroupsClient) GetPreparer ¶
func (client GroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string, groupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (GroupsClient) GetResponder ¶
func (client GroupsClient) GetResponder(resp *http.Response) (result Group, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (GroupsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (GroupsClient) ListByProject ¶
func (client GroupsClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string) (result GroupResultList, err error)
ListByProject get all groups created in the project. Returns a json array of objects of type 'group' as specified in the Models section. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project.
func (GroupsClient) ListByProjectPreparer ¶
func (client GroupsClient) ListByProjectPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
ListByProjectPreparer prepares the ListByProject request.
func (GroupsClient) ListByProjectResponder ¶
func (client GroupsClient) ListByProjectResponder(resp *http.Response) (result GroupResultList, err error)
ListByProjectResponder handles the response to the ListByProject request. The method always closes the http.Response Body.
func (GroupsClient) ListByProjectSender ¶
ListByProjectSender sends the ListByProject request. The method will close the http.Response Body if it receives an error.
type LocationClient ¶
type LocationClient struct {
BaseClient
}
LocationClient is the move your workloads to Azure.
func NewLocationClient ¶
func NewLocationClient(subscriptionID string, acceptLanguage string) LocationClient
NewLocationClient creates an instance of the LocationClient client.
func NewLocationClientWithBaseURI ¶
func NewLocationClientWithBaseURI(baseURI string, subscriptionID string, acceptLanguage string) LocationClient
NewLocationClientWithBaseURI creates an instance of the LocationClient client.
func (LocationClient) CheckNameAvailability ¶
func (client LocationClient) CheckNameAvailability(ctx context.Context, locationName string, parameters CheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, err error)
CheckNameAvailability checks whether the project name is available in the specified region. Parameters: locationName - the desired region for the name check. parameters - properties needed to check the availability of a name.
func (LocationClient) CheckNameAvailabilityPreparer ¶
func (client LocationClient) CheckNameAvailabilityPreparer(ctx context.Context, locationName string, parameters CheckNameAvailabilityParameters) (*http.Request, error)
CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.
func (LocationClient) CheckNameAvailabilityResponder ¶
func (client LocationClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error)
CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.
func (LocationClient) CheckNameAvailabilitySender ¶
CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.
type Machine ¶
type Machine struct { autorest.Response `json:"-"` // ID - READ-ONLY; Path reference to this machine. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName}/machines/{machineName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; Name of the machine. It is a GUID which is unique identifier of machine in private data center. For user-readable name, we have a displayName property on this machine. Name *string `json:"name,omitempty"` // ETag - For optimistic concurrency control. ETag *string `json:"eTag,omitempty"` // Type - READ-ONLY; Type of the object = [Microsoft.Migrate/projects/machines]. Type *string `json:"type,omitempty"` // MachineProperties - Properties of the machine. *MachineProperties `json:"properties,omitempty"` }
Machine a machine in a migration project.
func (Machine) MarshalJSON ¶
MarshalJSON is the custom marshaler for Machine.
func (*Machine) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Machine struct.
type MachineBootType ¶
type MachineBootType string
MachineBootType enumerates the values for machine boot type.
const ( // MachineBootTypeBIOS ... MachineBootTypeBIOS MachineBootType = "BIOS" // MachineBootTypeEFI ... MachineBootTypeEFI MachineBootType = "EFI" // MachineBootTypeUnknown ... MachineBootTypeUnknown MachineBootType = "Unknown" )
func PossibleMachineBootTypeValues ¶
func PossibleMachineBootTypeValues() []MachineBootType
PossibleMachineBootTypeValues returns an array of possible values for the MachineBootType const type.
type MachineProperties ¶
type MachineProperties struct { // BootType - READ-ONLY; Boot type of the machine. Possible values include: 'MachineBootTypeUnknown', 'MachineBootTypeEFI', 'MachineBootTypeBIOS' BootType MachineBootType `json:"bootType,omitempty"` // DatacenterContainer - READ-ONLY; Container defined in the management solution that this machine is part of in the datacenter. DatacenterContainer *string `json:"datacenterContainer,omitempty"` // DatacenterManagementServer - READ-ONLY; Name of the server hosting the datacenter management solution. DatacenterManagementServer *string `json:"datacenterManagementServer,omitempty"` // DatacenterMachineID - READ-ONLY; ID of the machine as tracked by the datacenter management solution. DatacenterMachineID *string `json:"datacenterMachineId,omitempty"` // DatacenterManagementServerID - READ-ONLY; ID of the server hosting the datacenter management solution. DatacenterManagementServerID *string `json:"datacenterManagementServerId,omitempty"` // Description - READ-ONLY; Description of the machine Description *string `json:"description,omitempty"` // DisplayName - READ-ONLY; User readable name of the machine as defined by the user in their private datacenter. DisplayName *string `json:"displayName,omitempty"` // MegabytesOfMemory - READ-ONLY; Memory in Megabytes. MegabytesOfMemory *float64 `json:"megabytesOfMemory,omitempty"` // NumberOfCores - READ-ONLY; Processor count. NumberOfCores *int32 `json:"numberOfCores,omitempty"` // OperatingSystem - READ-ONLY; Operating System of the machine. OperatingSystem *string `json:"operatingSystem,omitempty"` // Groups - READ-ONLY; List of references to the groups that the machine is member of. Groups *[]string `json:"groups,omitempty"` // CreatedTimestamp - READ-ONLY; Time when this machine was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *date.Time `json:"createdTimestamp,omitempty"` // UpdatedTimestamp - READ-ONLY; Time when this machine was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *date.Time `json:"updatedTimestamp,omitempty"` // DiscoveredTimestamp - READ-ONLY; Time when this machine was discovered by Azure Migrate agent. Date-Time represented in ISO-8601 format. DiscoveredTimestamp *date.Time `json:"discoveredTimestamp,omitempty"` // Disks - READ-ONLY; Dictionary of disks attached to the machine. Key is ID of disk. Value is a disk object Disks map[string]*Disk `json:"disks"` // NetworkAdapters - READ-ONLY; Dictionary of network adapters attached to the machine. Key is ID of network adapter. Value is a network adapter object NetworkAdapters map[string]*NetworkAdapter `json:"networkAdapters"` }
MachineProperties properties of a machine.
func (MachineProperties) MarshalJSON ¶
func (mp MachineProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MachineProperties.
type MachineResultList ¶
type MachineResultList struct { autorest.Response `json:"-"` // Value - List of machines. Value *[]Machine `json:"value,omitempty"` }
MachineResultList list of machines.
type MachinesClient ¶
type MachinesClient struct {
BaseClient
}
MachinesClient is the move your workloads to Azure.
func NewMachinesClient ¶
func NewMachinesClient(subscriptionID string, acceptLanguage string) MachinesClient
NewMachinesClient creates an instance of the MachinesClient client.
func NewMachinesClientWithBaseURI ¶
func NewMachinesClientWithBaseURI(baseURI string, subscriptionID string, acceptLanguage string) MachinesClient
NewMachinesClientWithBaseURI creates an instance of the MachinesClient client.
func (MachinesClient) Get ¶
func (client MachinesClient) Get(ctx context.Context, resourceGroupName string, projectName string, machineName string) (result Machine, err error)
Get get the machine with the specified name. Returns a json object of type 'machine' defined in Models section. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. machineName - unique name of a machine in private datacenter.
func (MachinesClient) GetPreparer ¶
func (client MachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string, machineName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (MachinesClient) GetResponder ¶
func (client MachinesClient) GetResponder(resp *http.Response) (result Machine, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (MachinesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (MachinesClient) ListByProject ¶
func (client MachinesClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string) (result MachineResultList, err error)
ListByProject get data of all the machines available in the project. Returns a json array of objects of type 'machine' defined in Models section. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project.
func (MachinesClient) ListByProjectPreparer ¶
func (client MachinesClient) ListByProjectPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
ListByProjectPreparer prepares the ListByProject request.
func (MachinesClient) ListByProjectResponder ¶
func (client MachinesClient) ListByProjectResponder(resp *http.Response) (result MachineResultList, err error)
ListByProjectResponder handles the response to the ListByProject request. The method always closes the http.Response Body.
func (MachinesClient) ListByProjectSender ¶
ListByProjectSender sends the ListByProject request. The method will close the http.Response Body if it receives an error.
type NameAvailabilityReason ¶
type NameAvailabilityReason string
NameAvailabilityReason enumerates the values for name availability reason.
const ( // NameAvailabilityReasonAlreadyExists ... NameAvailabilityReasonAlreadyExists NameAvailabilityReason = "AlreadyExists" // NameAvailabilityReasonAvailable ... NameAvailabilityReasonAvailable NameAvailabilityReason = "Available" // NameAvailabilityReasonInvalid ... NameAvailabilityReasonInvalid NameAvailabilityReason = "Invalid" )
func PossibleNameAvailabilityReasonValues ¶
func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason
PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.
type NetworkAdapter ¶
type NetworkAdapter struct { // MacAddress - READ-ONLY; MAC Address of the network adapter. MacAddress *string `json:"macAddress,omitempty"` // IPAddresses - READ-ONLY; List of IP Addresses on the network adapter. IPAddresses *[]string `json:"ipAddresses,omitempty"` }
NetworkAdapter a network adapter discovered on a machine.
type Operation ¶
type Operation struct { // Name - READ-ONLY; Name of the operation. Name *string `json:"name,omitempty"` // Display - Displayable properties of the operation. Display *OperationDisplay `json:"display,omitempty"` // Origin - READ-ONLY; Origin of the operation. Origin *string `json:"origin,omitempty"` }
Operation a REST API operation supported by the provider.
type OperationDisplay ¶
type OperationDisplay struct { // Provider - READ-ONLY; Provider of the operation. Provider *string `json:"provider,omitempty"` // Resource - READ-ONLY; Resource operated on by the operation. Resource *string `json:"resource,omitempty"` // Operation - READ-ONLY; Operation Type. Operation *string `json:"operation,omitempty"` // Description - READ-ONLY; Description of the operation. Description *string `json:"description,omitempty"` }
OperationDisplay displayable properties of the operation.
type OperationResultList ¶
type OperationResultList struct { autorest.Response `json:"-"` // Value - List of operations. Value *[]Operation `json:"value,omitempty"` }
OperationResultList list of API operations.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the move your workloads to Azure.
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string, acceptLanguage string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, acceptLanguage string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context) (result OperationResultList, err error)
List get a list of REST API supported by Microsoft.Migrate provider.
func (OperationsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationResultList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type Percentile ¶
type Percentile string
Percentile enumerates the values for percentile.
const ( // Percentile50 ... Percentile50 Percentile = "Percentile50" // Percentile90 ... Percentile90 Percentile = "Percentile90" // Percentile95 ... Percentile95 Percentile = "Percentile95" // Percentile99 ... Percentile99 Percentile = "Percentile99" )
func PossiblePercentileValues ¶
func PossiblePercentileValues() []Percentile
PossiblePercentileValues returns an array of possible values for the Percentile const type.
type Project ¶
type Project struct { autorest.Response `json:"-"` // ID - READ-ONLY; Path reference to this project /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/projects/{projectName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; Name of the project. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Type of the object = [Microsoft.Migrate/projects]. Type *string `json:"type,omitempty"` // ETag - For optimistic concurrency control. ETag *string `json:"eTag,omitempty"` // Location - Azure location in which project is created. Location *string `json:"location,omitempty"` // Tags - Tags provided by Azure Tagging service. Tags interface{} `json:"tags,omitempty"` // ProjectProperties - Properties of the project. *ProjectProperties `json:"properties,omitempty"` }
Project azure Migrate Project.
func (Project) MarshalJSON ¶
MarshalJSON is the custom marshaler for Project.
func (*Project) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Project struct.
type ProjectKey ¶
type ProjectKey struct { autorest.Response `json:"-"` // WorkspaceID - READ-ONLY; ID of Migration Project. WorkspaceID *string `json:"workspaceId,omitempty"` // WorkspaceKey - READ-ONLY; Key of Migration Project. WorkspaceKey *string `json:"workspaceKey,omitempty"` }
ProjectKey ID and Key for Migration Project.
type ProjectProperties ¶
type ProjectProperties struct { // CreatedTimestamp - READ-ONLY; Time when this project was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *date.Time `json:"createdTimestamp,omitempty"` // UpdatedTimestamp - READ-ONLY; Time when this project was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *date.Time `json:"updatedTimestamp,omitempty"` // DiscoveryStatus - READ-ONLY; Reports whether project is under discovery. Possible values include: 'DiscoveryStatusUnknown', 'DiscoveryStatusNotStarted', 'DiscoveryStatusInProgress', 'DiscoveryStatusCompleted' DiscoveryStatus DiscoveryStatus `json:"discoveryStatus,omitempty"` // CustomerWorkspaceID - ARM ID of the Service Map workspace created by user. CustomerWorkspaceID *string `json:"customerWorkspaceId,omitempty"` // CustomerWorkspaceLocation - Location of the Service Map workspace created by user. CustomerWorkspaceLocation *string `json:"customerWorkspaceLocation,omitempty"` // LastDiscoveryTimestamp - READ-ONLY; Time when this project was created. Date-Time represented in ISO-8601 format. This value will be null until discovery is complete. LastDiscoveryTimestamp *date.Time `json:"lastDiscoveryTimestamp,omitempty"` // LastDiscoverySessionID - READ-ONLY; Session id of the last discovery. LastDiscoverySessionID *string `json:"lastDiscoverySessionId,omitempty"` // NumberOfGroups - READ-ONLY; Number of groups created in the project. NumberOfGroups *int32 `json:"numberOfGroups,omitempty"` // NumberOfMachines - READ-ONLY; Number of machines in the project. NumberOfMachines *int32 `json:"numberOfMachines,omitempty"` // NumberOfAssessments - READ-ONLY; Number of assessments created in the project. NumberOfAssessments *int32 `json:"numberOfAssessments,omitempty"` // LastAssessmentTimestamp - READ-ONLY; Time when last assessment was created. Date-Time represented in ISO-8601 format. This value will be null until assessment is created. LastAssessmentTimestamp *date.Time `json:"lastAssessmentTimestamp,omitempty"` // ProvisioningState - Provisioning state of the project. Possible values include: 'Accepted', 'Creating', 'Deleting', 'Failed', 'Moving', 'Succeeded' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` }
ProjectProperties properties of a project.
type ProjectResultList ¶
type ProjectResultList struct { autorest.Response `json:"-"` // Value - List of projects. Value *[]Project `json:"value,omitempty"` }
ProjectResultList list of projects.
type ProjectsClient ¶
type ProjectsClient struct {
BaseClient
}
ProjectsClient is the move your workloads to Azure.
func NewProjectsClient ¶
func NewProjectsClient(subscriptionID string, acceptLanguage string) ProjectsClient
NewProjectsClient creates an instance of the ProjectsClient client.
func NewProjectsClientWithBaseURI ¶
func NewProjectsClientWithBaseURI(baseURI string, subscriptionID string, acceptLanguage string) ProjectsClient
NewProjectsClientWithBaseURI creates an instance of the ProjectsClient client.
func (ProjectsClient) Create ¶
func (client ProjectsClient) Create(ctx context.Context, resourceGroupName string, projectName string, project *Project) (result Project, err error)
Create create a project with specified name. If a project already exists, update it. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. project - new or Updated project object.
func (ProjectsClient) CreatePreparer ¶
func (client ProjectsClient) CreatePreparer(ctx context.Context, resourceGroupName string, projectName string, project *Project) (*http.Request, error)
CreatePreparer prepares the Create request.
func (ProjectsClient) CreateResponder ¶
func (client ProjectsClient) CreateResponder(resp *http.Response) (result Project, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (ProjectsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (ProjectsClient) Delete ¶
func (client ProjectsClient) Delete(ctx context.Context, resourceGroupName string, projectName string) (result autorest.Response, err error)
Delete delete the project. Deleting non-existent project is a no-operation. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project.
func (ProjectsClient) DeletePreparer ¶
func (client ProjectsClient) DeletePreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ProjectsClient) DeleteResponder ¶
func (client ProjectsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ProjectsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ProjectsClient) Get ¶
func (client ProjectsClient) Get(ctx context.Context, resourceGroupName string, projectName string) (result Project, err error)
Get get the project with the specified name. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project.
func (ProjectsClient) GetKeys ¶
func (client ProjectsClient) GetKeys(ctx context.Context, resourceGroupName string, projectName string) (result ProjectKey, err error)
GetKeys gets the Log Analytics Workspace ID and Primary Key for the specified project. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project.
func (ProjectsClient) GetKeysPreparer ¶
func (client ProjectsClient) GetKeysPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
GetKeysPreparer prepares the GetKeys request.
func (ProjectsClient) GetKeysResponder ¶
func (client ProjectsClient) GetKeysResponder(resp *http.Response) (result ProjectKey, err error)
GetKeysResponder handles the response to the GetKeys request. The method always closes the http.Response Body.
func (ProjectsClient) GetKeysSender ¶
GetKeysSender sends the GetKeys request. The method will close the http.Response Body if it receives an error.
func (ProjectsClient) GetPreparer ¶
func (client ProjectsClient) GetPreparer(ctx context.Context, resourceGroupName string, projectName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ProjectsClient) GetResponder ¶
func (client ProjectsClient) GetResponder(resp *http.Response) (result Project, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ProjectsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ProjectsClient) ListByResourceGroup ¶
func (client ProjectsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ProjectResultList, err error)
ListByResourceGroup get all the projects in the resource group. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of.
func (ProjectsClient) ListByResourceGroupPreparer ¶
func (client ProjectsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ProjectsClient) ListByResourceGroupResponder ¶
func (client ProjectsClient) ListByResourceGroupResponder(resp *http.Response) (result ProjectResultList, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ProjectsClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ProjectsClient) ListBySubscription ¶
func (client ProjectsClient) ListBySubscription(ctx context.Context) (result ProjectResultList, err error)
ListBySubscription get all the projects in the subscription.
func (ProjectsClient) ListBySubscriptionPreparer ¶
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (ProjectsClient) ListBySubscriptionResponder ¶
func (client ProjectsClient) ListBySubscriptionResponder(resp *http.Response) (result ProjectResultList, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (ProjectsClient) ListBySubscriptionSender ¶
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (ProjectsClient) Update ¶
func (client ProjectsClient) Update(ctx context.Context, resourceGroupName string, projectName string, project *Project) (result Project, err error)
Update update a project with specified name. Supports partial updates, for example only tags can be provided. Parameters: resourceGroupName - name of the Azure Resource Group that project is part of. projectName - name of the Azure Migrate project. project - updated project object.
func (ProjectsClient) UpdatePreparer ¶
func (client ProjectsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, projectName string, project *Project) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ProjectsClient) UpdateResponder ¶
func (client ProjectsClient) UpdateResponder(resp *http.Response) (result Project, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ProjectsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState enumerates the values for provisioning state.
const ( // Accepted ... Accepted ProvisioningState = "Accepted" // Creating ... Creating ProvisioningState = "Creating" // Deleting ... Deleting ProvisioningState = "Deleting" // Failed ... Failed ProvisioningState = "Failed" // Moving ... Moving ProvisioningState = "Moving" // Succeeded ... Succeeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type TimeRange ¶
type TimeRange string
TimeRange enumerates the values for time range.
func PossibleTimeRangeValues ¶
func PossibleTimeRangeValues() []TimeRange
PossibleTimeRangeValues returns an array of possible values for the TimeRange const type.
type VMFamily ¶
type VMFamily struct { // FamilyName - READ-ONLY; Name of the VM family. FamilyName *string `json:"familyName,omitempty"` // TargetLocations - READ-ONLY; List of Azure regions. TargetLocations *[]string `json:"targetLocations,omitempty"` // Category - READ-ONLY; Category of the VM family. Category *[]string `json:"category,omitempty"` }
VMFamily VM family name, the list of targeted azure locations and the category of the family.