Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 License.
Index ¶
- type Service
- type VirtualMachineImageClient
- func (c *VirtualMachineImageClient) CreateOrUpdate(ctx context.Context, group, name string, compute *compute.VirtualMachineImage) (*compute.VirtualMachineImage, error)
- func (c *VirtualMachineImageClient) Delete(ctx context.Context, group, name string) error
- func (c *VirtualMachineImageClient) Get(ctx context.Context, group, name string) (*[]compute.VirtualMachineImage, error)
- func (c *VirtualMachineImageClient) Precheck(ctx context.Context, group string, ...) (bool, error)
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 ¶
func (c *VirtualMachineImageClient) CreateOrUpdate(ctx context.Context, group, name string, compute *compute.VirtualMachineImage) (*compute.VirtualMachineImage, error)
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 ¶
func (c *VirtualMachineImageClient) Get(ctx context.Context, group, name string) (*[]compute.VirtualMachineImage, error)
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.
Click to show internal directories.
Click to hide internal directories.