Documentation ¶
Overview ¶
+azure:enableclientgen:=true
Code generated by client-gen. DO NOT EDIT.
Index ¶
- Constants
- func UpdateVMsInBatch(ctx context.Context, client *Client, resourceGroupName string, ...) error
- type Client
- func (client *Client) Delete(ctx context.Context, resourceGroupName string, parentResourceName string, ...) (err error)
- func (client *Client) Get(ctx context.Context, resourceGroupName string, parentResourceName string, ...) (result *armcompute.VirtualMachineScaleSetVM, rerr error)
- func (client *Client) GetInstanceView(ctx context.Context, resourceGroupName string, vmScaleSetName string, ...) (*armcompute.VirtualMachineScaleSetVMInstanceView, error)
- func (client *Client) List(ctx context.Context, resourceGroupName string, parentResourceName string) (result []*armcompute.VirtualMachineScaleSetVM, rerr error)
- func (client *Client) ListVMInstanceView(ctx context.Context, resourceGroupName string, parentResourceName string) (result []*armcompute.VirtualMachineScaleSetVM, rerr error)
- func (client *Client) Update(ctx context.Context, resourceGroupName string, VMScaleSetName string, ...) (*armcompute.VirtualMachineScaleSetVM, error)
- type Interface
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, rerr 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. |
Click to show internal directories.
Click to hide internal directories.