virtualharddisk

package
v1.1.212 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VirtualHardDiskClient

type VirtualHardDiskClient struct {
	storage.BaseClient
	// contains filtered or unexported fields
}

Client structure

func NewVirtualHardDiskClient

func NewVirtualHardDiskClient(cloudFQDN string, authorizer auth.Authorizer) (*VirtualHardDiskClient, error)

NewClient method returns new client

func (*VirtualHardDiskClient) CreateOrUpdate

func (c *VirtualHardDiskClient) CreateOrUpdate(ctx context.Context, group, container, name string, storage *storage.VirtualHardDisk) (*storage.VirtualHardDisk, error)

CreateOrUpdate methods invokes create or update on the client

func (*VirtualHardDiskClient) Delete

func (c *VirtualHardDiskClient) Delete(ctx context.Context, group, container, name string) error

Delete methods invokes delete of the storage resource

func (*VirtualHardDiskClient) DownloadVhdFromHttp added in v0.22.1

func (c *VirtualHardDiskClient) DownloadVhdFromHttp(ctx context.Context, group, container, name string, storage *storage.VirtualHardDisk, azHttpImg *compute.AzureGalleryImageProperties) (*storage.VirtualHardDisk, error)

func (*VirtualHardDiskClient) Get

func (c *VirtualHardDiskClient) Get(ctx context.Context, group, container, name string) (*[]storage.VirtualHardDisk, error)

Get methods invokes the client Get method

func (*VirtualHardDiskClient) Precheck added in v0.19.1

func (c *VirtualHardDiskClient) Precheck(ctx context.Context, group, container string, vhds []*storage.VirtualHardDisk) (bool, error)

Prechecks whether the system is able to create specified virtual hard disks. Returns true with virtual hard disk placement in mapping from virtual hard disk names to container names; or false with reason in error message.

func (*VirtualHardDiskClient) Resize

func (c *VirtualHardDiskClient) Resize(ctx context.Context, group, container, name string, newSize int64) error

Resize methods invokes delete of the storage resource

Jump to

Keyboard shortcuts

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