perimeterassociationproxies

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/perimeterassociationproxies Documentation

The perimeterassociationproxies SDK allows for interaction with Azure Resource Manager eventgrid (API Version 2023-12-15-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/perimeterassociationproxies"

Client Initialization

client := perimeterassociationproxies.NewPerimeterAssociationProxiesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PerimeterAssociationProxiesClient.NetworkSecurityPerimeterConfigurationsGet

ctx := context.TODO()
id := perimeterassociationproxies.NewScopedNetworkSecurityPerimeterConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "networkSecurityPerimeterConfigurationName")

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

Example Usage: PerimeterAssociationProxiesClient.NetworkSecurityPerimeterConfigurationsList

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: PerimeterAssociationProxiesClient.NetworkSecurityPerimeterConfigurationsReconcile

ctx := context.TODO()
id := perimeterassociationproxies.NewScopedNetworkSecurityPerimeterConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "networkSecurityPerimeterConfigurationName")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForNetworkSecurityPerimeterAssociationAccessMode

func PossibleValuesForNetworkSecurityPerimeterAssociationAccessMode() []string

func PossibleValuesForNetworkSecurityPerimeterConfigProvisioningState

func PossibleValuesForNetworkSecurityPerimeterConfigProvisioningState() []string

func PossibleValuesForNetworkSecurityPerimeterConfigurationIssueSeverity

func PossibleValuesForNetworkSecurityPerimeterConfigurationIssueSeverity() []string

func PossibleValuesForNetworkSecurityPerimeterConfigurationIssueType

func PossibleValuesForNetworkSecurityPerimeterConfigurationIssueType() []string

func PossibleValuesForNetworkSecurityPerimeterProfileAccessRuleDirection

func PossibleValuesForNetworkSecurityPerimeterProfileAccessRuleDirection() []string

func ValidateScopedNetworkSecurityPerimeterConfigurationID

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

ValidateScopedNetworkSecurityPerimeterConfigurationID checks that 'input' can be parsed as a Scoped Network Security Perimeter Configuration ID

Types

type NetworkSecurityPerimeterAssociationAccessMode

type NetworkSecurityPerimeterAssociationAccessMode string
const (
	NetworkSecurityPerimeterAssociationAccessModeAudit    NetworkSecurityPerimeterAssociationAccessMode = "Audit"
	NetworkSecurityPerimeterAssociationAccessModeEnforced NetworkSecurityPerimeterAssociationAccessMode = "Enforced"
	NetworkSecurityPerimeterAssociationAccessModeLearning NetworkSecurityPerimeterAssociationAccessMode = "Learning"
)

func (*NetworkSecurityPerimeterAssociationAccessMode) UnmarshalJSON

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

type NetworkSecurityPerimeterConfigProvisioningState

type NetworkSecurityPerimeterConfigProvisioningState string
const (
	NetworkSecurityPerimeterConfigProvisioningStateAccepted  NetworkSecurityPerimeterConfigProvisioningState = "Accepted"
	NetworkSecurityPerimeterConfigProvisioningStateCanceled  NetworkSecurityPerimeterConfigProvisioningState = "Canceled"
	NetworkSecurityPerimeterConfigProvisioningStateCreating  NetworkSecurityPerimeterConfigProvisioningState = "Creating"
	NetworkSecurityPerimeterConfigProvisioningStateDeleted   NetworkSecurityPerimeterConfigProvisioningState = "Deleted"
	NetworkSecurityPerimeterConfigProvisioningStateDeleting  NetworkSecurityPerimeterConfigProvisioningState = "Deleting"
	NetworkSecurityPerimeterConfigProvisioningStateFailed    NetworkSecurityPerimeterConfigProvisioningState = "Failed"
	NetworkSecurityPerimeterConfigProvisioningStateSucceeded NetworkSecurityPerimeterConfigProvisioningState = "Succeeded"
	NetworkSecurityPerimeterConfigProvisioningStateUpdating  NetworkSecurityPerimeterConfigProvisioningState = "Updating"
)

func (*NetworkSecurityPerimeterConfigProvisioningState) UnmarshalJSON

type NetworkSecurityPerimeterConfiguration

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

type NetworkSecurityPerimeterConfigurationIssueSeverity

type NetworkSecurityPerimeterConfigurationIssueSeverity string
const (
	NetworkSecurityPerimeterConfigurationIssueSeverityError   NetworkSecurityPerimeterConfigurationIssueSeverity = "Error"
	NetworkSecurityPerimeterConfigurationIssueSeverityWarning NetworkSecurityPerimeterConfigurationIssueSeverity = "Warning"
)

