virtualnetworkrules

package
v0.20220713.1094700 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2018-01-01-preview/virtualnetworkrules Documentation

The virtualnetworkrules SDK allows for interaction with the Azure Resource Manager Service eventhub (API Version 2018-01-01-preview).

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/eventhub/2018-01-01-preview/virtualnetworkrules"

Client Initialization

client := virtualnetworkrules.NewVirtualNetworkRulesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VirtualNetworkRulesClient.NamespacesCreateOrUpdateVirtualNetworkRule

ctx := context.TODO()
id := virtualnetworkrules.NewVirtualnetworkruleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "virtualNetworkRuleValue")

payload := virtualnetworkrules.VirtualNetworkRule{
	// ...
}


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

Example Usage: VirtualNetworkRulesClient.NamespacesDeleteVirtualNetworkRule

ctx := context.TODO()
id := virtualnetworkrules.NewVirtualnetworkruleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "virtualNetworkRuleValue")

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

Example Usage: VirtualNetworkRulesClient.NamespacesGetVirtualNetworkRule

ctx := context.TODO()
id := virtualnetworkrules.NewVirtualnetworkruleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "virtualNetworkRuleValue")

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

Example Usage: VirtualNetworkRulesClient.NamespacesListVirtualNetworkRules

ctx := context.TODO()
id := virtualnetworkrules.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue")

// alternatively `client.NamespacesListVirtualNetworkRules(ctx, id)` can be used to do batched pagination
items, err := client.NamespacesListVirtualNetworkRulesComplete(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 ValidateNamespaceID

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

ValidateNamespaceID checks that 'input' can be parsed as a Namespace ID

func ValidateVirtualnetworkruleID

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

ValidateVirtualnetworkruleID checks that 'input' can be parsed as a Virtualnetworkrule ID

Types

type NamespaceId

type NamespaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	NamespaceName     string
}

NamespaceId is a struct representing the Resource ID for a Namespace

func NewNamespaceID

func NewNamespaceID(subscriptionId string, resourceGroupName string, namespaceName string) NamespaceId

NewNamespaceID returns a new NamespaceId struct

func ParseNamespaceID

func ParseNamespaceID(input string) (*NamespaceId, error)

ParseNamespaceID parses 'input' into a NamespaceId

func ParseNamespaceIDInsensitively

func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error)

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

func (NamespaceId) ID

func (id NamespaceId) ID() string

ID returns the formatted Namespace ID

func (NamespaceId) Segments

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

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

func (NamespaceId) String

func (id NamespaceId) String() string

String returns a human-readable description of this Namespace ID

type NamespacesCreateOrUpdateVirtualNetworkRuleOperationResponse

type NamespacesCreateOrUpdateVirtualNetworkRuleOperationResponse struct {
	HttpResponse *http.Response
	Model        *VirtualNetworkRule
}

type NamespacesDeleteVirtualNetworkRuleOperationResponse

type NamespacesDeleteVirtualNetworkRuleOperationResponse struct {
	HttpResponse *http.Response
}

type NamespacesGetVirtualNetworkRuleOperationResponse

type NamespacesGetVirtualNetworkRuleOperationResponse struct {
	HttpResponse *http.Response
	Model        *VirtualNetworkRule
}

type NamespacesListVirtualNetworkRulesCompleteResult

type NamespacesListVirtualNetworkRulesCompleteResult struct {
	Items []VirtualNetworkRule
}

type NamespacesListVirtualNetworkRulesOperationResponse

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

func (NamespacesListVirtualNetworkRulesOperationResponse) HasMore

func (NamespacesListVirtualNetworkRulesOperationResponse) LoadMore

type VirtualNetworkRule

type VirtualNetworkRule struct {
	Id         *string                       `json:"id,omitempty"`
	Name       *string                       `json:"name,omitempty"`
	Properties *VirtualNetworkRuleProperties `json:"properties,omitempty"`
	Type       *string                       `json:"type,omitempty"`
}

type VirtualNetworkRuleOperationPredicate

type VirtualNetworkRuleOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (VirtualNetworkRuleOperationPredicate) Matches

type VirtualNetworkRuleProperties

type VirtualNetworkRuleProperties struct {
	VirtualNetworkSubnetId *string `json:"virtualNetworkSubnetId,omitempty"`
}

type VirtualNetworkRulesClient

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

func NewVirtualNetworkRulesClientWithBaseURI

func NewVirtualNetworkRulesClientWithBaseURI(endpoint string) VirtualNetworkRulesClient

func (VirtualNetworkRulesClient) NamespacesCreateOrUpdateVirtualNetworkRule

NamespacesCreateOrUpdateVirtualNetworkRule ...

func (VirtualNetworkRulesClient) NamespacesDeleteVirtualNetworkRule

NamespacesDeleteVirtualNetworkRule ...

func (VirtualNetworkRulesClient) NamespacesGetVirtualNetworkRule

NamespacesGetVirtualNetworkRule ...

func (VirtualNetworkRulesClient) NamespacesListVirtualNetworkRules

func (c VirtualNetworkRulesClient) NamespacesListVirtualNetworkRules(ctx context.Context, id NamespaceId) (resp NamespacesListVirtualNetworkRulesOperationResponse, err error)

NamespacesListVirtualNetworkRules ...

func (VirtualNetworkRulesClient) NamespacesListVirtualNetworkRulesComplete

func (c VirtualNetworkRulesClient) NamespacesListVirtualNetworkRulesComplete(ctx context.Context, id NamespaceId) (NamespacesListVirtualNetworkRulesCompleteResult, error)

NamespacesListVirtualNetworkRulesComplete retrieves all of the results into a single object

func (VirtualNetworkRulesClient) NamespacesListVirtualNetworkRulesCompleteMatchingPredicate

func (c VirtualNetworkRulesClient) NamespacesListVirtualNetworkRulesCompleteMatchingPredicate(ctx context.Context, id NamespaceId, predicate VirtualNetworkRuleOperationPredicate) (resp NamespacesListVirtualNetworkRulesCompleteResult, err error)

NamespacesListVirtualNetworkRulesCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type VirtualnetworkruleId

type VirtualnetworkruleId struct {
	SubscriptionId         string
	ResourceGroupName      string
	NamespaceName          string
	VirtualNetworkRuleName string
}

VirtualnetworkruleId is a struct representing the Resource ID for a Virtualnetworkrule

func NewVirtualnetworkruleID

func NewVirtualnetworkruleID(subscriptionId string, resourceGroupName string, namespaceName string, virtualNetworkRuleName string) VirtualnetworkruleId

NewVirtualnetworkruleID returns a new VirtualnetworkruleId struct

func ParseVirtualnetworkruleID

func ParseVirtualnetworkruleID(input string) (*VirtualnetworkruleId, error)

ParseVirtualnetworkruleID parses 'input' into a VirtualnetworkruleId

func ParseVirtualnetworkruleIDInsensitively

func ParseVirtualnetworkruleIDInsensitively(input string) (*VirtualnetworkruleId, error)

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

func (VirtualnetworkruleId) ID

func (id VirtualnetworkruleId) ID() string

ID returns the formatted Virtualnetworkrule ID

func (VirtualnetworkruleId) Segments

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

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

func (VirtualnetworkruleId) String

func (id VirtualnetworkruleId) String() string

String returns a human-readable description of this Virtualnetworkrule ID

Jump to

Keyboard shortcuts

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