Documentation ¶
Index ¶
- type AssessedDisk
- type AssessedMachine
- type AssessedMachineProperties
- type AssessedMachineResultList
- type AssessedMachinesClient
- func (client *AssessedMachinesClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (AssessedMachinesClientGetResponse, error)
- func (client *AssessedMachinesClient) NewListByAssessmentPager(resourceGroupName string, projectName string, groupName string, ...) *runtime.Pager[AssessedMachinesClientListByAssessmentResponse]
- type AssessedMachinesClientGetOptions
- type AssessedMachinesClientGetResponse
- type AssessedMachinesClientListByAssessmentOptions
- type AssessedMachinesClientListByAssessmentResponse
- type AssessedNetworkAdapter
- type Assessment
- type AssessmentOptions
- type AssessmentOptionsProperties
- 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, ...) (AssessmentsClientCreateResponse, error)
- func (client *AssessmentsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (AssessmentsClientDeleteResponse, error)
- func (client *AssessmentsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (AssessmentsClientGetResponse, error)
- func (client *AssessmentsClient) GetReportDownloadURL(ctx context.Context, resourceGroupName string, projectName string, ...) (AssessmentsClientGetReportDownloadURLResponse, error)
- func (client *AssessmentsClient) NewListByGroupPager(resourceGroupName string, projectName string, groupName string, ...) *runtime.Pager[AssessmentsClientListByGroupResponse]
- func (client *AssessmentsClient) NewListByProjectPager(resourceGroupName string, projectName string, ...) *runtime.Pager[AssessmentsClientListByProjectResponse]
- type AssessmentsClientCreateOptions
- type AssessmentsClientCreateResponse
- type AssessmentsClientDeleteOptions
- type AssessmentsClientDeleteResponse
- type AssessmentsClientGetOptions
- type AssessmentsClientGetReportDownloadURLOptions
- type AssessmentsClientGetReportDownloadURLResponse
- type AssessmentsClientGetResponse
- type AssessmentsClientListByGroupOptions
- type AssessmentsClientListByGroupResponse
- type AssessmentsClientListByProjectOptions
- type AssessmentsClientListByProjectResponse
- type AzureDiskSize
- type AzureDiskSuitabilityDetail
- type AzureDiskSuitabilityExplanation
- type AzureDiskType
- type AzureHybridUseBenefit
- type AzureLocation
- type AzureNetworkAdapterSuitabilityDetail
- type AzureNetworkAdapterSuitabilityExplanation
- type AzureOfferCode
- type AzurePricingTier
- type AzureStorageRedundancy
- type AzureVMFamily
- type AzureVMSize
- type AzureVMSuitabilityDetail
- type AzureVMSuitabilityExplanation
- type ClientFactory
- func (c *ClientFactory) NewAssessedMachinesClient() *AssessedMachinesClient
- func (c *ClientFactory) NewAssessmentsClient() *AssessmentsClient
- func (c *ClientFactory) NewGroupsClient() *GroupsClient
- func (c *ClientFactory) NewHyperVCollectorsClient() *HyperVCollectorsClient
- func (c *ClientFactory) NewImportCollectorsClient() *ImportCollectorsClient
- func (c *ClientFactory) NewMachinesClient() *MachinesClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewPrivateEndpointConnectionClient() *PrivateEndpointConnectionClient
- func (c *ClientFactory) NewPrivateLinkResourceClient() *PrivateLinkResourceClient
- func (c *ClientFactory) NewProjectsClient() *ProjectsClient
- func (c *ClientFactory) NewServerCollectorsClient() *ServerCollectorsClient
- func (c *ClientFactory) NewVMwareCollectorsClient() *VMwareCollectorsClient
- type CloudSuitability
- type CollectorAgentProperties
- type CollectorBodyAgentSpnProperties
- type CollectorProperties
- type Currency
- type Disk
- type DownloadURL
- type Group
- type GroupBodyProperties
- type GroupProperties
- type GroupResultList
- type GroupStatus
- type GroupUpdateOperation
- type GroupsClient
- func (client *GroupsClient) Create(ctx context.Context, resourceGroupName string, projectName string, ...) (GroupsClientCreateResponse, error)
- func (client *GroupsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (GroupsClientDeleteResponse, error)
- func (client *GroupsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (GroupsClientGetResponse, error)
- func (client *GroupsClient) NewListByProjectPager(resourceGroupName string, projectName string, ...) *runtime.Pager[GroupsClientListByProjectResponse]
- func (client *GroupsClient) UpdateMachines(ctx context.Context, resourceGroupName string, projectName string, ...) (GroupsClientUpdateMachinesResponse, error)
- type GroupsClientCreateOptions
- type GroupsClientCreateResponse
- type GroupsClientDeleteOptions
- type GroupsClientDeleteResponse
- type GroupsClientGetOptions
- type GroupsClientGetResponse
- type GroupsClientListByProjectOptions
- type GroupsClientListByProjectResponse
- type GroupsClientUpdateMachinesOptions
- type GroupsClientUpdateMachinesResponse
- type HyperVCollector
- type HyperVCollectorList
- type HyperVCollectorsClient
- func (client *HyperVCollectorsClient) Create(ctx context.Context, resourceGroupName string, projectName string, ...) (HyperVCollectorsClientCreateResponse, error)
- func (client *HyperVCollectorsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (HyperVCollectorsClientDeleteResponse, error)
- func (client *HyperVCollectorsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (HyperVCollectorsClientGetResponse, error)
- func (client *HyperVCollectorsClient) NewListByProjectPager(resourceGroupName string, projectName string, ...) *runtime.Pager[HyperVCollectorsClientListByProjectResponse]
- type HyperVCollectorsClientCreateOptions
- type HyperVCollectorsClientCreateResponse
- type HyperVCollectorsClientDeleteOptions
- type HyperVCollectorsClientDeleteResponse
- type HyperVCollectorsClientGetOptions
- type HyperVCollectorsClientGetResponse
- type HyperVCollectorsClientListByProjectOptions
- type HyperVCollectorsClientListByProjectResponse
- type ImportCollector
- type ImportCollectorList
- type ImportCollectorProperties
- type ImportCollectorsClient
- func (client *ImportCollectorsClient) Create(ctx context.Context, resourceGroupName string, projectName string, ...) (ImportCollectorsClientCreateResponse, error)
- func (client *ImportCollectorsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (ImportCollectorsClientDeleteResponse, error)
- func (client *ImportCollectorsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (ImportCollectorsClientGetResponse, error)
- func (client *ImportCollectorsClient) NewListByProjectPager(resourceGroupName string, projectName string, ...) *runtime.Pager[ImportCollectorsClientListByProjectResponse]
- type ImportCollectorsClientCreateOptions
- type ImportCollectorsClientCreateResponse
- type ImportCollectorsClientDeleteOptions
- type ImportCollectorsClientDeleteResponse
- type ImportCollectorsClientGetOptions
- type ImportCollectorsClientGetResponse
- type ImportCollectorsClientListByProjectOptions
- type ImportCollectorsClientListByProjectResponse
- type Machine
- type MachineBootType
- type MachineProperties
- type MachineResultList
- type MachinesClient
- type MachinesClientGetOptions
- type MachinesClientGetResponse
- type MachinesClientListByProjectOptions
- type MachinesClientListByProjectResponse
- type NetworkAdapter
- type Operation
- type OperationDisplay
- type OperationResultList
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Percentile
- type PrivateEndpointConnection
- type PrivateEndpointConnectionClient
- func (client *PrivateEndpointConnectionClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (PrivateEndpointConnectionClientDeleteResponse, error)
- func (client *PrivateEndpointConnectionClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (PrivateEndpointConnectionClientGetResponse, error)
- func (client *PrivateEndpointConnectionClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string, ...) (PrivateEndpointConnectionClientListByProjectResponse, error)
- func (client *PrivateEndpointConnectionClient) Update(ctx context.Context, resourceGroupName string, projectName string, ...) (PrivateEndpointConnectionClientUpdateResponse, error)
- type PrivateEndpointConnectionClientDeleteOptions
- type PrivateEndpointConnectionClientDeleteResponse
- type PrivateEndpointConnectionClientGetOptions
- type PrivateEndpointConnectionClientGetResponse
- type PrivateEndpointConnectionClientListByProjectOptions
- type PrivateEndpointConnectionClientListByProjectResponse
- type PrivateEndpointConnectionClientUpdateOptions
- type PrivateEndpointConnectionClientUpdateResponse
- type PrivateEndpointConnectionCollection
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionPropertiesProvisioningState
- type PrivateLinkResource
- type PrivateLinkResourceClient
- func (client *PrivateLinkResourceClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (PrivateLinkResourceClientGetResponse, error)
- func (client *PrivateLinkResourceClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string, ...) (PrivateLinkResourceClientListByProjectResponse, error)
- type PrivateLinkResourceClientGetOptions
- type PrivateLinkResourceClientGetResponse
- type PrivateLinkResourceClientListByProjectOptions
- type PrivateLinkResourceClientListByProjectResponse
- type PrivateLinkResourceCollection
- type PrivateLinkResourceProperties
- type PrivateLinkServiceConnectionState
- type PrivateLinkServiceConnectionStateStatus
- type Project
- type ProjectProperties
- type ProjectResultList
- type ProjectStatus
- type ProjectsClient
- func (client *ProjectsClient) AssessmentOptions(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectsClientAssessmentOptionsResponse, error)
- func (client *ProjectsClient) Create(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectsClientCreateResponse, error)
- func (client *ProjectsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectsClientDeleteResponse, error)
- func (client *ProjectsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectsClientGetResponse, error)
- func (client *ProjectsClient) NewAssessmentOptionsListPager(resourceGroupName string, projectName string, ...) *runtime.Pager[ProjectsClientAssessmentOptionsListResponse]
- func (client *ProjectsClient) NewListBySubscriptionPager(options *ProjectsClientListBySubscriptionOptions) *runtime.Pager[ProjectsClientListBySubscriptionResponse]
- func (client *ProjectsClient) NewListPager(resourceGroupName string, options *ProjectsClientListOptions) *runtime.Pager[ProjectsClientListResponse]
- func (client *ProjectsClient) Update(ctx context.Context, resourceGroupName string, projectName string, ...) (ProjectsClientUpdateResponse, error)
- type ProjectsClientAssessmentOptionsListOptions
- type ProjectsClientAssessmentOptionsListResponse
- type ProjectsClientAssessmentOptionsOptions
- type ProjectsClientAssessmentOptionsResponse
- type ProjectsClientCreateOptions
- type ProjectsClientCreateResponse
- type ProjectsClientDeleteOptions
- type ProjectsClientDeleteResponse
- type ProjectsClientGetOptions
- type ProjectsClientGetResponse
- type ProjectsClientListBySubscriptionOptions
- type ProjectsClientListBySubscriptionResponse
- type ProjectsClientListOptions
- type ProjectsClientListResponse
- type ProjectsClientUpdateOptions
- type ProjectsClientUpdateResponse
- type ProvisioningState
- type ReservedInstance
- type ResourceID
- type ServerCollector
- type ServerCollectorList
- type ServerCollectorsClient
- func (client *ServerCollectorsClient) Create(ctx context.Context, resourceGroupName string, projectName string, ...) (ServerCollectorsClientCreateResponse, error)
- func (client *ServerCollectorsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (ServerCollectorsClientDeleteResponse, error)
- func (client *ServerCollectorsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (ServerCollectorsClientGetResponse, error)
- func (client *ServerCollectorsClient) NewListByProjectPager(resourceGroupName string, projectName string, ...) *runtime.Pager[ServerCollectorsClientListByProjectResponse]
- type ServerCollectorsClientCreateOptions
- type ServerCollectorsClientCreateResponse
- type ServerCollectorsClientDeleteOptions
- type ServerCollectorsClientDeleteResponse
- type ServerCollectorsClientGetOptions
- type ServerCollectorsClientGetResponse
- type ServerCollectorsClientListByProjectOptions
- type ServerCollectorsClientListByProjectResponse
- type TimeRange
- type UpdateGroupBody
- type VMFamily
- type VMUptime
- type VMwareCollector
- type VMwareCollectorList
- type VMwareCollectorsClient
- func (client *VMwareCollectorsClient) Create(ctx context.Context, resourceGroupName string, projectName string, ...) (VMwareCollectorsClientCreateResponse, error)
- func (client *VMwareCollectorsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, ...) (VMwareCollectorsClientDeleteResponse, error)
- func (client *VMwareCollectorsClient) Get(ctx context.Context, resourceGroupName string, projectName string, ...) (VMwareCollectorsClientGetResponse, error)
- func (client *VMwareCollectorsClient) NewListByProjectPager(resourceGroupName string, projectName string, ...) *runtime.Pager[VMwareCollectorsClientListByProjectResponse]
- type VMwareCollectorsClientCreateOptions
- type VMwareCollectorsClientCreateResponse
- type VMwareCollectorsClientDeleteOptions
- type VMwareCollectorsClientDeleteResponse
- type VMwareCollectorsClientGetOptions
- type VMwareCollectorsClientGetResponse
- type VMwareCollectorsClientListByProjectOptions
- type VMwareCollectorsClientListByProjectResponse
Examples ¶
- AssessedMachinesClient.Get
- AssessedMachinesClient.NewListByAssessmentPager
- AssessmentsClient.Create
- AssessmentsClient.Delete
- AssessmentsClient.Get
- AssessmentsClient.GetReportDownloadURL
- AssessmentsClient.NewListByGroupPager
- AssessmentsClient.NewListByProjectPager
- GroupsClient.Create
- GroupsClient.Delete
- GroupsClient.Get
- GroupsClient.NewListByProjectPager
- GroupsClient.UpdateMachines
- HyperVCollectorsClient.Create
- HyperVCollectorsClient.Delete
- HyperVCollectorsClient.Get
- HyperVCollectorsClient.NewListByProjectPager
- ImportCollectorsClient.Create
- ImportCollectorsClient.Delete
- ImportCollectorsClient.Get
- ImportCollectorsClient.NewListByProjectPager
- MachinesClient.Get
- MachinesClient.NewListByProjectPager
- OperationsClient.NewListPager
- PrivateEndpointConnectionClient.Delete
- PrivateEndpointConnectionClient.Get
- PrivateEndpointConnectionClient.ListByProject
- PrivateEndpointConnectionClient.Update
- PrivateLinkResourceClient.Get
- PrivateLinkResourceClient.ListByProject
- ProjectsClient.AssessmentOptions
- ProjectsClient.Create
- ProjectsClient.Delete
- ProjectsClient.Get
- ProjectsClient.NewAssessmentOptionsListPager
- ProjectsClient.NewListBySubscriptionPager
- ProjectsClient.NewListPager
- ProjectsClient.Update
- ServerCollectorsClient.Create
- ServerCollectorsClient.Delete
- ServerCollectorsClient.Get
- ServerCollectorsClient.NewListByProjectPager
- VMwareCollectorsClient.Create
- VMwareCollectorsClient.Delete
- VMwareCollectorsClient.Get
- VMwareCollectorsClient.NewListByProjectPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssessedDisk ¶
type AssessedDisk struct { // READ-ONLY; User friendly name of the assessed disk. DisplayName *string // READ-ONLY; Gigabytes of storage provided by the recommended Azure disk size. GigabytesForRecommendedDiskSize *int32 // READ-ONLY; Gigabytes of storage provisioned for this disk. GigabytesProvisioned *float64 // READ-ONLY; Disk throughput in MegaBytes per second. MegabytesPerSecondOfRead *float64 // READ-ONLY; Disk throughput in MegaBytes per second. MegabytesPerSecondOfWrite *float64 // READ-ONLY; Estimated aggregate storage cost for a 31-day month for this disk. MonthlyStorageCost *float64 // READ-ONLY; Name of the assessed disk. Name *string // READ-ONLY; Number of read operations per second for the disk. NumberOfReadOperationsPerSecond *float64 // READ-ONLY; Number of read and write operations per second for the disk. NumberOfWriteOperationsPerSecond *float64 // READ-ONLY; Recommended Azure size for the disk, given utilization data and preferences set on Assessment. RecommendedDiskSize *AzureDiskSize // READ-ONLY; Storage type selected for this disk. RecommendedDiskType *AzureDiskType // READ-ONLY; Whether this disk is suitable for Azure. Suitability *CloudSuitability // READ-ONLY; If disk is suitable to be migrate but some conditions/checks were not considered while calculating suitability, // this explains the details. SuitabilityDetail *AzureDiskSuitabilityDetail // READ-ONLY; If disk is not suitable to be migrated, this explains the reasons and mitigation steps. SuitabilityExplanation *AzureDiskSuitabilityExplanation }
AssessedDisk - A disk assessed for an assessment.
func (AssessedDisk) MarshalJSON ¶ added in v1.1.0
func (a AssessedDisk) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessedDisk.
func (*AssessedDisk) UnmarshalJSON ¶ added in v1.1.0
func (a *AssessedDisk) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessedDisk.
type AssessedMachine ¶
type AssessedMachine struct { // For optimistic concurrency control. ETag *string // Properties of an assessed machine. Properties *AssessedMachineProperties // READ-ONLY; Path reference to this assessed machine. // /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}/assessedMachines/{assessedMachineName} ID *string // READ-ONLY; Name of the machine. Name *string // READ-ONLY; Type of the object = [Microsoft.Migrate/assessmentProjects/groups/assessments/assessedMachines]. Type *string }
AssessedMachine - A machine evaluated as part of an assessment.
func (AssessedMachine) MarshalJSON ¶ added in v1.1.0
func (a AssessedMachine) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessedMachine.
func (*AssessedMachine) UnmarshalJSON ¶ added in v1.1.0
func (a *AssessedMachine) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessedMachine.
type AssessedMachineProperties ¶
type AssessedMachineProperties struct { // READ-ONLY; Boot type of the machine. BootType *MachineBootType // READ-ONLY; Confidence rating of assessed machine. ConfidenceRatingInPercentage *float64 // READ-ONLY; Time when this machine was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *time.Time // READ-ONLY; ARM ID of the discovered machine. DatacenterMachineArmID *string // READ-ONLY; ARM ID of the discovered datacenter. DatacenterManagementServerArmID *string // READ-ONLY; Name of the server hosting the datacenter management solution. DatacenterManagementServerName *string // READ-ONLY; Description of the machine Description *string // READ-ONLY; Dictionary of disks attached to the machine. Key is ID of disk. Value is a disk object. Disks map[string]*AssessedDisk // READ-ONLY; User readable name of the machine as defined by the user in their private datacenter. DisplayName *string // READ-ONLY; Memory in Megabytes. MegabytesOfMemory *float64 // READ-ONLY; Megabytes of memory in the Recommended Azure VM Size. MegabytesOfMemoryForRecommendedSize *float64 // 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 // READ-ONLY; Compute Cost for a 31-day month, if the machine is migrated to Azure with the Recommended Size. MonthlyComputeCostForRecommendedSize *float64 // READ-ONLY; Monthly premium storage cost estimate for the disks that are attached to this machine as a group, for a 31-day // month. MonthlyPremiumStorageCost *float64 // READ-ONLY; Monthly standard SSD storage cost estimate for the disks that are attached to this machine as a group, for a // 31-day month. MonthlyStandardSSDStorageCost *float64 // 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 // 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 // READ-ONLY; Processor count. NumberOfCores *int32 // READ-ONLY; Number of CPU cores in the Recommended Azure VM Size. NumberOfCoresForRecommendedSize *int32 // READ-ONLY; Operating System name of the machine. OperatingSystemName *string // READ-ONLY; Operating System type of the machine. OperatingSystemType *string // READ-ONLY; Operating System version of the machine. OperatingSystemVersion *string // 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 // 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 // READ-ONLY; Recommended Azure size for this machine. RecommendedSize *AzureVMSize // READ-ONLY; Whether machine is suitable for migration to Azure. Suitability *CloudSuitability // READ-ONLY; If machine is not suitable for cloud, this explains the reasons. SuitabilityDetail *AzureVMSuitabilityDetail // READ-ONLY; If machine is not ready to be migrated, this explains the reasons and mitigation steps. SuitabilityExplanation *AzureVMSuitabilityExplanation // READ-ONLY; Time when this machine was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *time.Time }
AssessedMachineProperties - Properties of an assessed machine.
func (AssessedMachineProperties) MarshalJSON ¶ added in v1.1.0
func (a AssessedMachineProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessedMachineProperties.
func (*AssessedMachineProperties) UnmarshalJSON ¶
func (a *AssessedMachineProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessedMachineProperties.
type AssessedMachineResultList ¶
type AssessedMachineResultList struct { NextLink *string // List of assessed machines. Value []*AssessedMachine }
AssessedMachineResultList - List of assessed machines.
func (AssessedMachineResultList) MarshalJSON ¶ added in v1.1.0
func (a AssessedMachineResultList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessedMachineResultList.
func (*AssessedMachineResultList) UnmarshalJSON ¶ added in v1.1.0
func (a *AssessedMachineResultList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessedMachineResultList.
type AssessedMachinesClient ¶
type AssessedMachinesClient struct {
// contains filtered or unexported fields
}
AssessedMachinesClient contains the methods for the AssessedMachines group. Don't use this type directly, use NewAssessedMachinesClient() instead.
func NewAssessedMachinesClient ¶
func NewAssessedMachinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AssessedMachinesClient, error)
NewAssessedMachinesClient creates a new instance of AssessedMachinesClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*AssessedMachinesClient) Get ¶
func (client *AssessedMachinesClient) Get(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string, assessedMachineName string, options *AssessedMachinesClientGetOptions) (AssessedMachinesClientGetResponse, error)
Get - Get an assessed machine with its size & cost estimate that was evaluated in the specified assessment. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - AssessedMachinesClientGetOptions contains the optional parameters for the AssessedMachinesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/AssessedMachines_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAssessedMachinesClient().Get(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Test1", "assessment_5_9_2019_16_22_14", "f57fe432-3bd2-486a-a83a-6f4d99f1a952", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AssessedMachine = armmigrate.AssessedMachine{ // Name: to.Ptr("f57fe432-3bd2-486a-a83a-6f4d99f1a952"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups/assessments/assessedMachines"), // ETag: to.Ptr("\"b300e5dd-0000-0d00-0000-5cd4065f0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14/assessedMachines/f57fe432-3bd2-486a-a83a-6f4d99f1a952"), // Properties: &armmigrate.AssessedMachineProperties{ // Description: to.Ptr("Microsoft Azure Migration Image on Windows Server 2016"), // BootType: to.Ptr(armmigrate.MachineBootTypeBIOS), // ConfidenceRatingInPercentage: to.Ptr[float64](0), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:15.778Z"); return t}()), // DatacenterMachineArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.offazure/vmwaresites/portalvcenterbc2fsite/machines/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_52e1f68c-bea5-19ff-d0ad-6a94b79a286f"), // DatacenterManagementServerArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite/vcenters/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3"), // DatacenterManagementServerName: to.Ptr("IDCLAB-A360.fareast.corp.microsoft.com"), // Disks: map[string]*armmigrate.AssessedDisk{ // "6000C299-02f5-d137-9bab-8a8ee7b192a0": &armmigrate.AssessedDisk{ // Name: to.Ptr("6000C299-02f5-d137-9bab-8a8ee7b192a0"), // DisplayName: to.Ptr("scsi0:0"), // GigabytesForRecommendedDiskSize: to.Ptr[int32](128), // GigabytesProvisioned: to.Ptr[float64](80), // MegabytesPerSecondOfRead: to.Ptr[float64](0), // MegabytesPerSecondOfWrite: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](5.888), // NumberOfReadOperationsPerSecond: to.Ptr[float64](0), // NumberOfWriteOperationsPerSecond: to.Ptr[float64](0), // RecommendedDiskSize: to.Ptr(armmigrate.AzureDiskSizeStandardS10), // RecommendedDiskType: to.Ptr(armmigrate.AzureDiskTypeStandard), // Suitability: to.Ptr(armmigrate.CloudSuitabilitySuitable), // SuitabilityDetail: to.Ptr(armmigrate.AzureDiskSuitabilityDetail("NumberOfReadOperationsPerSecondMissing, NumberOfWriteOperationsPerSecondMissing, MegabytesPerSecondOfReadMissing, MegabytesPerSecondOfWriteMissing")), // SuitabilityExplanation: to.Ptr(armmigrate.AzureDiskSuitabilityExplanationNotApplicable), // }, // }, // DisplayName: to.Ptr("SHubhamVMNew"), // MegabytesOfMemory: to.Ptr[float64](16384), // MegabytesOfMemoryForRecommendedSize: to.Ptr[float64](16384), // MonthlyBandwidthCost: to.Ptr[float64](0), // MonthlyComputeCostForRecommendedSize: to.Ptr[float64](101.138616), // MonthlyPremiumStorageCost: to.Ptr[float64](0), // MonthlyStandardSSDStorageCost: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](5.888), // NetworkAdapters: map[string]*armmigrate.AssessedNetworkAdapter{ // "4000": &armmigrate.AssessedNetworkAdapter{ // DisplayName: to.Ptr("VM Network"), // IPAddresses: []*string{ // }, // MacAddress: to.Ptr("00:0c:29:ad:13:d3"), // MegabytesPerSecondReceived: to.Ptr[float64](0), // MegabytesPerSecondTransmitted: to.Ptr[float64](0), // MonthlyBandwidthCosts: to.Ptr[float64](0), // NetGigabytesTransmittedPerMonth: to.Ptr[float64](0), // Suitability: to.Ptr(armmigrate.CloudSuitabilitySuitable), // SuitabilityDetail: to.Ptr(armmigrate.AzureNetworkAdapterSuitabilityDetailMegabytesOfDataTransmittedMissing), // SuitabilityExplanation: to.Ptr(armmigrate.AzureNetworkAdapterSuitabilityExplanationNotApplicable), // }, // }, // NumberOfCores: to.Ptr[int32](8), // NumberOfCoresForRecommendedSize: to.Ptr[int32](8), // OperatingSystemName: to.Ptr("Microsoft Windows Server 2016 (64-bit)"), // OperatingSystemType: to.Ptr("windowsGuest"), // PercentageCoresUtilization: to.Ptr[float64](0), // PercentageMemoryUtilization: to.Ptr[float64](0), // RecommendedSize: to.Ptr(armmigrate.AzureVMSizeStandardF8SV2), // Suitability: to.Ptr(armmigrate.CloudSuitabilitySuitable), // SuitabilityDetail: to.Ptr(armmigrate.AzureVMSuitabilityDetail("PercentageOfCoresUtilizedMissing, PercentageOfMemoryUtilizedMissing")), // SuitabilityExplanation: to.Ptr(armmigrate.AzureVMSuitabilityExplanationNotApplicable), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:15.778Z"); return t}()), // }, // } }
Output:
func (*AssessedMachinesClient) NewListByAssessmentPager ¶
func (client *AssessedMachinesClient) NewListByAssessmentPager(resourceGroupName string, projectName string, groupName string, assessmentName string, options *AssessedMachinesClientListByAssessmentOptions) *runtime.Pager[AssessedMachinesClientListByAssessmentResponse]
NewListByAssessmentPager - 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.
Generated from API version 2019-10-01
- 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.
- options - AssessedMachinesClientListByAssessmentOptions contains the optional parameters for the AssessedMachinesClient.NewListByAssessmentPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/AssessedMachines_ListByAssessment.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewAssessedMachinesClient().NewListByAssessmentPager("abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Test1", "assessment_5_9_2019_16_22_14", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AssessedMachineResultList = armmigrate.AssessedMachineResultList{ // Value: []*armmigrate.AssessedMachine{ // { // Name: to.Ptr("f57fe432-3bd2-486a-a83a-6f4d99f1a952"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups/assessments/assessedMachines"), // ETag: to.Ptr("\"b300e5dd-0000-0d00-0000-5cd4065f0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14/assessedMachines/f57fe432-3bd2-486a-a83a-6f4d99f1a952"), // Properties: &armmigrate.AssessedMachineProperties{ // Description: to.Ptr("Microsoft Azure Migration Image on Windows Server 2016"), // BootType: to.Ptr(armmigrate.MachineBootTypeBIOS), // ConfidenceRatingInPercentage: to.Ptr[float64](0), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:15.778Z"); return t}()), // DatacenterMachineArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.offazure/vmwaresites/portalvcenterbc2fsite/machines/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_52e1f68c-bea5-19ff-d0ad-6a94b79a286f"), // DatacenterManagementServerArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite/vcenters/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3"), // DatacenterManagementServerName: to.Ptr("IDCLAB-A360.fareast.corp.microsoft.com"), // Disks: map[string]*armmigrate.AssessedDisk{ // "6000C299-02f5-d137-9bab-8a8ee7b192a0": &armmigrate.AssessedDisk{ // Name: to.Ptr("6000C299-02f5-d137-9bab-8a8ee7b192a0"), // DisplayName: to.Ptr("scsi0:0"), // GigabytesForRecommendedDiskSize: to.Ptr[int32](128), // GigabytesProvisioned: to.Ptr[float64](80), // MegabytesPerSecondOfRead: to.Ptr[float64](0), // MegabytesPerSecondOfWrite: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](5.888), // NumberOfReadOperationsPerSecond: to.Ptr[float64](0), // NumberOfWriteOperationsPerSecond: to.Ptr[float64](0), // RecommendedDiskSize: to.Ptr(armmigrate.AzureDiskSizeStandardS10), // RecommendedDiskType: to.Ptr(armmigrate.AzureDiskTypeStandard), // Suitability: to.Ptr(armmigrate.CloudSuitabilitySuitable), // SuitabilityDetail: to.Ptr(armmigrate.AzureDiskSuitabilityDetail("NumberOfReadOperationsPerSecondMissing, NumberOfWriteOperationsPerSecondMissing, MegabytesPerSecondOfReadMissing, MegabytesPerSecondOfWriteMissing")), // SuitabilityExplanation: to.Ptr(armmigrate.AzureDiskSuitabilityExplanationNotApplicable), // }, // }, // DisplayName: to.Ptr("SHubhamVMNew"), // MegabytesOfMemory: to.Ptr[float64](16384), // MegabytesOfMemoryForRecommendedSize: to.Ptr[float64](16384), // MonthlyBandwidthCost: to.Ptr[float64](0), // MonthlyComputeCostForRecommendedSize: to.Ptr[float64](101.138616), // MonthlyPremiumStorageCost: to.Ptr[float64](0), // MonthlyStandardSSDStorageCost: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](5.888), // NetworkAdapters: map[string]*armmigrate.AssessedNetworkAdapter{ // "4000": &armmigrate.AssessedNetworkAdapter{ // DisplayName: to.Ptr("VM Network"), // IPAddresses: []*string{ // }, // MacAddress: to.Ptr("00:0c:29:ad:13:d3"), // MegabytesPerSecondReceived: to.Ptr[float64](0), // MegabytesPerSecondTransmitted: to.Ptr[float64](0), // MonthlyBandwidthCosts: to.Ptr[float64](0), // NetGigabytesTransmittedPerMonth: to.Ptr[float64](0), // Suitability: to.Ptr(armmigrate.CloudSuitabilitySuitable), // SuitabilityDetail: to.Ptr(armmigrate.AzureNetworkAdapterSuitabilityDetailMegabytesOfDataTransmittedMissing), // SuitabilityExplanation: to.Ptr(armmigrate.AzureNetworkAdapterSuitabilityExplanationNotApplicable), // }, // }, // NumberOfCores: to.Ptr[int32](8), // NumberOfCoresForRecommendedSize: to.Ptr[int32](8), // OperatingSystemName: to.Ptr("Microsoft Windows Server 2016 (64-bit)"), // OperatingSystemType: to.Ptr("windowsGuest"), // PercentageCoresUtilization: to.Ptr[float64](0), // PercentageMemoryUtilization: to.Ptr[float64](0), // RecommendedSize: to.Ptr(armmigrate.AzureVMSizeStandardF8SV2), // Suitability: to.Ptr(armmigrate.CloudSuitabilitySuitable), // SuitabilityDetail: to.Ptr(armmigrate.AzureVMSuitabilityDetail("PercentageOfCoresUtilizedMissing, PercentageOfMemoryUtilizedMissing")), // SuitabilityExplanation: to.Ptr(armmigrate.AzureVMSuitabilityExplanationNotApplicable), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:15.778Z"); return t}()), // }, // }, // { // Name: to.Ptr("3b4a34a6-c729-46d2-bfd1-bcb52cc4935e"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups/assessments/assessedMachines"), // ETag: to.Ptr("\"b300e6dd-0000-0d00-0000-5cd4065f0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14/assessedMachines/3b4a34a6-c729-46d2-bfd1-bcb52cc4935e"), // Properties: &armmigrate.AssessedMachineProperties{ // Description: to.Ptr("Microsoft Azure Migration Image on Windows Server 2016"), // BootType: to.Ptr(armmigrate.MachineBootTypeBIOS), // ConfidenceRatingInPercentage: to.Ptr[float64](0), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:15.778Z"); return t}()), // DatacenterMachineArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.offazure/vmwaresites/portalvcenterbc2fsite/machines/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_50296915-8b4b-5c82-79a1-adf3966acb6b"), // DatacenterManagementServerArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite/vcenters/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3"), // DatacenterManagementServerName: to.Ptr("IDCLAB-A360.fareast.corp.microsoft.com"), // Disks: map[string]*armmigrate.AssessedDisk{ // "6000C298-8305-5635-e618-3a8675c42495": &armmigrate.AssessedDisk{ // Name: to.Ptr("6000C298-8305-5635-e618-3a8675c42495"), // DisplayName: to.Ptr("scsi0:0"), // GigabytesForRecommendedDiskSize: to.Ptr[int32](128), // GigabytesProvisioned: to.Ptr[float64](80), // MegabytesPerSecondOfRead: to.Ptr[float64](0), // MegabytesPerSecondOfWrite: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](5.888), // NumberOfReadOperationsPerSecond: to.Ptr[float64](0), // NumberOfWriteOperationsPerSecond: to.Ptr[float64](0), // RecommendedDiskSize: to.Ptr(armmigrate.AzureDiskSizeStandardS10), // RecommendedDiskType: to.Ptr(armmigrate.AzureDiskTypeStandard), // Suitability: to.Ptr(armmigrate.CloudSuitabilitySuitable), // SuitabilityDetail: to.Ptr(armmigrate.AzureDiskSuitabilityDetail("NumberOfReadOperationsPerSecondMissing, NumberOfWriteOperationsPerSecondMissing, MegabytesPerSecondOfReadMissing, MegabytesPerSecondOfWriteMissing")), // SuitabilityExplanation: to.Ptr(armmigrate.AzureDiskSuitabilityExplanationNotApplicable), // }, // }, // DisplayName: to.Ptr("testfpl1"), // MegabytesOfMemory: to.Ptr[float64](16384), // MegabytesOfMemoryForRecommendedSize: to.Ptr[float64](16384), // MonthlyBandwidthCost: to.Ptr[float64](0), // MonthlyComputeCostForRecommendedSize: to.Ptr[float64](101.138616), // MonthlyPremiumStorageCost: to.Ptr[float64](0), // MonthlyStandardSSDStorageCost: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](5.888), // NetworkAdapters: map[string]*armmigrate.AssessedNetworkAdapter{ // "4000": &armmigrate.AssessedNetworkAdapter{ // DisplayName: to.Ptr("VM Network"), // IPAddresses: []*string{ // }, // MacAddress: to.Ptr("00:50:56:a9:35:ca"), // MegabytesPerSecondReceived: to.Ptr[float64](0), // MegabytesPerSecondTransmitted: to.Ptr[float64](0), // MonthlyBandwidthCosts: to.Ptr[float64](0), // NetGigabytesTransmittedPerMonth: to.Ptr[float64](0), // Suitability: to.Ptr(armmigrate.CloudSuitabilitySuitable), // SuitabilityDetail: to.Ptr(armmigrate.AzureNetworkAdapterSuitabilityDetailMegabytesOfDataTransmittedMissing), // SuitabilityExplanation: to.Ptr(armmigrate.AzureNetworkAdapterSuitabilityExplanationNotApplicable), // }, // }, // NumberOfCores: to.Ptr[int32](8), // NumberOfCoresForRecommendedSize: to.Ptr[int32](8), // OperatingSystemName: to.Ptr("Microsoft Windows Server 2016 (64-bit)"), // OperatingSystemType: to.Ptr("windowsguest"), // PercentageCoresUtilization: to.Ptr[float64](0), // PercentageMemoryUtilization: to.Ptr[float64](0), // RecommendedSize: to.Ptr(armmigrate.AzureVMSizeStandardF8SV2), // Suitability: to.Ptr(armmigrate.CloudSuitabilitySuitable), // SuitabilityDetail: to.Ptr(armmigrate.AzureVMSuitabilityDetail("PercentageOfCoresUtilizedMissing, PercentageOfMemoryUtilizedMissing")), // SuitabilityExplanation: to.Ptr(armmigrate.AzureVMSuitabilityExplanationNotApplicable), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:15.778Z"); return t}()), // }, // }}, // } } }
Output:
type AssessedMachinesClientGetOptions ¶
type AssessedMachinesClientGetOptions struct { }
AssessedMachinesClientGetOptions contains the optional parameters for the AssessedMachinesClient.Get method.
type AssessedMachinesClientGetResponse ¶
type AssessedMachinesClientGetResponse struct { // A machine evaluated as part of an assessment. AssessedMachine // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
AssessedMachinesClientGetResponse contains the response from method AssessedMachinesClient.Get.
type AssessedMachinesClientListByAssessmentOptions ¶
type AssessedMachinesClientListByAssessmentOptions struct { }
AssessedMachinesClientListByAssessmentOptions contains the optional parameters for the AssessedMachinesClient.NewListByAssessmentPager method.
type AssessedMachinesClientListByAssessmentResponse ¶
type AssessedMachinesClientListByAssessmentResponse struct { // List of assessed machines. AssessedMachineResultList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
AssessedMachinesClientListByAssessmentResponse contains the response from method AssessedMachinesClient.NewListByAssessmentPager.
type AssessedNetworkAdapter ¶
type AssessedNetworkAdapter struct { // Gigabytes transmitted through this adapter each month. NetGigabytesTransmittedPerMonth *float64 // READ-ONLY; User friendly name of the assessed network adapter. DisplayName *string // READ-ONLY; List of IP Addresses on the network adapter. IPAddresses []*string // READ-ONLY; MAC Address of the network adapter. MacAddress *string // READ-ONLY; Adapter throughput for incoming traffic in MegaBytes per second. MegabytesPerSecondReceived *float64 // READ-ONLY; Adapter throughput for outgoing traffic in MegaBytes per second. MegabytesPerSecondTransmitted *float64 // READ-ONLY; Monthly cost estimate for network bandwidth used by this network adapter. MonthlyBandwidthCosts *float64 // READ-ONLY; Whether this adapter is suitable for Azure. Suitability *CloudSuitability // READ-ONLY; If network adapter is not suitable for cloud, this explains the reasons. SuitabilityDetail *AzureNetworkAdapterSuitabilityDetail // READ-ONLY; If network adapter is suitable, this explains the reasons and mitigation steps. SuitabilityExplanation *AzureNetworkAdapterSuitabilityExplanation }
AssessedNetworkAdapter - A network adapter assessed for an assessment.
func (AssessedNetworkAdapter) MarshalJSON ¶ added in v1.1.0
func (a AssessedNetworkAdapter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessedNetworkAdapter.
func (*AssessedNetworkAdapter) UnmarshalJSON ¶ added in v1.1.0
func (a *AssessedNetworkAdapter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessedNetworkAdapter.
type Assessment ¶
type Assessment struct { // REQUIRED; Properties of the assessment. Properties *AssessmentProperties // For optimistic concurrency control. ETag *string // READ-ONLY; Path reference to this assessment. // /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessment/{assessmentName} ID *string // READ-ONLY; Unique name of an assessment. Name *string // READ-ONLY; Type of the object = [Microsoft.Migrate/assessmentProjects/groups/assessments]. Type *string }
Assessment - An assessment created for a group in the Migration project.
func (Assessment) MarshalJSON ¶ added in v1.1.0
func (a Assessment) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Assessment.
func (*Assessment) UnmarshalJSON ¶ added in v1.1.0
func (a *Assessment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Assessment.
type AssessmentOptions ¶
type AssessmentOptions struct { // REQUIRED; Properties of the assessment options. Properties *AssessmentOptionsProperties // READ-ONLY; Unique identifier of an assessment options. ID *string // READ-ONLY; Unique name of an assessment options. Name *string }
AssessmentOptions - Assessment options.
func (AssessmentOptions) MarshalJSON ¶ added in v1.1.0
func (a AssessmentOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentOptions.
func (*AssessmentOptions) UnmarshalJSON ¶ added in v1.1.0
func (a *AssessmentOptions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessmentOptions.
type AssessmentOptionsProperties ¶
type AssessmentOptionsProperties struct { // READ-ONLY; List of supported currencies for reserved instances. ReservedInstanceSupportedCurrencies []*string // READ-ONLY; List of supported Azure regions for reserved instances. ReservedInstanceSupportedLocations []*string // READ-ONLY; List of supported Azure offer codes for reserved instances. ReservedInstanceSupportedOffers []*string // READ-ONLY; List of supported VM Families. ReservedInstanceVMFamilies []*string // 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 }
AssessmentOptionsProperties - Assessment options properties.
func (AssessmentOptionsProperties) MarshalJSON ¶ added in v1.1.0
func (a AssessmentOptionsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentOptionsProperties.
func (*AssessmentOptionsProperties) UnmarshalJSON ¶ added in v1.1.0
func (a *AssessmentOptionsProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessmentOptionsProperties.
type AssessmentOptionsResultList ¶
type AssessmentOptionsResultList struct { // List of operations. Value []*AssessmentOptions }
AssessmentOptionsResultList - List of API operations.
func (AssessmentOptionsResultList) MarshalJSON ¶ added in v1.1.0
func (a AssessmentOptionsResultList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentOptionsResultList.
func (*AssessmentOptionsResultList) UnmarshalJSON ¶ added in v1.1.0
func (a *AssessmentOptionsResultList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessmentOptionsResultList.
type AssessmentProperties ¶
type AssessmentProperties struct { // REQUIRED; Storage type selected for this disk. AzureDiskType *AzureDiskType // REQUIRED; AHUB discount on windows virtual machines. AzureHybridUseBenefit *AzureHybridUseBenefit // REQUIRED; Target Azure location for which the machines should be assessed. These enums are the same as used by Compute // API. AzureLocation *AzureLocation // REQUIRED; Offer code according to which cost estimation is done. AzureOfferCode *AzureOfferCode // REQUIRED; Pricing tier for Size evaluation. AzurePricingTier *AzurePricingTier // REQUIRED; Storage Redundancy type offered by Azure. AzureStorageRedundancy *AzureStorageRedundancy // REQUIRED; List of azure VM families. AzureVMFamilies []*AzureVMFamily // REQUIRED; Currency to report prices in. Currency *Currency // REQUIRED; Custom discount percentage to be applied on final costs. Can be in the range [0, 100]. DiscountPercentage *float64 // REQUIRED; Percentile of performance data used to recommend Azure size. Percentile *Percentile // REQUIRED; Azure reserved instance. ReservedInstance *ReservedInstance // REQUIRED; 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 // REQUIRED; Assessment sizing criterion. SizingCriterion *AssessmentSizingCriterion // REQUIRED; User configurable setting that describes the status of the assessment. Stage *AssessmentStage // REQUIRED; Time range of performance data used to recommend a size. TimeRange *TimeRange // REQUIRED; Specify the duration for which the VMs are up in the on-premises environment. VMUptime *VMUptime // READ-ONLY; Confidence rating percentage for assessment. Can be in the range [0, 100]. ConfidenceRatingInPercentage *float64 // READ-ONLY; Time when this project was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *time.Time // READ-ONLY; Enterprise agreement subscription arm id. EaSubscriptionID *string // 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 // 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 // READ-ONLY; Monthly premium storage cost estimate for the machines that are part of this assessment as a group, for a 31-day // month. MonthlyPremiumStorageCost *float64 // READ-ONLY; Monthly standard SSD storage cost estimate for the machines that are part of this assessment as a group, for // a 31-day month. MonthlyStandardSSDStorageCost *float64 // 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 // READ-ONLY; Number of assessed machines part of this assessment. NumberOfMachines *int32 // READ-ONLY; End time to consider performance data for assessment PerfDataEndTime *time.Time // READ-ONLY; Start time to consider performance data for assessment PerfDataStartTime *time.Time // READ-ONLY; Time when the Azure Prices were queried. Date-Time represented in ISO-8601 format. PricesTimestamp *time.Time // READ-ONLY; Whether the assessment has been created and is valid. Status *AssessmentStatus // READ-ONLY; Time when this project was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *time.Time }
AssessmentProperties - Properties of an assessment.
func (AssessmentProperties) MarshalJSON ¶
func (a AssessmentProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentProperties.
func (*AssessmentProperties) UnmarshalJSON ¶
func (a *AssessmentProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessmentProperties.
type AssessmentResultList ¶
type AssessmentResultList struct { // List of assessments. Value []*Assessment }
AssessmentResultList - List of assessments.
func (AssessmentResultList) MarshalJSON ¶ added in v1.1.0
func (a AssessmentResultList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentResultList.
func (*AssessmentResultList) UnmarshalJSON ¶ added in v1.1.0
func (a *AssessmentResultList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessmentResultList.
type AssessmentSizingCriterion ¶
type AssessmentSizingCriterion string
AssessmentSizingCriterion - Assessment sizing criterion.
const ( AssessmentSizingCriterionAsOnPremises AssessmentSizingCriterion = "AsOnPremises" AssessmentSizingCriterionPerformanceBased AssessmentSizingCriterion = "PerformanceBased" )
func PossibleAssessmentSizingCriterionValues ¶
func PossibleAssessmentSizingCriterionValues() []AssessmentSizingCriterion
PossibleAssessmentSizingCriterionValues returns the possible values for the AssessmentSizingCriterion const type.
type AssessmentStage ¶
type AssessmentStage string
AssessmentStage - User configurable setting that describes the status of the assessment.
const ( AssessmentStageApproved AssessmentStage = "Approved" AssessmentStageInProgress AssessmentStage = "InProgress" AssessmentStageUnderReview AssessmentStage = "UnderReview" )
func PossibleAssessmentStageValues ¶
func PossibleAssessmentStageValues() []AssessmentStage
PossibleAssessmentStageValues returns the possible values for the AssessmentStage const type.
type AssessmentStatus ¶
type AssessmentStatus string
AssessmentStatus - Whether the assessment has been created and is valid.
const ( AssessmentStatusCompleted AssessmentStatus = "Completed" AssessmentStatusCreated AssessmentStatus = "Created" AssessmentStatusInvalid AssessmentStatus = "Invalid" AssessmentStatusOutDated AssessmentStatus = "OutDated" AssessmentStatusOutOfSync AssessmentStatus = "OutOfSync" AssessmentStatusRunning AssessmentStatus = "Running" AssessmentStatusUpdated AssessmentStatus = "Updated" )
func PossibleAssessmentStatusValues ¶
func PossibleAssessmentStatusValues() []AssessmentStatus
PossibleAssessmentStatusValues returns the possible values for the AssessmentStatus const type.
type AssessmentsClient ¶
type AssessmentsClient struct {
// contains filtered or unexported fields
}
AssessmentsClient contains the methods for the Assessments group. Don't use this type directly, use NewAssessmentsClient() instead.
func NewAssessmentsClient ¶
func NewAssessmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AssessmentsClient, error)
NewAssessmentsClient creates a new instance of AssessmentsClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*AssessmentsClient) Create ¶
func (client *AssessmentsClient) Create(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string, options *AssessmentsClientCreateOptions) (AssessmentsClientCreateResponse, 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. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - AssessmentsClientCreateOptions contains the optional parameters for the AssessmentsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Assessments_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAssessmentsClient().Create(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Group2", "assessment_5_14_2019_16_48_47", &armmigrate.AssessmentsClientCreateOptions{Assessment: &armmigrate.Assessment{ ETag: to.Ptr("\"1e000c2c-0000-0d00-0000-5cdaa4190000\""), Properties: &armmigrate.AssessmentProperties{ AzureDiskType: to.Ptr(armmigrate.AzureDiskTypeStandardOrPremium), AzureHybridUseBenefit: to.Ptr(armmigrate.AzureHybridUseBenefitYes), AzureLocation: to.Ptr(armmigrate.AzureLocationNorthEurope), AzureOfferCode: to.Ptr(armmigrate.AzureOfferCodeMSAZR0003P), AzurePricingTier: to.Ptr(armmigrate.AzurePricingTierStandard), AzureStorageRedundancy: to.Ptr(armmigrate.AzureStorageRedundancyLocallyRedundant), AzureVMFamilies: []*armmigrate.AzureVMFamily{ to.Ptr(armmigrate.AzureVMFamilyDv2Series), to.Ptr(armmigrate.AzureVMFamilyFSeries), to.Ptr(armmigrate.AzureVMFamilyDv3Series), to.Ptr(armmigrate.AzureVMFamilyDSSeries), to.Ptr(armmigrate.AzureVMFamilyDSv2Series), to.Ptr(armmigrate.AzureVMFamilyFsSeries), to.Ptr(armmigrate.AzureVMFamilyDsv3Series), to.Ptr(armmigrate.AzureVMFamilyEv3Series), to.Ptr(armmigrate.AzureVMFamilyEsv3Series), to.Ptr(armmigrate.AzureVMFamilyDSeries), to.Ptr(armmigrate.AzureVMFamilyMSeries), to.Ptr(armmigrate.AzureVMFamilyFsv2Series), to.Ptr(armmigrate.AzureVMFamilyHSeries)}, Currency: to.Ptr(armmigrate.CurrencyUSD), DiscountPercentage: to.Ptr[float64](100), Percentile: to.Ptr(armmigrate.PercentilePercentile95), ReservedInstance: to.Ptr(armmigrate.ReservedInstanceRI3Year), ScalingFactor: to.Ptr[float64](1), SizingCriterion: to.Ptr(armmigrate.AssessmentSizingCriterionPerformanceBased), Stage: to.Ptr(armmigrate.AssessmentStageInProgress), TimeRange: to.Ptr(armmigrate.TimeRangeDay), VMUptime: &armmigrate.VMUptime{ DaysPerMonth: to.Ptr[int32](31), HoursPerDay: to.Ptr[int32](24), }, }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Assessment = armmigrate.Assessment{ // Name: to.Ptr("assessment_5_14_2019_16_48_47"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups/assessments"), // ETag: to.Ptr("\"1e000c2c-0000-0d00-0000-5cdaa4190000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Group2/assessments/assessment_5_14_2019_16_48_47"), // Properties: &armmigrate.AssessmentProperties{ // AzureDiskType: to.Ptr(armmigrate.AzureDiskTypeStandardOrPremium), // AzureHybridUseBenefit: to.Ptr(armmigrate.AzureHybridUseBenefitYes), // AzureLocation: to.Ptr(armmigrate.AzureLocationNorthEurope), // AzureOfferCode: to.Ptr(armmigrate.AzureOfferCodeMSAZR0003P), // AzurePricingTier: to.Ptr(armmigrate.AzurePricingTierStandard), // AzureStorageRedundancy: to.Ptr(armmigrate.AzureStorageRedundancyLocallyRedundant), // AzureVMFamilies: []*armmigrate.AzureVMFamily{ // to.Ptr(armmigrate.AzureVMFamilyDv2Series), // to.Ptr(armmigrate.AzureVMFamilyFSeries), // to.Ptr(armmigrate.AzureVMFamilyDv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSSeries), // to.Ptr(armmigrate.AzureVMFamilyDSv2Series), // to.Ptr(armmigrate.AzureVMFamilyFsSeries), // to.Ptr(armmigrate.AzureVMFamilyDsv3Series), // to.Ptr(armmigrate.AzureVMFamilyEv3Series), // to.Ptr(armmigrate.AzureVMFamilyEsv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSeries), // to.Ptr(armmigrate.AzureVMFamilyMSeries), // to.Ptr(armmigrate.AzureVMFamilyFsv2Series), // to.Ptr(armmigrate.AzureVMFamilyHSeries)}, // ConfidenceRatingInPercentage: to.Ptr[float64](0), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:47.789Z"); return t}()), // Currency: to.Ptr(armmigrate.CurrencyUSD), // DiscountPercentage: to.Ptr[float64](0), // MonthlyBandwidthCost: to.Ptr[float64](0), // MonthlyComputeCost: to.Ptr[float64](607.443264), // MonthlyPremiumStorageCost: to.Ptr[float64](0), // MonthlyStandardSSDStorageCost: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](111.36), // NumberOfMachines: to.Ptr[int32](5), // Percentile: to.Ptr(armmigrate.PercentilePercentile95), // PerfDataEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:47.789Z"); return t}()), // PerfDataStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-13T11:18:47.789Z"); return t}()), // PricesTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-26T11:07:37.139Z"); return t}()), // ReservedInstance: to.Ptr(armmigrate.ReservedInstanceRI3Year), // ScalingFactor: to.Ptr[float64](1), // SizingCriterion: to.Ptr(armmigrate.AssessmentSizingCriterionPerformanceBased), // Stage: to.Ptr(armmigrate.AssessmentStageInProgress), // Status: to.Ptr(armmigrate.AssessmentStatusCompleted), // TimeRange: to.Ptr(armmigrate.TimeRangeDay), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:47.789Z"); return t}()), // VMUptime: &armmigrate.VMUptime{ // DaysPerMonth: to.Ptr[int32](31), // HoursPerDay: to.Ptr[int32](24), // }, // }, // } }
Output:
func (*AssessmentsClient) Delete ¶
func (client *AssessmentsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string, options *AssessmentsClientDeleteOptions) (AssessmentsClientDeleteResponse, 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. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - AssessmentsClientDeleteOptions contains the optional parameters for the AssessmentsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Assessments_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewAssessmentsClient().Delete(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Test1", "assessment_5_9_2019_16_22_14", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*AssessmentsClient) Get ¶
func (client *AssessmentsClient) Get(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string, options *AssessmentsClientGetOptions) (AssessmentsClientGetResponse, error)
Get - Get an existing assessment with the specified name. Returns a json object of type 'assessment' as specified in Models section. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - AssessmentsClientGetOptions contains the optional parameters for the AssessmentsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Assessments_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAssessmentsClient().Get(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Test1", "assessment_5_9_2019_16_22_14", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Assessment = armmigrate.Assessment{ // Name: to.Ptr("assessment_5_9_2019_16_22_14"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups/assessments"), // ETag: to.Ptr("\"21009c31-0000-0d00-0000-5cd585ad0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14"), // Properties: &armmigrate.AssessmentProperties{ // AzureDiskType: to.Ptr(armmigrate.AzureDiskTypeStandardOrPremium), // AzureHybridUseBenefit: to.Ptr(armmigrate.AzureHybridUseBenefitYes), // AzureLocation: to.Ptr(armmigrate.AzureLocationNorthEurope), // AzureOfferCode: to.Ptr(armmigrate.AzureOfferCodeMSAZR0003P), // AzurePricingTier: to.Ptr(armmigrate.AzurePricingTierStandard), // AzureStorageRedundancy: to.Ptr(armmigrate.AzureStorageRedundancyLocallyRedundant), // AzureVMFamilies: []*armmigrate.AzureVMFamily{ // to.Ptr(armmigrate.AzureVMFamilyDv2Series), // to.Ptr(armmigrate.AzureVMFamilyFSeries), // to.Ptr(armmigrate.AzureVMFamilyDv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSSeries), // to.Ptr(armmigrate.AzureVMFamilyDSv2Series), // to.Ptr(armmigrate.AzureVMFamilyFsSeries), // to.Ptr(armmigrate.AzureVMFamilyDsv3Series), // to.Ptr(armmigrate.AzureVMFamilyEv3Series), // to.Ptr(armmigrate.AzureVMFamilyEsv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSeries), // to.Ptr(armmigrate.AzureVMFamilyMSeries), // to.Ptr(armmigrate.AzureVMFamilyFsv2Series), // to.Ptr(armmigrate.AzureVMFamilyHSeries)}, // ConfidenceRatingInPercentage: to.Ptr[float64](0), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:14.489Z"); return t}()), // Currency: to.Ptr(armmigrate.CurrencyUSD), // DiscountPercentage: to.Ptr[float64](0), // MonthlyBandwidthCost: to.Ptr[float64](0), // MonthlyComputeCost: to.Ptr[float64](2588.830584), // MonthlyPremiumStorageCost: to.Ptr[float64](0), // MonthlyStandardSSDStorageCost: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](238.016), // NumberOfMachines: to.Ptr[int32](26), // Percentile: to.Ptr(armmigrate.PercentilePercentile95), // PerfDataEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:14.489Z"); return t}()), // PerfDataStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-08T10:52:14.489Z"); return t}()), // PricesTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-26T11:07:37.139Z"); return t}()), // ReservedInstance: to.Ptr(armmigrate.ReservedInstanceRI3Year), // ScalingFactor: to.Ptr[float64](1), // SizingCriterion: to.Ptr(armmigrate.AssessmentSizingCriterionPerformanceBased), // Stage: to.Ptr(armmigrate.AssessmentStageInProgress), // Status: to.Ptr(armmigrate.AssessmentStatusOutDated), // TimeRange: to.Ptr(armmigrate.TimeRangeDay), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:14.489Z"); return t}()), // VMUptime: &armmigrate.VMUptime{ // DaysPerMonth: to.Ptr[int32](31), // HoursPerDay: to.Ptr[int32](24), // }, // }, // } }
Output:
func (*AssessmentsClient) GetReportDownloadURL ¶
func (client *AssessmentsClient) GetReportDownloadURL(ctx context.Context, resourceGroupName string, projectName string, groupName string, assessmentName string, options *AssessmentsClientGetReportDownloadURLOptions) (AssessmentsClientGetReportDownloadURLResponse, error)
GetReportDownloadURL - Get the URL for downloading the assessment in a report format. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - AssessmentsClientGetReportDownloadURLOptions contains the optional parameters for the AssessmentsClient.GetReportDownloadURL method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Assessments_GetReportDownloadUrl.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAssessmentsClient().GetReportDownloadURL(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Test1", "assessment_5_9_2019_16_22_14", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DownloadURL = armmigrate.DownloadURL{ // AssessmentReportURL: to.Ptr("link-to-download-assessment-report"), // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-05T13:17:23.543Z"); return t}()), // } }
Output:
func (*AssessmentsClient) NewListByGroupPager ¶
func (client *AssessmentsClient) NewListByGroupPager(resourceGroupName string, projectName string, groupName string, options *AssessmentsClientListByGroupOptions) *runtime.Pager[AssessmentsClientListByGroupResponse]
NewListByGroupPager - Get all assessments created for the specified group. Returns a json array of objects of type 'assessment' as specified in Models section.
Generated from API version 2019-10-01
- 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.
- options - AssessmentsClientListByGroupOptions contains the optional parameters for the AssessmentsClient.NewListByGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Assessments_ListByGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewAssessmentsClient().NewListByGroupPager("abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Test1", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AssessmentResultList = armmigrate.AssessmentResultList{ // Value: []*armmigrate.Assessment{ // { // Name: to.Ptr("assessment_5_9_2019_16_22_14"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups/assessments"), // ETag: to.Ptr("\"21009c31-0000-0d00-0000-5cd585ad0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14"), // Properties: &armmigrate.AssessmentProperties{ // AzureDiskType: to.Ptr(armmigrate.AzureDiskTypeStandardOrPremium), // AzureHybridUseBenefit: to.Ptr(armmigrate.AzureHybridUseBenefitYes), // AzureLocation: to.Ptr(armmigrate.AzureLocationNorthEurope), // AzureOfferCode: to.Ptr(armmigrate.AzureOfferCodeMSAZR0003P), // AzurePricingTier: to.Ptr(armmigrate.AzurePricingTierStandard), // AzureStorageRedundancy: to.Ptr(armmigrate.AzureStorageRedundancyLocallyRedundant), // AzureVMFamilies: []*armmigrate.AzureVMFamily{ // to.Ptr(armmigrate.AzureVMFamilyDv2Series), // to.Ptr(armmigrate.AzureVMFamilyFSeries), // to.Ptr(armmigrate.AzureVMFamilyDv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSSeries), // to.Ptr(armmigrate.AzureVMFamilyDSv2Series), // to.Ptr(armmigrate.AzureVMFamilyFsSeries), // to.Ptr(armmigrate.AzureVMFamilyDsv3Series), // to.Ptr(armmigrate.AzureVMFamilyEv3Series), // to.Ptr(armmigrate.AzureVMFamilyEsv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSeries), // to.Ptr(armmigrate.AzureVMFamilyMSeries), // to.Ptr(armmigrate.AzureVMFamilyFsv2Series), // to.Ptr(armmigrate.AzureVMFamilyHSeries)}, // ConfidenceRatingInPercentage: to.Ptr[float64](0), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:14.489Z"); return t}()), // Currency: to.Ptr(armmigrate.CurrencyUSD), // DiscountPercentage: to.Ptr[float64](0), // MonthlyBandwidthCost: to.Ptr[float64](0), // MonthlyComputeCost: to.Ptr[float64](2588.830584), // MonthlyPremiumStorageCost: to.Ptr[float64](0), // MonthlyStandardSSDStorageCost: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](238.016), // NumberOfMachines: to.Ptr[int32](26), // Percentile: to.Ptr(armmigrate.PercentilePercentile95), // PerfDataEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:14.489Z"); return t}()), // PerfDataStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-08T10:52:14.489Z"); return t}()), // PricesTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-26T11:07:37.139Z"); return t}()), // ReservedInstance: to.Ptr(armmigrate.ReservedInstanceRI3Year), // ScalingFactor: to.Ptr[float64](1), // SizingCriterion: to.Ptr(armmigrate.AssessmentSizingCriterionPerformanceBased), // Stage: to.Ptr(armmigrate.AssessmentStageInProgress), // Status: to.Ptr(armmigrate.AssessmentStatusOutDated), // TimeRange: to.Ptr(armmigrate.TimeRangeDay), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:14.489Z"); return t}()), // VMUptime: &armmigrate.VMUptime{ // DaysPerMonth: to.Ptr[int32](31), // HoursPerDay: to.Ptr[int32](24), // }, // }, // }}, // } } }
Output:
func (*AssessmentsClient) NewListByProjectPager ¶
func (client *AssessmentsClient) NewListByProjectPager(resourceGroupName string, projectName string, options *AssessmentsClientListByProjectOptions) *runtime.Pager[AssessmentsClientListByProjectResponse]
NewListByProjectPager - Get all assessments created in the project. Returns a json array of objects of type 'assessment' as specified in Models section.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - AssessmentsClientListByProjectOptions contains the optional parameters for the AssessmentsClient.NewListByProjectPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Assessments_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewAssessmentsClient().NewListByProjectPager("abgoyal-westEurope", "abgoyalWEselfhostb72bproject", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AssessmentResultList = armmigrate.AssessmentResultList{ // Value: []*armmigrate.Assessment{ // { // Name: to.Ptr("assessment_5_9_2019_16_22_14"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups/assessments"), // ETag: to.Ptr("\"21009c31-0000-0d00-0000-5cd585ad0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14"), // Properties: &armmigrate.AssessmentProperties{ // AzureDiskType: to.Ptr(armmigrate.AzureDiskTypeStandardOrPremium), // AzureHybridUseBenefit: to.Ptr(armmigrate.AzureHybridUseBenefitYes), // AzureLocation: to.Ptr(armmigrate.AzureLocationNorthEurope), // AzureOfferCode: to.Ptr(armmigrate.AzureOfferCodeMSAZR0003P), // AzurePricingTier: to.Ptr(armmigrate.AzurePricingTierStandard), // AzureStorageRedundancy: to.Ptr(armmigrate.AzureStorageRedundancyLocallyRedundant), // AzureVMFamilies: []*armmigrate.AzureVMFamily{ // to.Ptr(armmigrate.AzureVMFamilyDv2Series), // to.Ptr(armmigrate.AzureVMFamilyFSeries), // to.Ptr(armmigrate.AzureVMFamilyDv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSSeries), // to.Ptr(armmigrate.AzureVMFamilyDSv2Series), // to.Ptr(armmigrate.AzureVMFamilyFsSeries), // to.Ptr(armmigrate.AzureVMFamilyDsv3Series), // to.Ptr(armmigrate.AzureVMFamilyEv3Series), // to.Ptr(armmigrate.AzureVMFamilyEsv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSeries), // to.Ptr(armmigrate.AzureVMFamilyMSeries), // to.Ptr(armmigrate.AzureVMFamilyFsv2Series), // to.Ptr(armmigrate.AzureVMFamilyHSeries)}, // ConfidenceRatingInPercentage: to.Ptr[float64](0), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:14.489Z"); return t}()), // Currency: to.Ptr(armmigrate.CurrencyUSD), // DiscountPercentage: to.Ptr[float64](0), // MonthlyBandwidthCost: to.Ptr[float64](0), // MonthlyComputeCost: to.Ptr[float64](2588.830584), // MonthlyPremiumStorageCost: to.Ptr[float64](0), // MonthlyStandardSSDStorageCost: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](238.016), // NumberOfMachines: to.Ptr[int32](26), // Percentile: to.Ptr(armmigrate.PercentilePercentile95), // PerfDataEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:14.489Z"); return t}()), // PerfDataStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-08T10:52:14.489Z"); return t}()), // PricesTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-26T11:07:37.139Z"); return t}()), // ReservedInstance: to.Ptr(armmigrate.ReservedInstanceRI3Year), // ScalingFactor: to.Ptr[float64](1), // SizingCriterion: to.Ptr(armmigrate.AssessmentSizingCriterionPerformanceBased), // Stage: to.Ptr(armmigrate.AssessmentStageInProgress), // Status: to.Ptr(armmigrate.AssessmentStatusOutDated), // TimeRange: to.Ptr(armmigrate.TimeRangeDay), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:14.489Z"); return t}()), // VMUptime: &armmigrate.VMUptime{ // DaysPerMonth: to.Ptr[int32](31), // HoursPerDay: to.Ptr[int32](24), // }, // }, // }, // { // Name: to.Ptr("assessment_5_9_2019_17_0_56"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups/assessments"), // ETag: to.Ptr("\"1e000c2c-0000-0d00-0000-5cdaa4190000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Group2/assessments/assessment_5_9_2019_17_0_56"), // Properties: &armmigrate.AssessmentProperties{ // AzureDiskType: to.Ptr(armmigrate.AzureDiskTypeStandardOrPremium), // AzureHybridUseBenefit: to.Ptr(armmigrate.AzureHybridUseBenefitYes), // AzureLocation: to.Ptr(armmigrate.AzureLocationNorthEurope), // AzureOfferCode: to.Ptr(armmigrate.AzureOfferCodeMSAZR0003P), // AzurePricingTier: to.Ptr(armmigrate.AzurePricingTierStandard), // AzureStorageRedundancy: to.Ptr(armmigrate.AzureStorageRedundancyLocallyRedundant), // AzureVMFamilies: []*armmigrate.AzureVMFamily{ // to.Ptr(armmigrate.AzureVMFamilyDv2Series), // to.Ptr(armmigrate.AzureVMFamilyFSeries), // to.Ptr(armmigrate.AzureVMFamilyDv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSSeries), // to.Ptr(armmigrate.AzureVMFamilyDSv2Series), // to.Ptr(armmigrate.AzureVMFamilyFsSeries), // to.Ptr(armmigrate.AzureVMFamilyDsv3Series), // to.Ptr(armmigrate.AzureVMFamilyEv3Series), // to.Ptr(armmigrate.AzureVMFamilyEsv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSeries), // to.Ptr(armmigrate.AzureVMFamilyMSeries), // to.Ptr(armmigrate.AzureVMFamilyFsv2Series), // to.Ptr(armmigrate.AzureVMFamilyHSeries)}, // ConfidenceRatingInPercentage: to.Ptr[float64](0), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T11:30:57.003Z"); return t}()), // Currency: to.Ptr(armmigrate.CurrencyUSD), // DiscountPercentage: to.Ptr[float64](0), // MonthlyBandwidthCost: to.Ptr[float64](0), // MonthlyComputeCost: to.Ptr[float64](607.443264), // MonthlyPremiumStorageCost: to.Ptr[float64](0), // MonthlyStandardSSDStorageCost: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](111.36), // NumberOfMachines: to.Ptr[int32](5), // Percentile: to.Ptr(armmigrate.PercentilePercentile95), // PerfDataEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T11:30:57.003Z"); return t}()), // PerfDataStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-08T11:30:57.003Z"); return t}()), // PricesTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-26T11:07:37.139Z"); return t}()), // ReservedInstance: to.Ptr(armmigrate.ReservedInstanceRI3Year), // ScalingFactor: to.Ptr[float64](1), // SizingCriterion: to.Ptr(armmigrate.AssessmentSizingCriterionPerformanceBased), // Stage: to.Ptr(armmigrate.AssessmentStageInProgress), // Status: to.Ptr(armmigrate.AssessmentStatusCompleted), // TimeRange: to.Ptr(armmigrate.TimeRangeDay), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T11:30:57.003Z"); return t}()), // VMUptime: &armmigrate.VMUptime{ // DaysPerMonth: to.Ptr[int32](31), // HoursPerDay: to.Ptr[int32](24), // }, // }, // }, // { // Name: to.Ptr("assessment_5_14_2019_16_48_47"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups/assessments"), // ETag: to.Ptr("\"1e000c2c-0000-0d00-0000-5cdaa4190000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Group2/assessments/assessment_5_14_2019_16_48_47"), // Properties: &armmigrate.AssessmentProperties{ // AzureDiskType: to.Ptr(armmigrate.AzureDiskTypeStandardOrPremium), // AzureHybridUseBenefit: to.Ptr(armmigrate.AzureHybridUseBenefitYes), // AzureLocation: to.Ptr(armmigrate.AzureLocationNorthEurope), // AzureOfferCode: to.Ptr(armmigrate.AzureOfferCodeMSAZR0003P), // AzurePricingTier: to.Ptr(armmigrate.AzurePricingTierStandard), // AzureStorageRedundancy: to.Ptr(armmigrate.AzureStorageRedundancyLocallyRedundant), // AzureVMFamilies: []*armmigrate.AzureVMFamily{ // to.Ptr(armmigrate.AzureVMFamilyDv2Series), // to.Ptr(armmigrate.AzureVMFamilyFSeries), // to.Ptr(armmigrate.AzureVMFamilyDv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSSeries), // to.Ptr(armmigrate.AzureVMFamilyDSv2Series), // to.Ptr(armmigrate.AzureVMFamilyFsSeries), // to.Ptr(armmigrate.AzureVMFamilyDsv3Series), // to.Ptr(armmigrate.AzureVMFamilyEv3Series), // to.Ptr(armmigrate.AzureVMFamilyEsv3Series), // to.Ptr(armmigrate.AzureVMFamilyDSeries), // to.Ptr(armmigrate.AzureVMFamilyMSeries), // to.Ptr(armmigrate.AzureVMFamilyFsv2Series), // to.Ptr(armmigrate.AzureVMFamilyHSeries)}, // ConfidenceRatingInPercentage: to.Ptr[float64](0), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:47.789Z"); return t}()), // Currency: to.Ptr(armmigrate.CurrencyUSD), // DiscountPercentage: to.Ptr[float64](0), // MonthlyBandwidthCost: to.Ptr[float64](0), // MonthlyComputeCost: to.Ptr[float64](607.443264), // MonthlyPremiumStorageCost: to.Ptr[float64](0), // MonthlyStandardSSDStorageCost: to.Ptr[float64](0), // MonthlyStorageCost: to.Ptr[float64](111.36), // NumberOfMachines: to.Ptr[int32](5), // Percentile: to.Ptr(armmigrate.PercentilePercentile95), // PerfDataEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:47.789Z"); return t}()), // PerfDataStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-13T11:18:47.789Z"); return t}()), // PricesTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-26T11:07:37.139Z"); return t}()), // ReservedInstance: to.Ptr(armmigrate.ReservedInstanceRI3Year), // ScalingFactor: to.Ptr[float64](1), // SizingCriterion: to.Ptr(armmigrate.AssessmentSizingCriterionPerformanceBased), // Stage: to.Ptr(armmigrate.AssessmentStageInProgress), // Status: to.Ptr(armmigrate.AssessmentStatusCompleted), // TimeRange: to.Ptr(armmigrate.TimeRangeDay), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:47.789Z"); return t}()), // VMUptime: &armmigrate.VMUptime{ // DaysPerMonth: to.Ptr[int32](31), // HoursPerDay: to.Ptr[int32](24), // }, // }, // }}, // } } }
Output:
type AssessmentsClientCreateOptions ¶
type AssessmentsClientCreateOptions struct { // New or Updated Assessment object. Assessment *Assessment }
AssessmentsClientCreateOptions contains the optional parameters for the AssessmentsClient.Create method.
type AssessmentsClientCreateResponse ¶
type AssessmentsClientCreateResponse struct { // An assessment created for a group in the Migration project. Assessment // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
AssessmentsClientCreateResponse contains the response from method AssessmentsClient.Create.
type AssessmentsClientDeleteOptions ¶
type AssessmentsClientDeleteOptions struct { }
AssessmentsClientDeleteOptions contains the optional parameters for the AssessmentsClient.Delete method.
type AssessmentsClientDeleteResponse ¶
type AssessmentsClientDeleteResponse struct { // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
AssessmentsClientDeleteResponse contains the response from method AssessmentsClient.Delete.
type AssessmentsClientGetOptions ¶
type AssessmentsClientGetOptions struct { }
AssessmentsClientGetOptions contains the optional parameters for the AssessmentsClient.Get method.
type AssessmentsClientGetReportDownloadURLOptions ¶
type AssessmentsClientGetReportDownloadURLOptions struct { }
AssessmentsClientGetReportDownloadURLOptions contains the optional parameters for the AssessmentsClient.GetReportDownloadURL method.
type AssessmentsClientGetReportDownloadURLResponse ¶
type AssessmentsClientGetReportDownloadURLResponse struct { // Download URL for assessment report. DownloadURL // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
AssessmentsClientGetReportDownloadURLResponse contains the response from method AssessmentsClient.GetReportDownloadURL.
type AssessmentsClientGetResponse ¶
type AssessmentsClientGetResponse struct { // An assessment created for a group in the Migration project. Assessment // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
AssessmentsClientGetResponse contains the response from method AssessmentsClient.Get.
type AssessmentsClientListByGroupOptions ¶
type AssessmentsClientListByGroupOptions struct { }
AssessmentsClientListByGroupOptions contains the optional parameters for the AssessmentsClient.NewListByGroupPager method.
type AssessmentsClientListByGroupResponse ¶
type AssessmentsClientListByGroupResponse struct { // List of assessments. AssessmentResultList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
AssessmentsClientListByGroupResponse contains the response from method AssessmentsClient.NewListByGroupPager.
type AssessmentsClientListByProjectOptions ¶
type AssessmentsClientListByProjectOptions struct { }
AssessmentsClientListByProjectOptions contains the optional parameters for the AssessmentsClient.NewListByProjectPager method.
type AssessmentsClientListByProjectResponse ¶
type AssessmentsClientListByProjectResponse struct { // List of assessments. AssessmentResultList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
AssessmentsClientListByProjectResponse contains the response from method AssessmentsClient.NewListByProjectPager.
type AzureDiskSize ¶
type AzureDiskSize string
AzureDiskSize - Recommended Azure size for the disk, given utilization data and preferences set on Assessment.
const ( AzureDiskSizePremiumP10 AzureDiskSize = "Premium_P10" AzureDiskSizePremiumP15 AzureDiskSize = "Premium_P15" AzureDiskSizePremiumP20 AzureDiskSize = "Premium_P20" AzureDiskSizePremiumP30 AzureDiskSize = "Premium_P30" AzureDiskSizePremiumP4 AzureDiskSize = "Premium_P4" AzureDiskSizePremiumP40 AzureDiskSize = "Premium_P40" AzureDiskSizePremiumP50 AzureDiskSize = "Premium_P50" AzureDiskSizePremiumP6 AzureDiskSize = "Premium_P6" AzureDiskSizePremiumP60 AzureDiskSize = "Premium_P60" AzureDiskSizePremiumP70 AzureDiskSize = "Premium_P70" AzureDiskSizePremiumP80 AzureDiskSize = "Premium_P80" AzureDiskSizeStandardS10 AzureDiskSize = "Standard_S10" AzureDiskSizeStandardS15 AzureDiskSize = "Standard_S15" AzureDiskSizeStandardS20 AzureDiskSize = "Standard_S20" AzureDiskSizeStandardS30 AzureDiskSize = "Standard_S30" AzureDiskSizeStandardS4 AzureDiskSize = "Standard_S4" AzureDiskSizeStandardS40 AzureDiskSize = "Standard_S40" AzureDiskSizeStandardS50 AzureDiskSize = "Standard_S50" AzureDiskSizeStandardS6 AzureDiskSize = "Standard_S6" AzureDiskSizeStandardS60 AzureDiskSize = "Standard_S60" AzureDiskSizeStandardS70 AzureDiskSize = "Standard_S70" AzureDiskSizeStandardS80 AzureDiskSize = "Standard_S80" AzureDiskSizeStandardSSDE10 AzureDiskSize = "StandardSSD_E10" AzureDiskSizeStandardSSDE15 AzureDiskSize = "StandardSSD_E15" AzureDiskSizeStandardSSDE20 AzureDiskSize = "StandardSSD_E20" AzureDiskSizeStandardSSDE30 AzureDiskSize = "StandardSSD_E30" AzureDiskSizeStandardSSDE4 AzureDiskSize = "StandardSSD_E4" AzureDiskSizeStandardSSDE40 AzureDiskSize = "StandardSSD_E40" AzureDiskSizeStandardSSDE50 AzureDiskSize = "StandardSSD_E50" AzureDiskSizeStandardSSDE6 AzureDiskSize = "StandardSSD_E6" AzureDiskSizeStandardSSDE60 AzureDiskSize = "StandardSSD_E60" AzureDiskSizeStandardSSDE70 AzureDiskSize = "StandardSSD_E70" AzureDiskSizeStandardSSDE80 AzureDiskSize = "StandardSSD_E80" AzureDiskSizeUnknown AzureDiskSize = "Unknown" )
func PossibleAzureDiskSizeValues ¶
func PossibleAzureDiskSizeValues() []AzureDiskSize
PossibleAzureDiskSizeValues returns the possible values for the AzureDiskSize const type.
type AzureDiskSuitabilityDetail ¶
type AzureDiskSuitabilityDetail string
AzureDiskSuitabilityDetail - If disk is suitable to be migrate but some conditions/checks were not considered while calculating suitability, this explains the details.
const ( AzureDiskSuitabilityDetailDiskGigabytesConsumedMissing AzureDiskSuitabilityDetail = "DiskGigabytesConsumedMissing" AzureDiskSuitabilityDetailDiskGigabytesConsumedOutOfRange AzureDiskSuitabilityDetail = "DiskGigabytesConsumedOutOfRange" AzureDiskSuitabilityDetailDiskGigabytesProvisionedMissing AzureDiskSuitabilityDetail = "DiskGigabytesProvisionedMissing" AzureDiskSuitabilityDetailDiskGigabytesProvisionedOutOfRange AzureDiskSuitabilityDetail = "DiskGigabytesProvisionedOutOfRange" AzureDiskSuitabilityDetailMegabytesPerSecondOfReadMissing AzureDiskSuitabilityDetail = "MegabytesPerSecondOfReadMissing" AzureDiskSuitabilityDetailMegabytesPerSecondOfReadOutOfRange AzureDiskSuitabilityDetail = "MegabytesPerSecondOfReadOutOfRange" AzureDiskSuitabilityDetailMegabytesPerSecondOfWriteMissing AzureDiskSuitabilityDetail = "MegabytesPerSecondOfWriteMissing" AzureDiskSuitabilityDetailMegabytesPerSecondOfWriteOutOfRange AzureDiskSuitabilityDetail = "MegabytesPerSecondOfWriteOutOfRange" AzureDiskSuitabilityDetailNone AzureDiskSuitabilityDetail = "None" AzureDiskSuitabilityDetailNumberOfReadOperationsPerSecondMissing AzureDiskSuitabilityDetail = "NumberOfReadOperationsPerSecondMissing" AzureDiskSuitabilityDetailNumberOfReadOperationsPerSecondOutOfRange AzureDiskSuitabilityDetail = "NumberOfReadOperationsPerSecondOutOfRange" AzureDiskSuitabilityDetailNumberOfWriteOperationsPerSecondMissing AzureDiskSuitabilityDetail = "NumberOfWriteOperationsPerSecondMissing" AzureDiskSuitabilityDetailNumberOfWriteOperationsPerSecondOutOfRange AzureDiskSuitabilityDetail = "NumberOfWriteOperationsPerSecondOutOfRange" )
func PossibleAzureDiskSuitabilityDetailValues ¶
func PossibleAzureDiskSuitabilityDetailValues() []AzureDiskSuitabilityDetail
PossibleAzureDiskSuitabilityDetailValues returns the possible values for the AzureDiskSuitabilityDetail const type.
type AzureDiskSuitabilityExplanation ¶
type AzureDiskSuitabilityExplanation string
AzureDiskSuitabilityExplanation - If disk is not suitable to be migrated, this explains the reasons and mitigation steps.
const ( AzureDiskSuitabilityExplanationDiskSizeGreaterThanSupported AzureDiskSuitabilityExplanation = "DiskSizeGreaterThanSupported" AzureDiskSuitabilityExplanationInternalErrorOccurredForDiskEvaluation AzureDiskSuitabilityExplanation = "InternalErrorOccurredForDiskEvaluation" AzureDiskSuitabilityExplanationNoDiskSizeFoundForSelectedRedundancy AzureDiskSuitabilityExplanation = "NoDiskSizeFoundForSelectedRedundancy" AzureDiskSuitabilityExplanationNoDiskSizeFoundInSelectedLocation AzureDiskSuitabilityExplanation = "NoDiskSizeFoundInSelectedLocation" AzureDiskSuitabilityExplanationNoEaPriceFoundForDiskSize AzureDiskSuitabilityExplanation = "NoEaPriceFoundForDiskSize" AzureDiskSuitabilityExplanationNoSuitableDiskSizeForIops AzureDiskSuitabilityExplanation = "NoSuitableDiskSizeForIops" AzureDiskSuitabilityExplanationNoSuitableDiskSizeForThroughput AzureDiskSuitabilityExplanation = "NoSuitableDiskSizeForThroughput" AzureDiskSuitabilityExplanationNotApplicable AzureDiskSuitabilityExplanation = "NotApplicable" AzureDiskSuitabilityExplanationUnknown AzureDiskSuitabilityExplanation = "Unknown" )
func PossibleAzureDiskSuitabilityExplanationValues ¶
func PossibleAzureDiskSuitabilityExplanationValues() []AzureDiskSuitabilityExplanation
PossibleAzureDiskSuitabilityExplanationValues returns the possible values for the AzureDiskSuitabilityExplanation const type.
type AzureDiskType ¶
type AzureDiskType string
AzureDiskType - Storage type selected for this disk.
const ( AzureDiskTypePremium AzureDiskType = "Premium" AzureDiskTypeStandard AzureDiskType = "Standard" AzureDiskTypeStandardOrPremium AzureDiskType = "StandardOrPremium" AzureDiskTypeStandardSSD AzureDiskType = "StandardSSD" AzureDiskTypeUnknown AzureDiskType = "Unknown" )
func PossibleAzureDiskTypeValues ¶
func PossibleAzureDiskTypeValues() []AzureDiskType
PossibleAzureDiskTypeValues returns the possible values for the AzureDiskType const type.
type AzureHybridUseBenefit ¶
type AzureHybridUseBenefit string
AzureHybridUseBenefit - AHUB discount on windows virtual machines.
const ( AzureHybridUseBenefitNo AzureHybridUseBenefit = "No" AzureHybridUseBenefitUnknown AzureHybridUseBenefit = "Unknown" AzureHybridUseBenefitYes AzureHybridUseBenefit = "Yes" )
func PossibleAzureHybridUseBenefitValues ¶
func PossibleAzureHybridUseBenefitValues() []AzureHybridUseBenefit
PossibleAzureHybridUseBenefitValues returns the possible values for the AzureHybridUseBenefit const type.
type AzureLocation ¶
type AzureLocation string
AzureLocation - Target Azure location for which the machines should be assessed. These enums are the same as used by Compute API.
const ( AzureLocationAustraliaEast AzureLocation = "AustraliaEast" AzureLocationAustraliaSoutheast AzureLocation = "AustraliaSoutheast" AzureLocationBrazilSouth AzureLocation = "BrazilSouth" AzureLocationCanadaCentral AzureLocation = "CanadaCentral" AzureLocationCanadaEast AzureLocation = "CanadaEast" AzureLocationCentralIndia AzureLocation = "CentralIndia" AzureLocationCentralUs AzureLocation = "CentralUs" AzureLocationChinaEast AzureLocation = "ChinaEast" AzureLocationChinaNorth AzureLocation = "ChinaNorth" AzureLocationEastAsia AzureLocation = "EastAsia" AzureLocationEastUs AzureLocation = "EastUs" AzureLocationEastUs2 AzureLocation = "EastUs2" AzureLocationGermanyCentral AzureLocation = "GermanyCentral" AzureLocationGermanyNortheast AzureLocation = "GermanyNortheast" AzureLocationJapanEast AzureLocation = "JapanEast" AzureLocationJapanWest AzureLocation = "JapanWest" AzureLocationKoreaCentral AzureLocation = "KoreaCentral" AzureLocationKoreaSouth AzureLocation = "KoreaSouth" AzureLocationNorthCentralUs AzureLocation = "NorthCentralUs" AzureLocationNorthEurope AzureLocation = "NorthEurope" AzureLocationSouthCentralUs AzureLocation = "SouthCentralUs" AzureLocationSouthIndia AzureLocation = "SouthIndia" AzureLocationSoutheastAsia AzureLocation = "SoutheastAsia" AzureLocationUSDoDCentral AzureLocation = "USDoDCentral" AzureLocationUSDoDEast AzureLocation = "USDoDEast" AzureLocationUSGovArizona AzureLocation = "USGovArizona" AzureLocationUSGovIowa AzureLocation = "USGovIowa" AzureLocationUSGovTexas AzureLocation = "USGovTexas" AzureLocationUSGovVirginia AzureLocation = "USGovVirginia" AzureLocationUkSouth AzureLocation = "UkSouth" AzureLocationUkWest AzureLocation = "UkWest" AzureLocationUnknown AzureLocation = "Unknown" AzureLocationWestCentralUs AzureLocation = "WestCentralUs" AzureLocationWestEurope AzureLocation = "WestEurope" AzureLocationWestIndia AzureLocation = "WestIndia" AzureLocationWestUs AzureLocation = "WestUs" AzureLocationWestUs2 AzureLocation = "WestUs2" )
func PossibleAzureLocationValues ¶
func PossibleAzureLocationValues() []AzureLocation
PossibleAzureLocationValues returns the possible values for the AzureLocation const type.
type AzureNetworkAdapterSuitabilityDetail ¶
type AzureNetworkAdapterSuitabilityDetail string
AzureNetworkAdapterSuitabilityDetail - If network adapter is not suitable for cloud, this explains the reasons.
const ( AzureNetworkAdapterSuitabilityDetailMegabytesOfDataTransmittedMissing AzureNetworkAdapterSuitabilityDetail = "MegabytesOfDataTransmittedMissing" AzureNetworkAdapterSuitabilityDetailMegabytesOfDataTransmittedOutOfRange AzureNetworkAdapterSuitabilityDetail = "MegabytesOfDataTransmittedOutOfRange" AzureNetworkAdapterSuitabilityDetailNone AzureNetworkAdapterSuitabilityDetail = "None" )
func PossibleAzureNetworkAdapterSuitabilityDetailValues ¶
func PossibleAzureNetworkAdapterSuitabilityDetailValues() []AzureNetworkAdapterSuitabilityDetail
PossibleAzureNetworkAdapterSuitabilityDetailValues returns the possible values for the AzureNetworkAdapterSuitabilityDetail const type.
type AzureNetworkAdapterSuitabilityExplanation ¶
type AzureNetworkAdapterSuitabilityExplanation string
AzureNetworkAdapterSuitabilityExplanation - If network adapter is suitable, this explains the reasons and mitigation steps.
const ( AzureNetworkAdapterSuitabilityExplanationInternalErrorOccurred AzureNetworkAdapterSuitabilityExplanation = "InternalErrorOccurred" AzureNetworkAdapterSuitabilityExplanationNotApplicable AzureNetworkAdapterSuitabilityExplanation = "NotApplicable" AzureNetworkAdapterSuitabilityExplanationUnknown AzureNetworkAdapterSuitabilityExplanation = "Unknown" )
func PossibleAzureNetworkAdapterSuitabilityExplanationValues ¶
func PossibleAzureNetworkAdapterSuitabilityExplanationValues() []AzureNetworkAdapterSuitabilityExplanation
PossibleAzureNetworkAdapterSuitabilityExplanationValues returns the possible values for the AzureNetworkAdapterSuitabilityExplanation const type.
type AzureOfferCode ¶
type AzureOfferCode string
AzureOfferCode - Offer code according to which cost estimation is done.
const ( AzureOfferCodeEA AzureOfferCode = "EA" AzureOfferCodeMSAZR0003P AzureOfferCode = "MSAZR0003P" AzureOfferCodeMSAZR0022P AzureOfferCode = "MSAZR0022P" AzureOfferCodeMSAZR0023P AzureOfferCode = "MSAZR0023P" AzureOfferCodeMSAZR0025P AzureOfferCode = "MSAZR0025P" AzureOfferCodeMSAZR0029P AzureOfferCode = "MSAZR0029P" AzureOfferCodeMSAZR0036P AzureOfferCode = "MSAZR0036P" AzureOfferCodeMSAZR0044P AzureOfferCode = "MSAZR0044P" AzureOfferCodeMSAZR0059P AzureOfferCode = "MSAZR0059P" AzureOfferCodeMSAZR0060P AzureOfferCode = "MSAZR0060P" AzureOfferCodeMSAZR0062P AzureOfferCode = "MSAZR0062P" AzureOfferCodeMSAZR0063P AzureOfferCode = "MSAZR0063P" AzureOfferCodeMSAZR0064P AzureOfferCode = "MSAZR0064P" AzureOfferCodeMSAZR0111P AzureOfferCode = "MSAZR0111P" AzureOfferCodeMSAZR0120P AzureOfferCode = "MSAZR0120P" AzureOfferCodeMSAZR0121P AzureOfferCode = "MSAZR0121P" AzureOfferCodeMSAZR0122P AzureOfferCode = "MSAZR0122P" AzureOfferCodeMSAZR0123P AzureOfferCode = "MSAZR0123P" AzureOfferCodeMSAZR0124P AzureOfferCode = "MSAZR0124P" AzureOfferCodeMSAZR0125P AzureOfferCode = "MSAZR0125P" AzureOfferCodeMSAZR0126P AzureOfferCode = "MSAZR0126P" AzureOfferCodeMSAZR0127P AzureOfferCode = "MSAZR0127P" AzureOfferCodeMSAZR0128P AzureOfferCode = "MSAZR0128P" AzureOfferCodeMSAZR0129P AzureOfferCode = "MSAZR0129P" AzureOfferCodeMSAZR0130P AzureOfferCode = "MSAZR0130P" AzureOfferCodeMSAZR0144P AzureOfferCode = "MSAZR0144P" AzureOfferCodeMSAZR0148P AzureOfferCode = "MSAZR0148P" AzureOfferCodeMSAZR0149P AzureOfferCode = "MSAZR0149P" AzureOfferCodeMSAZRDE0003P AzureOfferCode = "MSAZRDE0003P" AzureOfferCodeMSAZRDE0044P AzureOfferCode = "MSAZRDE0044P" AzureOfferCodeMSAZRUSGOV0003P AzureOfferCode = "MSAZRUSGOV0003P" AzureOfferCodeMSMCAZR0044P AzureOfferCode = "MSMCAZR0044P" AzureOfferCodeMSMCAZR0059P AzureOfferCode = "MSMCAZR0059P" AzureOfferCodeMSMCAZR0060P AzureOfferCode = "MSMCAZR0060P" AzureOfferCodeMSMCAZR0063P AzureOfferCode = "MSMCAZR0063P" AzureOfferCodeMSMCAZR0120P AzureOfferCode = "MSMCAZR0120P" AzureOfferCodeMSMCAZR0121P AzureOfferCode = "MSMCAZR0121P" AzureOfferCodeMSMCAZR0125P AzureOfferCode = "MSMCAZR0125P" AzureOfferCodeMSMCAZR0128P AzureOfferCode = "MSMCAZR0128P" AzureOfferCodeUnknown AzureOfferCode = "Unknown" )
func PossibleAzureOfferCodeValues ¶
func PossibleAzureOfferCodeValues() []AzureOfferCode
PossibleAzureOfferCodeValues returns the possible values for the AzureOfferCode const type.
type AzurePricingTier ¶
type AzurePricingTier string
AzurePricingTier - Pricing tier for Size evaluation.
const ( AzurePricingTierBasic AzurePricingTier = "Basic" AzurePricingTierStandard AzurePricingTier = "Standard" )
func PossibleAzurePricingTierValues ¶
func PossibleAzurePricingTierValues() []AzurePricingTier
PossibleAzurePricingTierValues returns the possible values for the AzurePricingTier const type.
type AzureStorageRedundancy ¶
type AzureStorageRedundancy string
AzureStorageRedundancy - Storage Redundancy type offered by Azure.
const ( AzureStorageRedundancyGeoRedundant AzureStorageRedundancy = "GeoRedundant" AzureStorageRedundancyLocallyRedundant AzureStorageRedundancy = "LocallyRedundant" AzureStorageRedundancyReadAccessGeoRedundant AzureStorageRedundancy = "ReadAccessGeoRedundant" AzureStorageRedundancyUnknown AzureStorageRedundancy = "Unknown" AzureStorageRedundancyZoneRedundant AzureStorageRedundancy = "ZoneRedundant" )
func PossibleAzureStorageRedundancyValues ¶
func PossibleAzureStorageRedundancyValues() []AzureStorageRedundancy
PossibleAzureStorageRedundancyValues returns the possible values for the AzureStorageRedundancy const type.
type AzureVMFamily ¶
type AzureVMFamily string
AzureVMFamily - Azure VM family.
const ( AzureVMFamilyAv2Series AzureVMFamily = "Av2_series" AzureVMFamilyBasicA0A4 AzureVMFamily = "Basic_A0_A4" AzureVMFamilyDCSeries AzureVMFamily = "DC_Series" AzureVMFamilyDSSeries AzureVMFamily = "DS_series" AzureVMFamilyDSeries AzureVMFamily = "D_series" AzureVMFamilyDSv2Series AzureVMFamily = "DSv2_series" AzureVMFamilyDsv3Series AzureVMFamily = "Dsv3_series" AzureVMFamilyDv2Series AzureVMFamily = "Dv2_series" AzureVMFamilyDv3Series AzureVMFamily = "Dv3_series" AzureVMFamilyEsv3Series AzureVMFamily = "Esv3_series" AzureVMFamilyEv3Series AzureVMFamily = "Ev3_series" AzureVMFamilyFSeries AzureVMFamily = "F_series" AzureVMFamilyFsSeries AzureVMFamily = "Fs_series" AzureVMFamilyFsv2Series AzureVMFamily = "Fsv2_series" AzureVMFamilyGSSeries AzureVMFamily = "GS_series" AzureVMFamilyGSeries AzureVMFamily = "G_series" AzureVMFamilyHSeries AzureVMFamily = "H_series" AzureVMFamilyLsSeries AzureVMFamily = "Ls_series" AzureVMFamilyMSeries AzureVMFamily = "M_series" AzureVMFamilyStandardA0A7 AzureVMFamily = "Standard_A0_A7" AzureVMFamilyStandardA8A11 AzureVMFamily = "Standard_A8_A11" AzureVMFamilyUnknown AzureVMFamily = "Unknown" )
func PossibleAzureVMFamilyValues ¶
func PossibleAzureVMFamilyValues() []AzureVMFamily
PossibleAzureVMFamilyValues returns the possible values for the AzureVMFamily const type.
type AzureVMSize ¶
type AzureVMSize string
AzureVMSize - Recommended Azure size for this machine.
const ( AzureVMSizeBasicA0 AzureVMSize = "Basic_A0" AzureVMSizeBasicA1 AzureVMSize = "Basic_A1" AzureVMSizeBasicA2 AzureVMSize = "Basic_A2" AzureVMSizeBasicA3 AzureVMSize = "Basic_A3" AzureVMSizeBasicA4 AzureVMSize = "Basic_A4" AzureVMSizeStandardA0 AzureVMSize = "Standard_A0" AzureVMSizeStandardA1 AzureVMSize = "Standard_A1" AzureVMSizeStandardA10 AzureVMSize = "Standard_A10" AzureVMSizeStandardA11 AzureVMSize = "Standard_A11" AzureVMSizeStandardA1V2 AzureVMSize = "Standard_A1_v2" AzureVMSizeStandardA2 AzureVMSize = "Standard_A2" AzureVMSizeStandardA2MV2 AzureVMSize = "Standard_A2m_v2" AzureVMSizeStandardA2V2 AzureVMSize = "Standard_A2_v2" AzureVMSizeStandardA3 AzureVMSize = "Standard_A3" AzureVMSizeStandardA4 AzureVMSize = "Standard_A4" AzureVMSizeStandardA4MV2 AzureVMSize = "Standard_A4m_v2" AzureVMSizeStandardA4V2 AzureVMSize = "Standard_A4_v2" AzureVMSizeStandardA5 AzureVMSize = "Standard_A5" AzureVMSizeStandardA6 AzureVMSize = "Standard_A6" AzureVMSizeStandardA7 AzureVMSize = "Standard_A7" AzureVMSizeStandardA8 AzureVMSize = "Standard_A8" AzureVMSizeStandardA8MV2 AzureVMSize = "Standard_A8m_v2" AzureVMSizeStandardA8V2 AzureVMSize = "Standard_A8_v2" AzureVMSizeStandardA9 AzureVMSize = "Standard_A9" AzureVMSizeStandardD1 AzureVMSize = "Standard_D1" AzureVMSizeStandardD11 AzureVMSize = "Standard_D11" AzureVMSizeStandardD11V2 AzureVMSize = "Standard_D11_v2" AzureVMSizeStandardD12 AzureVMSize = "Standard_D12" AzureVMSizeStandardD12V2 AzureVMSize = "Standard_D12_v2" AzureVMSizeStandardD13 AzureVMSize = "Standard_D13" AzureVMSizeStandardD13V2 AzureVMSize = "Standard_D13_v2" AzureVMSizeStandardD14 AzureVMSize = "Standard_D14" AzureVMSizeStandardD14V2 AzureVMSize = "Standard_D14_v2" AzureVMSizeStandardD15V2 AzureVMSize = "Standard_D15_v2" AzureVMSizeStandardD16SV3 AzureVMSize = "Standard_D16s_v3" AzureVMSizeStandardD16V3 AzureVMSize = "Standard_D16_v3" AzureVMSizeStandardD1V2 AzureVMSize = "Standard_D1_v2" AzureVMSizeStandardD2 AzureVMSize = "Standard_D2" AzureVMSizeStandardD2SV3 AzureVMSize = "Standard_D2s_v3" AzureVMSizeStandardD2V2 AzureVMSize = "Standard_D2_v2" AzureVMSizeStandardD2V3 AzureVMSize = "Standard_D2_v3" AzureVMSizeStandardD3 AzureVMSize = "Standard_D3" AzureVMSizeStandardD32SV3 AzureVMSize = "Standard_D32s_v3" AzureVMSizeStandardD32V3 AzureVMSize = "Standard_D32_v3" AzureVMSizeStandardD3V2 AzureVMSize = "Standard_D3_v2" AzureVMSizeStandardD4 AzureVMSize = "Standard_D4" AzureVMSizeStandardD4SV3 AzureVMSize = "Standard_D4s_v3" AzureVMSizeStandardD4V2 AzureVMSize = "Standard_D4_v2" AzureVMSizeStandardD4V3 AzureVMSize = "Standard_D4_v3" AzureVMSizeStandardD5V2 AzureVMSize = "Standard_D5_v2" AzureVMSizeStandardD64SV3 AzureVMSize = "Standard_D64s_v3" AzureVMSizeStandardD64V3 AzureVMSize = "Standard_D64_v3" AzureVMSizeStandardD8SV3 AzureVMSize = "Standard_D8s_v3" AzureVMSizeStandardD8V3 AzureVMSize = "Standard_D8_v3" AzureVMSizeStandardDS1 AzureVMSize = "Standard_DS1" AzureVMSizeStandardDS11 AzureVMSize = "Standard_DS11" AzureVMSizeStandardDS11V2 AzureVMSize = "Standard_DS11_v2" AzureVMSizeStandardDS12 AzureVMSize = "Standard_DS12" AzureVMSizeStandardDS12V2 AzureVMSize = "Standard_DS12_v2" AzureVMSizeStandardDS13 AzureVMSize = "Standard_DS13" AzureVMSizeStandardDS13V2 AzureVMSize = "Standard_DS13_v2" AzureVMSizeStandardDS14 AzureVMSize = "Standard_DS14" AzureVMSizeStandardDS14V2 AzureVMSize = "Standard_DS14_v2" AzureVMSizeStandardDS15V2 AzureVMSize = "Standard_DS15_v2" AzureVMSizeStandardDS1V2 AzureVMSize = "Standard_DS1_v2" AzureVMSizeStandardDS2 AzureVMSize = "Standard_DS2" AzureVMSizeStandardDS2V2 AzureVMSize = "Standard_DS2_v2" AzureVMSizeStandardDS3 AzureVMSize = "Standard_DS3" AzureVMSizeStandardDS3V2 AzureVMSize = "Standard_DS3_v2" AzureVMSizeStandardDS4 AzureVMSize = "Standard_DS4" AzureVMSizeStandardDS4V2 AzureVMSize = "Standard_DS4_v2" AzureVMSizeStandardDS5V2 AzureVMSize = "Standard_DS5_v2" AzureVMSizeStandardE16SV3 AzureVMSize = "Standard_E16s_v3" AzureVMSizeStandardE16V3 AzureVMSize = "Standard_E16_v3" AzureVMSizeStandardE2SV3 AzureVMSize = "Standard_E2s_v3" AzureVMSizeStandardE2V3 AzureVMSize = "Standard_E2_v3" AzureVMSizeStandardE32SV3 AzureVMSize = "Standard_E32s_v3" AzureVMSizeStandardE32V3 AzureVMSize = "Standard_E32_v3" AzureVMSizeStandardE4SV3 AzureVMSize = "Standard_E4s_v3" AzureVMSizeStandardE4V3 AzureVMSize = "Standard_E4_v3" AzureVMSizeStandardE64SV3 AzureVMSize = "Standard_E64s_v3" AzureVMSizeStandardE64V3 AzureVMSize = "Standard_E64_v3" AzureVMSizeStandardE8SV3 AzureVMSize = "Standard_E8s_v3" AzureVMSizeStandardE8V3 AzureVMSize = "Standard_E8_v3" AzureVMSizeStandardF1 AzureVMSize = "Standard_F1" AzureVMSizeStandardF16 AzureVMSize = "Standard_F16" AzureVMSizeStandardF16S AzureVMSize = "Standard_F16s" AzureVMSizeStandardF16SV2 AzureVMSize = "Standard_F16s_v2" AzureVMSizeStandardF1S AzureVMSize = "Standard_F1s" AzureVMSizeStandardF2 AzureVMSize = "Standard_F2" AzureVMSizeStandardF2S AzureVMSize = "Standard_F2s" AzureVMSizeStandardF2SV2 AzureVMSize = "Standard_F2s_v2" AzureVMSizeStandardF32SV2 AzureVMSize = "Standard_F32s_v2" AzureVMSizeStandardF4 AzureVMSize = "Standard_F4" AzureVMSizeStandardF4S AzureVMSize = "Standard_F4s" AzureVMSizeStandardF4SV2 AzureVMSize = "Standard_F4s_v2" AzureVMSizeStandardF64SV2 AzureVMSize = "Standard_F64s_v2" AzureVMSizeStandardF72SV2 AzureVMSize = "Standard_F72s_v2" AzureVMSizeStandardF8 AzureVMSize = "Standard_F8" AzureVMSizeStandardF8S AzureVMSize = "Standard_F8s" AzureVMSizeStandardF8SV2 AzureVMSize = "Standard_F8s_v2" AzureVMSizeStandardG1 AzureVMSize = "Standard_G1" AzureVMSizeStandardG2 AzureVMSize = "Standard_G2" AzureVMSizeStandardG3 AzureVMSize = "Standard_G3" AzureVMSizeStandardG4 AzureVMSize = "Standard_G4" AzureVMSizeStandardG5 AzureVMSize = "Standard_G5" AzureVMSizeStandardGS1 AzureVMSize = "Standard_GS1" AzureVMSizeStandardGS2 AzureVMSize = "Standard_GS2" AzureVMSizeStandardGS3 AzureVMSize = "Standard_GS3" AzureVMSizeStandardGS4 AzureVMSize = "Standard_GS4" AzureVMSizeStandardGS5 AzureVMSize = "Standard_GS5" AzureVMSizeStandardH16 AzureVMSize = "Standard_H16" AzureVMSizeStandardH16M AzureVMSize = "Standard_H16m" AzureVMSizeStandardH16Mr AzureVMSize = "Standard_H16mr" AzureVMSizeStandardH16R AzureVMSize = "Standard_H16r" AzureVMSizeStandardH8 AzureVMSize = "Standard_H8" AzureVMSizeStandardH8M AzureVMSize = "Standard_H8m" AzureVMSizeStandardL16S AzureVMSize = "Standard_L16s" AzureVMSizeStandardL32S AzureVMSize = "Standard_L32s" AzureVMSizeStandardL4S AzureVMSize = "Standard_L4s" AzureVMSizeStandardL8S AzureVMSize = "Standard_L8s" AzureVMSizeStandardM128Ms AzureVMSize = "Standard_M128ms" AzureVMSizeStandardM128S AzureVMSize = "Standard_M128s" AzureVMSizeStandardM64Ms AzureVMSize = "Standard_M64ms" AzureVMSizeStandardM64S AzureVMSize = "Standard_M64s" AzureVMSizeUnknown AzureVMSize = "Unknown" )
func PossibleAzureVMSizeValues ¶
func PossibleAzureVMSizeValues() []AzureVMSize
PossibleAzureVMSizeValues returns the possible values for the AzureVMSize const type.
type AzureVMSuitabilityDetail ¶
type AzureVMSuitabilityDetail string
AzureVMSuitabilityDetail - If machine is not suitable for cloud, this explains the reasons.
const ( AzureVMSuitabilityDetailCannotReportBandwidthCosts AzureVMSuitabilityDetail = "CannotReportBandwidthCosts" AzureVMSuitabilityDetailCannotReportComputeCost AzureVMSuitabilityDetail = "CannotReportComputeCost" AzureVMSuitabilityDetailCannotReportStorageCost AzureVMSuitabilityDetail = "CannotReportStorageCost" AzureVMSuitabilityDetailNone AzureVMSuitabilityDetail = "None" AzureVMSuitabilityDetailPercentageOfCoresUtilizedMissing AzureVMSuitabilityDetail = "PercentageOfCoresUtilizedMissing" AzureVMSuitabilityDetailPercentageOfCoresUtilizedOutOfRange AzureVMSuitabilityDetail = "PercentageOfCoresUtilizedOutOfRange" AzureVMSuitabilityDetailPercentageOfMemoryUtilizedMissing AzureVMSuitabilityDetail = "PercentageOfMemoryUtilizedMissing" AzureVMSuitabilityDetailPercentageOfMemoryUtilizedOutOfRange AzureVMSuitabilityDetail = "PercentageOfMemoryUtilizedOutOfRange" AzureVMSuitabilityDetailRecommendedSizeHasLessNetworkAdapters AzureVMSuitabilityDetail = "RecommendedSizeHasLessNetworkAdapters" )
func PossibleAzureVMSuitabilityDetailValues ¶
func PossibleAzureVMSuitabilityDetailValues() []AzureVMSuitabilityDetail
PossibleAzureVMSuitabilityDetailValues returns the possible values for the AzureVMSuitabilityDetail const type.
type AzureVMSuitabilityExplanation ¶
type AzureVMSuitabilityExplanation string
AzureVMSuitabilityExplanation - If machine is not ready to be migrated, this explains the reasons and mitigation steps.
const ( AzureVMSuitabilityExplanationBootTypeNotSupported AzureVMSuitabilityExplanation = "BootTypeNotSupported" AzureVMSuitabilityExplanationBootTypeUnknown AzureVMSuitabilityExplanation = "BootTypeUnknown" AzureVMSuitabilityExplanationCheckCentOsVersion AzureVMSuitabilityExplanation = "CheckCentOsVersion" AzureVMSuitabilityExplanationCheckCoreOsLinuxVersion AzureVMSuitabilityExplanation = "CheckCoreOsLinuxVersion" AzureVMSuitabilityExplanationCheckDebianLinuxVersion AzureVMSuitabilityExplanation = "CheckDebianLinuxVersion" AzureVMSuitabilityExplanationCheckOpenSuseLinuxVersion AzureVMSuitabilityExplanation = "CheckOpenSuseLinuxVersion" AzureVMSuitabilityExplanationCheckOracleLinuxVersion AzureVMSuitabilityExplanation = "CheckOracleLinuxVersion" AzureVMSuitabilityExplanationCheckRedHatLinuxVersion AzureVMSuitabilityExplanation = "CheckRedHatLinuxVersion" AzureVMSuitabilityExplanationCheckSuseLinuxVersion AzureVMSuitabilityExplanation = "CheckSuseLinuxVersion" AzureVMSuitabilityExplanationCheckUbuntuLinuxVersion AzureVMSuitabilityExplanation = "CheckUbuntuLinuxVersion" AzureVMSuitabilityExplanationCheckWindowsServer2008R2Version AzureVMSuitabilityExplanation = "CheckWindowsServer2008R2Version" AzureVMSuitabilityExplanationEndorsedWithConditionsLinuxDistributions AzureVMSuitabilityExplanation = "EndorsedWithConditionsLinuxDistributions" AzureVMSuitabilityExplanationGuestOperatingSystemArchitectureNotSupported AzureVMSuitabilityExplanation = "GuestOperatingSystemArchitectureNotSupported" AzureVMSuitabilityExplanationGuestOperatingSystemNotSupported AzureVMSuitabilityExplanation = "GuestOperatingSystemNotSupported" AzureVMSuitabilityExplanationGuestOperatingSystemUnknown AzureVMSuitabilityExplanation = "GuestOperatingSystemUnknown" AzureVMSuitabilityExplanationInternalErrorOccurredDuringComputeEvaluation AzureVMSuitabilityExplanation = "InternalErrorOccurredDuringComputeEvaluation" AzureVMSuitabilityExplanationInternalErrorOccurredDuringNetworkEvaluation AzureVMSuitabilityExplanation = "InternalErrorOccurredDuringNetworkEvaluation" AzureVMSuitabilityExplanationInternalErrorOccurredDuringStorageEvaluation AzureVMSuitabilityExplanation = "InternalErrorOccurredDuringStorageEvaluation" AzureVMSuitabilityExplanationMoreDisksThanSupported AzureVMSuitabilityExplanation = "MoreDisksThanSupported" AzureVMSuitabilityExplanationNoGuestOperatingSystemConditionallySupported AzureVMSuitabilityExplanation = "NoGuestOperatingSystemConditionallySupported" AzureVMSuitabilityExplanationNoSuitableVMSizeFound AzureVMSuitabilityExplanation = "NoSuitableVmSizeFound" AzureVMSuitabilityExplanationNoVMSizeForBasicPricingTier AzureVMSuitabilityExplanation = "NoVmSizeForBasicPricingTier" AzureVMSuitabilityExplanationNoVMSizeForSelectedAzureLocation AzureVMSuitabilityExplanation = "NoVmSizeForSelectedAzureLocation" AzureVMSuitabilityExplanationNoVMSizeForSelectedPricingTier AzureVMSuitabilityExplanation = "NoVmSizeForSelectedPricingTier" AzureVMSuitabilityExplanationNoVMSizeForStandardPricingTier AzureVMSuitabilityExplanation = "NoVmSizeForStandardPricingTier" AzureVMSuitabilityExplanationNoVMSizeSupportsNetworkPerformance AzureVMSuitabilityExplanation = "NoVmSizeSupportsNetworkPerformance" AzureVMSuitabilityExplanationNoVMSizeSupportsStoragePerformance AzureVMSuitabilityExplanation = "NoVmSizeSupportsStoragePerformance" AzureVMSuitabilityExplanationNotApplicable AzureVMSuitabilityExplanation = "NotApplicable" AzureVMSuitabilityExplanationOneOrMoreAdaptersNotSuitable AzureVMSuitabilityExplanation = "OneOrMoreAdaptersNotSuitable" AzureVMSuitabilityExplanationOneOrMoreDisksNotSuitable AzureVMSuitabilityExplanation = "OneOrMoreDisksNotSuitable" AzureVMSuitabilityExplanationUnendorsedLinuxDistributions AzureVMSuitabilityExplanation = "UnendorsedLinuxDistributions" AzureVMSuitabilityExplanationUnknown AzureVMSuitabilityExplanation = "Unknown" AzureVMSuitabilityExplanationWindowsClientVersionsConditionallySupported AzureVMSuitabilityExplanation = "WindowsClientVersionsConditionallySupported" AzureVMSuitabilityExplanationWindowsOSNoLongerUnderMSSupport AzureVMSuitabilityExplanation = "WindowsOSNoLongerUnderMSSupport" AzureVMSuitabilityExplanationWindowsServerVersionConditionallySupported AzureVMSuitabilityExplanation = "WindowsServerVersionConditionallySupported" AzureVMSuitabilityExplanationWindowsServerVersionsSupportedWithCaveat AzureVMSuitabilityExplanation = "WindowsServerVersionsSupportedWithCaveat" )
func PossibleAzureVMSuitabilityExplanationValues ¶
func PossibleAzureVMSuitabilityExplanationValues() []AzureVMSuitabilityExplanation
PossibleAzureVMSuitabilityExplanationValues returns the possible values for the AzureVMSuitabilityExplanation const type.
type ClientFactory ¶ added in v1.1.0
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶ added in v1.1.0
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewAssessedMachinesClient ¶ added in v1.1.0
func (c *ClientFactory) NewAssessedMachinesClient() *AssessedMachinesClient
NewAssessedMachinesClient creates a new instance of AssessedMachinesClient.
func (*ClientFactory) NewAssessmentsClient ¶ added in v1.1.0
func (c *ClientFactory) NewAssessmentsClient() *AssessmentsClient
NewAssessmentsClient creates a new instance of AssessmentsClient.
func (*ClientFactory) NewGroupsClient ¶ added in v1.1.0
func (c *ClientFactory) NewGroupsClient() *GroupsClient
NewGroupsClient creates a new instance of GroupsClient.
func (*ClientFactory) NewHyperVCollectorsClient ¶ added in v1.1.0
func (c *ClientFactory) NewHyperVCollectorsClient() *HyperVCollectorsClient
NewHyperVCollectorsClient creates a new instance of HyperVCollectorsClient.
func (*ClientFactory) NewImportCollectorsClient ¶ added in v1.1.0
func (c *ClientFactory) NewImportCollectorsClient() *ImportCollectorsClient
NewImportCollectorsClient creates a new instance of ImportCollectorsClient.
func (*ClientFactory) NewMachinesClient ¶ added in v1.1.0
func (c *ClientFactory) NewMachinesClient() *MachinesClient
NewMachinesClient creates a new instance of MachinesClient.
func (*ClientFactory) NewOperationsClient ¶ added in v1.1.0
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewPrivateEndpointConnectionClient ¶ added in v1.1.0
func (c *ClientFactory) NewPrivateEndpointConnectionClient() *PrivateEndpointConnectionClient
NewPrivateEndpointConnectionClient creates a new instance of PrivateEndpointConnectionClient.
func (*ClientFactory) NewPrivateLinkResourceClient ¶ added in v1.1.0
func (c *ClientFactory) NewPrivateLinkResourceClient() *PrivateLinkResourceClient
NewPrivateLinkResourceClient creates a new instance of PrivateLinkResourceClient.
func (*ClientFactory) NewProjectsClient ¶ added in v1.1.0
func (c *ClientFactory) NewProjectsClient() *ProjectsClient
NewProjectsClient creates a new instance of ProjectsClient.
func (*ClientFactory) NewServerCollectorsClient ¶ added in v1.1.0
func (c *ClientFactory) NewServerCollectorsClient() *ServerCollectorsClient
NewServerCollectorsClient creates a new instance of ServerCollectorsClient.
func (*ClientFactory) NewVMwareCollectorsClient ¶ added in v1.1.0
func (c *ClientFactory) NewVMwareCollectorsClient() *VMwareCollectorsClient
NewVMwareCollectorsClient creates a new instance of VMwareCollectorsClient.
type CloudSuitability ¶
type CloudSuitability string
CloudSuitability - Whether this disk is suitable for Azure.
const ( CloudSuitabilityConditionallySuitable CloudSuitability = "ConditionallySuitable" CloudSuitabilityNotSuitable CloudSuitability = "NotSuitable" CloudSuitabilityReadinessUnknown CloudSuitability = "ReadinessUnknown" CloudSuitabilitySuitable CloudSuitability = "Suitable" CloudSuitabilityUnknown CloudSuitability = "Unknown" )
func PossibleCloudSuitabilityValues ¶
func PossibleCloudSuitabilityValues() []CloudSuitability
PossibleCloudSuitabilityValues returns the possible values for the CloudSuitability const type.
type CollectorAgentProperties ¶
type CollectorAgentProperties struct { SpnDetails *CollectorBodyAgentSpnProperties // READ-ONLY ID *string // READ-ONLY LastHeartbeatUTC *time.Time // READ-ONLY Version *string }
func (CollectorAgentProperties) MarshalJSON ¶
func (c CollectorAgentProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CollectorAgentProperties.
func (*CollectorAgentProperties) UnmarshalJSON ¶
func (c *CollectorAgentProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CollectorAgentProperties.
type CollectorBodyAgentSpnProperties ¶
type CollectorBodyAgentSpnProperties struct { // Application/client Id for the service principal with which the on-premise management/data plane components would communicate // with our Azure services. ApplicationID *string // Intended audience for the service principal. Audience *string // AAD Authority URL which was used to request the token for the service principal. Authority *string // Object Id of the service principal with which the on-premise management/data plane components would communicate with our // Azure services. ObjectID *string // Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our // Azure services. TenantID *string }
func (CollectorBodyAgentSpnProperties) MarshalJSON ¶ added in v1.1.0
func (c CollectorBodyAgentSpnProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CollectorBodyAgentSpnProperties.
func (*CollectorBodyAgentSpnProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *CollectorBodyAgentSpnProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CollectorBodyAgentSpnProperties.
type CollectorProperties ¶
type CollectorProperties struct { AgentProperties *CollectorAgentProperties // The ARM id of the discovery service site. DiscoverySiteID *string // READ-ONLY; Time when this collector was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *string // READ-ONLY; Time when this collector was updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *string }
func (CollectorProperties) MarshalJSON ¶ added in v1.1.0
func (c CollectorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CollectorProperties.
func (*CollectorProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *CollectorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CollectorProperties.
type Currency ¶
type Currency string
Currency - Currency to report prices in.
const ( CurrencyARS Currency = "ARS" CurrencyAUD Currency = "AUD" CurrencyBRL Currency = "BRL" CurrencyCAD Currency = "CAD" CurrencyCHF Currency = "CHF" CurrencyCNY Currency = "CNY" CurrencyDKK Currency = "DKK" CurrencyEUR Currency = "EUR" CurrencyGBP Currency = "GBP" CurrencyHKD Currency = "HKD" CurrencyIDR Currency = "IDR" CurrencyINR Currency = "INR" CurrencyJPY Currency = "JPY" CurrencyKRW Currency = "KRW" CurrencyMXN Currency = "MXN" CurrencyMYR Currency = "MYR" CurrencyNOK Currency = "NOK" CurrencyNZD Currency = "NZD" CurrencyRUB Currency = "RUB" CurrencySAR Currency = "SAR" CurrencySEK Currency = "SEK" CurrencyTRY Currency = "TRY" CurrencyTWD Currency = "TWD" CurrencyUSD Currency = "USD" CurrencyUnknown Currency = "Unknown" CurrencyZAR Currency = "ZAR" )
func PossibleCurrencyValues ¶
func PossibleCurrencyValues() []Currency
PossibleCurrencyValues returns the possible values for the Currency const type.
type Disk ¶
type Disk struct { // READ-ONLY; User friendly name of the disk. DisplayName *string // READ-ONLY; Gigabytes of storage provisioned for this disk. GigabytesAllocated *float64 }
Disk - A disk discovered on a machine.
func (Disk) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Disk.
func (*Disk) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Disk.
type DownloadURL ¶
type DownloadURL struct { // READ-ONLY; Hyperlink to download report. AssessmentReportURL *string // READ-ONLY; Expiry date of download url. ExpirationTime *time.Time }
DownloadURL - Download URL for assessment report.
func (DownloadURL) MarshalJSON ¶ added in v1.1.0
func (d DownloadURL) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DownloadURL.
func (*DownloadURL) UnmarshalJSON ¶
func (d *DownloadURL) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DownloadURL.
type Group ¶
type Group struct { // REQUIRED; Properties of the group. Properties *GroupProperties // For optimistic concurrency control. ETag *string // READ-ONLY; Path reference to this group. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName} ID *string // READ-ONLY; Name of the group. Name *string // READ-ONLY; Type of the object = [Microsoft.Migrate/assessmentProjects/groups]. Type *string }
Group - A group created in a Migration project.
func (Group) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Group.
func (*Group) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Group.
type GroupBodyProperties ¶
type GroupBodyProperties struct { // List of machine names that are part of this group. Machines []*string // Whether to add or remove the machines. OperationType *GroupUpdateOperation }
GroupBodyProperties - Body properties of group update.
func (GroupBodyProperties) MarshalJSON ¶
func (g GroupBodyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GroupBodyProperties.
func (*GroupBodyProperties) UnmarshalJSON ¶ added in v1.1.0
func (g *GroupBodyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GroupBodyProperties.
type GroupProperties ¶
type GroupProperties struct { // The type of group. GroupType *string // READ-ONLY; If the assessments are in running state. AreAssessmentsRunning *bool // READ-ONLY; List of References to Assessments created on this group. Assessments []*string // READ-ONLY; Time when this group was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *time.Time // READ-ONLY; Whether the group has been created and is valid. GroupStatus *GroupStatus // READ-ONLY; Number of machines part of this group. MachineCount *int32 // READ-ONLY; Time when this group was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *time.Time }
GroupProperties - Properties of group resource.
func (GroupProperties) MarshalJSON ¶
func (g GroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GroupProperties.
func (*GroupProperties) UnmarshalJSON ¶
func (g *GroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GroupProperties.
type GroupResultList ¶
type GroupResultList struct { // List of groups. Value []*Group }
GroupResultList - List of groups.
func (GroupResultList) MarshalJSON ¶ added in v1.1.0
func (g GroupResultList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GroupResultList.
func (*GroupResultList) UnmarshalJSON ¶ added in v1.1.0
func (g *GroupResultList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GroupResultList.
type GroupStatus ¶
type GroupStatus string
GroupStatus - Whether the group has been created and is valid.
const ( GroupStatusCompleted GroupStatus = "Completed" GroupStatusCreated GroupStatus = "Created" GroupStatusInvalid GroupStatus = "Invalid" GroupStatusRunning GroupStatus = "Running" GroupStatusUpdated GroupStatus = "Updated" )
func PossibleGroupStatusValues ¶
func PossibleGroupStatusValues() []GroupStatus
PossibleGroupStatusValues returns the possible values for the GroupStatus const type.
type GroupUpdateOperation ¶
type GroupUpdateOperation string
GroupUpdateOperation - Whether to add or remove the machines.
const ( GroupUpdateOperationAdd GroupUpdateOperation = "Add" GroupUpdateOperationRemove GroupUpdateOperation = "Remove" )
func PossibleGroupUpdateOperationValues ¶
func PossibleGroupUpdateOperationValues() []GroupUpdateOperation
PossibleGroupUpdateOperationValues returns the possible values for the GroupUpdateOperation const type.
type GroupsClient ¶
type GroupsClient struct {
// contains filtered or unexported fields
}
GroupsClient contains the methods for the Groups group. Don't use this type directly, use NewGroupsClient() instead.
func NewGroupsClient ¶
func NewGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GroupsClient, error)
NewGroupsClient creates a new instance of GroupsClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*GroupsClient) Create ¶
func (client *GroupsClient) Create(ctx context.Context, resourceGroupName string, projectName string, groupName string, options *GroupsClientCreateOptions) (GroupsClientCreateResponse, 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. This operation is Idempotent. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - GroupsClientCreateOptions contains the optional parameters for the GroupsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Groups_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGroupsClient().Create(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Group2", &armmigrate.GroupsClientCreateOptions{Group: &armmigrate.Group{ ETag: to.Ptr("\"1e000c2c-0000-0d00-0000-5cdaa4190000\""), Properties: &armmigrate.GroupProperties{}, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Group = armmigrate.Group{ // Name: to.Ptr("Group2"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups"), // ETag: to.Ptr("\"1e000c2c-0000-0d00-0000-5cdaa4190000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Group2"), // Properties: &armmigrate.GroupProperties{ // AreAssessmentsRunning: to.Ptr(false), // Assessments: []*string{ // }, // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:56.157Z"); return t}()), // GroupStatus: to.Ptr(armmigrate.GroupStatusCompleted), // MachineCount: to.Ptr[int32](0), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:49.548Z"); return t}()), // }, // } }
Output:
func (*GroupsClient) Delete ¶
func (client *GroupsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, groupName string, options *GroupsClientDeleteOptions) (GroupsClientDeleteResponse, 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. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - GroupsClientDeleteOptions contains the optional parameters for the GroupsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Groups_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewGroupsClient().Delete(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Test1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*GroupsClient) Get ¶
func (client *GroupsClient) Get(ctx context.Context, resourceGroupName string, projectName string, groupName string, options *GroupsClientGetOptions) (GroupsClientGetResponse, 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. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - GroupsClientGetOptions contains the optional parameters for the GroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Groups_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGroupsClient().Get(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Test1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Group = armmigrate.Group{ // Name: to.Ptr("Test1"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups"), // ETag: to.Ptr("\"21009c31-0000-0d00-0000-5cd585ad0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1"), // Properties: &armmigrate.GroupProperties{ // AreAssessmentsRunning: to.Ptr(false), // Assessments: []*string{ // to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14")}, // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:07.736Z"); return t}()), // GroupStatus: to.Ptr(armmigrate.GroupStatusCompleted), // MachineCount: to.Ptr[int32](26), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-10T14:07:41.752Z"); return t}()), // }, // } }
Output:
func (*GroupsClient) NewListByProjectPager ¶
func (client *GroupsClient) NewListByProjectPager(resourceGroupName string, projectName string, options *GroupsClientListByProjectOptions) *runtime.Pager[GroupsClientListByProjectResponse]
NewListByProjectPager - Get all groups created in the project. Returns a json array of objects of type 'group' as specified in the Models section.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - GroupsClientListByProjectOptions contains the optional parameters for the GroupsClient.NewListByProjectPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Groups_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewGroupsClient().NewListByProjectPager("abgoyal-westEurope", "abgoyalWEselfhostb72bproject", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.GroupResultList = armmigrate.GroupResultList{ // Value: []*armmigrate.Group{ // { // Name: to.Ptr("Test1"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups"), // ETag: to.Ptr("\"21009c31-0000-0d00-0000-5cd585ad0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1"), // Properties: &armmigrate.GroupProperties{ // AreAssessmentsRunning: to.Ptr(false), // Assessments: []*string{ // to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14")}, // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:07.736Z"); return t}()), // GroupStatus: to.Ptr(armmigrate.GroupStatusCompleted), // MachineCount: to.Ptr[int32](26), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-10T14:07:41.752Z"); return t}()), // }, // }, // { // Name: to.Ptr("Group2"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups"), // ETag: to.Ptr("\"1e000c2c-0000-0d00-0000-5cdaa4190000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Group2"), // Properties: &armmigrate.GroupProperties{ // AreAssessmentsRunning: to.Ptr(false), // Assessments: []*string{ // to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Group2/assessments/assessment_5_9_2019_17_0_56"), // to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Group2/assessments/assessment_5_14_2019_16_48_47")}, // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:56.157Z"); return t}()), // GroupStatus: to.Ptr(armmigrate.GroupStatusCompleted), // MachineCount: to.Ptr[int32](5), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:49.548Z"); return t}()), // }, // }}, // } } }
Output:
func (*GroupsClient) UpdateMachines ¶
func (client *GroupsClient) UpdateMachines(ctx context.Context, resourceGroupName string, projectName string, groupName string, options *GroupsClientUpdateMachinesOptions) (GroupsClientUpdateMachinesResponse, error)
UpdateMachines - Update machines in group by adding or removing machines. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - GroupsClientUpdateMachinesOptions contains the optional parameters for the GroupsClient.UpdateMachines method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Groups_UpdateMachines.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGroupsClient().UpdateMachines(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "Group2", &armmigrate.GroupsClientUpdateMachinesOptions{GroupUpdateProperties: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Group = armmigrate.Group{ // Name: to.Ptr("Group2"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/groups"), // ETag: to.Ptr("\"1e000c2c-0000-0d00-0000-5cdaa4190000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1"), // Properties: &armmigrate.GroupProperties{ // AreAssessmentsRunning: to.Ptr(false), // Assessments: []*string{ // to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14")}, // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:52:07.736Z"); return t}()), // GroupStatus: to.Ptr(armmigrate.GroupStatusCompleted), // MachineCount: to.Ptr[int32](26), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-10T14:07:41.752Z"); return t}()), // }, // } }
Output:
type GroupsClientCreateOptions ¶
type GroupsClientCreateOptions struct { // New or Updated Group object. Group *Group }
GroupsClientCreateOptions contains the optional parameters for the GroupsClient.Create method.
type GroupsClientCreateResponse ¶
type GroupsClientCreateResponse struct { // A group created in a Migration project. Group // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
GroupsClientCreateResponse contains the response from method GroupsClient.Create.
type GroupsClientDeleteOptions ¶
type GroupsClientDeleteOptions struct { }
GroupsClientDeleteOptions contains the optional parameters for the GroupsClient.Delete method.
type GroupsClientDeleteResponse ¶
type GroupsClientDeleteResponse struct { // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
GroupsClientDeleteResponse contains the response from method GroupsClient.Delete.
type GroupsClientGetOptions ¶
type GroupsClientGetOptions struct { }
GroupsClientGetOptions contains the optional parameters for the GroupsClient.Get method.
type GroupsClientGetResponse ¶
type GroupsClientGetResponse struct { // A group created in a Migration project. Group // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
GroupsClientGetResponse contains the response from method GroupsClient.Get.
type GroupsClientListByProjectOptions ¶
type GroupsClientListByProjectOptions struct { }
GroupsClientListByProjectOptions contains the optional parameters for the GroupsClient.NewListByProjectPager method.
type GroupsClientListByProjectResponse ¶
type GroupsClientListByProjectResponse struct { // List of groups. GroupResultList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
GroupsClientListByProjectResponse contains the response from method GroupsClient.NewListByProjectPager.
type GroupsClientUpdateMachinesOptions ¶
type GroupsClientUpdateMachinesOptions struct { // Machines list to be added or removed from group. GroupUpdateProperties *UpdateGroupBody }
GroupsClientUpdateMachinesOptions contains the optional parameters for the GroupsClient.UpdateMachines method.
type GroupsClientUpdateMachinesResponse ¶
type GroupsClientUpdateMachinesResponse struct { // A group created in a Migration project. Group // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
GroupsClientUpdateMachinesResponse contains the response from method GroupsClient.UpdateMachines.
type HyperVCollector ¶
type HyperVCollector struct { ETag *string Properties *CollectorProperties // READ-ONLY ID *string // READ-ONLY Name *string // READ-ONLY Type *string }
func (HyperVCollector) MarshalJSON ¶ added in v1.1.0
func (h HyperVCollector) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVCollector.
func (*HyperVCollector) UnmarshalJSON ¶ added in v1.1.0
func (h *HyperVCollector) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVCollector.
type HyperVCollectorList ¶
type HyperVCollectorList struct { // List of Hyper-V collectors. Value []*HyperVCollector }
HyperVCollectorList - List of Hyper-V collectors.
func (HyperVCollectorList) MarshalJSON ¶ added in v1.1.0
func (h HyperVCollectorList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVCollectorList.
func (*HyperVCollectorList) UnmarshalJSON ¶ added in v1.1.0
func (h *HyperVCollectorList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVCollectorList.
type HyperVCollectorsClient ¶
type HyperVCollectorsClient struct {
// contains filtered or unexported fields
}
HyperVCollectorsClient contains the methods for the HyperVCollectors group. Don't use this type directly, use NewHyperVCollectorsClient() instead.
func NewHyperVCollectorsClient ¶
func NewHyperVCollectorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*HyperVCollectorsClient, error)
NewHyperVCollectorsClient creates a new instance of HyperVCollectorsClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*HyperVCollectorsClient) Create ¶
func (client *HyperVCollectorsClient) Create(ctx context.Context, resourceGroupName string, projectName string, hyperVCollectorName string, options *HyperVCollectorsClientCreateOptions) (HyperVCollectorsClientCreateResponse, error)
Create - Create or Update Hyper-V collector If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- hyperVCollectorName - Unique name of a Hyper-V collector within a project.
- options - HyperVCollectorsClientCreateOptions contains the optional parameters for the HyperVCollectorsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/HyperVCollectors_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewHyperVCollectorsClient().Create(ctx, "contosoithyperv", "migrateprojectce73project", "migrateprojectce73collector", &armmigrate.HyperVCollectorsClientCreateOptions{CollectorBody: &armmigrate.HyperVCollector{ ETag: to.Ptr("\"00000981-0000-0300-0000-5d74cd5f0000\""), Properties: &armmigrate.CollectorProperties{ AgentProperties: &armmigrate.CollectorAgentProperties{ SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ ApplicationID: to.Ptr("827f1053-44dc-439f-b832-05416dcce12b"), Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/migrateprojectce73agentauthaadapp"), Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), ObjectID: to.Ptr("be75098e-c0fc-4ac4-98c7-282ebbcf8370"), TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), }, }, DiscoverySiteID: to.Ptr("/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/ContosoITHyperV/providers/Microsoft.OffAzure/HyperVSites/migrateprojectce73site"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.HyperVCollector = armmigrate.HyperVCollector{ // Name: to.Ptr("migrateprojectce73collector"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/hypervcollectors"), // ETag: to.Ptr("\"00000981-0000-0300-0000-5d74cd5f0000\""), // ID: to.Ptr("/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/contosoithyperv/providers/Microsoft.Migrate/assessmentprojects/migrateprojectce73project/hypervcollectors/migrateprojectce73collector"), // Properties: &armmigrate.CollectorProperties{ // AgentProperties: &armmigrate.CollectorAgentProperties{ // ID: to.Ptr("d86c7d5a-2103-5157-bb20-9026b75e5de8"), // LastHeartbeatUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-08T09:43:59.057Z"); return t}()), // SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ // ApplicationID: to.Ptr("827f1053-44dc-439f-b832-05416dcce12b"), // Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/migrateprojectce73agentauthaadapp"), // Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), // ObjectID: to.Ptr("be75098e-c0fc-4ac4-98c7-282ebbcf8370"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Version: to.Ptr("1.0.8.218"), // }, // CreatedTimestamp: to.Ptr("2019-04-10T10:22:51.6271816Z"), // DiscoverySiteID: to.Ptr("/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/ContosoITHyperV/providers/Microsoft.OffAzure/HyperVSites/migrateprojectce73site"), // UpdatedTimestamp: to.Ptr("2019-09-08T09:43:59.0573145Z"), // }, // } }
Output:
func (*HyperVCollectorsClient) Delete ¶
func (client *HyperVCollectorsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, hyperVCollectorName string, options *HyperVCollectorsClientDeleteOptions) (HyperVCollectorsClientDeleteResponse, error)
Delete - Delete a Hyper-V collector from the project. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- hyperVCollectorName - Unique name of a Hyper-V collector within a project.
- options - HyperVCollectorsClientDeleteOptions contains the optional parameters for the HyperVCollectorsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/HyperVCollectors_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewHyperVCollectorsClient().Delete(ctx, "contosoithyperv", "migrateprojectce73project", "migrateprojectce73collector", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*HyperVCollectorsClient) Get ¶
func (client *HyperVCollectorsClient) Get(ctx context.Context, resourceGroupName string, projectName string, hyperVCollectorName string, options *HyperVCollectorsClientGetOptions) (HyperVCollectorsClientGetResponse, error)
Get - Get a Hyper-V collector. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- hyperVCollectorName - Unique name of a Hyper-V collector within a project.
- options - HyperVCollectorsClientGetOptions contains the optional parameters for the HyperVCollectorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/HyperVCollectors_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewHyperVCollectorsClient().Get(ctx, "contosoithyperv", "migrateprojectce73project", "migrateprojectce73collector", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.HyperVCollector = armmigrate.HyperVCollector{ // Name: to.Ptr("migrateprojectce73collector"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/hypervcollectors"), // ETag: to.Ptr("\"00000981-0000-0300-0000-5d74cd5f0000\""), // ID: to.Ptr("/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/contosoithyperv/providers/Microsoft.Migrate/assessmentprojects/migrateprojectce73project/hypervcollectors/migrateprojectce73collector"), // Properties: &armmigrate.CollectorProperties{ // AgentProperties: &armmigrate.CollectorAgentProperties{ // ID: to.Ptr("d86c7d5a-2103-5157-bb20-9026b75e5de8"), // LastHeartbeatUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-08T09:43:59.057Z"); return t}()), // SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ // ApplicationID: to.Ptr("827f1053-44dc-439f-b832-05416dcce12b"), // Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/migrateprojectce73agentauthaadapp"), // Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), // ObjectID: to.Ptr("be75098e-c0fc-4ac4-98c7-282ebbcf8370"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Version: to.Ptr("1.0.8.218"), // }, // CreatedTimestamp: to.Ptr("2019-04-10T10:22:51.6271816Z"), // DiscoverySiteID: to.Ptr("/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/ContosoITHyperV/providers/Microsoft.OffAzure/HyperVSites/migrateprojectce73site"), // UpdatedTimestamp: to.Ptr("2019-09-08T09:43:59.0573145Z"), // }, // } }
Output:
func (*HyperVCollectorsClient) NewListByProjectPager ¶
func (client *HyperVCollectorsClient) NewListByProjectPager(resourceGroupName string, projectName string, options *HyperVCollectorsClientListByProjectOptions) *runtime.Pager[HyperVCollectorsClientListByProjectResponse]
NewListByProjectPager - Get a list of Hyper-V collector.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - HyperVCollectorsClientListByProjectOptions contains the optional parameters for the HyperVCollectorsClient.NewListByProjectPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/HyperVCollectors_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewHyperVCollectorsClient().NewListByProjectPager("contosoithyperv", "migrateprojectce73project", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.HyperVCollectorList = armmigrate.HyperVCollectorList{ // Value: []*armmigrate.HyperVCollector{ // { // Name: to.Ptr("migrateprojectce73collector"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/hypervcollectors"), // ETag: to.Ptr("\"00000981-0000-0300-0000-5d74cd5f0000\""), // ID: to.Ptr("/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/contosoithyperv/providers/Microsoft.Migrate/assessmentprojects/migrateprojectce73project/hypervcollectors/migrateprojectce73collector"), // Properties: &armmigrate.CollectorProperties{ // AgentProperties: &armmigrate.CollectorAgentProperties{ // ID: to.Ptr("d86c7d5a-2103-5157-bb20-9026b75e5de8"), // LastHeartbeatUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-08T09:43:59.057Z"); return t}()), // SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ // ApplicationID: to.Ptr("827f1053-44dc-439f-b832-05416dcce12b"), // Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/migrateprojectce73agentauthaadapp"), // Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), // ObjectID: to.Ptr("be75098e-c0fc-4ac4-98c7-282ebbcf8370"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Version: to.Ptr("1.0.8.218"), // }, // CreatedTimestamp: to.Ptr("2019-04-10T10:22:51.6271816Z"), // DiscoverySiteID: to.Ptr("/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/ContosoITHyperV/providers/Microsoft.OffAzure/HyperVSites/migrateprojectce73site"), // UpdatedTimestamp: to.Ptr("2019-09-08T09:43:59.0573145Z"), // }, // }}, // } } }
Output:
type HyperVCollectorsClientCreateOptions ¶
type HyperVCollectorsClientCreateOptions struct { // New or Updated Hyper-V collector. CollectorBody *HyperVCollector }
HyperVCollectorsClientCreateOptions contains the optional parameters for the HyperVCollectorsClient.Create method.
type HyperVCollectorsClientCreateResponse ¶
type HyperVCollectorsClientCreateResponse struct { HyperVCollector // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
HyperVCollectorsClientCreateResponse contains the response from method HyperVCollectorsClient.Create.
type HyperVCollectorsClientDeleteOptions ¶
type HyperVCollectorsClientDeleteOptions struct { }
HyperVCollectorsClientDeleteOptions contains the optional parameters for the HyperVCollectorsClient.Delete method.
type HyperVCollectorsClientDeleteResponse ¶
type HyperVCollectorsClientDeleteResponse struct { // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
HyperVCollectorsClientDeleteResponse contains the response from method HyperVCollectorsClient.Delete.
type HyperVCollectorsClientGetOptions ¶
type HyperVCollectorsClientGetOptions struct { }
HyperVCollectorsClientGetOptions contains the optional parameters for the HyperVCollectorsClient.Get method.
type HyperVCollectorsClientGetResponse ¶
type HyperVCollectorsClientGetResponse struct { HyperVCollector // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
HyperVCollectorsClientGetResponse contains the response from method HyperVCollectorsClient.Get.
type HyperVCollectorsClientListByProjectOptions ¶
type HyperVCollectorsClientListByProjectOptions struct { }
HyperVCollectorsClientListByProjectOptions contains the optional parameters for the HyperVCollectorsClient.NewListByProjectPager method.
type HyperVCollectorsClientListByProjectResponse ¶
type HyperVCollectorsClientListByProjectResponse struct { // List of Hyper-V collectors. HyperVCollectorList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
HyperVCollectorsClientListByProjectResponse contains the response from method HyperVCollectorsClient.NewListByProjectPager.
type ImportCollector ¶
type ImportCollector struct { ETag *string Properties *ImportCollectorProperties // READ-ONLY ID *string // READ-ONLY Name *string // READ-ONLY Type *string }
func (ImportCollector) MarshalJSON ¶ added in v1.1.0
func (i ImportCollector) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImportCollector.
func (*ImportCollector) UnmarshalJSON ¶ added in v1.1.0
func (i *ImportCollector) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImportCollector.
type ImportCollectorList ¶
type ImportCollectorList struct { // List of Import collectors. Value []*ImportCollector }
ImportCollectorList - List of Import collectors.
func (ImportCollectorList) MarshalJSON ¶ added in v1.1.0
func (i ImportCollectorList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImportCollectorList.
func (*ImportCollectorList) UnmarshalJSON ¶ added in v1.1.0
func (i *ImportCollectorList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImportCollectorList.
type ImportCollectorProperties ¶
type ImportCollectorProperties struct { DiscoverySiteID *string // READ-ONLY CreatedTimestamp *string // READ-ONLY UpdatedTimestamp *string }
func (ImportCollectorProperties) MarshalJSON ¶ added in v1.1.0
func (i ImportCollectorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImportCollectorProperties.
func (*ImportCollectorProperties) UnmarshalJSON ¶ added in v1.1.0
func (i *ImportCollectorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImportCollectorProperties.
type ImportCollectorsClient ¶
type ImportCollectorsClient struct {
// contains filtered or unexported fields
}
ImportCollectorsClient contains the methods for the ImportCollectors group. Don't use this type directly, use NewImportCollectorsClient() instead.
func NewImportCollectorsClient ¶
func NewImportCollectorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ImportCollectorsClient, error)
NewImportCollectorsClient creates a new instance of ImportCollectorsClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ImportCollectorsClient) Create ¶
func (client *ImportCollectorsClient) Create(ctx context.Context, resourceGroupName string, projectName string, importCollectorName string, options *ImportCollectorsClientCreateOptions) (ImportCollectorsClientCreateResponse, error)
Create - Create or Update Import collector If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- importCollectorName - Unique name of a Import collector within a project.
- options - ImportCollectorsClientCreateOptions contains the optional parameters for the ImportCollectorsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ImportCollectors_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewImportCollectorsClient().Create(ctx, "markusavstestrg", "rajoshCCY9671project", "importCollector2952", &armmigrate.ImportCollectorsClientCreateOptions{CollectorBody: &armmigrate.ImportCollector{ Name: to.Ptr("importCollector2951"), Type: to.Ptr("Microsoft.Migrate/assessmentprojects/importcollectors"), ETag: to.Ptr("\"000064a2-0000-3300-0000-605994800000\""), ID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourceGroups/markusavstestrg/providers/Microsoft.Migrate/assessmentprojects/rajoshCCY9671project/importcollectors/importCollector2951"), Properties: &armmigrate.ImportCollectorProperties{ DiscoverySiteID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourcegroups/MarkusAVStestRG/providers/microsoft.offazure/importsites/rajoshCCY54cbimportSite"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ImportCollector = armmigrate.ImportCollector{ // Name: to.Ptr("importCollector2952"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/importcollectors"), // ETag: to.Ptr("\"0000a7a2-0000-3300-0000-6059964d0000\""), // ID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourceGroups/markusavstestrg/providers/Microsoft.Migrate/assessmentprojects/rajoshCCY9671project/importcollectors/importCollector2952"), // Properties: &armmigrate.ImportCollectorProperties{ // CreatedTimestamp: to.Ptr("2021-03-23T07:18:37.2247735Z"), // DiscoverySiteID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourcegroups/MarkusAVStestRG/providers/microsoft.offazure/importsites/rajoshCCY54cbimportSite"), // UpdatedTimestamp: to.Ptr("2021-03-23T07:18:37.2247735Z"), // }, // } }
Output:
func (*ImportCollectorsClient) Delete ¶
func (client *ImportCollectorsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, importCollectorName string, options *ImportCollectorsClientDeleteOptions) (ImportCollectorsClientDeleteResponse, error)
Delete - Delete a Import collector from the project. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- importCollectorName - Unique name of a Import collector within a project.
- options - ImportCollectorsClientDeleteOptions contains the optional parameters for the ImportCollectorsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ImportCollectors_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewImportCollectorsClient().Delete(ctx, "markusavstestrg", "rajoshCCY9671project", "importCollector2952", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ImportCollectorsClient) Get ¶
func (client *ImportCollectorsClient) Get(ctx context.Context, resourceGroupName string, projectName string, importCollectorName string, options *ImportCollectorsClientGetOptions) (ImportCollectorsClientGetResponse, error)
Get - Get a Import collector. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- importCollectorName - Unique name of a Import collector within a project.
- options - ImportCollectorsClientGetOptions contains the optional parameters for the ImportCollectorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ImportCollectors_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewImportCollectorsClient().Get(ctx, "markusavstestrg", "rajoshCCY9671project", "importCollector2951", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ImportCollector = armmigrate.ImportCollector{ // Name: to.Ptr("importCollector2951"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/importcollectors"), // ETag: to.Ptr("\"000064a2-0000-3300-0000-605994800000\""), // ID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourceGroups/markusavstestrg/providers/Microsoft.Migrate/assessmentprojects/rajoshCCY9671project/importcollectors/importCollector2951"), // Properties: &armmigrate.ImportCollectorProperties{ // CreatedTimestamp: to.Ptr("2021-02-11T04:46:54.9582099Z"), // DiscoverySiteID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourcegroups/MarkusAVStestRG/providers/microsoft.offazure/importsites/rajoshCCY54cbimportSite"), // UpdatedTimestamp: to.Ptr("2021-03-23T07:10:56.3588497Z"), // }, // } }
Output:
func (*ImportCollectorsClient) NewListByProjectPager ¶
func (client *ImportCollectorsClient) NewListByProjectPager(resourceGroupName string, projectName string, options *ImportCollectorsClientListByProjectOptions) *runtime.Pager[ImportCollectorsClientListByProjectResponse]
NewListByProjectPager - Get a list of Import collector.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - ImportCollectorsClientListByProjectOptions contains the optional parameters for the ImportCollectorsClient.NewListByProjectPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ImportCollectors_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewImportCollectorsClient().NewListByProjectPager("markusavstestrg", "rajoshCCY9671project", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ImportCollectorList = armmigrate.ImportCollectorList{ // Value: []*armmigrate.ImportCollector{ // { // Name: to.Ptr("importCollector2951"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/importcollectors"), // ETag: to.Ptr("\"000098a2-0000-3300-0000-605995620000\""), // ID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourceGroups/markusavstestrg/providers/Microsoft.Migrate/assessmentprojects/rajoshCCY9671project/importcollectors/importCollector2951"), // Properties: &armmigrate.ImportCollectorProperties{ // CreatedTimestamp: to.Ptr("2021-02-11T04:46:54.9582099Z"), // DiscoverySiteID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourcegroups/MarkusAVStestRG/providers/microsoft.offazure/importsites/rajoshCCY54cbimportSite"), // UpdatedTimestamp: to.Ptr("2021-03-23T07:14:42.9238657Z"), // }, // }}, // } } }
Output:
type ImportCollectorsClientCreateOptions ¶
type ImportCollectorsClientCreateOptions struct { // New or Updated Import collector. CollectorBody *ImportCollector }
ImportCollectorsClientCreateOptions contains the optional parameters for the ImportCollectorsClient.Create method.
type ImportCollectorsClientCreateResponse ¶
type ImportCollectorsClientCreateResponse struct { ImportCollector // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ImportCollectorsClientCreateResponse contains the response from method ImportCollectorsClient.Create.
type ImportCollectorsClientDeleteOptions ¶
type ImportCollectorsClientDeleteOptions struct { }
ImportCollectorsClientDeleteOptions contains the optional parameters for the ImportCollectorsClient.Delete method.
type ImportCollectorsClientDeleteResponse ¶
type ImportCollectorsClientDeleteResponse struct { // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ImportCollectorsClientDeleteResponse contains the response from method ImportCollectorsClient.Delete.
type ImportCollectorsClientGetOptions ¶
type ImportCollectorsClientGetOptions struct { }
ImportCollectorsClientGetOptions contains the optional parameters for the ImportCollectorsClient.Get method.
type ImportCollectorsClientGetResponse ¶
type ImportCollectorsClientGetResponse struct { ImportCollector // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ImportCollectorsClientGetResponse contains the response from method ImportCollectorsClient.Get.
type ImportCollectorsClientListByProjectOptions ¶
type ImportCollectorsClientListByProjectOptions struct { }
ImportCollectorsClientListByProjectOptions contains the optional parameters for the ImportCollectorsClient.NewListByProjectPager method.
type ImportCollectorsClientListByProjectResponse ¶
type ImportCollectorsClientListByProjectResponse struct { // List of Import collectors. ImportCollectorList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ImportCollectorsClientListByProjectResponse contains the response from method ImportCollectorsClient.NewListByProjectPager.
type Machine ¶
type Machine struct { // For optimistic concurrency control. ETag *string // Properties of the machine. Properties *MachineProperties // READ-ONLY; Path reference to this machine. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/machines/{machineName} ID *string // 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 // READ-ONLY; Type of the object = [Microsoft.Migrate/assessmentProjects/machines]. Type *string }
Machine - A machine in a migration project.
func (Machine) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Machine.
func (*Machine) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Machine.
type MachineBootType ¶
type MachineBootType string
MachineBootType - Boot type of the machine.
const ( MachineBootTypeBIOS MachineBootType = "BIOS" MachineBootTypeEFI MachineBootType = "EFI" MachineBootTypeUnknown MachineBootType = "Unknown" )
func PossibleMachineBootTypeValues ¶
func PossibleMachineBootTypeValues() []MachineBootType
PossibleMachineBootTypeValues returns the possible values for the MachineBootType const type.
type MachineProperties ¶
type MachineProperties struct { // READ-ONLY; Boot type of the machine. BootType *MachineBootType // READ-ONLY; Time when this machine was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *time.Time // READ-ONLY; ARM ID of the data center as tracked by the Microsoft.OffAzure. DatacenterManagementServerArmID *string // READ-ONLY; Name of the server hosting the datacenter management solution. DatacenterManagementServerName *string // READ-ONLY; Description of the machine Description *string // READ-ONLY; ARM ID of the machine as tracked by the Microsoft.OffAzure. DiscoveryMachineArmID *string // READ-ONLY; Dictionary of disks attached to the machine. Key is ID of disk. Value is a disk object Disks map[string]*Disk // READ-ONLY; User readable name of the machine as defined by the user in their private datacenter. DisplayName *string // READ-ONLY; List of references to the groups that the machine is member of. Groups []*string // READ-ONLY; Memory in Megabytes. MegabytesOfMemory *float32 // 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 // READ-ONLY; Processor count. NumberOfCores *int32 // READ-ONLY; Operating System name of the machine. OperatingSystemName *string // READ-ONLY; Operating System type of the machine. OperatingSystemType *string // READ-ONLY; Operating System version of the machine. OperatingSystemVersion *string // READ-ONLY; Time when this machine was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *time.Time }
MachineProperties - Properties of a machine.
func (MachineProperties) MarshalJSON ¶ added in v1.1.0
func (m MachineProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MachineProperties.
func (*MachineProperties) UnmarshalJSON ¶
func (m *MachineProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MachineProperties.
type MachineResultList ¶
MachineResultList - List of machines.
func (MachineResultList) MarshalJSON ¶ added in v1.1.0
func (m MachineResultList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MachineResultList.
func (*MachineResultList) UnmarshalJSON ¶ added in v1.1.0
func (m *MachineResultList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MachineResultList.
type MachinesClient ¶
type MachinesClient struct {
// contains filtered or unexported fields
}
MachinesClient contains the methods for the Machines group. Don't use this type directly, use NewMachinesClient() instead.
func NewMachinesClient ¶
func NewMachinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MachinesClient, error)
NewMachinesClient creates a new instance of MachinesClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*MachinesClient) Get ¶
func (client *MachinesClient) Get(ctx context.Context, resourceGroupName string, projectName string, machineName string, options *MachinesClientGetOptions) (MachinesClientGetResponse, error)
Get - Get the machine with the specified name. Returns a json object of type 'machine' defined in Models section. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- 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.
- options - MachinesClientGetOptions contains the optional parameters for the MachinesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Machines_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMachinesClient().Get(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "269ef295-a38d-4f8f-9779-77ce79088311", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Machine = armmigrate.Machine{ // Name: to.Ptr("269ef295-a38d-4f8f-9779-77ce79088311"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/machines"), // ETag: to.Ptr("\"04006052-0000-0d00-0000-5cd4065a0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/machines/269ef295-a38d-4f8f-9779-77ce79088311"), // Properties: &armmigrate.MachineProperties{ // Description: to.Ptr("Microsoft Azure Migration Image on Windows Server 2016"), // BootType: to.Ptr(armmigrate.MachineBootTypeBIOS), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T09:58:22.173Z"); return t}()), // DatacenterManagementServerArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite/vcenters/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3"), // DatacenterManagementServerName: to.Ptr("IDCLAB-A360.fareast.corp.microsoft.com"), // DiscoveryMachineArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.offazure/vmwaresites/portalvcenterbc2fsite/machines/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_52bd4eeb-faf4-7d95-4dd5-5524350ce2bb"), // Disks: map[string]*armmigrate.Disk{ // "6000C29f-9065-8fe0-ab83-7e58ff6ba442": &armmigrate.Disk{ // DisplayName: to.Ptr("scsi0:0"), // GigabytesAllocated: to.Ptr[float64](80), // }, // }, // DisplayName: to.Ptr("ShubhamFirstAndThird"), // Groups: []*string{ // to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/test1")}, // MegabytesOfMemory: to.Ptr[float32](16384), // NetworkAdapters: map[string]*armmigrate.NetworkAdapter{ // "4000": &armmigrate.NetworkAdapter{ // DisplayName: to.Ptr("VM Network"), // IPAddresses: []*string{ // }, // MacAddress: to.Ptr("00:0c:29:ac:e3:6d"), // }, // }, // NumberOfCores: to.Ptr[int32](8), // OperatingSystemName: to.Ptr("Microsoft Windows Server 2016 (64-bit)"), // OperatingSystemType: to.Ptr("windowsGuest"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T09:58:22.299Z"); return t}()), // }, // } }
Output:
func (*MachinesClient) NewListByProjectPager ¶
func (client *MachinesClient) NewListByProjectPager(resourceGroupName string, projectName string, options *MachinesClientListByProjectOptions) *runtime.Pager[MachinesClientListByProjectResponse]
NewListByProjectPager - Get data of all the machines available in the project. Returns a json array of objects of type 'machine' defined in Models section.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - MachinesClientListByProjectOptions contains the optional parameters for the MachinesClient.NewListByProjectPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Machines_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewMachinesClient().NewListByProjectPager("abgoyal-westEurope", "abgoyalWEselfhostb72bproject", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.MachineResultList = armmigrate.MachineResultList{ // Value: []*armmigrate.Machine{ // { // Name: to.Ptr("269ef295-a38d-4f8f-9779-77ce79088311"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/machines"), // ETag: to.Ptr("\"04006052-0000-0d00-0000-5cd4065a0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/machines/269ef295-a38d-4f8f-9779-77ce79088311"), // Properties: &armmigrate.MachineProperties{ // Description: to.Ptr("Microsoft Azure Migration Image on Windows Server 2016"), // BootType: to.Ptr(armmigrate.MachineBootTypeBIOS), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T09:58:22.173Z"); return t}()), // DatacenterManagementServerArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite/vcenters/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3"), // DatacenterManagementServerName: to.Ptr("IDCLAB-A360.fareast.corp.microsoft.com"), // DiscoveryMachineArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.offazure/vmwaresites/portalvcenterbc2fsite/machines/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_52bd4eeb-faf4-7d95-4dd5-5524350ce2bb"), // Disks: map[string]*armmigrate.Disk{ // "6000C29f-9065-8fe0-ab83-7e58ff6ba442": &armmigrate.Disk{ // DisplayName: to.Ptr("scsi0:0"), // GigabytesAllocated: to.Ptr[float64](80), // }, // }, // DisplayName: to.Ptr("ShubhamFirstAndThird"), // Groups: []*string{ // to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/test1")}, // MegabytesOfMemory: to.Ptr[float32](16384), // NetworkAdapters: map[string]*armmigrate.NetworkAdapter{ // "4000": &armmigrate.NetworkAdapter{ // DisplayName: to.Ptr("VM Network"), // IPAddresses: []*string{ // }, // MacAddress: to.Ptr("00:0c:29:ac:e3:6d"), // }, // }, // NumberOfCores: to.Ptr[int32](8), // OperatingSystemName: to.Ptr("Microsoft Windows Server 2016 (64-bit)"), // OperatingSystemType: to.Ptr("windowsGuest"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T09:58:22.299Z"); return t}()), // }, // }, // { // Name: to.Ptr("3ad6c8b7-08d6-45dc-87f5-cd533501f553"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/machines"), // ETag: to.Ptr("\"04005652-0000-0d00-0000-5cd4065a0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/machines/3ad6c8b7-08d6-45dc-87f5-cd533501f553"), // Properties: &armmigrate.MachineProperties{ // Description: to.Ptr("Microsoft Azure Migration Image on Windows Server 2016"), // BootType: to.Ptr(armmigrate.MachineBootTypeBIOS), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T09:58:22.173Z"); return t}()), // DatacenterManagementServerArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite/vcenters/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3"), // DatacenterManagementServerName: to.Ptr("IDCLAB-A360.fareast.corp.microsoft.com"), // DiscoveryMachineArmID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.offazure/vmwaresites/portalvcenterbc2fsite/machines/idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_52e5be9c-2758-a483-c252-eeef7919095c"), // Disks: map[string]*armmigrate.Disk{ // "6000C296-54c9-e29c-51be-125e76850958": &armmigrate.Disk{ // DisplayName: to.Ptr("scsi0:0"), // GigabytesAllocated: to.Ptr[float64](80), // }, // }, // DisplayName: to.Ptr("shsinglaVM5"), // Groups: []*string{ // to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/test1")}, // MegabytesOfMemory: to.Ptr[float32](16384), // NetworkAdapters: map[string]*armmigrate.NetworkAdapter{ // "4000": &armmigrate.NetworkAdapter{ // DisplayName: to.Ptr("VM Network"), // IPAddresses: []*string{ // }, // MacAddress: to.Ptr("00:0c:29:1f:ac:0a"), // }, // }, // NumberOfCores: to.Ptr[int32](8), // OperatingSystemName: to.Ptr("Microsoft Windows Server 2016 (64-bit)"), // OperatingSystemType: to.Ptr("windowsGuest"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T09:58:22.314Z"); return t}()), // }, // }}, // } } }
Output:
type MachinesClientGetOptions ¶
type MachinesClientGetOptions struct { }
MachinesClientGetOptions contains the optional parameters for the MachinesClient.Get method.
type MachinesClientGetResponse ¶
type MachinesClientGetResponse struct { // A machine in a migration project. Machine // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
MachinesClientGetResponse contains the response from method MachinesClient.Get.
type MachinesClientListByProjectOptions ¶
type MachinesClientListByProjectOptions struct { }
MachinesClientListByProjectOptions contains the optional parameters for the MachinesClient.NewListByProjectPager method.
type MachinesClientListByProjectResponse ¶
type MachinesClientListByProjectResponse struct { // List of machines. MachineResultList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
MachinesClientListByProjectResponse contains the response from method MachinesClient.NewListByProjectPager.
type NetworkAdapter ¶
type NetworkAdapter struct { // READ-ONLY; User friendly name of the network adapter. DisplayName *string // READ-ONLY; List of IP Addresses on the network adapter. IPAddresses []*string // READ-ONLY; MAC Address of the network adapter. MacAddress *string }
NetworkAdapter - A network adapter discovered on a machine.
func (NetworkAdapter) MarshalJSON ¶ added in v1.1.0
func (n NetworkAdapter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkAdapter.
func (*NetworkAdapter) UnmarshalJSON ¶ added in v1.1.0
func (n *NetworkAdapter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkAdapter.
type Operation ¶
type Operation struct { // READ-ONLY; Displayable properties of the operation. Display *OperationDisplay // READ-ONLY; Name of the operation. Name *string // READ-ONLY; Origin of the operation. Origin *string }
Operation - A REST API operation supported by the provider.
func (Operation) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; Description of the operation. Description *string // READ-ONLY; Operation Type. Operation *string // READ-ONLY; Provider of the operation. Provider *string // READ-ONLY; Resource operated on by the operation. Resource *string }
OperationDisplay - Displayable properties of the operation.
func (OperationDisplay) MarshalJSON ¶ added in v1.1.0
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationResultList ¶
type OperationResultList struct { // List of operations. Value []*Operation }
OperationResultList - List of API operations.
func (OperationResultList) MarshalJSON ¶ added in v1.1.0
func (o OperationResultList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationResultList.
func (*OperationResultList) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationResultList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationResultList.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Get a list of REST API supported by Microsoft.Migrate provider.
Generated from API version 2019-10-01
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOperationsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.OperationResultList = armmigrate.OperationResultList{ // Value: []*armmigrate.Operation{ // { // Name: to.Ptr("Read"), // Display: &armmigrate.OperationDisplay{ // Description: to.Ptr("Reads a project"), // Operation: to.Ptr("Read"), // Provider: to.Ptr("Microsoft.Migrate"), // Resource: to.Ptr("Microsoft.Migrate/assessmentProjects"), // }, // Origin: to.Ptr("user,system"), // }, // { // Name: to.Ptr("Write"), // Display: &armmigrate.OperationDisplay{ // Description: to.Ptr("Creates or updates a project"), // Operation: to.Ptr("Write"), // Provider: to.Ptr("Microsoft.Migrate"), // Resource: to.Ptr("Microsoft.Migrate/assessmentProjects"), // }, // Origin: to.Ptr("user,system"), // }}, // } } }
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct { // List of API operations. OperationResultList }
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type Percentile ¶
type Percentile string
Percentile - Percentile of performance data used to recommend Azure size.
const ( PercentilePercentile50 Percentile = "Percentile50" PercentilePercentile90 Percentile = "Percentile90" PercentilePercentile95 Percentile = "Percentile95" PercentilePercentile99 Percentile = "Percentile99" )
func PossiblePercentileValues ¶
func PossiblePercentileValues() []Percentile
PossiblePercentileValues returns the possible values for the Percentile const type.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { // REQUIRED; Properties of the private endpoint endpoint connection. Properties *PrivateEndpointConnectionProperties // For optimistic concurrency control. ETag *string // READ-ONLY; Path reference to this private endpoint endpoint connection. // /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/privateEndpointConnections/{privateEndpointConnectionName} ID *string // READ-ONLY; Name of the private endpoint endpoint connection. Name *string // READ-ONLY; Type of the object = [Microsoft.Migrate/assessmentProjects/privateEndpointConnections]. Type *string }
PrivateEndpointConnection - A private endpoint connection for a project.
func (PrivateEndpointConnection) MarshalJSON ¶ added in v1.1.0
func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.
func (*PrivateEndpointConnection) UnmarshalJSON ¶ added in v1.1.0
func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection.
type PrivateEndpointConnectionClient ¶
type PrivateEndpointConnectionClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionClient contains the methods for the PrivateEndpointConnection group. Don't use this type directly, use NewPrivateEndpointConnectionClient() instead.
func NewPrivateEndpointConnectionClient ¶
func NewPrivateEndpointConnectionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionClient, error)
NewPrivateEndpointConnectionClient creates a new instance of PrivateEndpointConnectionClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateEndpointConnectionClient) Delete ¶
func (client *PrivateEndpointConnectionClient) Delete(ctx context.Context, resourceGroupName string, projectName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientDeleteOptions) (PrivateEndpointConnectionClientDeleteResponse, error)
Delete - Delete the private endpoint connection from the project. T. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- privateEndpointConnectionName - Unique name of a private endpoint connection within a project.
- options - PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/PrivateEndpointConnections_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewPrivateEndpointConnectionClient().Delete(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*PrivateEndpointConnectionClient) Get ¶
func (client *PrivateEndpointConnectionClient) Get(ctx context.Context, resourceGroupName string, projectName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientGetOptions) (PrivateEndpointConnectionClientGetResponse, error)
Get - Get information related to a specific private endpoint connection in the project. Returns a json object of type 'privateEndpointConnections' as specified in the models section. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- privateEndpointConnectionName - Unique name of a private endpoint connection within a project.
- options - PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/PrivateEndpointConnections_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionClient().Get(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PrivateEndpointConnection = armmigrate.PrivateEndpointConnection{ // Name: to.Ptr("custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/privateEndpointConnections"), // ETag: to.Ptr("\"00009300-0000-0300-0000-602b967b0000\""), // ID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/madhavicus/providers/Microsoft.Migrate/assessmentprojects/custestpece80project/privateEndpointConnections/custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43"), // Properties: &armmigrate.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armmigrate.ResourceID{ // ID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourceGroups/PrivLink-SelfHost/providers/Microsoft.Network/privateEndpoints/custestpece80project3980pe"), // }, // PrivateLinkServiceConnectionState: &armmigrate.PrivateLinkServiceConnectionState{ // ActionsRequired: to.Ptr(""), // Status: to.Ptr(armmigrate.PrivateLinkServiceConnectionStateStatusApproved), // }, // ProvisioningState: to.Ptr(armmigrate.PrivateEndpointConnectionPropertiesProvisioningStateSucceeded), // }, // } }
Output:
func (*PrivateEndpointConnectionClient) ListByProject ¶
func (client *PrivateEndpointConnectionClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string, options *PrivateEndpointConnectionClientListByProjectOptions) (PrivateEndpointConnectionClientListByProjectResponse, error)
ListByProject - Get all private endpoint connections in the project. Returns a json array of objects of type 'privateEndpointConnections' as specified in the Models section. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - PrivateEndpointConnectionClientListByProjectOptions contains the optional parameters for the PrivateEndpointConnectionClient.ListByProject method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/PrivateEndpointConnections_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionClient().ListByProject(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PrivateEndpointConnectionCollection = armmigrate.PrivateEndpointConnectionCollection{ // Value: []*armmigrate.PrivateEndpointConnection{ // { // Name: to.Ptr("custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/privateEndpointConnections"), // ETag: to.Ptr("\"00009300-0000-0300-0000-602b967b0000\""), // ID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/madhavicus/providers/Microsoft.Migrate/assessmentprojects/custestpece80project/privateEndpointConnections/custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43"), // Properties: &armmigrate.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armmigrate.ResourceID{ // ID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourceGroups/PrivLink-SelfHost/providers/Microsoft.Network/privateEndpoints/custestpece80project3980pe"), // }, // PrivateLinkServiceConnectionState: &armmigrate.PrivateLinkServiceConnectionState{ // ActionsRequired: to.Ptr(""), // Status: to.Ptr(armmigrate.PrivateLinkServiceConnectionStateStatusApproved), // }, // ProvisioningState: to.Ptr(armmigrate.PrivateEndpointConnectionPropertiesProvisioningStateSucceeded), // }, // }}, // } }
Output:
func (*PrivateEndpointConnectionClient) Update ¶
func (client *PrivateEndpointConnectionClient) Update(ctx context.Context, resourceGroupName string, projectName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientUpdateOptions) (PrivateEndpointConnectionClientUpdateResponse, error)
Update - Update a specific private endpoint connection in the project. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- privateEndpointConnectionName - Unique name of a private endpoint connection within a project.
- options - PrivateEndpointConnectionClientUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/PrivateEndpointConnections_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateEndpointConnectionClient().Update(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43", &armmigrate.PrivateEndpointConnectionClientUpdateOptions{PrivateEndpointConnectionBody: &armmigrate.PrivateEndpointConnection{ ETag: to.Ptr("\"00009300-0000-0300-0000-602b967b0000\""), Properties: &armmigrate.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armmigrate.PrivateLinkServiceConnectionState{ ActionsRequired: to.Ptr(""), Status: to.Ptr(armmigrate.PrivateLinkServiceConnectionStateStatusApproved), }, }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PrivateEndpointConnection = armmigrate.PrivateEndpointConnection{ // Name: to.Ptr("custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/privateEndpointConnections"), // ETag: to.Ptr("\"00009300-0000-0300-0000-602b967b0000\""), // ID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/madhavicus/providers/Microsoft.Migrate/assessmentprojects/custestpece80project/privateEndpointConnections/custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43"), // Properties: &armmigrate.PrivateEndpointConnectionProperties{ // PrivateEndpoint: &armmigrate.ResourceID{ // ID: to.Ptr("/subscriptions/31be0ff4-c932-4cb3-8efc-efa411d79280/resourceGroups/PrivLink-SelfHost/providers/Microsoft.Network/privateEndpoints/custestpece80project3980pe"), // }, // PrivateLinkServiceConnectionState: &armmigrate.PrivateLinkServiceConnectionState{ // ActionsRequired: to.Ptr(""), // Status: to.Ptr(armmigrate.PrivateLinkServiceConnectionStateStatusPending), // }, // ProvisioningState: to.Ptr(armmigrate.PrivateEndpointConnectionPropertiesProvisioningStateSucceeded), // }, // } }
Output:
type PrivateEndpointConnectionClientDeleteOptions ¶
type PrivateEndpointConnectionClientDeleteOptions struct { }
PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete method.
type PrivateEndpointConnectionClientDeleteResponse ¶
type PrivateEndpointConnectionClientDeleteResponse struct { // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
PrivateEndpointConnectionClientDeleteResponse contains the response from method PrivateEndpointConnectionClient.Delete.
type PrivateEndpointConnectionClientGetOptions ¶
type PrivateEndpointConnectionClientGetOptions struct { }
PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get method.
type PrivateEndpointConnectionClientGetResponse ¶
type PrivateEndpointConnectionClientGetResponse struct { // A private endpoint connection for a project. PrivateEndpointConnection // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
PrivateEndpointConnectionClientGetResponse contains the response from method PrivateEndpointConnectionClient.Get.
type PrivateEndpointConnectionClientListByProjectOptions ¶
type PrivateEndpointConnectionClientListByProjectOptions struct { }
PrivateEndpointConnectionClientListByProjectOptions contains the optional parameters for the PrivateEndpointConnectionClient.ListByProject method.
type PrivateEndpointConnectionClientListByProjectResponse ¶
type PrivateEndpointConnectionClientListByProjectResponse struct { // A collection of private endpoint connections for a project. PrivateEndpointConnectionCollection // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
PrivateEndpointConnectionClientListByProjectResponse contains the response from method PrivateEndpointConnectionClient.ListByProject.
type PrivateEndpointConnectionClientUpdateOptions ¶
type PrivateEndpointConnectionClientUpdateOptions struct { // New or Updated Private Endpoint Connection object. PrivateEndpointConnectionBody *PrivateEndpointConnection }
PrivateEndpointConnectionClientUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.Update method.
type PrivateEndpointConnectionClientUpdateResponse ¶
type PrivateEndpointConnectionClientUpdateResponse struct { // A private endpoint connection for a project. PrivateEndpointConnection // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
PrivateEndpointConnectionClientUpdateResponse contains the response from method PrivateEndpointConnectionClient.Update.
type PrivateEndpointConnectionCollection ¶
type PrivateEndpointConnectionCollection struct { // READ-ONLY NextLink *string // READ-ONLY; A list of private endpoint connections for a project. Value []*PrivateEndpointConnection }
PrivateEndpointConnectionCollection - A collection of private endpoint connections for a project.
func (PrivateEndpointConnectionCollection) MarshalJSON ¶ added in v1.1.0
func (p PrivateEndpointConnectionCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionCollection.
func (*PrivateEndpointConnectionCollection) UnmarshalJSON ¶ added in v1.1.0
func (p *PrivateEndpointConnectionCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionCollection.
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { // State of the private endpoint connection. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState // READ-ONLY; ARM id for the private endpoint resource corresponding to the connection. PrivateEndpoint *ResourceID // READ-ONLY; Indicates whether there is an ongoing operation on the private endpoint. ProvisioningState *PrivateEndpointConnectionPropertiesProvisioningState }
PrivateEndpointConnectionProperties - Private endpoint connection properties.
func (PrivateEndpointConnectionProperties) MarshalJSON ¶ added in v1.1.0
func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties.
func (*PrivateEndpointConnectionProperties) UnmarshalJSON ¶ added in v1.1.0
func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties.
type PrivateEndpointConnectionPropertiesProvisioningState ¶
type PrivateEndpointConnectionPropertiesProvisioningState string
PrivateEndpointConnectionPropertiesProvisioningState - Indicates whether there is an ongoing operation on the private endpoint.
const ( PrivateEndpointConnectionPropertiesProvisioningStateAccepted PrivateEndpointConnectionPropertiesProvisioningState = "Accepted" PrivateEndpointConnectionPropertiesProvisioningStateFailed PrivateEndpointConnectionPropertiesProvisioningState = "Failed" PrivateEndpointConnectionPropertiesProvisioningStateInProgress PrivateEndpointConnectionPropertiesProvisioningState = "InProgress" PrivateEndpointConnectionPropertiesProvisioningStateSucceeded PrivateEndpointConnectionPropertiesProvisioningState = "Succeeded" )
func PossiblePrivateEndpointConnectionPropertiesProvisioningStateValues ¶
func PossiblePrivateEndpointConnectionPropertiesProvisioningStateValues() []PrivateEndpointConnectionPropertiesProvisioningState
PossiblePrivateEndpointConnectionPropertiesProvisioningStateValues returns the possible values for the PrivateEndpointConnectionPropertiesProvisioningState const type.
type PrivateLinkResource ¶
type PrivateLinkResource struct { // READ-ONLY; Path reference to this private link resource. // /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/privateLinkResources/{privateLinkResourceName} ID *string // READ-ONLY; Name of the private link resource. Name *string // READ-ONLY; Properties of the private link resource. Properties *PrivateLinkResourceProperties // READ-ONLY; Type of the object = [Microsoft.Migrate/assessmentProjects/privateLinkResources]. Type *string }
PrivateLinkResource - A private link resource for a project for which a private endpoint can be created.
func (PrivateLinkResource) MarshalJSON ¶ added in v1.1.0
func (p PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.
func (*PrivateLinkResource) UnmarshalJSON ¶ added in v1.1.0
func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource.
type PrivateLinkResourceClient ¶
type PrivateLinkResourceClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourceClient contains the methods for the PrivateLinkResource group. Don't use this type directly, use NewPrivateLinkResourceClient() instead.
func NewPrivateLinkResourceClient ¶
func NewPrivateLinkResourceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourceClient, error)
NewPrivateLinkResourceClient creates a new instance of PrivateLinkResourceClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PrivateLinkResourceClient) Get ¶
func (client *PrivateLinkResourceClient) Get(ctx context.Context, resourceGroupName string, projectName string, privateLinkResourceName string, options *PrivateLinkResourceClientGetOptions) (PrivateLinkResourceClientGetResponse, error)
Get - Get information related to a specific private Link Resource in the project. Returns a json object of type 'privateLinkResources' as specified in the models section. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- privateLinkResourceName - Unique name of a private link resource within a project.
- options - PrivateLinkResourceClientGetOptions contains the optional parameters for the PrivateLinkResourceClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/PrivateLinkResources_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourceClient().Get(ctx, "madhavicus", "custestpece80project", "Default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PrivateLinkResource = armmigrate.PrivateLinkResource{ // Name: to.Ptr("Default"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/privateLinkResources"), // ID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/madhavicus/providers/Microsoft.Migrate/assessmentprojects/custestpece80project/privateLinkResources/Default"), // Properties: &armmigrate.PrivateLinkResourceProperties{ // GroupID: to.Ptr("Default"), // RequiredMembers: []*string{ // to.Ptr("CollectorAgent")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.prod.migration.windowsazure.com")}, // }, // } }
Output:
func (*PrivateLinkResourceClient) ListByProject ¶
func (client *PrivateLinkResourceClient) ListByProject(ctx context.Context, resourceGroupName string, projectName string, options *PrivateLinkResourceClientListByProjectOptions) (PrivateLinkResourceClientListByProjectResponse, error)
ListByProject - Get all private link resources created in the project. Returns a json array of objects of type 'privateLinkResources' as specified in the Models section. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - PrivateLinkResourceClientListByProjectOptions contains the optional parameters for the PrivateLinkResourceClient.ListByProject method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/PrivateLinkResources_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPrivateLinkResourceClient().ListByProject(ctx, "madhavicus", "custestpece80project", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PrivateLinkResourceCollection = armmigrate.PrivateLinkResourceCollection{ // Value: []*armmigrate.PrivateLinkResource{ // { // Name: to.Ptr("Default"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/privateLinkResources"), // ID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/madhavicus/providers/Microsoft.Migrate/assessmentprojects/custestpece80project/privateLinkResources/Default"), // Properties: &armmigrate.PrivateLinkResourceProperties{ // GroupID: to.Ptr("Default"), // RequiredMembers: []*string{ // to.Ptr("CollectorAgent")}, // RequiredZoneNames: []*string{ // to.Ptr("privatelink.prod.migration.windowsazure.com")}, // }, // }}, // } }
Output:
type PrivateLinkResourceClientGetOptions ¶
type PrivateLinkResourceClientGetOptions struct { }
PrivateLinkResourceClientGetOptions contains the optional parameters for the PrivateLinkResourceClient.Get method.
type PrivateLinkResourceClientGetResponse ¶
type PrivateLinkResourceClientGetResponse struct { // A private link resource for a project for which a private endpoint can be created. PrivateLinkResource // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
PrivateLinkResourceClientGetResponse contains the response from method PrivateLinkResourceClient.Get.
type PrivateLinkResourceClientListByProjectOptions ¶
type PrivateLinkResourceClientListByProjectOptions struct { }
PrivateLinkResourceClientListByProjectOptions contains the optional parameters for the PrivateLinkResourceClient.ListByProject method.
type PrivateLinkResourceClientListByProjectResponse ¶
type PrivateLinkResourceClientListByProjectResponse struct { // A list of private link resources PrivateLinkResourceCollection // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
PrivateLinkResourceClientListByProjectResponse contains the response from method PrivateLinkResourceClient.ListByProject.
type PrivateLinkResourceCollection ¶
type PrivateLinkResourceCollection struct { // READ-ONLY; Link to retrieve next page of results. NextLink *string // READ-ONLY; Array of results. Value []*PrivateLinkResource }
PrivateLinkResourceCollection - A list of private link resources
func (PrivateLinkResourceCollection) MarshalJSON ¶ added in v1.1.0
func (p PrivateLinkResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceCollection.
func (*PrivateLinkResourceCollection) UnmarshalJSON ¶ added in v1.1.0
func (p *PrivateLinkResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceCollection.
type PrivateLinkResourceProperties ¶
type PrivateLinkResourceProperties struct { // READ-ONLY; The private link resource group id. GroupID *string // READ-ONLY; The private link resource required member names. RequiredMembers []*string // READ-ONLY; Required DNS zone names of the the private link resource. RequiredZoneNames []*string }
PrivateLinkResourceProperties - Properties of a private link resource.
func (PrivateLinkResourceProperties) MarshalJSON ¶ added in v1.1.0
func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
func (*PrivateLinkResourceProperties) UnmarshalJSON ¶ added in v1.1.0
func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties.
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { // Actions required on the private endpoint connection. ActionsRequired *string // Description of the private endpoint connection. Description *string // Connection status of the private endpoint connection. Status *PrivateLinkServiceConnectionStateStatus }
PrivateLinkServiceConnectionState - State of a private endpoint connection.
func (PrivateLinkServiceConnectionState) MarshalJSON ¶ added in v1.1.0
func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState.
func (*PrivateLinkServiceConnectionState) UnmarshalJSON ¶ added in v1.1.0
func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionState.
type PrivateLinkServiceConnectionStateStatus ¶
type PrivateLinkServiceConnectionStateStatus string
PrivateLinkServiceConnectionStateStatus - Connection status of the private endpoint connection.
const ( PrivateLinkServiceConnectionStateStatusApproved PrivateLinkServiceConnectionStateStatus = "Approved" PrivateLinkServiceConnectionStateStatusDisconnected PrivateLinkServiceConnectionStateStatus = "Disconnected" PrivateLinkServiceConnectionStateStatusPending PrivateLinkServiceConnectionStateStatus = "Pending" PrivateLinkServiceConnectionStateStatusRejected PrivateLinkServiceConnectionStateStatus = "Rejected" )
func PossiblePrivateLinkServiceConnectionStateStatusValues ¶
func PossiblePrivateLinkServiceConnectionStateStatusValues() []PrivateLinkServiceConnectionStateStatus
PossiblePrivateLinkServiceConnectionStateStatusValues returns the possible values for the PrivateLinkServiceConnectionStateStatus const type.
type Project ¶
type Project struct { // For optimistic concurrency control. ETag *string // Azure location in which project is created. Location *string // Properties of the project. Properties *ProjectProperties // Tags provided by Azure Tagging service. Tags any // READ-ONLY; Path reference to this project /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName} ID *string // READ-ONLY; Name of the project. Name *string // READ-ONLY; Type of the object = [Microsoft.Migrate/assessmentProjects]. Type *string }
Project - Azure Migrate Project.
func (Project) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Project.
func (*Project) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Project.
type ProjectProperties ¶
type ProjectProperties struct { // Assessment solution ARM id tracked by Microsoft.Migrate/migrateProjects. AssessmentSolutionID *string // The ARM id of the storage account used for interactions when public access is disabled. CustomerStorageAccountArmID *string // The ARM id of service map workspace created by customer. CustomerWorkspaceID *string // Location of service map workspace created by customer. CustomerWorkspaceLocation *string // Assessment project status. ProjectStatus *ProjectStatus // This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', // traffic over public interface is not allowed, and private endpoint // connections would be the exclusive access method. PublicNetworkAccess *string // READ-ONLY; Time when this project was created. Date-Time represented in ISO-8601 format. CreatedTimestamp *time.Time // 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 *time.Time // READ-ONLY; Number of assessments created in the project. NumberOfAssessments *int32 // READ-ONLY; Number of groups created in the project. NumberOfGroups *int32 // READ-ONLY; Number of machines in the project. NumberOfMachines *int32 // READ-ONLY; The list of private endpoint connections to the project. PrivateEndpointConnections []*PrivateEndpointConnection // READ-ONLY; Provisioning state of the project. ProvisioningState *ProvisioningState // READ-ONLY; Endpoint at which the collector agent can call agent REST API. ServiceEndpoint *string // READ-ONLY; Time when this project was last updated. Date-Time represented in ISO-8601 format. UpdatedTimestamp *time.Time }
ProjectProperties - Properties of a project.
func (ProjectProperties) MarshalJSON ¶
func (p ProjectProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectProperties.
func (*ProjectProperties) UnmarshalJSON ¶
func (p *ProjectProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectProperties.
type ProjectResultList ¶
ProjectResultList - List of projects.
func (ProjectResultList) MarshalJSON ¶ added in v1.1.0
func (p ProjectResultList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProjectResultList.
func (*ProjectResultList) UnmarshalJSON ¶ added in v1.1.0
func (p *ProjectResultList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProjectResultList.
type ProjectStatus ¶
type ProjectStatus string
ProjectStatus - Assessment project status.
const ( ProjectStatusActive ProjectStatus = "Active" ProjectStatusInactive ProjectStatus = "Inactive" )
func PossibleProjectStatusValues ¶
func PossibleProjectStatusValues() []ProjectStatus
PossibleProjectStatusValues returns the possible values for the ProjectStatus const type.
type ProjectsClient ¶
type ProjectsClient struct {
// contains filtered or unexported fields
}
ProjectsClient contains the methods for the Projects group. Don't use this type directly, use NewProjectsClient() instead.
func NewProjectsClient ¶
func NewProjectsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProjectsClient, error)
NewProjectsClient creates a new instance of ProjectsClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ProjectsClient) AssessmentOptions ¶
func (client *ProjectsClient) AssessmentOptions(ctx context.Context, resourceGroupName string, projectName string, assessmentOptionsName string, options *ProjectsClientAssessmentOptionsOptions) (ProjectsClientAssessmentOptionsResponse, error)
AssessmentOptions - Get all available options for the properties of an assessment on a project. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- assessmentOptionsName - Name of the assessment options. The only name accepted in default.
- options - ProjectsClientAssessmentOptionsOptions contains the optional parameters for the ProjectsClient.AssessmentOptions method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/AssessmentOptions_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewProjectsClient().AssessmentOptions(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AssessmentOptions = armmigrate.AssessmentOptions{ // Name: to.Ptr("default"), // ID: to.Ptr("/subscriptions/5cbd71ba-5a65-4f0c-aea2-33dadde87b4e/resourceGroups/shsinglarg/providers/Microsoft.Migrate/assessmentprojects/shProject/assessmentOptions/default"), // Properties: &armmigrate.AssessmentOptionsProperties{ // ReservedInstanceSupportedCurrencies: []*string{ // to.Ptr("USD"), // to.Ptr("DKK"), // to.Ptr("CAD"), // to.Ptr("JPY"), // to.Ptr("KRW"), // to.Ptr("NZD"), // to.Ptr("NOK"), // to.Ptr("RUB"), // to.Ptr("SEK"), // to.Ptr("GBP"), // to.Ptr("INR"), // to.Ptr("BRL"), // to.Ptr("TWD"), // to.Ptr("EUR"), // to.Ptr("CHF"), // to.Ptr("AUD")}, // ReservedInstanceSupportedLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs")}, // ReservedInstanceSupportedOffers: []*string{ // to.Ptr("MSAZR0003P")}, // ReservedInstanceVMFamilies: []*string{ // to.Ptr("Dv2_series"), // to.Ptr("F_series"), // to.Ptr("Dv3_series"), // to.Ptr("DS_series"), // to.Ptr("DSv2_series"), // to.Ptr("Fs_series"), // to.Ptr("Dsv3_series"), // to.Ptr("Ev3_series"), // to.Ptr("Esv3_series"), // to.Ptr("D_series"), // to.Ptr("Fsv2_series"), // to.Ptr("M_series"), // to.Ptr("Ls_series"), // to.Ptr("H_series")}, // VMFamilies: []*armmigrate.VMFamily{ // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("Standard_A0_A7"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("Basic_A0_A4"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("MemoryOptimized")}, // FamilyName: to.Ptr("Dv2_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("ComputeOptimized")}, // FamilyName: to.Ptr("F_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("Av2_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("Dv3_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("DS_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("EastUs"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("USGovVirginia"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("DSv2_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("ComputeOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Fs_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Dsv3_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized")}, // FamilyName: to.Ptr("Ev3_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Esv3_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("D_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("USGovVirginia"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("ComputeOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Fsv2_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("FranceCentral"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("M_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("EastUs2"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized")}, // FamilyName: to.Ptr("G_series"), // TargetLocations: []*string{ // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("JapanEast"), // to.Ptr("UkSouth"), // to.Ptr("WestUs2"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("GS_series"), // TargetLocations: []*string{ // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("JapanEast"), // to.Ptr("UkSouth"), // to.Ptr("WestUs2"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("StorageOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Ls_series"), // TargetLocations: []*string{ // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("JapanEast"), // to.Ptr("UkSouth"), // to.Ptr("WestUs2"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("HighPerformanceCompute")}, // FamilyName: to.Ptr("H_series"), // TargetLocations: []*string{ // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("JapanEast"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("WestUs"), // to.Ptr("USGovArizona")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("SupportsPremiumStorage"), // to.Ptr("Confidential")}, // FamilyName: to.Ptr("DC_Series"), // TargetLocations: []*string{ // to.Ptr("WestEurope"), // to.Ptr("EastUs")}, // }, // { // Category: []*string{ // to.Ptr("HighPerformanceCompute")}, // FamilyName: to.Ptr("Standard_A8_A11"), // TargetLocations: []*string{ // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("SouthCentralUs"), // to.Ptr("WestUs")}, // }}, // }, // } }
Output:
func (*ProjectsClient) Create ¶
func (client *ProjectsClient) Create(ctx context.Context, resourceGroupName string, projectName string, options *ProjectsClientCreateOptions) (ProjectsClientCreateResponse, error)
Create - Create a project with specified name. If a project already exists, update it. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - ProjectsClientCreateOptions contains the optional parameters for the ProjectsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewProjectsClient().Create(ctx, "abgoyal-westEurope", "abGoyalProject2", &armmigrate.ProjectsClientCreateOptions{Project: &armmigrate.Project{ ETag: to.Ptr(""), Location: to.Ptr("West Europe"), Properties: &armmigrate.ProjectProperties{ AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment"), ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), }, Tags: map[string]any{}, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Project = armmigrate.Project{ // Name: to.Ptr("abGoyalProject2"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr(""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abGoyalProject2"), // Location: to.Ptr("West Europe"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.Migrate/assessmentprojects/abGoyalProject2"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-26T05:56:58.752Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](0), // NumberOfGroups: to.Ptr[int32](0), // NumberOfMachines: to.Ptr[int32](0), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ServiceEndpoint: to.Ptr("https://localhost/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-26T05:56:58.799Z"); return t}()), // }, // Tags: map[string]any{ // }, // } }
Output:
func (*ProjectsClient) Delete ¶
func (client *ProjectsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, options *ProjectsClientDeleteOptions) (ProjectsClientDeleteResponse, error)
Delete - Delete the project. Deleting non-existent project is a no-operation. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - ProjectsClientDeleteOptions contains the optional parameters for the ProjectsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewProjectsClient().Delete(ctx, "abgoyal-westEurope", "abGoyalProject2", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ProjectsClient) Get ¶
func (client *ProjectsClient) Get(ctx context.Context, resourceGroupName string, projectName string, options *ProjectsClientGetOptions) (ProjectsClientGetResponse, error)
Get - Get the project with the specified name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - ProjectsClientGetOptions contains the optional parameters for the ProjectsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewProjectsClient().Get(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Project = armmigrate.Project{ // Name: to.Ptr("abgoyalWEselfhostb72bproject"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"0600c777-0000-0d00-0000-5cdaa4170000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject"), // Location: to.Ptr("westeurope"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T08:28:53.330Z"); return t}()), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:47.789Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](3), // NumberOfGroups: to.Ptr[int32](2), // NumberOfMachines: to.Ptr[int32](28), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodwe.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:11:16.022Z"); return t}()), // }, // } }
Output:
func (*ProjectsClient) NewAssessmentOptionsListPager ¶
func (client *ProjectsClient) NewAssessmentOptionsListPager(resourceGroupName string, projectName string, options *ProjectsClientAssessmentOptionsListOptions) *runtime.Pager[ProjectsClientAssessmentOptionsListResponse]
NewAssessmentOptionsListPager - Gets list of all available options for the properties of an assessment on a project.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - ProjectsClientAssessmentOptionsListOptions contains the optional parameters for the ProjectsClient.NewAssessmentOptionsListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/AssessmentOptions_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewProjectsClient().NewAssessmentOptionsListPager("abgoyal-westEurope", "abgoyalWEselfhostb72bproject", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AssessmentOptionsResultList = armmigrate.AssessmentOptionsResultList{ // Value: []*armmigrate.AssessmentOptions{ // { // Name: to.Ptr("default"), // ID: to.Ptr("/subscriptions/5cbd71ba-5a65-4f0c-aea2-33dadde87b4e/resourceGroups/shsinglarg/providers/Microsoft.Migrate/assessmentprojects/shProject/assessmentOptions/default"), // Properties: &armmigrate.AssessmentOptionsProperties{ // ReservedInstanceSupportedCurrencies: []*string{ // to.Ptr("USD"), // to.Ptr("DKK"), // to.Ptr("CAD"), // to.Ptr("JPY"), // to.Ptr("KRW"), // to.Ptr("NZD"), // to.Ptr("NOK"), // to.Ptr("RUB"), // to.Ptr("SEK"), // to.Ptr("GBP"), // to.Ptr("INR"), // to.Ptr("BRL"), // to.Ptr("TWD"), // to.Ptr("EUR"), // to.Ptr("CHF"), // to.Ptr("AUD")}, // ReservedInstanceSupportedLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs")}, // ReservedInstanceSupportedOffers: []*string{ // to.Ptr("MSAZR0003P")}, // ReservedInstanceVMFamilies: []*string{ // to.Ptr("Dv2_series"), // to.Ptr("F_series"), // to.Ptr("Dv3_series"), // to.Ptr("DS_series"), // to.Ptr("DSv2_series"), // to.Ptr("Fs_series"), // to.Ptr("Dsv3_series"), // to.Ptr("Ev3_series"), // to.Ptr("Esv3_series"), // to.Ptr("D_series"), // to.Ptr("Fsv2_series"), // to.Ptr("M_series"), // to.Ptr("Ls_series"), // to.Ptr("H_series")}, // VMFamilies: []*armmigrate.VMFamily{ // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("Standard_A0_A7"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("Basic_A0_A4"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("MemoryOptimized")}, // FamilyName: to.Ptr("Dv2_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("ComputeOptimized")}, // FamilyName: to.Ptr("F_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("Av2_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("Dv3_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("DS_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("EastUs"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("USGovVirginia"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("DSv2_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("ComputeOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Fs_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia"), // to.Ptr("USDoDCentral"), // to.Ptr("USDoDEast"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Dsv3_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized")}, // FamilyName: to.Ptr("Ev3_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovIowa"), // to.Ptr("USGovVirginia"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Esv3_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("WestCentralUs"), // to.Ptr("FranceCentral"), // to.Ptr("GermanyNortheast"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovTexas"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose")}, // FamilyName: to.Ptr("D_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("USGovVirginia"), // to.Ptr("ChinaNorth"), // to.Ptr("ChinaEast")}, // }, // { // Category: []*string{ // to.Ptr("ComputeOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Fsv2_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("WestIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("CentralUs"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("FranceCentral"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("M_series"), // TargetLocations: []*string{ // to.Ptr("EastAsia"), // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("AustraliaSoutheast"), // to.Ptr("BrazilSouth"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("SouthIndia"), // to.Ptr("JapanEast"), // to.Ptr("JapanWest"), // to.Ptr("KoreaCentral"), // to.Ptr("KoreaSouth"), // to.Ptr("UkWest"), // to.Ptr("UkSouth"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("EastUs2"), // to.Ptr("USGovArizona"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized")}, // FamilyName: to.Ptr("G_series"), // TargetLocations: []*string{ // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("JapanEast"), // to.Ptr("UkSouth"), // to.Ptr("WestUs2"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("MemoryOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("GS_series"), // TargetLocations: []*string{ // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("JapanEast"), // to.Ptr("UkSouth"), // to.Ptr("WestUs2"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("StorageOptimized"), // to.Ptr("SupportsPremiumStorage")}, // FamilyName: to.Ptr("Ls_series"), // TargetLocations: []*string{ // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("CanadaCentral"), // to.Ptr("CanadaEast"), // to.Ptr("WestEurope"), // to.Ptr("JapanEast"), // to.Ptr("UkSouth"), // to.Ptr("WestUs2"), // to.Ptr("EastUs2"), // to.Ptr("WestUs"), // to.Ptr("GermanyCentral"), // to.Ptr("USGovVirginia")}, // }, // { // Category: []*string{ // to.Ptr("HighPerformanceCompute")}, // FamilyName: to.Ptr("H_series"), // TargetLocations: []*string{ // to.Ptr("SoutheastAsia"), // to.Ptr("AustraliaEast"), // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("CentralIndia"), // to.Ptr("JapanEast"), // to.Ptr("UkSouth"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("WestUs2"), // to.Ptr("SouthCentralUs"), // to.Ptr("WestUs"), // to.Ptr("USGovArizona")}, // }, // { // Category: []*string{ // to.Ptr("GeneralPurpose"), // to.Ptr("SupportsPremiumStorage"), // to.Ptr("Confidential")}, // FamilyName: to.Ptr("DC_Series"), // TargetLocations: []*string{ // to.Ptr("WestEurope"), // to.Ptr("EastUs")}, // }, // { // Category: []*string{ // to.Ptr("HighPerformanceCompute")}, // FamilyName: to.Ptr("Standard_A8_A11"), // TargetLocations: []*string{ // to.Ptr("WestEurope"), // to.Ptr("NorthEurope"), // to.Ptr("NorthCentralUs"), // to.Ptr("EastUs"), // to.Ptr("SouthCentralUs"), // to.Ptr("WestUs")}, // }}, // }, // }}, // } } }
Output:
func (*ProjectsClient) NewListBySubscriptionPager ¶
func (client *ProjectsClient) NewListBySubscriptionPager(options *ProjectsClientListBySubscriptionOptions) *runtime.Pager[ProjectsClientListBySubscriptionResponse]
NewListBySubscriptionPager - Get all the projects in the subscription.
Generated from API version 2019-10-01
- options - ProjectsClientListBySubscriptionOptions contains the optional parameters for the ProjectsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ProjectsInSubscription_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewProjectsClient().NewListBySubscriptionPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ProjectResultList = armmigrate.ProjectResultList{ // Value: []*armmigrate.Project{ // { // Name: to.Ptr("site1493ae9ea68project"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"0500be57-0000-0300-0000-5cb893f70000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/SMSValidations/providers/Microsoft.Migrate/assessmentprojects/site1493ae9ea68project"), // Location: to.Ptr("centralus"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/SMSValidations/providers/Microsoft.Migrate/MigrateProjects/SMSValidations-MigrateProject/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-02-15T09:18:02.572Z"); return t}()), // CustomerWorkspaceID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/SMSValidations/providers/Microsoft.OperationalInsights/workspaces/test-haili-01"), // CustomerWorkspaceLocation: to.Ptr("southeastasia"), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-18T15:12:55.238Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](12), // NumberOfGroups: to.Ptr[int32](8), // NumberOfMachines: to.Ptr[int32](26), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodcus.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-18T03:31:20.836Z"); return t}()), // }, // }, // { // Name: to.Ptr("site1ad5aa6cc09project"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"8300bdec-0000-0300-0000-5cd678410000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/ppValidation/providers/Microsoft.Migrate/assessmentprojects/site1ad5aa6cc09project"), // Location: to.Ptr("centralus"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/ppValidation/providers/Microsoft.Migrate/MigrateProjects/ppValidation-MigrateProject/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-02-18T16:46:46.084Z"); return t}()), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-11T07:22:41.555Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](12), // NumberOfGroups: to.Ptr[int32](7), // NumberOfMachines: to.Ptr[int32](29), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodcus.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-02-18T16:46:46.084Z"); return t}()), // }, // }, // { // Name: to.Ptr("migrateproject0720project"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"0d00efcf-0000-0300-0000-5d6fdac70000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/SDKUpgradeValidations/providers/Microsoft.Migrate/assessmentprojects/migrateproject0720project"), // Location: to.Ptr("centralus"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/SDKUpgradeValidations/providers/Microsoft.Migrate/MigrateProjects/SDKUpgradeValidations-MigrateProject/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-22T07:06:04.972Z"); return t}()), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-04T15:39:51.304Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](2), // NumberOfGroups: to.Ptr[int32](1), // NumberOfMachines: to.Ptr[int32](24), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodcus.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-22T07:06:04.972Z"); return t}()), // }, // }, // { // Name: to.Ptr("migrateproject03acproject"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"00004d14-0000-0300-0000-5cb820290000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/AccessibilityTesting/providers/Microsoft.Migrate/assessmentprojects/migrateproject03acproject"), // Location: to.Ptr("centralus"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/AccessibilityTesting/providers/Microsoft.Migrate/MigrateProjects/AccessibilityTesting-MigrateProject/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-18T06:53:59.419Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](0), // NumberOfGroups: to.Ptr[int32](0), // NumberOfMachines: to.Ptr[int32](16), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodcus.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-18T06:53:59.419Z"); return t}()), // }, // }, // { // Name: to.Ptr("migrateprojecta961project"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"1300df9f-0000-0300-0000-5d6e6d860000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/vmwaretesting/providers/Microsoft.Migrate/assessmentprojects/migrateprojecta961project"), // Location: to.Ptr("centralus"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/vmwaretesting/providers/Microsoft.Migrate/MigrateProjects/vmwaretesting-MigrateProject/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-20T11:59:42.735Z"); return t}()), // CustomerWorkspaceID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/vmwaretesting/providers/Microsoft.OperationalInsights/workspaces/mahpar324211"), // CustomerWorkspaceLocation: to.Ptr("westeurope"), // NumberOfAssessments: to.Ptr[int32](0), // NumberOfGroups: to.Ptr[int32](1), // NumberOfMachines: to.Ptr[int32](47), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodcus.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-03T13:41:26.677Z"); return t}()), // }, // }, // { // Name: to.Ptr("PortalGAValidations43bbproject"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"02006b1f-0000-0300-0000-5d24a44a0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/GARegressionTesting/providers/Microsoft.Migrate/assessmentprojects/PortalGAValidations43bbproject"), // Location: to.Ptr("centralus"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/GARegressionTesting/providers/Microsoft.Migrate/MigrateProjects/PortalGAValidations/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-04T03:56:50.853Z"); return t}()), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-09T14:27:22.885Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](4), // NumberOfGroups: to.Ptr[int32](4), // NumberOfMachines: to.Ptr[int32](49), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodcus.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-04T03:56:50.853Z"); return t}()), // }, // }, // { // Name: to.Ptr("vaindana-pre-ga120dproject"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"0400d98a-0000-0d00-0000-5cd3ff790000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/vaindana-migrate-ga-rg/providers/Microsoft.Migrate/assessmentprojects/vaindana-pre-ga120dproject"), // Location: to.Ptr("westeurope"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/vaindana-migrate-ga-rg/providers/Microsoft.Migrate/MigrateProjects/vaindana-pre-ga/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-08T15:09:37.856Z"); return t}()), // CustomerWorkspaceID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/vaindana-migrate-ga-rg/providers/Microsoft.OperationalInsights/workspaces/vaindana-pre-ga-oms"), // CustomerWorkspaceLocation: to.Ptr("westeurope"), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:22:48.973Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](2), // NumberOfGroups: to.Ptr[int32](2), // NumberOfMachines: to.Ptr[int32](14), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodwe.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-08T17:12:42.178Z"); return t}()), // }, // }, // { // Name: to.Ptr("Mahesh-V2-Europe-Bugbash181eproject"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"0b00349d-0000-0d00-0000-5d22eb5b0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/Mahesh-RG-Eurpe-Bugbash/providers/Microsoft.Migrate/assessmentprojects/Mahesh-V2-Europe-Bugbash181eproject"), // Location: to.Ptr("westeurope"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/Mahesh-RG-Eurpe-Bugbash/providers/Microsoft.Migrate/MigrateProjects/Mahesh-V2-Europe-Bugbash/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T07:38:23.034Z"); return t}()), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-02T06:38:34.281Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](6), // NumberOfGroups: to.Ptr[int32](3), // NumberOfMachines: to.Ptr[int32](36), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodwe.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T07:38:23.034Z"); return t}()), // }, // }, // { // Name: to.Ptr("abgoyalWEselfhostb72bproject"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"0600c777-0000-0d00-0000-5cdaa4170000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject"), // Location: to.Ptr("westeurope"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T08:28:53.330Z"); return t}()), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:47.789Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](3), // NumberOfGroups: to.Ptr[int32](2), // NumberOfMachines: to.Ptr[int32](28), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodwe.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:11:16.022Z"); return t}()), // }, // }, // { // Name: to.Ptr("vaindana-pre-ga-10180project"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"01003c88-0000-0d00-0000-5d41601b0000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/vaindana-migrate-ga-rg/providers/Microsoft.Migrate/assessmentprojects/vaindana-pre-ga-10180project"), // Location: to.Ptr("westeurope"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/vaindana-migrate-ga-rg/providers/Microsoft.Migrate/MigrateProjects/vaindana-pre-ga-1/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T11:58:13.021Z"); return t}()), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-31T09:32:11.496Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](4), // NumberOfGroups: to.Ptr[int32](2), // NumberOfMachines: to.Ptr[int32](101), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodwe.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-15T16:52:08.918Z"); return t}()), // }, // }}, // } } }
Output:
func (*ProjectsClient) NewListPager ¶
func (client *ProjectsClient) NewListPager(resourceGroupName string, options *ProjectsClientListOptions) *runtime.Pager[ProjectsClientListResponse]
NewListPager - Get all the projects in the resource group.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- options - ProjectsClientListOptions contains the optional parameters for the ProjectsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewProjectsClient().NewListPager("abgoyal-westEurope", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ProjectResultList = armmigrate.ProjectResultList{ // Value: []*armmigrate.Project{ // { // Name: to.Ptr("abgoyalWEselfhostb72bproject"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr("\"0600c777-0000-0d00-0000-5cdaa4170000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject"), // Location: to.Ptr("westeurope"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T08:28:53.330Z"); return t}()), // LastAssessmentTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-14T11:18:47.789Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](3), // NumberOfGroups: to.Ptr[int32](2), // NumberOfMachines: to.Ptr[int32](28), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ProvisioningState: to.Ptr(armmigrate.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("https://asmsrvprodwe.prod.migration.windowsazure.com/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-09T10:11:16.022Z"); return t}()), // }, // }}, // } } }
Output:
func (*ProjectsClient) Update ¶
func (client *ProjectsClient) Update(ctx context.Context, resourceGroupName string, projectName string, options *ProjectsClientUpdateOptions) (ProjectsClientUpdateResponse, error)
Update - Update a project with specified name. Supports partial updates, for example only tags can be provided. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - ProjectsClientUpdateOptions contains the optional parameters for the ProjectsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewProjectsClient().Update(ctx, "abgoyal-westEurope", "abGoyalProject2", &armmigrate.ProjectsClientUpdateOptions{Project: &armmigrate.Project{ ETag: to.Ptr(""), Location: to.Ptr("West Europe"), Properties: &armmigrate.ProjectProperties{ AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment"), ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), }, Tags: map[string]any{}, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Project = armmigrate.Project{ // Name: to.Ptr("abGoyalProject2"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects"), // ETag: to.Ptr(""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abGoyalProject2"), // Location: to.Ptr("West Europe"), // Properties: &armmigrate.ProjectProperties{ // AssessmentSolutionID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.Migrate/assessmentprojects/abGoyalProject2"), // CreatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-26T05:56:58.752Z"); return t}()), // NumberOfAssessments: to.Ptr[int32](0), // NumberOfGroups: to.Ptr[int32](0), // NumberOfMachines: to.Ptr[int32](0), // ProjectStatus: to.Ptr(armmigrate.ProjectStatusActive), // ServiceEndpoint: to.Ptr("https://localhost/"), // UpdatedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-26T05:56:58.799Z"); return t}()), // }, // Tags: map[string]any{ // }, // } }
Output:
type ProjectsClientAssessmentOptionsListOptions ¶
type ProjectsClientAssessmentOptionsListOptions struct { }
ProjectsClientAssessmentOptionsListOptions contains the optional parameters for the ProjectsClient.NewAssessmentOptionsListPager method.
type ProjectsClientAssessmentOptionsListResponse ¶
type ProjectsClientAssessmentOptionsListResponse struct { // List of API operations. AssessmentOptionsResultList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ProjectsClientAssessmentOptionsListResponse contains the response from method ProjectsClient.NewAssessmentOptionsListPager.
type ProjectsClientAssessmentOptionsOptions ¶
type ProjectsClientAssessmentOptionsOptions struct { }
ProjectsClientAssessmentOptionsOptions contains the optional parameters for the ProjectsClient.AssessmentOptions method.
type ProjectsClientAssessmentOptionsResponse ¶
type ProjectsClientAssessmentOptionsResponse struct { // Assessment options. AssessmentOptions // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ProjectsClientAssessmentOptionsResponse contains the response from method ProjectsClient.AssessmentOptions.
type ProjectsClientCreateOptions ¶
type ProjectsClientCreateOptions struct { // New or Updated project object. Project *Project }
ProjectsClientCreateOptions contains the optional parameters for the ProjectsClient.Create method.
type ProjectsClientCreateResponse ¶
type ProjectsClientCreateResponse struct { // Azure Migrate Project. Project // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ProjectsClientCreateResponse contains the response from method ProjectsClient.Create.
type ProjectsClientDeleteOptions ¶
type ProjectsClientDeleteOptions struct { }
ProjectsClientDeleteOptions contains the optional parameters for the ProjectsClient.Delete method.
type ProjectsClientDeleteResponse ¶
type ProjectsClientDeleteResponse struct { // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ProjectsClientDeleteResponse contains the response from method ProjectsClient.Delete.
type ProjectsClientGetOptions ¶
type ProjectsClientGetOptions struct { }
ProjectsClientGetOptions contains the optional parameters for the ProjectsClient.Get method.
type ProjectsClientGetResponse ¶
type ProjectsClientGetResponse struct { // Azure Migrate Project. Project // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ProjectsClientGetResponse contains the response from method ProjectsClient.Get.
type ProjectsClientListBySubscriptionOptions ¶
type ProjectsClientListBySubscriptionOptions struct { }
ProjectsClientListBySubscriptionOptions contains the optional parameters for the ProjectsClient.NewListBySubscriptionPager method.
type ProjectsClientListBySubscriptionResponse ¶
type ProjectsClientListBySubscriptionResponse struct { // List of projects. ProjectResultList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ProjectsClientListBySubscriptionResponse contains the response from method ProjectsClient.NewListBySubscriptionPager.
type ProjectsClientListOptions ¶
type ProjectsClientListOptions struct { }
ProjectsClientListOptions contains the optional parameters for the ProjectsClient.NewListPager method.
type ProjectsClientListResponse ¶
type ProjectsClientListResponse struct { // List of projects. ProjectResultList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ProjectsClientListResponse contains the response from method ProjectsClient.NewListPager.
type ProjectsClientUpdateOptions ¶
type ProjectsClientUpdateOptions struct { // Updated project object. Project *Project }
ProjectsClientUpdateOptions contains the optional parameters for the ProjectsClient.Update method.
type ProjectsClientUpdateResponse ¶
type ProjectsClientUpdateResponse struct { // Azure Migrate Project. Project // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ProjectsClientUpdateResponse contains the response from method ProjectsClient.Update.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Provisioning state of the project.
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateMoving ProvisioningState = "Moving" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type ReservedInstance ¶
type ReservedInstance string
ReservedInstance - Azure reserved instance.
const ( ReservedInstanceNone ReservedInstance = "None" ReservedInstanceRI1Year ReservedInstance = "RI1Year" ReservedInstanceRI3Year ReservedInstance = "RI3Year" )
func PossibleReservedInstanceValues ¶
func PossibleReservedInstanceValues() []ReservedInstance
PossibleReservedInstanceValues returns the possible values for the ReservedInstance const type.
type ResourceID ¶
type ResourceID struct { // READ-ONLY ID *string }
ResourceID - ARM id for a resource.
func (ResourceID) MarshalJSON ¶ added in v1.1.0
func (r ResourceID) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceID.
func (*ResourceID) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceID.
type ServerCollector ¶
type ServerCollector struct { ETag *string Properties *CollectorProperties // READ-ONLY ID *string // READ-ONLY Name *string // READ-ONLY Type *string }
func (ServerCollector) MarshalJSON ¶ added in v1.1.0
func (s ServerCollector) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerCollector.
func (*ServerCollector) UnmarshalJSON ¶ added in v1.1.0
func (s *ServerCollector) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerCollector.
type ServerCollectorList ¶
type ServerCollectorList struct { // List of Server collectors. Value []*ServerCollector }
ServerCollectorList - List of Server collectors.
func (ServerCollectorList) MarshalJSON ¶ added in v1.1.0
func (s ServerCollectorList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerCollectorList.
func (*ServerCollectorList) UnmarshalJSON ¶ added in v1.1.0
func (s *ServerCollectorList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerCollectorList.
type ServerCollectorsClient ¶
type ServerCollectorsClient struct {
// contains filtered or unexported fields
}
ServerCollectorsClient contains the methods for the ServerCollectors group. Don't use this type directly, use NewServerCollectorsClient() instead.
func NewServerCollectorsClient ¶
func NewServerCollectorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServerCollectorsClient, error)
NewServerCollectorsClient creates a new instance of ServerCollectorsClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ServerCollectorsClient) Create ¶
func (client *ServerCollectorsClient) Create(ctx context.Context, resourceGroupName string, projectName string, serverCollectorName string, options *ServerCollectorsClientCreateOptions) (ServerCollectorsClientCreateResponse, error)
Create - Create or Update Server collector If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- serverCollectorName - Unique name of a Server collector within a project.
- options - ServerCollectorsClientCreateOptions contains the optional parameters for the ServerCollectorsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ServerCollectors_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServerCollectorsClient().Create(ctx, "pajindtest", "app11141project", "app23df4collector", &armmigrate.ServerCollectorsClientCreateOptions{CollectorBody: &armmigrate.ServerCollector{ ETag: to.Ptr("\"00000606-0000-0d00-0000-605999bf0000\""), Properties: &armmigrate.CollectorProperties{ AgentProperties: &armmigrate.CollectorAgentProperties{ SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ ApplicationID: to.Ptr("ad9f701a-cc08-4421-b51f-b5762d58e9ba"), Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/app23df4authandaccessaadapp"), Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), ObjectID: to.Ptr("b4975e42-9248-4a36-b99f-37eca377ea00"), TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), }, }, DiscoverySiteID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindTest/providers/Microsoft.OffAzure/ServerSites/app21141site"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServerCollector = armmigrate.ServerCollector{ // Name: to.Ptr("app23df4collector"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/servercollectors"), // ETag: to.Ptr("\"00000606-0000-0d00-0000-605999bf0000\""), // ID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindtest/providers/Microsoft.Migrate/assessmentprojects/app11141project/servercollectors/app23df4collector"), // Properties: &armmigrate.CollectorProperties{ // AgentProperties: &armmigrate.CollectorAgentProperties{ // ID: to.Ptr("dc984f5a-58a3-4f84-818c-a19febefa66a"), // LastHeartbeatUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-17T03:51:30.206Z"); return t}()), // SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ // ApplicationID: to.Ptr("ad9f701a-cc08-4421-b51f-b5762d58e9ba"), // Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/app23df4authandaccessaadapp"), // Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), // ObjectID: to.Ptr("b4975e42-9248-4a36-b99f-37eca377ea00"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Version: to.Ptr("1.0.8.393"), // }, // CreatedTimestamp: to.Ptr("2020-09-11T07:15:52.4361521Z"), // DiscoverySiteID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindTest/providers/Microsoft.OffAzure/ServerSites/app21141site"), // UpdatedTimestamp: to.Ptr("2021-03-23T07:33:19.697297Z"), // }, // } }
Output:
func (*ServerCollectorsClient) Delete ¶
func (client *ServerCollectorsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, serverCollectorName string, options *ServerCollectorsClientDeleteOptions) (ServerCollectorsClientDeleteResponse, error)
Delete - Delete a Server collector from the project. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- serverCollectorName - Unique name of a Server collector within a project.
- options - ServerCollectorsClientDeleteOptions contains the optional parameters for the ServerCollectorsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ServerCollectors_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewServerCollectorsClient().Delete(ctx, "pajindtest", "app11141project", "app23df4collector", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ServerCollectorsClient) Get ¶
func (client *ServerCollectorsClient) Get(ctx context.Context, resourceGroupName string, projectName string, serverCollectorName string, options *ServerCollectorsClientGetOptions) (ServerCollectorsClientGetResponse, error)
Get - Get a Server collector. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- serverCollectorName - Unique name of a Server collector within a project.
- options - ServerCollectorsClientGetOptions contains the optional parameters for the ServerCollectorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ServerCollectors_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServerCollectorsClient().Get(ctx, "pajindtest", "app11141project", "app23df4collector", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServerCollector = armmigrate.ServerCollector{ // Name: to.Ptr("app23df4collector"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/servercollectors"), // ETag: to.Ptr("\"00000606-0000-0d00-0000-605999bf0000\""), // ID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindtest/providers/Microsoft.Migrate/assessmentprojects/app11141project/servercollectors/app23df4collector"), // Properties: &armmigrate.CollectorProperties{ // AgentProperties: &armmigrate.CollectorAgentProperties{ // ID: to.Ptr("dc984f5a-58a3-4f84-818c-a19febefa66a"), // LastHeartbeatUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-17T03:51:30.206Z"); return t}()), // SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ // ApplicationID: to.Ptr("ad9f701a-cc08-4421-b51f-b5762d58e9ba"), // Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/app23df4authandaccessaadapp"), // Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), // ObjectID: to.Ptr("b4975e42-9248-4a36-b99f-37eca377ea00"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Version: to.Ptr("1.0.8.393"), // }, // CreatedTimestamp: to.Ptr("2020-09-11T07:15:52.4361521Z"), // DiscoverySiteID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindTest/providers/Microsoft.OffAzure/ServerSites/app21141site"), // UpdatedTimestamp: to.Ptr("2021-03-23T07:33:19.697297Z"), // }, // } }
Output:
func (*ServerCollectorsClient) NewListByProjectPager ¶
func (client *ServerCollectorsClient) NewListByProjectPager(resourceGroupName string, projectName string, options *ServerCollectorsClientListByProjectOptions) *runtime.Pager[ServerCollectorsClientListByProjectResponse]
NewListByProjectPager - Get a list of Server collector.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - ServerCollectorsClientListByProjectOptions contains the optional parameters for the ServerCollectorsClient.NewListByProjectPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ServerCollectors_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServerCollectorsClient().NewListByProjectPager("pajindtest", "app11141project", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerCollectorList = armmigrate.ServerCollectorList{ // Value: []*armmigrate.ServerCollector{ // { // Name: to.Ptr("app23df4collector"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/servercollectors"), // ETag: to.Ptr("\"00000606-0000-0d00-0000-605999bf0000\""), // ID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindtest/providers/Microsoft.Migrate/assessmentprojects/app11141project/servercollectors/app23df4collector"), // Properties: &armmigrate.CollectorProperties{ // AgentProperties: &armmigrate.CollectorAgentProperties{ // ID: to.Ptr("dc984f5a-58a3-4f84-818c-a19febefa66a"), // LastHeartbeatUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-09-17T03:51:30.206Z"); return t}()), // SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ // ApplicationID: to.Ptr("ad9f701a-cc08-4421-b51f-b5762d58e9ba"), // Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/app23df4authandaccessaadapp"), // Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), // ObjectID: to.Ptr("b4975e42-9248-4a36-b99f-37eca377ea00"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Version: to.Ptr("1.0.8.393"), // }, // CreatedTimestamp: to.Ptr("2020-09-11T07:15:52.4361521Z"), // DiscoverySiteID: to.Ptr("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindTest/providers/Microsoft.OffAzure/ServerSites/app21141site"), // UpdatedTimestamp: to.Ptr("2021-03-23T07:33:19.697297Z"), // }, // }}, // } } }
Output:
type ServerCollectorsClientCreateOptions ¶
type ServerCollectorsClientCreateOptions struct { // New or Updated Server collector. CollectorBody *ServerCollector }
ServerCollectorsClientCreateOptions contains the optional parameters for the ServerCollectorsClient.Create method.
type ServerCollectorsClientCreateResponse ¶
type ServerCollectorsClientCreateResponse struct { ServerCollector // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ServerCollectorsClientCreateResponse contains the response from method ServerCollectorsClient.Create.
type ServerCollectorsClientDeleteOptions ¶
type ServerCollectorsClientDeleteOptions struct { }
ServerCollectorsClientDeleteOptions contains the optional parameters for the ServerCollectorsClient.Delete method.
type ServerCollectorsClientDeleteResponse ¶
type ServerCollectorsClientDeleteResponse struct { // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ServerCollectorsClientDeleteResponse contains the response from method ServerCollectorsClient.Delete.
type ServerCollectorsClientGetOptions ¶
type ServerCollectorsClientGetOptions struct { }
ServerCollectorsClientGetOptions contains the optional parameters for the ServerCollectorsClient.Get method.
type ServerCollectorsClientGetResponse ¶
type ServerCollectorsClientGetResponse struct { ServerCollector // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ServerCollectorsClientGetResponse contains the response from method ServerCollectorsClient.Get.
type ServerCollectorsClientListByProjectOptions ¶
type ServerCollectorsClientListByProjectOptions struct { }
ServerCollectorsClientListByProjectOptions contains the optional parameters for the ServerCollectorsClient.NewListByProjectPager method.
type ServerCollectorsClientListByProjectResponse ¶
type ServerCollectorsClientListByProjectResponse struct { // List of Server collectors. ServerCollectorList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
ServerCollectorsClientListByProjectResponse contains the response from method ServerCollectorsClient.NewListByProjectPager.
type TimeRange ¶
type TimeRange string
TimeRange - Time range of performance data used to recommend a size.
func PossibleTimeRangeValues ¶
func PossibleTimeRangeValues() []TimeRange
PossibleTimeRangeValues returns the possible values for the TimeRange const type.
type UpdateGroupBody ¶
type UpdateGroupBody struct { // For optimistic concurrency control. ETag *string // Properties of the group. Properties *GroupBodyProperties }
UpdateGroupBody - Properties of group update.
func (UpdateGroupBody) MarshalJSON ¶ added in v1.1.0
func (u UpdateGroupBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateGroupBody.
func (*UpdateGroupBody) UnmarshalJSON ¶ added in v1.1.0
func (u *UpdateGroupBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UpdateGroupBody.
type VMFamily ¶
type VMFamily struct { // READ-ONLY; Category of the VM family. Category []*string // READ-ONLY; Name of the VM family. FamilyName *string // READ-ONLY; List of Azure regions. TargetLocations []*string }
VMFamily - VM family name, the list of targeted azure locations and the category of the family.
func (VMFamily) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type VMFamily.
func (*VMFamily) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type VMFamily.
type VMUptime ¶
type VMUptime struct { // Number of days in a month for VM uptime. DaysPerMonth *int32 // Number of hours per day for VM uptime. HoursPerDay *int32 }
func (VMUptime) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type VMUptime.
func (*VMUptime) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type VMUptime.
type VMwareCollector ¶
type VMwareCollector struct { ETag *string Properties *CollectorProperties // READ-ONLY ID *string // READ-ONLY Name *string // READ-ONLY Type *string }
func (VMwareCollector) MarshalJSON ¶ added in v1.1.0
func (v VMwareCollector) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareCollector.
func (*VMwareCollector) UnmarshalJSON ¶ added in v1.1.0
func (v *VMwareCollector) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCollector.
type VMwareCollectorList ¶
type VMwareCollectorList struct { // List of VMware collectors. Value []*VMwareCollector }
VMwareCollectorList - List of VMware collectors.
func (VMwareCollectorList) MarshalJSON ¶ added in v1.1.0
func (v VMwareCollectorList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareCollectorList.
func (*VMwareCollectorList) UnmarshalJSON ¶ added in v1.1.0
func (v *VMwareCollectorList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCollectorList.
type VMwareCollectorsClient ¶
type VMwareCollectorsClient struct {
// contains filtered or unexported fields
}
VMwareCollectorsClient contains the methods for the VMwareCollectors group. Don't use this type directly, use NewVMwareCollectorsClient() instead.
func NewVMwareCollectorsClient ¶
func NewVMwareCollectorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VMwareCollectorsClient, error)
NewVMwareCollectorsClient creates a new instance of VMwareCollectorsClient with the specified values.
- subscriptionID - Azure Subscription Id in which project was created.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*VMwareCollectorsClient) Create ¶
func (client *VMwareCollectorsClient) Create(ctx context.Context, resourceGroupName string, projectName string, vmWareCollectorName string, options *VMwareCollectorsClientCreateOptions) (VMwareCollectorsClientCreateResponse, error)
Create - Create or Update VMware collector If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- vmWareCollectorName - Unique name of a VMware collector within a project.
- options - VMwareCollectorsClientCreateOptions contains the optional parameters for the VMwareCollectorsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/VMwareCollectors_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewVMwareCollectorsClient().Create(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "PortalvCenterbc2fcollector", &armmigrate.VMwareCollectorsClientCreateOptions{CollectorBody: &armmigrate.VMwareCollector{ ETag: to.Ptr("\"01003d32-0000-0d00-0000-5d74d2e50000\""), Properties: &armmigrate.CollectorProperties{ AgentProperties: &armmigrate.CollectorAgentProperties{ SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ ApplicationID: to.Ptr("fc717575-8173-4b21-92a5-658b655e613e"), Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/PortalvCenterbc2fagentauthaadapp"), Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), ObjectID: to.Ptr("29d94f38-db94-4980-aec0-0cfd55ab1cd0"), TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), }, }, DiscoverySiteID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VMwareCollector = armmigrate.VMwareCollector{ // Name: to.Ptr("PortalvCenterbc2fcollector"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/vmwarecollectors"), // ETag: to.Ptr("\"01003d32-0000-0d00-0000-5d74d2e50000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/vmwarecollectors/PortalvCenterbc2fcollector"), // Properties: &armmigrate.CollectorProperties{ // AgentProperties: &armmigrate.CollectorAgentProperties{ // ID: to.Ptr("75b0f71e-1272-4f29-a801-29cfa4b34a6e"), // LastHeartbeatUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-28T06:21:28.779Z"); return t}()), // SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ // ApplicationID: to.Ptr("fc717575-8173-4b21-92a5-658b655e613e"), // Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/PortalvCenterbc2fagentauthaadapp"), // Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), // ObjectID: to.Ptr("29d94f38-db94-4980-aec0-0cfd55ab1cd0"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Version: to.Ptr("1.0.8.227"), // }, // CreatedTimestamp: to.Ptr("2019-05-09T09:58:21.4988104Z"), // DiscoverySiteID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite"), // UpdatedTimestamp: to.Ptr("2019-09-08T10:07:33.1996006Z"), // }, // } }
Output:
func (*VMwareCollectorsClient) Delete ¶
func (client *VMwareCollectorsClient) Delete(ctx context.Context, resourceGroupName string, projectName string, vmWareCollectorName string, options *VMwareCollectorsClientDeleteOptions) (VMwareCollectorsClientDeleteResponse, error)
Delete - Delete a VMware collector from the project. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- vmWareCollectorName - Unique name of a VMware collector within a project.
- options - VMwareCollectorsClientDeleteOptions contains the optional parameters for the VMwareCollectorsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/VMwareCollectors_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewVMwareCollectorsClient().Delete(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "PortalvCenterbc2fcollector", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*VMwareCollectorsClient) Get ¶
func (client *VMwareCollectorsClient) Get(ctx context.Context, resourceGroupName string, projectName string, vmWareCollectorName string, options *VMwareCollectorsClientGetOptions) (VMwareCollectorsClientGetResponse, error)
Get - Get a VMware collector. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- vmWareCollectorName - Unique name of a VMware collector within a project.
- options - VMwareCollectorsClientGetOptions contains the optional parameters for the VMwareCollectorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/VMwareCollectors_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewVMwareCollectorsClient().Get(ctx, "abgoyal-westEurope", "abgoyalWEselfhostb72bproject", "PortalvCenterbc2fcollector", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VMwareCollector = armmigrate.VMwareCollector{ // Name: to.Ptr("PortalvCenterbc2fcollector"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/vmwarecollectors"), // ETag: to.Ptr("\"01003d32-0000-0d00-0000-5d74d2e50000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/vmwarecollectors/PortalvCenterbc2fcollector"), // Properties: &armmigrate.CollectorProperties{ // AgentProperties: &armmigrate.CollectorAgentProperties{ // ID: to.Ptr("75b0f71e-1272-4f29-a801-29cfa4b34a6e"), // LastHeartbeatUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-28T06:21:28.779Z"); return t}()), // SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ // ApplicationID: to.Ptr("fc717575-8173-4b21-92a5-658b655e613e"), // Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/PortalvCenterbc2fagentauthaadapp"), // Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), // ObjectID: to.Ptr("29d94f38-db94-4980-aec0-0cfd55ab1cd0"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Version: to.Ptr("1.0.8.227"), // }, // CreatedTimestamp: to.Ptr("2019-05-09T09:58:21.4988104Z"), // DiscoverySiteID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite"), // UpdatedTimestamp: to.Ptr("2019-09-08T10:07:33.1996006Z"), // }, // } }
Output:
func (*VMwareCollectorsClient) NewListByProjectPager ¶
func (client *VMwareCollectorsClient) NewListByProjectPager(resourceGroupName string, projectName string, options *VMwareCollectorsClientListByProjectOptions) *runtime.Pager[VMwareCollectorsClientListByProjectResponse]
NewListByProjectPager - Get a list of VMware collector.
Generated from API version 2019-10-01
- resourceGroupName - Name of the Azure Resource Group that project is part of.
- projectName - Name of the Azure Migrate project.
- options - VMwareCollectorsClientListByProjectOptions contains the optional parameters for the VMwareCollectorsClient.NewListByProjectPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/VMwareCollectors_ListByProject.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armmigrate.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewVMwareCollectorsClient().NewListByProjectPager("abgoyal-westEurope", "abgoyalWEselfhostb72bproject", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.VMwareCollectorList = armmigrate.VMwareCollectorList{ // Value: []*armmigrate.VMwareCollector{ // { // Name: to.Ptr("PortalvCenterbc2fcollector"), // Type: to.Ptr("Microsoft.Migrate/assessmentprojects/vmwarecollectors"), // ETag: to.Ptr("\"01003d32-0000-0d00-0000-5d74d2e50000\""), // ID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/vmwarecollectors/PortalvCenterbc2fcollector"), // Properties: &armmigrate.CollectorProperties{ // AgentProperties: &armmigrate.CollectorAgentProperties{ // ID: to.Ptr("75b0f71e-1272-4f29-a801-29cfa4b34a6e"), // LastHeartbeatUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-28T06:21:28.779Z"); return t}()), // SpnDetails: &armmigrate.CollectorBodyAgentSpnProperties{ // ApplicationID: to.Ptr("fc717575-8173-4b21-92a5-658b655e613e"), // Audience: to.Ptr("https://72f988bf-86f1-41af-91ab-2d7cd011db47/PortalvCenterbc2fagentauthaadapp"), // Authority: to.Ptr("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"), // ObjectID: to.Ptr("29d94f38-db94-4980-aec0-0cfd55ab1cd0"), // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // }, // Version: to.Ptr("1.0.8.227"), // }, // CreatedTimestamp: to.Ptr("2019-05-09T09:58:21.4988104Z"), // DiscoverySiteID: to.Ptr("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.OffAzure/VMwareSites/PortalvCenterbc2fsite"), // UpdatedTimestamp: to.Ptr("2019-09-08T10:07:33.1996006Z"), // }, // }}, // } } }
Output:
type VMwareCollectorsClientCreateOptions ¶
type VMwareCollectorsClientCreateOptions struct { // New or Updated VMware collector. CollectorBody *VMwareCollector }
VMwareCollectorsClientCreateOptions contains the optional parameters for the VMwareCollectorsClient.Create method.
type VMwareCollectorsClientCreateResponse ¶
type VMwareCollectorsClientCreateResponse struct { VMwareCollector // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
VMwareCollectorsClientCreateResponse contains the response from method VMwareCollectorsClient.Create.
type VMwareCollectorsClientDeleteOptions ¶
type VMwareCollectorsClientDeleteOptions struct { }
VMwareCollectorsClientDeleteOptions contains the optional parameters for the VMwareCollectorsClient.Delete method.
type VMwareCollectorsClientDeleteResponse ¶
type VMwareCollectorsClientDeleteResponse struct { // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
VMwareCollectorsClientDeleteResponse contains the response from method VMwareCollectorsClient.Delete.
type VMwareCollectorsClientGetOptions ¶
type VMwareCollectorsClientGetOptions struct { }
VMwareCollectorsClientGetOptions contains the optional parameters for the VMwareCollectorsClient.Get method.
type VMwareCollectorsClientGetResponse ¶
type VMwareCollectorsClientGetResponse struct { VMwareCollector // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
VMwareCollectorsClientGetResponse contains the response from method VMwareCollectorsClient.Get.
type VMwareCollectorsClientListByProjectOptions ¶
type VMwareCollectorsClientListByProjectOptions struct { }
VMwareCollectorsClientListByProjectOptions contains the optional parameters for the VMwareCollectorsClient.NewListByProjectPager method.
type VMwareCollectorsClientListByProjectResponse ¶
type VMwareCollectorsClientListByProjectResponse struct { // List of VMware collectors. VMwareCollectorList // XMSRequestID contains the information returned from the x-ms-request-id header response. XMSRequestID *string }
VMwareCollectorsClientListByProjectResponse contains the response from method VMwareCollectorsClient.NewListByProjectPager.
Source Files ¶
- assessedmachines_client.go
- assessments_client.go
- build.go
- client_factory.go
- constants.go
- groups_client.go
- hypervcollectors_client.go
- importcollectors_client.go
- machines_client.go
- models.go
- models_serde.go
- operations_client.go
- options.go
- privateendpointconnection_client.go
- privatelinkresource_client.go
- projects_client.go
- response_types.go
- servercollectors_client.go
- time_rfc3339.go
- vmwarecollectors_client.go