guestagents

package
v0.20241126.1723 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents Documentation

The guestagents SDK allows for interaction with Azure Resource Manager systemcentervirtualmachinemanager (API Version 2023-10-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/systemcentervirtualmachinemanager/2023-10-07/guestagents"

Client Initialization

client := guestagents.NewGuestAgentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GuestAgentsClient.Create

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

payload := guestagents.GuestAgent{
	// ...
}


if err := client.CreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: GuestAgentsClient.Delete

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: GuestAgentsClient.Get

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: GuestAgentsClient.ListByVirtualMachineInstance

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

// alternatively `client.ListByVirtualMachineInstance(ctx, id)` can be used to do batched pagination
items, err := client.ListByVirtualMachineInstanceComplete(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

func PossibleValuesForProvisioningAction

func PossibleValuesForProvisioningAction() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

Types

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GuestAgent
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GuestAgent
}

type GuestAgent

type GuestAgent struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *GuestAgentProperties  `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type GuestAgentOperationPredicate

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

func (GuestAgentOperationPredicate) Matches

func (p GuestAgentOperationPredicate) Matches(input GuestAgent) bool

type GuestAgentProperties

type GuestAgentProperties struct {
	Credentials        *GuestCredential        `json:"credentials,omitempty"`
	CustomResourceName *string                 `json:"customResourceName,omitempty"`
	HTTPProxyConfig    *HTTPProxyConfiguration `json:"httpProxyConfig,omitempty"`
	ProvisioningAction *ProvisioningAction     `json:"provisioningAction,omitempty"`
	ProvisioningState  *ProvisioningState      `json:"provisioningState,omitempty"`
	Status             *string                 `json:"status,omitempty"`
	Uuid               *string                 `json:"uuid,omitempty"`
}

type GuestAgentsClient

type GuestAgentsClient struct {
	Client *resourcemanager.Client
}

func NewGuestAgentsClientWithBaseURI

func NewGuestAgentsClientWithBaseURI(sdkApi sdkEnv.Api) (*GuestAgentsClient, error)

func (GuestAgentsClient) Create

Create ...

func (GuestAgentsClient) CreateThenPoll

func (c GuestAgentsClient) CreateThenPoll(ctx context.Context, id commonids.ScopeId, input GuestAgent) error

CreateThenPoll performs Create then polls until it's completed

func (GuestAgentsClient) Delete

Delete ...

func (GuestAgentsClient) Get

Get ...

func (GuestAgentsClient) ListByVirtualMachineInstance

func (c GuestAgentsClient) ListByVirtualMachineInstance(ctx context.Context, id commonids.ScopeId) (result ListByVirtualMachineInstanceOperationResponse, err error)

ListByVirtualMachineInstance ...

func (GuestAgentsClient) ListByVirtualMachineInstanceComplete

func (c GuestAgentsClient) ListByVirtualMachineInstanceComplete(ctx context.Context, id commonids.ScopeId) (ListByVirtualMachineInstanceCompleteResult, error)

ListByVirtualMachineInstanceComplete retrieves all the results into a single object

func (GuestAgentsClient) ListByVirtualMachineInstanceCompleteMatchingPredicate

func (c GuestAgentsClient) ListByVirtualMachineInstanceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate GuestAgentOperationPredicate) (result ListByVirtualMachineInstanceCompleteResult, err error)

ListByVirtualMachineInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GuestCredential

type GuestCredential struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

type HTTPProxyConfiguration

type HTTPProxyConfiguration struct {
	HTTPSProxy *string `json:"httpsProxy,omitempty"`
}

type ListByVirtualMachineInstanceCompleteResult

type ListByVirtualMachineInstanceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []GuestAgent
}

type ListByVirtualMachineInstanceCustomPager

type ListByVirtualMachineInstanceCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ListByVirtualMachineInstanceOperationResponse

type ListByVirtualMachineInstanceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]GuestAgent
}

type ProvisioningAction

type ProvisioningAction string
const (
	ProvisioningActionInstall   ProvisioningAction = "install"
	ProvisioningActionRepair    ProvisioningAction = "repair"
	ProvisioningActionUninstall ProvisioningAction = "uninstall"
)

func (*ProvisioningAction) UnmarshalJSON

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

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted     ProvisioningState = "Accepted"
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateCreated      ProvisioningState = "Created"
	ProvisioningStateDeleting     ProvisioningState = "Deleting"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
	ProvisioningStateUpdating     ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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