hybrididentitymetadata

package
v0.20221013.1062338 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MPL-2.0 Imports: 10 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", "metadataValue")

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", "metadataValue")

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", "metadataValue")

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
	Model        *HybridIdentityMetadata
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	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 autorest.Client
	// contains filtered or unexported fields
}

func NewHybridIdentityMetadataClientWithBaseURI

func NewHybridIdentityMetadataClientWithBaseURI(endpoint string) HybridIdentityMetadataClient

func (HybridIdentityMetadataClient) Create

Create ...

func (HybridIdentityMetadataClient) Delete

Delete ...

func (HybridIdentityMetadataClient) Get

Get ...

func (HybridIdentityMetadataClient) ListByVm

ListByVm ...

func (HybridIdentityMetadataClient) ListByVmComplete

ListByVmComplete retrieves all of the results into a single object

func (HybridIdentityMetadataClient) ListByVmCompleteMatchingPredicate

ListByVmCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type HybridIdentityMetadataId

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

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

func NewHybridIdentityMetadataID

func NewHybridIdentityMetadataID(subscriptionId string, resourceGroupName string, virtualMachineName string, metadataName 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) 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 {
	Items []HybridIdentityMetadata
}

type ListByVmOperationResponse

type ListByVmOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]HybridIdentityMetadata
	// contains filtered or unexported fields
}

func (ListByVmOperationResponse) HasMore

func (r ListByVmOperationResponse) HasMore() bool

func (ListByVmOperationResponse) LoadMore

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) 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