README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/vmcollectionupdate
Documentation
The vmcollectionupdate
SDK allows for interaction with the Azure Resource Manager Service elastic
(API Version 2023-06-01
).
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/elastic/2023-06-01/vmcollectionupdate"
Client Initialization
client := vmcollectionupdate.NewVMCollectionUpdateClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: VMCollectionUpdateClient.VMCollectionUpdate
ctx := context.TODO()
id := vmcollectionupdate.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue")
payload := vmcollectionupdate.VMCollectionUpdate{
// ...
}
read, err := client.VMCollectionUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForOperationName ¶
func PossibleValuesForOperationName() []string
func ValidateMonitorID ¶
ValidateMonitorID checks that 'input' can be parsed as a Monitor ID
Types ¶
type MonitorId ¶
MonitorId is a struct representing the Resource ID for a Monitor
func NewMonitorID ¶
NewMonitorID returns a new MonitorId struct
func ParseMonitorID ¶
ParseMonitorID parses 'input' into a MonitorId
func ParseMonitorIDInsensitively ¶
ParseMonitorIDInsensitively parses 'input' case-insensitively into a MonitorId note: this method should only be used for API response data and not user input
func (*MonitorId) FromParseResult ¶
func (id *MonitorId) FromParseResult(input resourceids.ParseResult) error
func (MonitorId) Segments ¶
func (id MonitorId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Monitor ID
type OperationName ¶
type OperationName string
const ( OperationNameAdd OperationName = "Add" OperationNameDelete OperationName = "Delete" )
func (*OperationName) UnmarshalJSON ¶
func (s *OperationName) UnmarshalJSON(bytes []byte) error
type VMCollectionUpdate ¶
type VMCollectionUpdate struct { OperationName *OperationName `json:"operationName,omitempty"` VMResourceId *string `json:"vmResourceId,omitempty"` }
type VMCollectionUpdateClient ¶
type VMCollectionUpdateClient struct {
Client *resourcemanager.Client
}
func NewVMCollectionUpdateClientWithBaseURI ¶
func NewVMCollectionUpdateClientWithBaseURI(sdkApi sdkEnv.Api) (*VMCollectionUpdateClient, error)
func (VMCollectionUpdateClient) VMCollectionUpdate ¶
func (c VMCollectionUpdateClient) VMCollectionUpdate(ctx context.Context, id MonitorId, input VMCollectionUpdate) (result VMCollectionUpdateOperationResponse, err error)
VMCollectionUpdate ...