Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 License.
Index ¶
- type LogicalNetworkClient
- func (c *LogicalNetworkClient) CreateOrUpdate(ctx context.Context, location, name string, network *network.LogicalNetwork) (*network.LogicalNetwork, error)
- func (c *LogicalNetworkClient) Delete(ctx context.Context, location, name string) error
- func (c *LogicalNetworkClient) Get(ctx context.Context, location, name string) (*[]network.LogicalNetwork, error)
- func (c *LogicalNetworkClient) Precheck(ctx context.Context, location string, ...) (bool, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogicalNetworkClient ¶
type LogicalNetworkClient struct { network.BaseClient // contains filtered or unexported fields }
Client structure
func NewLogicalNetworkClient ¶
func NewLogicalNetworkClient(cloudFQDN string, authorizer auth.Authorizer) (*LogicalNetworkClient, error)
NewClient method returns new client
func (*LogicalNetworkClient) CreateOrUpdate ¶
func (c *LogicalNetworkClient) CreateOrUpdate(ctx context.Context, location, name string, network *network.LogicalNetwork) (*network.LogicalNetwork, error)
CreateOrUpdate methods invokes create or update on the client
func (*LogicalNetworkClient) Delete ¶
func (c *LogicalNetworkClient) Delete(ctx context.Context, location, name string) error
Delete methods invokes delete of the logical network resource
func (*LogicalNetworkClient) Get ¶
func (c *LogicalNetworkClient) Get(ctx context.Context, location, name string) (*[]network.LogicalNetwork, error)
Get methods invokes the client Get method
func (*LogicalNetworkClient) Precheck ¶ added in v0.19.3
func (c *LogicalNetworkClient) Precheck(ctx context.Context, location string, logicalNetworks []*network.LogicalNetwork) (bool, error)
Prechecks whether the system is able to create specified logicalNetworks. Returns true if it is possible; or false with reason in error message if not.
type Service ¶
type Service interface { Get(context.Context, string, string) (*[]network.LogicalNetwork, error) CreateOrUpdate(context.Context, string, string, *network.LogicalNetwork) (*network.LogicalNetwork, error) Delete(context.Context, string, string) error Precheck(ctx context.Context, location string, logicalNetworks []*network.LogicalNetwork) (bool, error) }
Service interface
Click to show internal directories.
Click to hide internal directories.