README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/mhsmprivateendpointconnections
Documentation
The mhsmprivateendpointconnections
SDK allows for interaction with the Azure Resource Manager Service keyvault
(API Version 2023-02-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/keyvault/2023-02-01/mhsmprivateendpointconnections"
Client Initialization
client := mhsmprivateendpointconnections.NewMHSMPrivateEndpointConnectionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: MHSMPrivateEndpointConnectionsClient.Delete
ctx := context.TODO()
id := mhsmprivateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedHSMValue", "privateEndpointConnectionValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: MHSMPrivateEndpointConnectionsClient.Get
ctx := context.TODO()
id := mhsmprivateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedHSMValue", "privateEndpointConnectionValue")
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: MHSMPrivateEndpointConnectionsClient.Put
ctx := context.TODO()
id := mhsmprivateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedHSMValue", "privateEndpointConnectionValue")
payload := mhsmprivateendpointconnections.MHSMPrivateEndpointConnection{
// ...
}
read, err := client.Put(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForActionsRequired() []string
- func PossibleValuesForManagedHsmSkuFamily() []string
- func PossibleValuesForManagedHsmSkuName() []string
- func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string
- func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string
- func ValidatePrivateEndpointConnectionID(input interface{}, key string) (warnings []string, errors []error)
- type ActionsRequired
- type DeleteOperationResponse
- type GetOperationResponse
- type MHSMPrivateEndpoint
- type MHSMPrivateEndpointConnection
- type MHSMPrivateEndpointConnectionProperties
- type MHSMPrivateEndpointConnectionsClient
- func (c MHSMPrivateEndpointConnectionsClient) Delete(ctx context.Context, id PrivateEndpointConnectionId) (result DeleteOperationResponse, err error)
- func (c MHSMPrivateEndpointConnectionsClient) DeleteThenPoll(ctx context.Context, id PrivateEndpointConnectionId) error
- func (c MHSMPrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEndpointConnectionId) (result GetOperationResponse, err error)
- func (c MHSMPrivateEndpointConnectionsClient) Put(ctx context.Context, id PrivateEndpointConnectionId, ...) (result PutOperationResponse, err error)
- type MHSMPrivateLinkServiceConnectionState
- type ManagedHsmSku
- type ManagedHsmSkuFamily
- type ManagedHsmSkuName
- type PrivateEndpointConnectionId
- func NewPrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, managedHSMName string, ...) PrivateEndpointConnectionId
- func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionId, error)
- func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpointConnectionId, error)
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointServiceConnectionStatus
- type PutOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForActionsRequired ¶
func PossibleValuesForActionsRequired() []string
func PossibleValuesForManagedHsmSkuFamily ¶
func PossibleValuesForManagedHsmSkuFamily() []string
func PossibleValuesForManagedHsmSkuName ¶
func PossibleValuesForManagedHsmSkuName() []string
func PossibleValuesForPrivateEndpointConnectionProvisioningState ¶
func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string
func PossibleValuesForPrivateEndpointServiceConnectionStatus ¶
func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string
func ValidatePrivateEndpointConnectionID ¶
func ValidatePrivateEndpointConnectionID(input interface{}, key string) (warnings []string, errors []error)
ValidatePrivateEndpointConnectionID checks that 'input' can be parsed as a Private Endpoint Connection ID
Types ¶
type ActionsRequired ¶
type ActionsRequired string
const (
ActionsRequiredNone ActionsRequired = "None"
)
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response Model *MHSMPrivateEndpointConnection }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *MHSMPrivateEndpointConnection }
type MHSMPrivateEndpoint ¶
type MHSMPrivateEndpoint struct {
Id *string `json:"id,omitempty"`
}
type MHSMPrivateEndpointConnection ¶
type MHSMPrivateEndpointConnection struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *MHSMPrivateEndpointConnectionProperties `json:"properties,omitempty"` Sku *ManagedHsmSku `json:"sku,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type MHSMPrivateEndpointConnectionProperties ¶
type MHSMPrivateEndpointConnectionProperties struct { PrivateEndpoint *MHSMPrivateEndpoint `json:"privateEndpoint,omitempty"` PrivateLinkServiceConnectionState *MHSMPrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` }
type MHSMPrivateEndpointConnectionsClient ¶
type MHSMPrivateEndpointConnectionsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewMHSMPrivateEndpointConnectionsClientWithBaseURI ¶
func NewMHSMPrivateEndpointConnectionsClientWithBaseURI(endpoint string) MHSMPrivateEndpointConnectionsClient
func (MHSMPrivateEndpointConnectionsClient) Delete ¶
func (c MHSMPrivateEndpointConnectionsClient) Delete(ctx context.Context, id PrivateEndpointConnectionId) (result DeleteOperationResponse, err error)
Delete ...
func (MHSMPrivateEndpointConnectionsClient) DeleteThenPoll ¶
func (c MHSMPrivateEndpointConnectionsClient) DeleteThenPoll(ctx context.Context, id PrivateEndpointConnectionId) error
DeleteThenPoll performs Delete then polls until it's completed
func (MHSMPrivateEndpointConnectionsClient) Get ¶
func (c MHSMPrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEndpointConnectionId) (result GetOperationResponse, err error)
Get ...
func (MHSMPrivateEndpointConnectionsClient) Put ¶
func (c MHSMPrivateEndpointConnectionsClient) Put(ctx context.Context, id PrivateEndpointConnectionId, input MHSMPrivateEndpointConnection) (result PutOperationResponse, err error)
Put ...
type MHSMPrivateLinkServiceConnectionState ¶
type MHSMPrivateLinkServiceConnectionState struct { ActionsRequired *ActionsRequired `json:"actionsRequired,omitempty"` Description *string `json:"description,omitempty"` Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` }
type ManagedHsmSku ¶
type ManagedHsmSku struct { Family ManagedHsmSkuFamily `json:"family"` Name ManagedHsmSkuName `json:"name"` }
type ManagedHsmSkuFamily ¶
type ManagedHsmSkuFamily string
const (
ManagedHsmSkuFamilyB ManagedHsmSkuFamily = "B"
)
type ManagedHsmSkuName ¶
type ManagedHsmSkuName string
const ( ManagedHsmSkuNameCustomBSix ManagedHsmSkuName = "Custom_B6" ManagedHsmSkuNameCustomBThreeTwo ManagedHsmSkuName = "Custom_B32" ManagedHsmSkuNameStandardBOne ManagedHsmSkuName = "Standard_B1" )
type PrivateEndpointConnectionId ¶
type PrivateEndpointConnectionId struct { SubscriptionId string ResourceGroupName string ManagedHSMName string PrivateEndpointConnectionName string }
PrivateEndpointConnectionId is a struct representing the Resource ID for a Private Endpoint Connection
func NewPrivateEndpointConnectionID ¶
func NewPrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, managedHSMName string, privateEndpointConnectionName string) PrivateEndpointConnectionId
NewPrivateEndpointConnectionID returns a new PrivateEndpointConnectionId struct
func ParsePrivateEndpointConnectionID ¶
func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionId, error)
ParsePrivateEndpointConnectionID parses 'input' into a PrivateEndpointConnectionId
func ParsePrivateEndpointConnectionIDInsensitively ¶
func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpointConnectionId, error)
ParsePrivateEndpointConnectionIDInsensitively parses 'input' case-insensitively into a PrivateEndpointConnectionId note: this method should only be used for API response data and not user input
func (*PrivateEndpointConnectionId) FromParseResult ¶
func (id *PrivateEndpointConnectionId) FromParseResult(input resourceids.ParseResult) error
func (PrivateEndpointConnectionId) ID ¶
func (id PrivateEndpointConnectionId) ID() string
ID returns the formatted Private Endpoint Connection ID
func (PrivateEndpointConnectionId) Segments ¶
func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Private Endpoint Connection ID
func (PrivateEndpointConnectionId) String ¶
func (id PrivateEndpointConnectionId) String() string
String returns a human-readable description of this Private Endpoint Connection ID
type PrivateEndpointConnectionProvisioningState ¶
type PrivateEndpointConnectionProvisioningState string
const ( PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" PrivateEndpointConnectionProvisioningStateDisconnected PrivateEndpointConnectionProvisioningState = "Disconnected" PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" PrivateEndpointConnectionProvisioningStateUpdating PrivateEndpointConnectionProvisioningState = "Updating" )
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
const ( PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" PrivateEndpointServiceConnectionStatusDisconnected PrivateEndpointServiceConnectionStatus = "Disconnected" PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
type PutOperationResponse ¶
type PutOperationResponse struct { HttpResponse *http.Response Model *MHSMPrivateEndpointConnection }
Source Files ¶
- client.go
- constants.go
- id_privateendpointconnection.go
- method_delete_autorest.go
- method_get_autorest.go
- method_put_autorest.go
- model_managedhsmsku.go
- model_mhsmprivateendpoint.go
- model_mhsmprivateendpointconnection.go
- model_mhsmprivateendpointconnectionproperties.go
- model_mhsmprivatelinkserviceconnectionstate.go
- version.go