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 ¶
- func ValidateHybridIdentityMetadataID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type HybridIdentityMetadata
- type HybridIdentityMetadataClient
- func (c HybridIdentityMetadataClient) Create(ctx context.Context, id HybridIdentityMetadataId, input HybridIdentityMetadata) (result CreateOperationResponse, err error)
- func (c HybridIdentityMetadataClient) Delete(ctx context.Context, id HybridIdentityMetadataId) (result DeleteOperationResponse, err error)
- func (c HybridIdentityMetadataClient) Get(ctx context.Context, id HybridIdentityMetadataId) (result GetOperationResponse, err error)
- func (c HybridIdentityMetadataClient) ListByVM(ctx context.Context, id VirtualMachineId) (result ListByVMOperationResponse, err error)
- func (c HybridIdentityMetadataClient) ListByVMComplete(ctx context.Context, id VirtualMachineId) (ListByVMCompleteResult, error)
- func (c HybridIdentityMetadataClient) ListByVMCompleteMatchingPredicate(ctx context.Context, id VirtualMachineId, ...) (result ListByVMCompleteResult, err error)
- type HybridIdentityMetadataId
- func NewHybridIdentityMetadataID(subscriptionId string, resourceGroupName string, virtualMachineName string, ...) HybridIdentityMetadataId
- func ParseHybridIdentityMetadataID(input string) (*HybridIdentityMetadataId, error)
- func ParseHybridIdentityMetadataIDInsensitively(input string) (*HybridIdentityMetadataId, error)
- type HybridIdentityMetadataOperationPredicate
- type HybridIdentityMetadataProperties
- type ListByVMCompleteResult
- type ListByVMOperationResponse
- type VirtualMachineId
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 ¶
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 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 ¶
func (c HybridIdentityMetadataClient) Create(ctx context.Context, id HybridIdentityMetadataId, input HybridIdentityMetadata) (result CreateOperationResponse, err error)
Create ...
func (HybridIdentityMetadataClient) Delete ¶
func (c HybridIdentityMetadataClient) Delete(ctx context.Context, id HybridIdentityMetadataId) (result DeleteOperationResponse, err error)
Delete ...
func (HybridIdentityMetadataClient) Get ¶
func (c HybridIdentityMetadataClient) Get(ctx context.Context, id HybridIdentityMetadataId) (result GetOperationResponse, err error)
Get ...
func (HybridIdentityMetadataClient) ListByVM ¶
func (c HybridIdentityMetadataClient) ListByVM(ctx context.Context, id VirtualMachineId) (result ListByVMOperationResponse, err error)
ListByVM ...
func (HybridIdentityMetadataClient) ListByVMComplete ¶
func (c HybridIdentityMetadataClient) ListByVMComplete(ctx context.Context, id VirtualMachineId) (ListByVMCompleteResult, error)
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 ¶
func (id HybridIdentityMetadataId) ID() string
ID returns the formatted Hybrid Identity Metadata ID
func (HybridIdentityMetadataId) Segments ¶
func (id HybridIdentityMetadataId) Segments() []resourceids.Segment
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 ¶
func (HybridIdentityMetadataOperationPredicate) Matches ¶
func (p HybridIdentityMetadataOperationPredicate) Matches(input HybridIdentityMetadata) bool
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