vminstancehybrididentitymetadatas

package
v0.20241025.1143247 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := vminstancehybrididentitymetadatas.NewVMInstanceHybridIdentityMetadatasClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VMInstanceHybridIdentityMetadatasClient.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: VMInstanceHybridIdentityMetadatasClient.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 PossibleValuesForProvisioningState added in v0.20240620.1161515

func PossibleValuesForProvisioningState() []string

Types

type GetOperationResponse

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

type ListByVirtualMachineInstanceCompleteResult

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

type ListByVirtualMachineInstanceCustomPager added in v0.20240628.1153531

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

type ListByVirtualMachineInstanceOperationResponse

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

type ProvisioningState added in v0.20240620.1161515

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 added in v0.20240620.1161515

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

type VMInstanceHybridIdentityMetadata

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

type VMInstanceHybridIdentityMetadataOperationPredicate

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

func (VMInstanceHybridIdentityMetadataOperationPredicate) Matches

type VMInstanceHybridIdentityMetadataProperties

type VMInstanceHybridIdentityMetadataProperties struct {
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
	PublicKey         *string            `json:"publicKey,omitempty"`
	ResourceUid       *string            `json:"resourceUid,omitempty"`
}

type VMInstanceHybridIdentityMetadatasClient

type VMInstanceHybridIdentityMetadatasClient struct {
	Client *resourcemanager.Client
}

func NewVMInstanceHybridIdentityMetadatasClientWithBaseURI

func NewVMInstanceHybridIdentityMetadatasClientWithBaseURI(sdkApi sdkEnv.Api) (*VMInstanceHybridIdentityMetadatasClient, error)

func (VMInstanceHybridIdentityMetadatasClient) Get

Get ...

func (VMInstanceHybridIdentityMetadatasClient) ListByVirtualMachineInstance

ListByVirtualMachineInstance ...

func (VMInstanceHybridIdentityMetadatasClient) ListByVirtualMachineInstanceComplete

ListByVirtualMachineInstanceComplete retrieves all the results into a single object

func (VMInstanceHybridIdentityMetadatasClient) ListByVirtualMachineInstanceCompleteMatchingPredicate

ListByVirtualMachineInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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