func (*NetworkSecurityPerimeterConfigurationIssueSeverity) UnmarshalJSON

type NetworkSecurityPerimeterConfigurationIssueType

type NetworkSecurityPerimeterConfigurationIssueType string
const (
	NetworkSecurityPerimeterConfigurationIssueTypeConfigurationPropagationFailure NetworkSecurityPerimeterConfigurationIssueType = "ConfigurationPropagationFailure"
	NetworkSecurityPerimeterConfigurationIssueTypeMissingIdentityConfiguration    NetworkSecurityPerimeterConfigurationIssueType = "MissingIdentityConfiguration"
	NetworkSecurityPerimeterConfigurationIssueTypeMissingPerimeterConfiguration   NetworkSecurityPerimeterConfigurationIssueType = "MissingPerimeterConfiguration"
	NetworkSecurityPerimeterConfigurationIssueTypeOther                           NetworkSecurityPerimeterConfigurationIssueType = "Other"
)

func (*NetworkSecurityPerimeterConfigurationIssueType) UnmarshalJSON

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

type NetworkSecurityPerimeterConfigurationIssues

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

type NetworkSecurityPerimeterConfigurationIssuesProperties

type NetworkSecurityPerimeterConfigurationIssuesProperties struct {
	Description          *string                                             `json:"description,omitempty"`
	IssueType            *NetworkSecurityPerimeterConfigurationIssueType     `json:"issueType,omitempty"`
	Severity             *NetworkSecurityPerimeterConfigurationIssueSeverity `json:"severity,omitempty"`
	SuggestedAccessRules *[]string                                           `json:"suggestedAccessRules,omitempty"`
	SuggestedResourceIds *[]string                                           `json:"suggestedResourceIds,omitempty"`
}

type NetworkSecurityPerimeterConfigurationOperationPredicate

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

func (NetworkSecurityPerimeterConfigurationOperationPredicate) Matches

type NetworkSecurityPerimeterConfigurationProfile

type NetworkSecurityPerimeterConfigurationProfile struct {
	AccessRules               *[]NetworkSecurityPerimeterProfileAccessRule `json:"accessRules,omitempty"`
	AccessRulesVersion        *string                                      `json:"accessRulesVersion,omitempty"`
	DiagnosticSettingsVersion *string                                      `json:"diagnosticSettingsVersion,omitempty"`
	EnabledLogCategories      *[]string                                    `json:"enabledLogCategories,omitempty"`
	Name                      *string                                      `json:"name,omitempty"`
}

type NetworkSecurityPerimeterConfigurationProperties

type NetworkSecurityPerimeterConfigurationProperties struct {
	NetworkSecurityPerimeter *NetworkSecurityPerimeterInfo                    `json:"networkSecurityPerimeter,omitempty"`
	Profile                  *NetworkSecurityPerimeterConfigurationProfile    `json:"profile,omitempty"`
	ProvisioningIssues       *[]NetworkSecurityPerimeterConfigurationIssues   `json:"provisioningIssues,omitempty"`
	ProvisioningState        *NetworkSecurityPerimeterConfigProvisioningState `json:"provisioningState,omitempty"`
	ResourceAssociation      *ResourceAssociation                             `json:"resourceAssociation,omitempty"`
}

type NetworkSecurityPerimeterConfigurationsGetOperationResponse

type NetworkSecurityPerimeterConfigurationsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NetworkSecurityPerimeterConfiguration
}

type NetworkSecurityPerimeterConfigurationsListCompleteResult

type NetworkSecurityPerimeterConfigurationsListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []NetworkSecurityPerimeterConfiguration
}

type NetworkSecurityPerimeterConfigurationsListCustomPager added in v0.20240628.1153531

type NetworkSecurityPerimeterConfigurationsListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type NetworkSecurityPerimeterConfigurationsListOperationResponse

type NetworkSecurityPerimeterConfigurationsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]NetworkSecurityPerimeterConfiguration
}

type NetworkSecurityPerimeterConfigurationsReconcileOperationResponse

type NetworkSecurityPerimeterConfigurationsReconcileOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NetworkSecurityPerimeterConfiguration
}

type NetworkSecurityPerimeterInfo

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

type NetworkSecurityPerimeterProfileAccessRule

type NetworkSecurityPerimeterProfileAccessRule struct {
	FullyQualifiedArmId *string                                              `json:"fullyQualifiedArmId,omitempty"`
	Name                *string                                              `json:"name,omitempty"`
	Properties          *NetworkSecurityPerimeterProfileAccessRuleProperties `json:"properties,omitempty"`
	Type                *string                                              `json:"type,omitempty"`
}

