virtualmachinescalesetvmclient

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

+azure:enableclientgen:=true

Code generated by client-gen. DO NOT EDIT.

Index

Constants

View Source
const DeleteOperationName = "VirtualMachineScaleSetVMsClient.Delete"
View Source
const GetOperationName = "VirtualMachineScaleSetVMsClient.Get"

Variables

This section is empty.

Functions

func UpdateVMsInBatch

func UpdateVMsInBatch(ctx context.Context, client *Client, resourceGroupName string, VMScaleSetName string, instances map[string]armcompute.VirtualMachineScaleSetVM, batchSize int) error

Types

type Client

type Client struct {
	*armcompute.VirtualMachineScaleSetVMsClient
	// contains filtered or unexported fields
}

func (*Client) Delete

func (client *Client) Delete(ctx context.Context, resourceGroupName string, parentResourceName string, resourceName string) (err error)

Delete deletes a VirtualMachineScaleSetVM by name.

func (*Client) Get

func (client *Client) Get(ctx context.Context, resourceGroupName string, parentResourceName string, resourceName string) (result *armcompute.VirtualMachineScaleSetVM, err error)

Get gets the VirtualMachineScaleSetVM

func (*Client) GetInstanceView

func (client *Client) GetInstanceView(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string) (*armcompute.VirtualMachineScaleSetVMInstanceView, error)

GetInstanceView gets the instance view of the VirtualMachineScaleSetVM.

func (*Client) List

func (client *Client) List(ctx context.Context, resourceGroupName string, parentResourceName string) (result []*armcompute.VirtualMachineScaleSetVM, rerr error)

List gets a list of VirtualMachineScaleSetVM in the resource group.

func (*Client) ListVMInstanceView

func (client *Client) ListVMInstanceView(ctx context.Context, resourceGroupName string, parentResourceName string) (result []*armcompute.VirtualMachineScaleSetVM, rerr error)

List gets a list of VirtualMachineScaleSetVM in the resource group.

func (*Client) Update

func (client *Client) Update(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, parameters armcompute.VirtualMachineScaleSetVM) (*armcompute.VirtualMachineScaleSetVM, error)

Update updates a VirtualMachine.

type Interface

type Interface interface {
	utils.SubResourceGetFunc[armcompute.VirtualMachineScaleSetVM]
	utils.SubResourceDeleteFunc[armcompute.VirtualMachineScaleSetVM]
	utils.SubResourceListFunc[armcompute.VirtualMachineScaleSetVM]
	ListVMInstanceView(ctx context.Context, resourceGroupName string, parentResourceName string) (result []*armcompute.VirtualMachineScaleSetVM, rerr error)

	// Update updates a VirtualMachineScaleSetVM.
	Update(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, parameters armcompute.VirtualMachineScaleSetVM) (*armcompute.VirtualMachineScaleSetVM, error)
	GetInstanceView(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string) (*armcompute.VirtualMachineScaleSetVMInstanceView, error)
	BeginUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters armcompute.VirtualMachineScaleSetVM, options *armcompute.VirtualMachineScaleSetVMsClientBeginUpdateOptions) (*runtime.Poller[armcompute.VirtualMachineScaleSetVMsClientUpdateResponse], error)
}

+azure:client:verbs=get;delete,resource=VirtualMachineScaleSet,subResource=VirtualMachineScaleSetVM,packageName=github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5,packageAlias=armcompute,clientName=VirtualMachineScaleSetVMsClient,expand=false

func New

func New(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (Interface, error)

Directories

Path Synopsis
Package mock_virtualmachinescalesetvmclient is a generated GoMock package.
Package mock_virtualmachinescalesetvmclient is a generated GoMock package.

Jump to

Keyboard shortcuts

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