migrates

package
v0.20240209.1164150 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/migrates Documentation

The migrates SDK allows for interaction with the Azure Resource Manager Service migrate (API Version 2020-07-07).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-07-07/migrates"

Client Initialization

client := migrates.NewMigratesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MigratesClient.HyperVSitesList

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.HyperVSitesList(ctx, id)` can be used to do batched pagination
items, err := client.HyperVSitesListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MigratesClient.HyperVSitesListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.HyperVSitesListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.HyperVSitesListBySubscriptionComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MigratesClient.VMwareSitesList

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.VMwareSitesList(ctx, id)` can be used to do batched pagination
items, err := client.VMwareSitesListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MigratesClient.VMwareSitesListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.VMwareSitesListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.VMwareSitesListBySubscriptionComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HyperVSite

type HyperVSite struct {
	ETag       *string                `json:"eTag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Location   *string                `json:"location,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *SiteProperties        `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type HyperVSiteOperationPredicate

type HyperVSiteOperationPredicate struct {
	ETag     *string
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (HyperVSiteOperationPredicate) Matches

func (p HyperVSiteOperationPredicate) Matches(input HyperVSite) bool

type HyperVSitesListBySubscriptionCompleteResult

type HyperVSitesListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []HyperVSite
}

type HyperVSitesListBySubscriptionOperationResponse

type HyperVSitesListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]HyperVSite
}

type HyperVSitesListCompleteResult

type HyperVSitesListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []HyperVSite
}

type HyperVSitesListOperationResponse

type HyperVSitesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]HyperVSite
}

type MigratesClient

type MigratesClient struct {
	Client *resourcemanager.Client
}

func NewMigratesClientWithBaseURI

func NewMigratesClientWithBaseURI(sdkApi sdkEnv.Api) (*MigratesClient, error)

func (MigratesClient) HyperVSitesList

HyperVSitesList ...

func (MigratesClient) HyperVSitesListBySubscription

func (c MigratesClient) HyperVSitesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result HyperVSitesListBySubscriptionOperationResponse, err error)

HyperVSitesListBySubscription ...

func (MigratesClient) HyperVSitesListBySubscriptionComplete

func (c MigratesClient) HyperVSitesListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (HyperVSitesListBySubscriptionCompleteResult, error)

HyperVSitesListBySubscriptionComplete retrieves all the results into a single object

func (MigratesClient) HyperVSitesListBySubscriptionCompleteMatchingPredicate

func (c MigratesClient) HyperVSitesListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate HyperVSiteOperationPredicate) (result HyperVSitesListBySubscriptionCompleteResult, err error)

HyperVSitesListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MigratesClient) HyperVSitesListComplete

HyperVSitesListComplete retrieves all the results into a single object

func (MigratesClient) HyperVSitesListCompleteMatchingPredicate

func (c MigratesClient) HyperVSitesListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate HyperVSiteOperationPredicate) (result HyperVSitesListCompleteResult, err error)

HyperVSitesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MigratesClient) VMwareSitesList

VMwareSitesList ...

func (MigratesClient) VMwareSitesListBySubscription

func (c MigratesClient) VMwareSitesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result VMwareSitesListBySubscriptionOperationResponse, err error)

VMwareSitesListBySubscription ...

func (MigratesClient) VMwareSitesListBySubscriptionComplete

func (c MigratesClient) VMwareSitesListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (VMwareSitesListBySubscriptionCompleteResult, error)

VMwareSitesListBySubscriptionComplete retrieves all the results into a single object

func (MigratesClient) VMwareSitesListBySubscriptionCompleteMatchingPredicate

func (c MigratesClient) VMwareSitesListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VMwareSiteOperationPredicate) (result VMwareSitesListBySubscriptionCompleteResult, err error)

VMwareSitesListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MigratesClient) VMwareSitesListComplete

VMwareSitesListComplete retrieves all the results into a single object

func (MigratesClient) VMwareSitesListCompleteMatchingPredicate

func (c MigratesClient) VMwareSitesListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VMwareSiteOperationPredicate) (result VMwareSitesListCompleteResult, err error)

VMwareSitesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type SiteAgentProperties

type SiteAgentProperties struct {
	Id               *string `json:"id,omitempty"`
	KeyVaultId       *string `json:"keyVaultId,omitempty"`
	KeyVaultUri      *string `json:"keyVaultUri,omitempty"`
	LastHeartBeatUtc *string `json:"lastHeartBeatUtc,omitempty"`
	Version          *string `json:"version,omitempty"`
}

func (*SiteAgentProperties) GetLastHeartBeatUtcAsTime

func (o *SiteAgentProperties) GetLastHeartBeatUtcAsTime() (*time.Time, error)

func (*SiteAgentProperties) SetLastHeartBeatUtcAsTime

func (o *SiteAgentProperties) SetLastHeartBeatUtcAsTime(input time.Time)

type SiteProperties

type SiteProperties struct {
	AgentDetails                    *SiteAgentProperties `json:"agentDetails,omitempty"`
	ApplianceName                   *string              `json:"applianceName,omitempty"`
	DiscoverySolutionId             *string              `json:"discoverySolutionId,omitempty"`
	ServiceEndpoint                 *string              `json:"serviceEndpoint,omitempty"`
	ServicePrincipalIdentityDetails *SiteSpnProperties   `json:"servicePrincipalIdentityDetails,omitempty"`
}

type SiteSpnProperties

type SiteSpnProperties struct {
	AadAuthority  *string `json:"aadAuthority,omitempty"`
	ApplicationId *string `json:"applicationId,omitempty"`
	Audience      *string `json:"audience,omitempty"`
	ObjectId      *string `json:"objectId,omitempty"`
	RawCertData   *string `json:"rawCertData,omitempty"`
	TenantId      *string `json:"tenantId,omitempty"`
}

type VMwareSite

type VMwareSite struct {
	ETag       *string                `json:"eTag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Location   *string                `json:"location,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *SiteProperties        `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type VMwareSiteOperationPredicate

type VMwareSiteOperationPredicate struct {
	ETag     *string
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (VMwareSiteOperationPredicate) Matches

func (p VMwareSiteOperationPredicate) Matches(input VMwareSite) bool

type VMwareSitesListBySubscriptionCompleteResult

type VMwareSitesListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []VMwareSite
}

type VMwareSitesListBySubscriptionOperationResponse

type VMwareSitesListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VMwareSite
}

type VMwareSitesListCompleteResult

type VMwareSitesListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []VMwareSite
}

type VMwareSitesListOperationResponse

type VMwareSitesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VMwareSite
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL