migrates

package
v0.20230210.1100159 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MPL-2.0 Imports: 10 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-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 := migrates.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 := migrates.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 := migrates.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 := migrates.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 {
	Items []HyperVSite
}

type HyperVSitesListBySubscriptionOperationResponse

type HyperVSitesListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]HyperVSite
	// contains filtered or unexported fields
}

func (HyperVSitesListBySubscriptionOperationResponse) HasMore

func (HyperVSitesListBySubscriptionOperationResponse) LoadMore

type HyperVSitesListCompleteResult

type HyperVSitesListCompleteResult struct {
	Items []HyperVSite
}

type HyperVSitesListOperationResponse

type HyperVSitesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]HyperVSite
	// contains filtered or unexported fields
}

func (HyperVSitesListOperationResponse) HasMore

func (HyperVSitesListOperationResponse) LoadMore

type MigratesClient

type MigratesClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewMigratesClientWithBaseURI

func NewMigratesClientWithBaseURI(endpoint string) MigratesClient

func (MigratesClient) HyperVSitesList

HyperVSitesList ...

func (MigratesClient) HyperVSitesListBySubscription

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

HyperVSitesListBySubscription ...

func (MigratesClient) HyperVSitesListBySubscriptionComplete

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

HyperVSitesListBySubscriptionComplete retrieves all of the results into a single object

func (MigratesClient) HyperVSitesListBySubscriptionCompleteMatchingPredicate

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

HyperVSitesListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (MigratesClient) HyperVSitesListComplete

HyperVSitesListComplete retrieves all of the results into a single object

func (MigratesClient) HyperVSitesListCompleteMatchingPredicate

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

HyperVSitesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (MigratesClient) VMwareSitesList

VMwareSitesList ...

func (MigratesClient) VMwareSitesListBySubscription

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

VMwareSitesListBySubscription ...

func (MigratesClient) VMwareSitesListBySubscriptionComplete

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

VMwareSitesListBySubscriptionComplete retrieves all of the results into a single object

func (MigratesClient) VMwareSitesListBySubscriptionCompleteMatchingPredicate

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

VMwareSitesListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (MigratesClient) VMwareSitesListComplete

VMwareSitesListComplete retrieves all of the results into a single object

func (MigratesClient) VMwareSitesListCompleteMatchingPredicate

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

VMwareSitesListCompleteMatchingPredicate retrieves all of the results and then applied 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 {
	Items []VMwareSite
}

type VMwareSitesListBySubscriptionOperationResponse

type VMwareSitesListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]VMwareSite
	// contains filtered or unexported fields
}

func (VMwareSitesListBySubscriptionOperationResponse) HasMore

func (VMwareSitesListBySubscriptionOperationResponse) LoadMore

type VMwareSitesListCompleteResult

type VMwareSitesListCompleteResult struct {
	Items []VMwareSite
}

type VMwareSitesListOperationResponse

type VMwareSitesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]VMwareSite
	// contains filtered or unexported fields
}

func (VMwareSitesListOperationResponse) HasMore

func (VMwareSitesListOperationResponse) LoadMore

Jump to

Keyboard shortcuts

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