runasaccounts

package
v0.20240122.1052955 Latest Latest
Warning

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

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

README

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

The runasaccounts 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/runasaccounts"

Client Initialization

client := runasaccounts.NewRunAsAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RunAsAccountsClient.GetAllRunAsAccountsInSite

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

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

Example Usage: RunAsAccountsClient.GetRunAsAccount

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

read, err := client.GetRunAsAccount(ctx, id)
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 PossibleValuesForCredentialType

func PossibleValuesForCredentialType() []string

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 CredentialType

type CredentialType string
const (
	CredentialTypeHyperVFabric  CredentialType = "HyperVFabric"
	CredentialTypeLinuxGuest    CredentialType = "LinuxGuest"
	CredentialTypeLinuxServer   CredentialType = "LinuxServer"
	CredentialTypeVMwareFabric  CredentialType = "VMwareFabric"
	CredentialTypeWindowsGuest  CredentialType = "WindowsGuest"
	CredentialTypeWindowsServer CredentialType = "WindowsServer"
)

func (*CredentialType) UnmarshalJSON added in v0.20230516.1215417

func (s *CredentialType) UnmarshalJSON(bytes []byte) error

type GetAllRunAsAccountsInSiteCompleteResult

type GetAllRunAsAccountsInSiteCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []VMwareRunAsAccount
}

type GetAllRunAsAccountsInSiteOperationResponse

type GetAllRunAsAccountsInSiteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VMwareRunAsAccount
}

type GetRunAsAccountOperationResponse

type GetRunAsAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VMwareRunAsAccount
}

type RunAsAccountProperties

type RunAsAccountProperties struct {
	CreatedTimestamp *string         `json:"createdTimestamp,omitempty"`
	CredentialType   *CredentialType `json:"credentialType,omitempty"`
	DisplayName      *string         `json:"displayName,omitempty"`
	UpdatedTimestamp *string         `json:"updatedTimestamp,omitempty"`
}

type RunAsAccountsClient

type RunAsAccountsClient struct {
	Client *resourcemanager.Client
}

func NewRunAsAccountsClientWithBaseURI

func NewRunAsAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*RunAsAccountsClient, error)

func (RunAsAccountsClient) GetAllRunAsAccountsInSite

func (c RunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context, id VMwareSiteId) (result GetAllRunAsAccountsInSiteOperationResponse, err error)

GetAllRunAsAccountsInSite ...

func (RunAsAccountsClient) GetAllRunAsAccountsInSiteComplete

func (c RunAsAccountsClient) GetAllRunAsAccountsInSiteComplete(ctx context.Context, id VMwareSiteId) (GetAllRunAsAccountsInSiteCompleteResult, error)

GetAllRunAsAccountsInSiteComplete retrieves all the results into a single object

func (RunAsAccountsClient) GetAllRunAsAccountsInSiteCompleteMatchingPredicate

func (c RunAsAccountsClient) GetAllRunAsAccountsInSiteCompleteMatchingPredicate(ctx context.Context, id VMwareSiteId, predicate VMwareRunAsAccountOperationPredicate) (result GetAllRunAsAccountsInSiteCompleteResult, err error)

GetAllRunAsAccountsInSiteCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RunAsAccountsClient) GetRunAsAccount

GetRunAsAccount ...

type VMwareRunAsAccount

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

type VMwareRunAsAccountOperationPredicate

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

func (VMwareRunAsAccountOperationPredicate) Matches

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) FromParseResult added in v0.20231127.1171502

func (id *VMwareSiteId) FromParseResult(input resourceids.ParseResult) error

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