virtualmachinescalesetextensions

package
v0.20230802.1115742 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/virtualmachinescalesetextensions Documentation

The virtualmachinescalesetextensions SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2021-07-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/compute/2021-07-01/virtualmachinescalesetextensions"

Client Initialization

client := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VirtualMachineScaleSetExtensionsClient.CreateOrUpdate

ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue")

payload := virtualmachinescalesetextensions.VirtualMachineScaleSetExtension{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: VirtualMachineScaleSetExtensionsClient.Delete

ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: VirtualMachineScaleSetExtensionsClient.Get

ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue")

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

Example Usage: VirtualMachineScaleSetExtensionsClient.List

ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: VirtualMachineScaleSetExtensionsClient.Update

ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue")

payload := virtualmachinescalesetextensions.VirtualMachineScaleSetExtensionUpdate{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateVirtualMachineScaleSetExtensionID

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

ValidateVirtualMachineScaleSetExtensionID checks that 'input' can be parsed as a Virtual Machine Scale Set Extension ID

func ValidateVirtualMachineScaleSetID

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

ValidateVirtualMachineScaleSetID checks that 'input' can be parsed as a Virtual Machine Scale Set ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetOperationOptions

type GetOperationOptions struct {
	Expand *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *VirtualMachineScaleSetExtension
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []VirtualMachineScaleSetExtension
}

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type VirtualMachineScaleSetExtension

type VirtualMachineScaleSetExtension struct {
	Id         *string                                    `json:"id,omitempty"`
	Name       *string                                    `json:"name,omitempty"`
	Properties *VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"`
	Type       *string                                    `json:"type,omitempty"`
}

type VirtualMachineScaleSetExtensionId

type VirtualMachineScaleSetExtensionId struct {
	SubscriptionId             string
	ResourceGroupName          string
	VirtualMachineScaleSetName string
	ExtensionName              string
}

VirtualMachineScaleSetExtensionId is a struct representing the Resource ID for a Virtual Machine Scale Set Extension

func NewVirtualMachineScaleSetExtensionID

func NewVirtualMachineScaleSetExtensionID(subscriptionId string, resourceGroupName string, virtualMachineScaleSetName string, extensionName string) VirtualMachineScaleSetExtensionId

NewVirtualMachineScaleSetExtensionID returns a new VirtualMachineScaleSetExtensionId struct

func ParseVirtualMachineScaleSetExtensionID

func ParseVirtualMachineScaleSetExtensionID(input string) (*VirtualMachineScaleSetExtensionId, error)

ParseVirtualMachineScaleSetExtensionID parses 'input' into a VirtualMachineScaleSetExtensionId

func ParseVirtualMachineScaleSetExtensionIDInsensitively

func ParseVirtualMachineScaleSetExtensionIDInsensitively(input string) (*VirtualMachineScaleSetExtensionId, error)

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

func (VirtualMachineScaleSetExtensionId) ID

ID returns the formatted Virtual Machine Scale Set Extension ID

func (VirtualMachineScaleSetExtensionId) Segments

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

func (VirtualMachineScaleSetExtensionId) String

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

type VirtualMachineScaleSetExtensionOperationPredicate

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

func (VirtualMachineScaleSetExtensionOperationPredicate) Matches

type VirtualMachineScaleSetExtensionProperties

type VirtualMachineScaleSetExtensionProperties struct {
	AutoUpgradeMinorVersion  *bool        `json:"autoUpgradeMinorVersion,omitempty"`
	EnableAutomaticUpgrade   *bool        `json:"enableAutomaticUpgrade,omitempty"`
	ForceUpdateTag           *string      `json:"forceUpdateTag,omitempty"`
	ProtectedSettings        *interface{} `json:"protectedSettings,omitempty"`
	ProvisionAfterExtensions *[]string    `json:"provisionAfterExtensions,omitempty"`
	ProvisioningState        *string      `json:"provisioningState,omitempty"`
	Publisher                *string      `json:"publisher,omitempty"`
	Settings                 *interface{} `json:"settings,omitempty"`
	SuppressFailures         *bool        `json:"suppressFailures,omitempty"`
	Type                     *string      `json:"type,omitempty"`
	TypeHandlerVersion       *string      `json:"typeHandlerVersion,omitempty"`
}

type VirtualMachineScaleSetExtensionUpdate

type VirtualMachineScaleSetExtensionUpdate struct {
	Id         *string                                    `json:"id,omitempty"`
	Name       *string                                    `json:"name,omitempty"`
	Properties *VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"`
	Type       *string                                    `json:"type,omitempty"`
}

type VirtualMachineScaleSetExtensionsClient

type VirtualMachineScaleSetExtensionsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewVirtualMachineScaleSetExtensionsClientWithBaseURI

func NewVirtualMachineScaleSetExtensionsClientWithBaseURI(endpoint string) VirtualMachineScaleSetExtensionsClient

func (VirtualMachineScaleSetExtensionsClient) CreateOrUpdate

CreateOrUpdate ...

func (VirtualMachineScaleSetExtensionsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (VirtualMachineScaleSetExtensionsClient) Delete

Delete ...

func (VirtualMachineScaleSetExtensionsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (VirtualMachineScaleSetExtensionsClient) Get

Get ...

func (VirtualMachineScaleSetExtensionsClient) List

List ...

func (VirtualMachineScaleSetExtensionsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (VirtualMachineScaleSetExtensionsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (VirtualMachineScaleSetExtensionsClient) Update

Update ...

func (VirtualMachineScaleSetExtensionsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type VirtualMachineScaleSetId

type VirtualMachineScaleSetId struct {
	SubscriptionId             string
	ResourceGroupName          string
	VirtualMachineScaleSetName string
}

VirtualMachineScaleSetId is a struct representing the Resource ID for a Virtual Machine Scale Set

func NewVirtualMachineScaleSetID

func NewVirtualMachineScaleSetID(subscriptionId string, resourceGroupName string, virtualMachineScaleSetName string) VirtualMachineScaleSetId

NewVirtualMachineScaleSetID returns a new VirtualMachineScaleSetId struct

func ParseVirtualMachineScaleSetID

func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, error)

ParseVirtualMachineScaleSetID parses 'input' into a VirtualMachineScaleSetId

func ParseVirtualMachineScaleSetIDInsensitively

func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineScaleSetId, error)

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

func (VirtualMachineScaleSetId) ID

ID returns the formatted Virtual Machine Scale Set ID

func (VirtualMachineScaleSetId) Segments

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

func (VirtualMachineScaleSetId) String

func (id VirtualMachineScaleSetId) String() string

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

Jump to

Keyboard shortcuts

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