namespacesnetworksecurityperimeterconfigurations

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespacesnetworksecurityperimeterconfigurations Documentation

The namespacesnetworksecurityperimeterconfigurations SDK allows for interaction with Azure Resource Manager eventhub (API Version 2022-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/2022-01-01-preview/namespacesnetworksecurityperimeterconfigurations"

Client Initialization

client := namespacesnetworksecurityperimeterconfigurations.NewNamespacesNetworkSecurityPerimeterConfigurationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: NamespacesNetworkSecurityPerimeterConfigurationsClient.NetworkSecurityPerimeterConfigurationList

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

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

Example Usage: NamespacesNetworkSecurityPerimeterConfigurationsClient.NetworkSecurityPerimeterConfigurationsCreateOrUpdate

ctx := context.TODO()
id := namespacesnetworksecurityperimeterconfigurations.NewNetworkSecurityPerimeterConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "networkSecurityPerimeterConfigurationName")

if err := client.NetworkSecurityPerimeterConfigurationsCreateOrUpdateThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForNetworkSecurityPerimeterConfigurationProvisioningState

func PossibleValuesForNetworkSecurityPerimeterConfigurationProvisioningState() []string

func PossibleValuesForNspAccessRuleDirection

func PossibleValuesForNspAccessRuleDirection() []string

func PossibleValuesForResourceAssociationAccessMode

func PossibleValuesForResourceAssociationAccessMode() []string

func ValidateNamespaceID

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

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

func ValidateNetworkSecurityPerimeterConfigurationID

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

ValidateNetworkSecurityPerimeterConfigurationID checks that 'input' can be parsed as a Network Security Perimeter Configuration 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) FromParseResult

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

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 NamespacesNetworkSecurityPerimeterConfigurationsClient

type NamespacesNetworkSecurityPerimeterConfigurationsClient struct {
	Client *resourcemanager.Client
}

func NewNamespacesNetworkSecurityPerimeterConfigurationsClientWithBaseURI

func NewNamespacesNetworkSecurityPerimeterConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*NamespacesNetworkSecurityPerimeterConfigurationsClient, error)