type NetworkSecurityPerimeterProfileAccessRuleDirection

type NetworkSecurityPerimeterProfileAccessRuleDirection string
const (
	NetworkSecurityPerimeterProfileAccessRuleDirectionInbound  NetworkSecurityPerimeterProfileAccessRuleDirection = "Inbound"
	NetworkSecurityPerimeterProfileAccessRuleDirectionOutbound NetworkSecurityPerimeterProfileAccessRuleDirection = "Outbound"
)

func (*NetworkSecurityPerimeterProfileAccessRuleDirection) UnmarshalJSON

type NetworkSecurityPerimeterProfileAccessRuleProperties

type NetworkSecurityPerimeterProfileAccessRuleProperties struct {
	AddressPrefixes           *[]string                                           `json:"addressPrefixes,omitempty"`
	Direction                 *NetworkSecurityPerimeterProfileAccessRuleDirection `json:"direction,omitempty"`
	EmailAddresses            *[]string                                           `json:"emailAddresses,omitempty"`
	FullyQualifiedDomainNames *[]string                                           `json:"fullyQualifiedDomainNames,omitempty"`
	NetworkSecurityPerimeters *[]NetworkSecurityPerimeterInfo                     `json:"networkSecurityPerimeters,omitempty"`
	PhoneNumbers              *[]string                                           `json:"phoneNumbers,omitempty"`
	Subscriptions             *[]string                                           `json:"subscriptions,omitempty"`
}

type PerimeterAssociationProxiesClient

type PerimeterAssociationProxiesClient struct {
	Client *resourcemanager.Client
}

func NewPerimeterAssociationProxiesClientWithBaseURI

func NewPerimeterAssociationProxiesClientWithBaseURI(sdkApi sdkEnv.Api) (*PerimeterAssociationProxiesClient, error)

func (PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfigurationsGet

NetworkSecurityPerimeterConfigurationsGet ...

func (PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfigurationsList

NetworkSecurityPerimeterConfigurationsList ...

func (PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfigurationsListComplete

NetworkSecurityPerimeterConfigurationsListComplete retrieves all the results into a single object

func (PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfigurationsListCompleteMatchingPredicate

func (c PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfigurationsListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate NetworkSecurityPerimeterConfigurationOperationPredicate) (result NetworkSecurityPerimeterConfigurationsListCompleteResult, err error)

NetworkSecurityPerimeterConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfigurationsReconcile

NetworkSecurityPerimeterConfigurationsReconcile ...

func (PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfigurationsReconcileThenPoll

func (c PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfigurationsReconcileThenPoll(ctx context.Context, id ScopedNetworkSecurityPerimeterConfigurationId) error

NetworkSecurityPerimeterConfigurationsReconcileThenPoll performs NetworkSecurityPerimeterConfigurationsReconcile then polls until it's completed

type ResourceAssociation

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

type ScopedNetworkSecurityPerimeterConfigurationId

type ScopedNetworkSecurityPerimeterConfigurationId struct {
	Scope                                     string
	NetworkSecurityPerimeterConfigurationName string
}

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

func NewScopedNetworkSecurityPerimeterConfigurationID

func NewScopedNetworkSecurityPerimeterConfigurationID(scope string, networkSecurityPerimeterConfigurationName string) ScopedNetworkSecurityPerimeterConfigurationId

NewScopedNetworkSecurityPerimeterConfigurationID returns a new ScopedNetworkSecurityPerimeterConfigurationId struct

func ParseScopedNetworkSecurityPerimeterConfigurationID

func ParseScopedNetworkSecurityPerimeterConfigurationID(input string) (*ScopedNetworkSecurityPerimeterConfigurationId, error)

ParseScopedNetworkSecurityPerimeterConfigurationID parses 'input' into a ScopedNetworkSecurityPerimeterConfigurationId

func ParseScopedNetworkSecurityPerimeterConfigurationIDInsensitively

func ParseScopedNetworkSecurityPerimeterConfigurationIDInsensitively(input string) (*ScopedNetworkSecurityPerimeterConfigurationId, error)

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

func (*ScopedNetworkSecurityPerimeterConfigurationId) FromParseResult

func (ScopedNetworkSecurityPerimeterConfigurationId) ID

ID returns the formatted Scoped Network Security Perimeter Configuration ID

func (ScopedNetworkSecurityPerimeterConfigurationId) Segments

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

func (ScopedNetworkSecurityPerimeterConfigurationId) String

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

Jump to

Keyboard shortcuts

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