virtualnetwork

package
v0.25.2 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

View Source
const (
	// supported API versions for vnet
	Version_Default = ""
	Version_1_0     = "1.0" // same as Version_Default
	Version_2_0     = "2.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Get(context.Context, string, string) (*[]network.VirtualNetwork, error)
	GetWithVersion(context.Context, string, string, string) (*[]network.VirtualNetwork, error)
	CreateOrUpdate(context.Context, string, string, *network.VirtualNetwork) (*network.VirtualNetwork, error)
	CreateOrUpdateWithVersion(context.Context, string, string, *network.VirtualNetwork, string) (*network.VirtualNetwork, error)
	Delete(context.Context, string, string) error
	DeleteWithVersion(context.Context, string, string, string) error
	Precheck(ctx context.Context, group string, virtualNetworks []*network.VirtualNetwork) (bool, error)
}

Service interface

type VirtualNetworkClient

type VirtualNetworkClient struct {
	network.BaseClient
	// contains filtered or unexported fields
}

Client structure

func NewVirtualNetworkClient

func NewVirtualNetworkClient(cloudFQDN string, authorizer auth.Authorizer) (*VirtualNetworkClient, error)

NewClient method returns new client

func (*VirtualNetworkClient) CreateOrUpdate

func (c *VirtualNetworkClient) CreateOrUpdate(ctx context.Context, group, name string, network *network.VirtualNetwork) (*network.VirtualNetwork, error)

CreateOrUpdate methods invokes create or update on the client

func (*VirtualNetworkClient) CreateOrUpdateWithVersion added in v0.24.3

func (c *VirtualNetworkClient) CreateOrUpdateWithVersion(ctx context.Context, group, name string, network *network.VirtualNetwork, apiVersion string) (*network.VirtualNetwork, error)

CreateOrUpdate methods invokes create or update on the client

func (*VirtualNetworkClient) Delete

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

Delete methods invokes delete of the network resource

func (*VirtualNetworkClient) DeleteWithVersion added in v0.24.3

func (c *VirtualNetworkClient) DeleteWithVersion(ctx context.Context, group, name, apiVersion string) error

Delete methods invokes delete of the network resource

func (*VirtualNetworkClient) Get

func (c *VirtualNetworkClient) Get(ctx context.Context, group, name string) (*[]network.VirtualNetwork, error)

Get methods invokes the client Get method

func (*VirtualNetworkClient) GetWithVersion added in v0.24.3

func (c *VirtualNetworkClient) GetWithVersion(ctx context.Context, group, name, apiVersion string) (*[]network.VirtualNetwork, error)

Get methods invokes the client Get method

func (*VirtualNetworkClient) Precheck added in v0.19.3

func (c *VirtualNetworkClient) Precheck(ctx context.Context, group string, virtualNetworks []*network.VirtualNetwork) (bool, error)

Prechecks whether the system is able to create specified resources. 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