managedvirtualnetworks

package
v0.20230404.1155830 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MPL-2.0 Imports: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks Documentation

The managedvirtualnetworks SDK allows for interaction with the Azure Resource Manager Service datafactory (API Version 2018-06-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks"

Client Initialization

client := managedvirtualnetworks.NewManagedVirtualNetworksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedVirtualNetworksClient.CreateOrUpdate

ctx := context.TODO()
id := managedvirtualnetworks.NewManagedVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "managedVirtualNetworkValue")

payload := managedvirtualnetworks.ManagedVirtualNetworkResource{
	// ...
}


read, err := client.CreateOrUpdate(ctx, id, payload, managedvirtualnetworks.DefaultCreateOrUpdateOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ManagedVirtualNetworksClient.Get

ctx := context.TODO()
id := managedvirtualnetworks.NewManagedVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "managedVirtualNetworkValue")

read, err := client.Get(ctx, id, managedvirtualnetworks.DefaultGetOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ManagedVirtualNetworksClient.ListByFactory

ctx := context.TODO()
id := managedvirtualnetworks.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue")

// alternatively `client.ListByFactory(ctx, id)` can be used to do batched pagination
items, err := client.ListByFactoryComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFactoryID

func ValidateFactoryID(input interface{}, key string) (warnings []string, errors []error)

ValidateFactoryID checks that 'input' can be parsed as a Factory ID

func ValidateManagedVirtualNetworkID

func ValidateManagedVirtualNetworkID(input interface{}, key string) (warnings []string, errors []error)

ValidateManagedVirtualNetworkID checks that 'input' can be parsed as a Managed Virtual Network ID

Types

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	IfMatch *string
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ManagedVirtualNetworkResource
}

type FactoryId

type FactoryId struct {
	SubscriptionId    string
	ResourceGroupName string
	FactoryName       string
}

FactoryId is a struct representing the Resource ID for a Factory

func NewFactoryID

func NewFactoryID(subscriptionId string, resourceGroupName string, factoryName string) FactoryId

NewFactoryID returns a new FactoryId struct

func ParseFactoryID

func ParseFactoryID(input string) (*FactoryId, error)

ParseFactoryID parses 'input' into a FactoryId

func ParseFactoryIDInsensitively

func ParseFactoryIDInsensitively(input string) (*FactoryId, error)

ParseFactoryIDInsensitively parses 'input' case-insensitively into a FactoryId note: this method should only be used for API response data and not user input

func (FactoryId) ID

func (id FactoryId) ID() string

ID returns the formatted Factory ID

func (FactoryId) Segments

func (id FactoryId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Factory ID

func (FactoryId) String

func (id FactoryId) String() string

String returns a human-readable description of this Factory ID

type GetOperationOptions

type GetOperationOptions struct {
	IfNoneMatch *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *ManagedVirtualNetworkResource
}

type ListByFactoryCompleteResult

type ListByFactoryCompleteResult struct {
	Items []ManagedVirtualNetworkResource
}

type ListByFactoryOperationResponse

type ListByFactoryOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ManagedVirtualNetworkResource
	// contains filtered or unexported fields
}

func (ListByFactoryOperationResponse) HasMore

func (ListByFactoryOperationResponse) LoadMore

type ManagedVirtualNetwork

type ManagedVirtualNetwork struct {
	Alias  *string `json:"alias,omitempty"`
	VNetId *string `json:"vNetId,omitempty"`
}

type ManagedVirtualNetworkId

type ManagedVirtualNetworkId struct {
	SubscriptionId            string
	ResourceGroupName         string
	FactoryName               string
	ManagedVirtualNetworkName string
}

ManagedVirtualNetworkId is a struct representing the Resource ID for a Managed Virtual Network

func NewManagedVirtualNetworkID

func NewManagedVirtualNetworkID(subscriptionId string, resourceGroupName string, factoryName string, managedVirtualNetworkName string) ManagedVirtualNetworkId

NewManagedVirtualNetworkID returns a new ManagedVirtualNetworkId struct

func ParseManagedVirtualNetworkID

func ParseManagedVirtualNetworkID(input string) (*ManagedVirtualNetworkId, error)

ParseManagedVirtualNetworkID parses 'input' into a ManagedVirtualNetworkId

func ParseManagedVirtualNetworkIDInsensitively

func ParseManagedVirtualNetworkIDInsensitively(input string) (*ManagedVirtualNetworkId, error)

ParseManagedVirtualNetworkIDInsensitively parses 'input' case-insensitively into a ManagedVirtualNetworkId note: this method should only be used for API response data and not user input

func (ManagedVirtualNetworkId) ID

ID returns the formatted Managed Virtual Network ID

func (ManagedVirtualNetworkId) Segments

Segments returns a slice of Resource ID Segments which comprise this Managed Virtual Network ID

func (ManagedVirtualNetworkId) String

func (id ManagedVirtualNetworkId) String() string

String returns a human-readable description of this Managed Virtual Network ID

type ManagedVirtualNetworkResource

type ManagedVirtualNetworkResource struct {
	Etag       *string               `json:"etag,omitempty"`
	Id         *string               `json:"id,omitempty"`
	Name       *string               `json:"name,omitempty"`
	Properties ManagedVirtualNetwork `json:"properties"`
	Type       *string               `json:"type,omitempty"`
}

type ManagedVirtualNetworkResourceOperationPredicate

type ManagedVirtualNetworkResourceOperationPredicate struct {
	Etag *string
	Id   *string
	Name *string
	Type *string
}

func (ManagedVirtualNetworkResourceOperationPredicate) Matches

type ManagedVirtualNetworksClient

type ManagedVirtualNetworksClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewManagedVirtualNetworksClientWithBaseURI

func NewManagedVirtualNetworksClientWithBaseURI(endpoint string) ManagedVirtualNetworksClient

func (ManagedVirtualNetworksClient) CreateOrUpdate

CreateOrUpdate ...

func (ManagedVirtualNetworksClient) Get

Get ...

func (ManagedVirtualNetworksClient) ListByFactory

ListByFactory ...

func (ManagedVirtualNetworksClient) ListByFactoryComplete

ListByFactoryComplete retrieves all of the results into a single object

func (ManagedVirtualNetworksClient) ListByFactoryCompleteMatchingPredicate

func (c ManagedVirtualNetworksClient) ListByFactoryCompleteMatchingPredicate(ctx context.Context, id FactoryId, predicate ManagedVirtualNetworkResourceOperationPredicate) (resp ListByFactoryCompleteResult, err error)

ListByFactoryCompleteMatchingPredicate retrieves all of the results and then applied the predicate

Jump to

Keyboard shortcuts

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