hybrididentitymetadata

package
v0.20240227.1200200 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/hybrididentitymetadata Documentation

The hybrididentitymetadata SDK allows for interaction with the Azure Resource Manager Service connectedvmware (API Version 2022-01-10-preview).

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/connectedvmware/2022-01-10-preview/hybrididentitymetadata"

Client Initialization

client := hybrididentitymetadata.NewHybridIdentityMetadataClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: HybridIdentityMetadataClient.Create

ctx := context.TODO()
id := hybrididentitymetadata.NewHybridIdentityMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "hybridIdentityMetadataValue")

payload := hybrididentitymetadata.HybridIdentityMetadata{
	// ...
}


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

Example Usage: HybridIdentityMetadataClient.Delete

ctx := context.TODO()
id := hybrididentitymetadata.NewHybridIdentityMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "hybridIdentityMetadataValue")

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: HybridIdentityMetadataClient.Get

ctx := context.TODO()
id := hybrididentitymetadata.NewHybridIdentityMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "hybridIdentityMetadataValue")

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: HybridIdentityMetadataClient.ListByVM

ctx := context.TODO()
id := hybrididentitymetadata.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

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

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

ValidateHybridIdentityMetadataID checks that 'input' can be parsed as a Hybrid Identity Metadata ID

func ValidateVirtualMachineID

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

ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID

Types

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *HybridIdentityMetadata
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type HybridIdentityMetadata

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

type HybridIdentityMetadataClient

type HybridIdentityMetadataClient struct {
	Client *resourcemanager.Client
}

func NewHybridIdentityMetadataClientWithBaseURI

func NewHybridIdentityMetadataClientWithBaseURI(sdkApi sdkEnv.Api) (*HybridIdentityMetadataClient, error)

func (HybridIdentityMetadataClient) Create

Create ...

func (HybridIdentityMetadataClient) Delete

Delete ...

func (HybridIdentityMetadataClient) Get

Get ...

func (HybridIdentityMetadataClient) ListByVM

ListByVM ...

func (HybridIdentityMetadataClient) ListByVMComplete

ListByVMComplete retrieves all the results into a single object

func (HybridIdentityMetadataClient) ListByVMCompleteMatchingPredicate

func (c HybridIdentityMetadataClient) ListByVMCompleteMatchingPredicate(ctx context.Context, id VirtualMachineId, predicate HybridIdentityMetadataOperationPredicate) (result ListByVMCompleteResult, err error)

ListByVMCompleteMatchingPredicate retrieves all the results and then applies the predicate

type HybridIdentityMetadataId

type HybridIdentityMetadataId struct {
	SubscriptionId             string
	ResourceGroupName          string
	VirtualMachineName         string
	HybridIdentityMetadataName string
}

HybridIdentityMetadataId is a struct representing the Resource ID for a Hybrid Identity Metadata

func NewHybridIdentityMetadataID

func NewHybridIdentityMetadataID(subscriptionId string, resourceGroupName string, virtualMachineName string, hybridIdentityMetadataName string) HybridIdentityMetadataId

NewHybridIdentityMetadataID returns a new HybridIdentityMetadataId struct

func ParseHybridIdentityMetadataID

func ParseHybridIdentityMetadataID(input string) (*HybridIdentityMetadataId, error)

ParseHybridIdentityMetadataID parses 'input' into a HybridIdentityMetadataId

func ParseHybridIdentityMetadataIDInsensitively

func ParseHybridIdentityMetadataIDInsensitively(input string) (*HybridIdentityMetadataId, error)

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

func (*HybridIdentityMetadataId) FromParseResult

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

func (HybridIdentityMetadataId) ID

ID returns the formatted Hybrid Identity Metadata ID

func (HybridIdentityMetadataId) Segments

Segments returns a slice of Resource ID Segments which comprise this Hybrid Identity Metadata ID

func (HybridIdentityMetadataId) String

func (id HybridIdentityMetadataId) String() string

String returns a human-readable description of this Hybrid Identity Metadata ID

type HybridIdentityMetadataOperationPredicate

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

func (HybridIdentityMetadataOperationPredicate) Matches

type HybridIdentityMetadataProperties

type HybridIdentityMetadataProperties struct {
	Identity          *identity.SystemAssigned `json:"identity,omitempty"`
	ProvisioningState *string                  `json:"provisioningState,omitempty"`
	PublicKey         *string                  `json:"publicKey,omitempty"`
	VMId              *string                  `json:"vmId,omitempty"`
}

type ListByVMCompleteResult

type ListByVMCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []HybridIdentityMetadata
}

type ListByVMOperationResponse

type ListByVMOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]HybridIdentityMetadata
}

type VirtualMachineId

type VirtualMachineId struct {
	SubscriptionId     string
	ResourceGroupName  string
	VirtualMachineName string
}

VirtualMachineId is a struct representing the Resource ID for a Virtual Machine

func NewVirtualMachineID

func NewVirtualMachineID(subscriptionId string, resourceGroupName string, virtualMachineName string) VirtualMachineId

NewVirtualMachineID returns a new VirtualMachineId struct

func ParseVirtualMachineID

func ParseVirtualMachineID(input string) (*VirtualMachineId, error)

ParseVirtualMachineID parses 'input' into a VirtualMachineId

func ParseVirtualMachineIDInsensitively

func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error)

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

func (*VirtualMachineId) FromParseResult

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

func (VirtualMachineId) ID

func (id VirtualMachineId) ID() string

ID returns the formatted Virtual Machine ID

func (VirtualMachineId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Virtual Machine ID

func (VirtualMachineId) String

func (id VirtualMachineId) String() string

String returns a human-readable description of this Virtual Machine ID

Jump to

Keyboard shortcuts

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