ipv6firewallrules

package
v0.20240124.1094959 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/ipv6firewallrules Documentation

The ipv6firewallrules SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2023-02-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/sql/2023-02-01-preview/ipv6firewallrules"

Client Initialization

client := ipv6firewallrules.NewIPv6FirewallRulesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: IPv6FirewallRulesClient.CreateOrUpdate

ctx := context.TODO()
id := ipv6firewallrules.NewIPv6FirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "ipv6FirewallRuleValue")

payload := ipv6firewallrules.IPv6FirewallRule{
	// ...
}


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

Example Usage: IPv6FirewallRulesClient.Delete

ctx := context.TODO()
id := ipv6firewallrules.NewIPv6FirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "ipv6FirewallRuleValue")

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

Example Usage: IPv6FirewallRulesClient.Get

ctx := context.TODO()
id := ipv6firewallrules.NewIPv6FirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "ipv6FirewallRuleValue")

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

Example Usage: IPv6FirewallRulesClient.ListByServer

ctx := context.TODO()
id := ipv6firewallrules.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

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

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

ValidateIPv6FirewallRuleID checks that 'input' can be parsed as a I Pv 6 Firewall Rule ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *IPv6FirewallRule
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *IPv6FirewallRule
}

type IPv6FirewallRule

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

type IPv6FirewallRuleId

type IPv6FirewallRuleId struct {
	SubscriptionId       string
	ResourceGroupName    string
	ServerName           string
	Ipv6FirewallRuleName string
}

IPv6FirewallRuleId is a struct representing the Resource ID for a I Pv 6 Firewall Rule

func NewIPv6FirewallRuleID

func NewIPv6FirewallRuleID(subscriptionId string, resourceGroupName string, serverName string, ipv6FirewallRuleName string) IPv6FirewallRuleId

NewIPv6FirewallRuleID returns a new IPv6FirewallRuleId struct

func ParseIPv6FirewallRuleID

func ParseIPv6FirewallRuleID(input string) (*IPv6FirewallRuleId, error)

ParseIPv6FirewallRuleID parses 'input' into a IPv6FirewallRuleId

func ParseIPv6FirewallRuleIDInsensitively

func ParseIPv6FirewallRuleIDInsensitively(input string) (*IPv6FirewallRuleId, error)

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

func (*IPv6FirewallRuleId) FromParseResult added in v0.20231127.1171502

func (id *IPv6FirewallRuleId) FromParseResult(input resourceids.ParseResult) error

func (IPv6FirewallRuleId) ID

func (id IPv6FirewallRuleId) ID() string

ID returns the formatted I Pv 6 Firewall Rule ID

func (IPv6FirewallRuleId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this I Pv 6 Firewall Rule ID

func (IPv6FirewallRuleId) String

func (id IPv6FirewallRuleId) String() string

String returns a human-readable description of this I Pv 6 Firewall Rule ID

type IPv6FirewallRuleOperationPredicate

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

func (IPv6FirewallRuleOperationPredicate) Matches

type IPv6FirewallRulesClient

type IPv6FirewallRulesClient struct {
	Client *resourcemanager.Client
}

func NewIPv6FirewallRulesClientWithBaseURI

func NewIPv6FirewallRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*IPv6FirewallRulesClient, error)

func (IPv6FirewallRulesClient) CreateOrUpdate

CreateOrUpdate ...

func (IPv6FirewallRulesClient) Delete

Delete ...

func (IPv6FirewallRulesClient) Get

Get ...

func (IPv6FirewallRulesClient) ListByServer

ListByServer ...

func (IPv6FirewallRulesClient) ListByServerComplete

ListByServerComplete retrieves all the results into a single object

func (IPv6FirewallRulesClient) ListByServerCompleteMatchingPredicate

func (c IPv6FirewallRulesClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id commonids.SqlServerId, predicate IPv6FirewallRuleOperationPredicate) (result ListByServerCompleteResult, err error)

ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate

type IPv6ServerFirewallRuleProperties

type IPv6ServerFirewallRuleProperties struct {
	EndIPv6Address   *string `json:"endIPv6Address,omitempty"`
	StartIPv6Address *string `json:"startIPv6Address,omitempty"`
}

type ListByServerCompleteResult

type ListByServerCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []IPv6FirewallRule
}

type ListByServerOperationResponse

type ListByServerOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]IPv6FirewallRule
}

Jump to

Keyboard shortcuts

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