func (NamespacesNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationList

NetworkSecurityPerimeterConfigurationList ...

func (NamespacesNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsCreateOrUpdate

NetworkSecurityPerimeterConfigurationsCreateOrUpdate ...

func (NamespacesNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsCreateOrUpdateThenPoll

func (c NamespacesNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsCreateOrUpdateThenPoll(ctx context.Context, id NetworkSecurityPerimeterConfigurationId) error

NetworkSecurityPerimeterConfigurationsCreateOrUpdateThenPoll performs NetworkSecurityPerimeterConfigurationsCreateOrUpdate then polls until it's completed

type NetworkSecurityPerimeter

type NetworkSecurityPerimeter struct {
	Id            *string `json:"id,omitempty"`
	Location      *string `json:"location,omitempty"`
	PerimeterGuid *string `json:"perimeterGuid,omitempty"`
}

type NetworkSecurityPerimeterConfiguration

type NetworkSecurityPerimeterConfiguration struct {
	Id         *string                                          `json:"id,omitempty"`
	Location   *string                                          `json:"location,omitempty"`
	Name       *string                                          `json:"name,omitempty"`
	Properties *NetworkSecurityPerimeterConfigurationProperties `json:"properties,omitempty"`
	Tags       *map[string]string                               `json:"tags,omitempty"`
	Type       *string                                          `json:"type,omitempty"`
}

type NetworkSecurityPerimeterConfigurationId

type NetworkSecurityPerimeterConfigurationId struct {
	SubscriptionId                            string
	ResourceGroupName                         string
	NamespaceName                             string
	NetworkSecurityPerimeterConfigurationName string
}

NetworkSecurityPerimeterConfigurationId is a struct representing the Resource ID for a Network Security Perimeter Configuration

func NewNetworkSecurityPerimeterConfigurationID

func NewNetworkSecurityPerimeterConfigurationID(subscriptionId string, resourceGroupName string, namespaceName string, networkSecurityPerimeterConfigurationName string) NetworkSecurityPerimeterConfigurationId

NewNetworkSecurityPerimeterConfigurationID returns a new NetworkSecurityPerimeterConfigurationId struct

func ParseNetworkSecurityPerimeterConfigurationID

func ParseNetworkSecurityPerimeterConfigurationID(input string) (*NetworkSecurityPerimeterConfigurationId, error)

ParseNetworkSecurityPerimeterConfigurationID parses 'input' into a NetworkSecurityPerimeterConfigurationId

func ParseNetworkSecurityPerimeterConfigurationIDInsensitively

func ParseNetworkSecurityPerimeterConfigurationIDInsensitively(input string) (*NetworkSecurityPerimeterConfigurationId, error)

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

func (*NetworkSecurityPerimeterConfigurationId) FromParseResult

func (NetworkSecurityPerimeterConfigurationId) ID

ID returns the formatted Network Security Perimeter Configuration ID

func (NetworkSecurityPerimeterConfigurationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Network Security Perimeter Configuration ID

func (NetworkSecurityPerimeterConfigurationId) String

String returns a human-readable description of this Network Security Perimeter Configuration ID

type NetworkSecurityPerimeterConfigurationList

type NetworkSecurityPerimeterConfigurationList struct {
	Value *[]NetworkSecurityPerimeterConfiguration `json:"value,omitempty"`
}

type NetworkSecurityPerimeterConfigurationListOperationResponse

type NetworkSecurityPerimeterConfigurationListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NetworkSecurityPerimeterConfigurationList
}

type NetworkSecurityPerimeterConfigurationProperties

type NetworkSecurityPerimeterConfigurationProperties struct {
	NetworkSecurityPerimeter *NetworkSecurityPerimeter                                           `json:"networkSecurityPerimeter,omitempty"`
	Profile                  *NetworkSecurityPerimeterConfigurationPropertiesProfile             `json:"profile,omitempty"`
	ProvisioningIssues       *[]ProvisioningIssue                                                `json:"provisioningIssues,omitempty"`
	ProvisioningState        *NetworkSecurityPerimeterConfigurationProvisioningState             `json:"provisioningState,omitempty"`
	ResourceAssociation      *NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation `json:"resourceAssociation,omitempty"`
}

type NetworkSecurityPerimeterConfigurationPropertiesProfile

type NetworkSecurityPerimeterConfigurationPropertiesProfile struct {
	AccessRules        *[]NspAccessRule `json:"accessRules,omitempty"`
	AccessRulesVersion *string          `json:"accessRulesVersion,omitempty"`
	Name               *string          `json:"name,omitempty"`
}

type NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation

type NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation struct {
	AccessMode *ResourceAssociationAccessMode `json:"accessMode,omitempty"`
	Name       *string                        `json:"name,omitempty"`
}

type NetworkSecurityPerimeterConfigurationProvisioningState

type NetworkSecurityPerimeterConfigurationProvisioningState string
const (
	NetworkSecurityPerimeterConfigurationProvisioningStateAccepted            NetworkSecurityPerimeterConfigurationProvisioningState = "Accepted"
	NetworkSecurityPerimeterConfigurationProvisioningStateCanceled            NetworkSecurityPerimeterConfigurationProvisioningState = "Canceled"
	NetworkSecurityPerimeterConfigurationProvisioningStateCreating            NetworkSecurityPerimeterConfigurationProvisioningState = "Creating"
	NetworkSecurityPerimeterConfigurationProvisioningStateDeleted             NetworkSecurityPerimeterConfigurationProvisioningState = "Deleted"
	NetworkSecurityPerimeterConfigurationProvisioningStateDeleting            NetworkSecurityPerimeterConfigurationProvisioningState = "Deleting"
	NetworkSecurityPerimeterConfigurationProvisioningStateFailed              NetworkSecurityPerimeterConfigurationProvisioningState = "Failed"
	NetworkSecurityPerimeterConfigurationProvisioningStateInvalidResponse     NetworkSecurityPerimeterConfigurationProvisioningState = "InvalidResponse"
	NetworkSecurityPerimeterConfigurationProvisioningStateSucceeded           NetworkSecurityPerimeterConfigurationProvisioningState = "Succeeded"
	NetworkSecurityPerimeterConfigurationProvisioningStateSucceededWithIssues NetworkSecurityPerimeterConfigurationProvisioningState = "SucceededWithIssues"
	NetworkSecurityPerimeterConfigurationProvisioningStateUnknown             NetworkSecurityPerimeterConfigurationProvisioningState = "Unknown"
	NetworkSecurityPerimeterConfigurationProvisioningStateUpdating            NetworkSecurityPerimeterConfigurationProvisioningState = "Updating"
)

func (*NetworkSecurityPerimeterConfigurationProvisioningState) UnmarshalJSON

type NetworkSecurityPerimeterConfigurationsCreateOrUpdateOperationResponse

type NetworkSecurityPerimeterConfigurationsCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type NspAccessRule

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

type NspAccessRuleDirection

type NspAccessRuleDirection string
const (
	NspAccessRuleDirectionInbound  NspAccessRuleDirection = "Inbound"
	NspAccessRuleDirectionOutbound NspAccessRuleDirection = "Outbound"
)

func (*NspAccessRuleDirection) UnmarshalJSON

func (s *NspAccessRuleDirection) UnmarshalJSON(bytes []byte) error

type NspAccessRuleProperties

type NspAccessRuleProperties struct {
	AddressPrefixes           *[]string                                      `json:"addressPrefixes,omitempty"`
	Direction                 *NspAccessRuleDirection                        `json:"direction,omitempty"`
	FullyQualifiedDomainNames *[]string                                      `json:"fullyQualifiedDomainNames,omitempty"`
	NetworkSecurityPerimeters *[]NetworkSecurityPerimeter                    `json:"networkSecurityPerimeters,omitempty"`
	Subscriptions             *[]NspAccessRulePropertiesSubscriptionsInlined `json:"subscriptions,omitempty"`
}

type NspAccessRulePropertiesSubscriptionsInlined

type NspAccessRulePropertiesSubscriptionsInlined struct {
	Id *string `json:"id,omitempty"`
}

type ProvisioningIssue

type ProvisioningIssue struct {
	Name       *string                      `json:"name,omitempty"`
	Properties *ProvisioningIssueProperties `json:"properties,omitempty"`
}

type ProvisioningIssueProperties

type ProvisioningIssueProperties struct {
	Description *string `json:"description,omitempty"`
	IssueType   *string `json:"issueType,omitempty"`
}

type ResourceAssociationAccessMode

type ResourceAssociationAccessMode string
const (
	ResourceAssociationAccessModeAuditMode         ResourceAssociationAccessMode = "AuditMode"
	ResourceAssociationAccessModeEnforcedMode      ResourceAssociationAccessMode = "EnforcedMode"
	ResourceAssociationAccessModeLearningMode      ResourceAssociationAccessMode = "LearningMode"
	ResourceAssociationAccessModeNoAssociationMode ResourceAssociationAccessMode = "NoAssociationMode"
	ResourceAssociationAccessModeUnspecifiedMode   ResourceAssociationAccessMode = "UnspecifiedMode"
)

func (*ResourceAssociationAccessMode) UnmarshalJSON

func (s *ResourceAssociationAccessMode) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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