virtualmachineimage

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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 Service

type Service interface {
	Get(context.Context, string, string) (*[]compute.VirtualMachineImage, error)
	CreateOrUpdate(context.Context, string, string, *compute.VirtualMachineImage) (*compute.VirtualMachineImage, error)
	Delete(context.Context, string, string) error
	Precheck(ctx context.Context, group string, virtualMachineImages []*compute.VirtualMachineImage) (bool, error)
}

Service interface

type VirtualMachineImageClient

type VirtualMachineImageClient struct {
	compute.BaseClient
	// contains filtered or unexported fields
}

Client structure

func NewVirtualMachineImageClient

func NewVirtualMachineImageClient(cloudFQDN string, authorizer auth.Authorizer) (*VirtualMachineImageClient, error)

NewClient method returns new client

func (*VirtualMachineImageClient) CreateOrUpdate

CreateOrUpdate methods invokes create or update on the client

func (*VirtualMachineImageClient) Delete

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

Delete methods invokes delete of the compute resource

func (*VirtualMachineImageClient) Get

Get methods invokes the client Get method

func (*VirtualMachineImageClient) Precheck added in v0.19.3

func (c *VirtualMachineImageClient) Precheck(ctx context.Context, group string, virtualMachineImages []*compute.VirtualMachineImage) (bool, error)

Prechecks whether the system is able to create specified virtualMachineImages. Returns true if it is possible; or false with reason in error message if not.

Jump to

Keyboard shortcuts

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