vcenter

package
v0.20230406.1222242 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MPL-2.0 Imports: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/vcenter Documentation

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

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-01-01/vcenter"

Client Initialization

client := vcenter.NewVCenterClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VCenterClient.DeleteVCenter

ctx := context.TODO()
id := vcenter.NewVCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "vCenterValue")

read, err := client.DeleteVCenter(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VCenterClient.GetAllVCentersInSite

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

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

Example Usage: VCenterClient.GetVCenter

ctx := context.TODO()
id := vcenter.NewVCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "vCenterValue")

read, err := client.GetVCenter(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VCenterClient.PutVCenter

ctx := context.TODO()
id := vcenter.NewVCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "vCenterValue")

payload := vcenter.VCenter{
	// ...
}


read, err := client.PutVCenter(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateVCenterID

func ValidateVCenterID(input interface{}, key string) (warnings []string, errors []error)

ValidateVCenterID checks that 'input' can be parsed as a V Center ID

func ValidateVMwareSiteID

func ValidateVMwareSiteID(input interface{}, key string) (warnings []string, errors []error)

ValidateVMwareSiteID checks that 'input' can be parsed as a V Mware Site ID

Types

type DeleteVCenterOperationResponse

type DeleteVCenterOperationResponse struct {
	HttpResponse *http.Response
}

type GetAllVCentersInSiteCompleteResult

type GetAllVCentersInSiteCompleteResult struct {
	Items []VCenter
}

type GetAllVCentersInSiteOperationOptions

type GetAllVCentersInSiteOperationOptions struct {
	Filter *string
}

func DefaultGetAllVCentersInSiteOperationOptions

func DefaultGetAllVCentersInSiteOperationOptions() GetAllVCentersInSiteOperationOptions

type GetAllVCentersInSiteOperationResponse

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

func (GetAllVCentersInSiteOperationResponse) HasMore

func (GetAllVCentersInSiteOperationResponse) LoadMore

type GetVCenterOperationResponse

type GetVCenterOperationResponse struct {
	HttpResponse *http.Response
	Model        *VCenter
}

type HealthErrorDetails

type HealthErrorDetails struct {
	Code              *string            `json:"code,omitempty"`
	Id                *int64             `json:"id,omitempty"`
	Message           *string            `json:"message,omitempty"`
	MessageParameters *map[string]string `json:"messageParameters,omitempty"`
	PossibleCauses    *string            `json:"possibleCauses,omitempty"`
	RecommendedAction *string            `json:"recommendedAction,omitempty"`
	Severity          *string            `json:"severity,omitempty"`
	Source            *string            `json:"source,omitempty"`
	SummaryMessage    *string            `json:"summaryMessage,omitempty"`
}

type PutVCenterOperationResponse

type PutVCenterOperationResponse struct {
	HttpResponse *http.Response
}

type VCenter

type VCenter struct {
	Id         *string            `json:"id,omitempty"`
	Name       *string            `json:"name,omitempty"`
	Properties *VCenterProperties `json:"properties,omitempty"`
	Type       *string            `json:"type,omitempty"`
}

type VCenterClient

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

func NewVCenterClientWithBaseURI

func NewVCenterClientWithBaseURI(endpoint string) VCenterClient

func (VCenterClient) DeleteVCenter

func (c VCenterClient) DeleteVCenter(ctx context.Context, id VCenterId) (result DeleteVCenterOperationResponse, err error)

DeleteVCenter ...

func (VCenterClient) GetAllVCentersInSite

GetAllVCentersInSite ...

func (VCenterClient) GetAllVCentersInSiteComplete

GetAllVCentersInSiteComplete retrieves all of the results into a single object

func (VCenterClient) GetAllVCentersInSiteCompleteMatchingPredicate

func (c VCenterClient) GetAllVCentersInSiteCompleteMatchingPredicate(ctx context.Context, id VMwareSiteId, options GetAllVCentersInSiteOperationOptions, predicate VCenterOperationPredicate) (resp GetAllVCentersInSiteCompleteResult, err error)

GetAllVCentersInSiteCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (VCenterClient) GetVCenter

func (c VCenterClient) GetVCenter(ctx context.Context, id VCenterId) (result GetVCenterOperationResponse, err error)

GetVCenter ...

func (VCenterClient) PutVCenter

func (c VCenterClient) PutVCenter(ctx context.Context, id VCenterId, input VCenter) (result PutVCenterOperationResponse, err error)

PutVCenter ...

type VCenterId

type VCenterId struct {
	SubscriptionId    string
	ResourceGroupName string
	VmwareSiteName    string
	VCenterName       string
}

VCenterId is a struct representing the Resource ID for a V Center

func NewVCenterID

func NewVCenterID(subscriptionId string, resourceGroupName string, vmwareSiteName string, vCenterName string) VCenterId

NewVCenterID returns a new VCenterId struct

func ParseVCenterID

func ParseVCenterID(input string) (*VCenterId, error)

ParseVCenterID parses 'input' into a VCenterId

func ParseVCenterIDInsensitively

func ParseVCenterIDInsensitively(input string) (*VCenterId, error)

ParseVCenterIDInsensitively parses 'input' case-insensitively into a VCenterId note: this method should only be used for API response data and not user input

func (VCenterId) ID

func (id VCenterId) ID() string

ID returns the formatted V Center ID

func (VCenterId) Segments

func (id VCenterId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this V Center ID

func (VCenterId) String

func (id VCenterId) String() string

String returns a human-readable description of this V Center ID

type VCenterOperationPredicate

type VCenterOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (VCenterOperationPredicate) Matches

func (p VCenterOperationPredicate) Matches(input VCenter) bool

type VCenterProperties

type VCenterProperties struct {
	CreatedTimestamp    *string               `json:"createdTimestamp,omitempty"`
	Errors              *[]HealthErrorDetails `json:"errors,omitempty"`
	Fqdn                *string               `json:"fqdn,omitempty"`
	InstanceUuid        *string               `json:"instanceUuid,omitempty"`
	PerfStatisticsLevel *string               `json:"perfStatisticsLevel,omitempty"`
	Port                *string               `json:"port,omitempty"`
	RunAsAccountId      *string               `json:"runAsAccountId,omitempty"`
	UpdatedTimestamp    *string               `json:"updatedTimestamp,omitempty"`
	Version             *string               `json:"version,omitempty"`
}

type VMwareSiteId

type VMwareSiteId struct {
	SubscriptionId    string
	ResourceGroupName string
	VmwareSiteName    string
}

VMwareSiteId is a struct representing the Resource ID for a V Mware Site

func NewVMwareSiteID

func NewVMwareSiteID(subscriptionId string, resourceGroupName string, vmwareSiteName string) VMwareSiteId

NewVMwareSiteID returns a new VMwareSiteId struct

func ParseVMwareSiteID

func ParseVMwareSiteID(input string) (*VMwareSiteId, error)

ParseVMwareSiteID parses 'input' into a VMwareSiteId

func ParseVMwareSiteIDInsensitively

func ParseVMwareSiteIDInsensitively(input string) (*VMwareSiteId, error)

ParseVMwareSiteIDInsensitively parses 'input' case-insensitively into a VMwareSiteId note: this method should only be used for API response data and not user input

func (VMwareSiteId) ID

func (id VMwareSiteId) ID() string

ID returns the formatted V Mware Site ID

func (VMwareSiteId) Segments

func (id VMwareSiteId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this V Mware Site ID

func (VMwareSiteId) String

func (id VMwareSiteId) String() string

String returns a human-readable description of this V Mware Site ID

Jump to

Keyboard shortcuts

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