vpnserverconfigurations

package
v0.20240209.1120443 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-04-01/vpnserverconfigurations Documentation

The vpnserverconfigurations SDK allows for interaction with the Azure Resource Manager Service network (API Version 2023-04-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/network/2023-04-01/vpnserverconfigurations"

Client Initialization

client := vpnserverconfigurations.NewVpnServerConfigurationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VpnServerConfigurationsClient.UpdateTags

ctx := context.TODO()
id := vpnserverconfigurations.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue")

payload := vpnserverconfigurations.TagsObject{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDhGroup

func PossibleValuesForDhGroup() []string

func PossibleValuesForIPsecEncryption

func PossibleValuesForIPsecEncryption() []string

func PossibleValuesForIPsecIntegrity

func PossibleValuesForIPsecIntegrity() []string

func PossibleValuesForIkeEncryption

func PossibleValuesForIkeEncryption() []string

func PossibleValuesForIkeIntegrity

func PossibleValuesForIkeIntegrity() []string

func PossibleValuesForPfsGroup

func PossibleValuesForPfsGroup() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForVnetLocalRouteOverrideCriteria

func PossibleValuesForVnetLocalRouteOverrideCriteria() []string

func PossibleValuesForVpnAuthenticationType

func PossibleValuesForVpnAuthenticationType() []string

func PossibleValuesForVpnGatewayTunnelingProtocol

func PossibleValuesForVpnGatewayTunnelingProtocol() []string

func PossibleValuesForVpnPolicyMemberAttributeType

func PossibleValuesForVpnPolicyMemberAttributeType() []string

func ValidateVpnServerConfigurationID

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

ValidateVpnServerConfigurationID checks that 'input' can be parsed as a Vpn Server Configuration ID

Types

type AadAuthenticationParameters

type AadAuthenticationParameters struct {
	AadAudience *string `json:"aadAudience,omitempty"`
	AadIssuer   *string `json:"aadIssuer,omitempty"`
	AadTenant   *string `json:"aadTenant,omitempty"`
}

type AddressSpace

type AddressSpace struct {
	AddressPrefixes *[]string `json:"addressPrefixes,omitempty"`
}

type DhGroup

type DhGroup string
const (
	DhGroupDHGroupOne              DhGroup = "DHGroup1"
	DhGroupDHGroupOneFour          DhGroup = "DHGroup14"
	DhGroupDHGroupTwo              DhGroup = "DHGroup2"
	DhGroupDHGroupTwoFour          DhGroup = "DHGroup24"
	DhGroupDHGroupTwoZeroFourEight DhGroup = "DHGroup2048"
	DhGroupECPThreeEightFour       DhGroup = "ECP384"
	DhGroupECPTwoFiveSix           DhGroup = "ECP256"
	DhGroupNone                    DhGroup = "None"
)

func (*DhGroup) UnmarshalJSON

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

type IPsecEncryption

type IPsecEncryption string
const (
	IPsecEncryptionAESOneNineTwo     IPsecEncryption = "AES192"
	IPsecEncryptionAESOneTwoEight    IPsecEncryption = "AES128"
	IPsecEncryptionAESTwoFiveSix     IPsecEncryption = "AES256"
	IPsecEncryptionDES               IPsecEncryption = "DES"
	IPsecEncryptionDESThree          IPsecEncryption = "DES3"
	IPsecEncryptionGCMAESOneNineTwo  IPsecEncryption = "GCMAES192"
	IPsecEncryptionGCMAESOneTwoEight IPsecEncryption = "GCMAES128"
	IPsecEncryptionGCMAESTwoFiveSix  IPsecEncryption = "GCMAES256"
	IPsecEncryptionNone              IPsecEncryption = "None"
)

func (*IPsecEncryption) UnmarshalJSON

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

type IPsecIntegrity

type IPsecIntegrity string
const (
	IPsecIntegrityGCMAESOneNineTwo  IPsecIntegrity = "GCMAES192"
	IPsecIntegrityGCMAESOneTwoEight IPsecIntegrity = "GCMAES128"
	IPsecIntegrityGCMAESTwoFiveSix  IPsecIntegrity = "GCMAES256"
	IPsecIntegrityMDFive            IPsecIntegrity = "MD5"
	IPsecIntegritySHAOne            IPsecIntegrity = "SHA1"
	IPsecIntegritySHATwoFiveSix     IPsecIntegrity = "SHA256"
)

func (*IPsecIntegrity) UnmarshalJSON

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

type IPsecPolicy

type IPsecPolicy struct {
	DhGroup             DhGroup         `json:"dhGroup"`
	IPsecEncryption     IPsecEncryption `json:"ipsecEncryption"`
	IPsecIntegrity      IPsecIntegrity  `json:"ipsecIntegrity"`
	IkeEncryption       IkeEncryption   `json:"ikeEncryption"`
	IkeIntegrity        IkeIntegrity    `json:"ikeIntegrity"`
	PfsGroup            PfsGroup        `json:"pfsGroup"`
	SaDataSizeKilobytes int64           `json:"saDataSizeKilobytes"`
	SaLifeTimeSeconds   int64           `json:"saLifeTimeSeconds"`
}

type IkeEncryption

type IkeEncryption string
const (
	IkeEncryptionAESOneNineTwo     IkeEncryption = "AES192"
	IkeEncryptionAESOneTwoEight    IkeEncryption = "AES128"
	IkeEncryptionAESTwoFiveSix     IkeEncryption = "AES256"
	IkeEncryptionDES               IkeEncryption = "DES"
	IkeEncryptionDESThree          IkeEncryption = "DES3"
	IkeEncryptionGCMAESOneTwoEight IkeEncryption = "GCMAES128"
	IkeEncryptionGCMAESTwoFiveSix  IkeEncryption = "GCMAES256"
)

func (*IkeEncryption) UnmarshalJSON

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

type IkeIntegrity

type IkeIntegrity string
const (
	IkeIntegrityGCMAESOneTwoEight IkeIntegrity = "GCMAES128"
	IkeIntegrityGCMAESTwoFiveSix  IkeIntegrity = "GCMAES256"
	IkeIntegrityMDFive            IkeIntegrity = "MD5"
	IkeIntegritySHAOne            IkeIntegrity = "SHA1"
	IkeIntegritySHAThreeEightFour IkeIntegrity = "SHA384"
	IkeIntegritySHATwoFiveSix     IkeIntegrity = "SHA256"
)

func (*IkeIntegrity) UnmarshalJSON

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

type P2SConnectionConfiguration

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

type P2SConnectionConfigurationProperties

type P2SConnectionConfigurationProperties struct {
	ConfigurationPolicyGroupAssociations         *[]SubResource                       `json:"configurationPolicyGroupAssociations,omitempty"`
	EnableInternetSecurity                       *bool                                `json:"enableInternetSecurity,omitempty"`
	PreviousConfigurationPolicyGroupAssociations *[]VpnServerConfigurationPolicyGroup `json:"previousConfigurationPolicyGroupAssociations,omitempty"`
	ProvisioningState                            *ProvisioningState                   `json:"provisioningState,omitempty"`
	RoutingConfiguration                         *RoutingConfiguration                `json:"routingConfiguration,omitempty"`
	VpnClientAddressPool                         *AddressSpace                        `json:"vpnClientAddressPool,omitempty"`
}

type P2SVpnGateway

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

type P2SVpnGatewayProperties

type P2SVpnGatewayProperties struct {
	CustomDnsServers            *[]string                     `json:"customDnsServers,omitempty"`
	IsRoutingPreferenceInternet *bool                         `json:"isRoutingPreferenceInternet,omitempty"`
	P2SConnectionConfigurations *[]P2SConnectionConfiguration `json:"p2SConnectionConfigurations,omitempty"`
	ProvisioningState           *ProvisioningState            `json:"provisioningState,omitempty"`
	VirtualHub                  *SubResource                  `json:"virtualHub,omitempty"`
	VpnClientConnectionHealth   *VpnClientConnectionHealth    `json:"vpnClientConnectionHealth,omitempty"`
	VpnGatewayScaleUnit         *int64                        `json:"vpnGatewayScaleUnit,omitempty"`
	VpnServerConfiguration      *SubResource                  `json:"vpnServerConfiguration,omitempty"`
}

type PfsGroup

type PfsGroup string
const (
	PfsGroupECPThreeEightFour   PfsGroup = "ECP384"
	PfsGroupECPTwoFiveSix       PfsGroup = "ECP256"
	PfsGroupNone                PfsGroup = "None"
	PfsGroupPFSMM               PfsGroup = "PFSMM"
	PfsGroupPFSOne              PfsGroup = "PFS1"
	PfsGroupPFSOneFour          PfsGroup = "PFS14"
	PfsGroupPFSTwo              PfsGroup = "PFS2"
	PfsGroupPFSTwoFour          PfsGroup = "PFS24"
	PfsGroupPFSTwoZeroFourEight PfsGroup = "PFS2048"
)

func (*PfsGroup) UnmarshalJSON

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

type PropagatedRouteTable

type PropagatedRouteTable struct {
	Ids    *[]SubResource `json:"ids,omitempty"`
	Labels *[]string      `json:"labels,omitempty"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

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

type RadiusServer

type RadiusServer struct {
	RadiusServerAddress string  `json:"radiusServerAddress"`
	RadiusServerScore   *int64  `json:"radiusServerScore,omitempty"`
	RadiusServerSecret  *string `json:"radiusServerSecret,omitempty"`
}

type RoutingConfiguration

type RoutingConfiguration struct {
	AssociatedRouteTable  *SubResource          `json:"associatedRouteTable,omitempty"`
	InboundRouteMap       *SubResource          `json:"inboundRouteMap,omitempty"`
	OutboundRouteMap      *SubResource          `json:"outboundRouteMap,omitempty"`
	PropagatedRouteTables *PropagatedRouteTable `json:"propagatedRouteTables,omitempty"`
	VnetRoutes            *VnetRoute            `json:"vnetRoutes,omitempty"`
}

type StaticRoute

type StaticRoute struct {
	AddressPrefixes  *[]string `json:"addressPrefixes,omitempty"`
	Name             *string   `json:"name,omitempty"`
	NextHopIPAddress *string   `json:"nextHopIpAddress,omitempty"`
}

type StaticRoutesConfig

type StaticRoutesConfig struct {
	PropagateStaticRoutes          *bool                           `json:"propagateStaticRoutes,omitempty"`
	VnetLocalRouteOverrideCriteria *VnetLocalRouteOverrideCriteria `json:"vnetLocalRouteOverrideCriteria,omitempty"`
}

type SubResource

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

type TagsObject

type TagsObject struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type UpdateTagsOperationResponse

type UpdateTagsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VpnServerConfiguration
}

type VnetLocalRouteOverrideCriteria

type VnetLocalRouteOverrideCriteria string
const (
	VnetLocalRouteOverrideCriteriaContains VnetLocalRouteOverrideCriteria = "Contains"
	VnetLocalRouteOverrideCriteriaEqual    VnetLocalRouteOverrideCriteria = "Equal"
)

func (*VnetLocalRouteOverrideCriteria) UnmarshalJSON

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

type VnetRoute

type VnetRoute struct {
	BgpConnections     *[]SubResource      `json:"bgpConnections,omitempty"`
	StaticRoutes       *[]StaticRoute      `json:"staticRoutes,omitempty"`
	StaticRoutesConfig *StaticRoutesConfig `json:"staticRoutesConfig,omitempty"`
}

type VpnAuthenticationType

type VpnAuthenticationType string
const (
	VpnAuthenticationTypeAAD         VpnAuthenticationType = "AAD"
	VpnAuthenticationTypeCertificate VpnAuthenticationType = "Certificate"
	VpnAuthenticationTypeRadius      VpnAuthenticationType = "Radius"
)

func (*VpnAuthenticationType) UnmarshalJSON

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

type VpnClientConnectionHealth

type VpnClientConnectionHealth struct {
	AllocatedIPAddresses         *[]string `json:"allocatedIpAddresses,omitempty"`
	TotalEgressBytesTransferred  *int64    `json:"totalEgressBytesTransferred,omitempty"`
	TotalIngressBytesTransferred *int64    `json:"totalIngressBytesTransferred,omitempty"`
	VpnClientConnectionsCount    *int64    `json:"vpnClientConnectionsCount,omitempty"`
}

type VpnGatewayTunnelingProtocol

type VpnGatewayTunnelingProtocol string
const (
	VpnGatewayTunnelingProtocolIkeVTwo VpnGatewayTunnelingProtocol = "IkeV2"
	VpnGatewayTunnelingProtocolOpenVPN VpnGatewayTunnelingProtocol = "OpenVPN"
)

func (*VpnGatewayTunnelingProtocol) UnmarshalJSON

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

type VpnPolicyMemberAttributeType

type VpnPolicyMemberAttributeType string
const (
	VpnPolicyMemberAttributeTypeAADGroupId         VpnPolicyMemberAttributeType = "AADGroupId"
	VpnPolicyMemberAttributeTypeCertificateGroupId VpnPolicyMemberAttributeType = "CertificateGroupId"
	VpnPolicyMemberAttributeTypeRadiusAzureGroupId VpnPolicyMemberAttributeType = "RadiusAzureGroupId"
)

func (*VpnPolicyMemberAttributeType) UnmarshalJSON

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

type VpnServerConfigRadiusClientRootCertificate

type VpnServerConfigRadiusClientRootCertificate struct {
	Name       *string `json:"name,omitempty"`
	Thumbprint *string `json:"thumbprint,omitempty"`
}

type VpnServerConfigRadiusServerRootCertificate

type VpnServerConfigRadiusServerRootCertificate struct {
	Name           *string `json:"name,omitempty"`
	PublicCertData *string `json:"publicCertData,omitempty"`
}

type VpnServerConfigVpnClientRevokedCertificate

type VpnServerConfigVpnClientRevokedCertificate struct {
	Name       *string `json:"name,omitempty"`
	Thumbprint *string `json:"thumbprint,omitempty"`
}

type VpnServerConfigVpnClientRootCertificate

type VpnServerConfigVpnClientRootCertificate struct {
	Name           *string `json:"name,omitempty"`
	PublicCertData *string `json:"publicCertData,omitempty"`
}

type VpnServerConfiguration

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

type VpnServerConfigurationId

type VpnServerConfigurationId struct {
	SubscriptionId             string
	ResourceGroupName          string
	VpnServerConfigurationName string
}

VpnServerConfigurationId is a struct representing the Resource ID for a Vpn Server Configuration

func NewVpnServerConfigurationID

func NewVpnServerConfigurationID(subscriptionId string, resourceGroupName string, vpnServerConfigurationName string) VpnServerConfigurationId

NewVpnServerConfigurationID returns a new VpnServerConfigurationId struct

func ParseVpnServerConfigurationID

func ParseVpnServerConfigurationID(input string) (*VpnServerConfigurationId, error)

ParseVpnServerConfigurationID parses 'input' into a VpnServerConfigurationId

func ParseVpnServerConfigurationIDInsensitively

func ParseVpnServerConfigurationIDInsensitively(input string) (*VpnServerConfigurationId, error)

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

func (*VpnServerConfigurationId) FromParseResult

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

func (VpnServerConfigurationId) ID

ID returns the formatted Vpn Server Configuration ID

func (VpnServerConfigurationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Vpn Server Configuration ID

func (VpnServerConfigurationId) String

func (id VpnServerConfigurationId) String() string

String returns a human-readable description of this Vpn Server Configuration ID

type VpnServerConfigurationPolicyGroup

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

type VpnServerConfigurationPolicyGroupMember

type VpnServerConfigurationPolicyGroupMember struct {
	AttributeType  *VpnPolicyMemberAttributeType `json:"attributeType,omitempty"`
	AttributeValue *string                       `json:"attributeValue,omitempty"`
	Name           *string                       `json:"name,omitempty"`
}

type VpnServerConfigurationPolicyGroupProperties

type VpnServerConfigurationPolicyGroupProperties struct {
	IsDefault                   *bool                                      `json:"isDefault,omitempty"`
	P2SConnectionConfigurations *[]SubResource                             `json:"p2SConnectionConfigurations,omitempty"`
	PolicyMembers               *[]VpnServerConfigurationPolicyGroupMember `json:"policyMembers,omitempty"`
	Priority                    *int64                                     `json:"priority,omitempty"`
	ProvisioningState           *ProvisioningState                         `json:"provisioningState,omitempty"`
}

type VpnServerConfigurationProperties

type VpnServerConfigurationProperties struct {
	AadAuthenticationParameters  *AadAuthenticationParameters                  `json:"aadAuthenticationParameters,omitempty"`
	ConfigurationPolicyGroups    *[]VpnServerConfigurationPolicyGroup          `json:"configurationPolicyGroups,omitempty"`
	Etag                         *string                                       `json:"etag,omitempty"`
	Name                         *string                                       `json:"name,omitempty"`
	P2sVpnGateways               *[]P2SVpnGateway                              `json:"p2SVpnGateways,omitempty"`
	ProvisioningState            *string                                       `json:"provisioningState,omitempty"`
	RadiusClientRootCertificates *[]VpnServerConfigRadiusClientRootCertificate `json:"radiusClientRootCertificates,omitempty"`
	RadiusServerAddress          *string                                       `json:"radiusServerAddress,omitempty"`
	RadiusServerRootCertificates *[]VpnServerConfigRadiusServerRootCertificate `json:"radiusServerRootCertificates,omitempty"`
	RadiusServerSecret           *string                                       `json:"radiusServerSecret,omitempty"`
	RadiusServers                *[]RadiusServer                               `json:"radiusServers,omitempty"`
	VpnAuthenticationTypes       *[]VpnAuthenticationType                      `json:"vpnAuthenticationTypes,omitempty"`
	VpnClientIPsecPolicies       *[]IPsecPolicy                                `json:"vpnClientIpsecPolicies,omitempty"`
	VpnClientRevokedCertificates *[]VpnServerConfigVpnClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"`
	VpnClientRootCertificates    *[]VpnServerConfigVpnClientRootCertificate    `json:"vpnClientRootCertificates,omitempty"`
	VpnProtocols                 *[]VpnGatewayTunnelingProtocol                `json:"vpnProtocols,omitempty"`
}

type VpnServerConfigurationsClient

type VpnServerConfigurationsClient struct {
	Client *resourcemanager.Client
}

func NewVpnServerConfigurationsClientWithBaseURI

func NewVpnServerConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*VpnServerConfigurationsClient, error)

func (VpnServerConfigurationsClient) UpdateTags

UpdateTags ...

Jump to

Keyboard shortcuts

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