README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-11-01/workspaceprivateendpointconnections
Documentation
The workspaceprivateendpointconnections
SDK allows for interaction with Azure Resource Manager healthcareapis
(API Version 2023-11-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/healthcareapis/2023-11-01/workspaceprivateendpointconnections"
Client Initialization
client := workspaceprivateendpointconnections.NewWorkspacePrivateEndpointConnectionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: WorkspacePrivateEndpointConnectionsClient.CreateOrUpdate
ctx := context.TODO()
id := workspaceprivateendpointconnections.NewWorkspacePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "privateEndpointConnectionName")
payload := workspaceprivateendpointconnections.PrivateEndpointConnectionDescription{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: WorkspacePrivateEndpointConnectionsClient.Delete
ctx := context.TODO()
id := workspaceprivateendpointconnections.NewWorkspacePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "privateEndpointConnectionName")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: WorkspacePrivateEndpointConnectionsClient.Get
ctx := context.TODO()
id := workspaceprivateendpointconnections.NewWorkspacePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "privateEndpointConnectionName")
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: WorkspacePrivateEndpointConnectionsClient.ListByWorkspace
ctx := context.TODO()
id := workspaceprivateendpointconnections.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")
read, err := client.ListByWorkspace(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string
- func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string
- func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWorkspacePrivateEndpointConnectionID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByWorkspaceOperationResponse
- type PrivateEndpoint
- type PrivateEndpointConnectionDescription
- type PrivateEndpointConnectionListResultDescription
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkServiceConnectionState
- type WorkspaceId
- type WorkspacePrivateEndpointConnectionId
- func NewWorkspacePrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, workspaceName string, ...) WorkspacePrivateEndpointConnectionId
- func ParseWorkspacePrivateEndpointConnectionID(input string) (*WorkspacePrivateEndpointConnectionId, error)
- func ParseWorkspacePrivateEndpointConnectionIDInsensitively(input string) (*WorkspacePrivateEndpointConnectionId, error)
- func (id *WorkspacePrivateEndpointConnectionId) FromParseResult(input resourceids.ParseResult) error
- func (id WorkspacePrivateEndpointConnectionId) ID() string
- func (id WorkspacePrivateEndpointConnectionId) Segments() []resourceids.Segment
- func (id WorkspacePrivateEndpointConnectionId) String() string
- type WorkspacePrivateEndpointConnectionsClient
- func (c WorkspacePrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, id WorkspacePrivateEndpointConnectionId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c WorkspacePrivateEndpointConnectionsClient) CreateOrUpdateThenPoll(ctx context.Context, id WorkspacePrivateEndpointConnectionId, ...) error
- func (c WorkspacePrivateEndpointConnectionsClient) Delete(ctx context.Context, id WorkspacePrivateEndpointConnectionId) (result DeleteOperationResponse, err error)
- func (c WorkspacePrivateEndpointConnectionsClient) DeleteThenPoll(ctx context.Context, id WorkspacePrivateEndpointConnectionId) error
- func (c WorkspacePrivateEndpointConnectionsClient) Get(ctx context.Context, id WorkspacePrivateEndpointConnectionId) (result GetOperationResponse, err error)
- func (c WorkspacePrivateEndpointConnectionsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForPrivateEndpointConnectionProvisioningState ¶
func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string
func PossibleValuesForPrivateEndpointServiceConnectionStatus ¶
func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string
func ValidateWorkspaceID ¶
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID
func ValidateWorkspacePrivateEndpointConnectionID ¶
func ValidateWorkspacePrivateEndpointConnectionID(input interface{}, key string) (warnings []string, errors []error)
ValidateWorkspacePrivateEndpointConnectionID checks that 'input' can be parsed as a Workspace Private Endpoint Connection ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrivateEndpointConnectionDescription }
type ListByWorkspaceOperationResponse ¶
type ListByWorkspaceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrivateEndpointConnectionListResultDescription }
type PrivateEndpoint ¶
type PrivateEndpoint struct {
Id *string `json:"id,omitempty"`
}
type PrivateEndpointConnectionDescription ¶
type PrivateEndpointConnectionDescription struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type PrivateEndpointConnectionListResultDescription ¶
type PrivateEndpointConnectionListResultDescription struct {
Value *[]PrivateEndpointConnectionDescription `json:"value,omitempty"`
}
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState"` ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` }
type PrivateEndpointConnectionProvisioningState ¶
type PrivateEndpointConnectionProvisioningState string
const ( PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func (*PrivateEndpointConnectionProvisioningState) UnmarshalJSON ¶
func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
const ( PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func (*PrivateEndpointServiceConnectionStatus) UnmarshalJSON ¶
func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { ActionsRequired *string `json:"actionsRequired,omitempty"` Description *string `json:"description,omitempty"` Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` }
type WorkspaceId ¶
WorkspaceId is a struct representing the Resource ID for a Workspace
func NewWorkspaceID ¶
func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId
NewWorkspaceID returns a new WorkspaceId struct
func ParseWorkspaceID ¶
func ParseWorkspaceID(input string) (*WorkspaceId, error)
ParseWorkspaceID parses 'input' into a WorkspaceId
func ParseWorkspaceIDInsensitively ¶
func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)
ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input
func (*WorkspaceId) FromParseResult ¶
func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error
func (WorkspaceId) Segments ¶
func (id WorkspaceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Workspace ID
func (WorkspaceId) String ¶
func (id WorkspaceId) String() string
String returns a human-readable description of this Workspace ID
type WorkspacePrivateEndpointConnectionId ¶
type WorkspacePrivateEndpointConnectionId struct { SubscriptionId string ResourceGroupName string WorkspaceName string PrivateEndpointConnectionName string }
WorkspacePrivateEndpointConnectionId is a struct representing the Resource ID for a Workspace Private Endpoint Connection
func NewWorkspacePrivateEndpointConnectionID ¶
func NewWorkspacePrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, workspaceName string, privateEndpointConnectionName string) WorkspacePrivateEndpointConnectionId
NewWorkspacePrivateEndpointConnectionID returns a new WorkspacePrivateEndpointConnectionId struct
func ParseWorkspacePrivateEndpointConnectionID ¶
func ParseWorkspacePrivateEndpointConnectionID(input string) (*WorkspacePrivateEndpointConnectionId, error)
ParseWorkspacePrivateEndpointConnectionID parses 'input' into a WorkspacePrivateEndpointConnectionId
func ParseWorkspacePrivateEndpointConnectionIDInsensitively ¶
func ParseWorkspacePrivateEndpointConnectionIDInsensitively(input string) (*WorkspacePrivateEndpointConnectionId, error)
ParseWorkspacePrivateEndpointConnectionIDInsensitively parses 'input' case-insensitively into a WorkspacePrivateEndpointConnectionId note: this method should only be used for API response data and not user input
func (*WorkspacePrivateEndpointConnectionId) FromParseResult ¶
func (id *WorkspacePrivateEndpointConnectionId) FromParseResult(input resourceids.ParseResult) error
func (WorkspacePrivateEndpointConnectionId) ID ¶
func (id WorkspacePrivateEndpointConnectionId) ID() string
ID returns the formatted Workspace Private Endpoint Connection ID
func (WorkspacePrivateEndpointConnectionId) Segments ¶
func (id WorkspacePrivateEndpointConnectionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Workspace Private Endpoint Connection ID
func (WorkspacePrivateEndpointConnectionId) String ¶
func (id WorkspacePrivateEndpointConnectionId) String() string
String returns a human-readable description of this Workspace Private Endpoint Connection ID
type WorkspacePrivateEndpointConnectionsClient ¶
type WorkspacePrivateEndpointConnectionsClient struct {
Client *resourcemanager.Client
}
func NewWorkspacePrivateEndpointConnectionsClientWithBaseURI ¶
func NewWorkspacePrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspacePrivateEndpointConnectionsClient, error)
func (WorkspacePrivateEndpointConnectionsClient) CreateOrUpdate ¶
func (c WorkspacePrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, id WorkspacePrivateEndpointConnectionId, input PrivateEndpointConnectionDescription) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (WorkspacePrivateEndpointConnectionsClient) CreateOrUpdateThenPoll ¶
func (c WorkspacePrivateEndpointConnectionsClient) CreateOrUpdateThenPoll(ctx context.Context, id WorkspacePrivateEndpointConnectionId, input PrivateEndpointConnectionDescription) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (WorkspacePrivateEndpointConnectionsClient) Delete ¶
func (c WorkspacePrivateEndpointConnectionsClient) Delete(ctx context.Context, id WorkspacePrivateEndpointConnectionId) (result DeleteOperationResponse, err error)
Delete ...
func (WorkspacePrivateEndpointConnectionsClient) DeleteThenPoll ¶
func (c WorkspacePrivateEndpointConnectionsClient) DeleteThenPoll(ctx context.Context, id WorkspacePrivateEndpointConnectionId) error
DeleteThenPoll performs Delete then polls until it's completed
func (WorkspacePrivateEndpointConnectionsClient) Get ¶
func (c WorkspacePrivateEndpointConnectionsClient) Get(ctx context.Context, id WorkspacePrivateEndpointConnectionId) (result GetOperationResponse, err error)
Get ...
func (WorkspacePrivateEndpointConnectionsClient) ListByWorkspace ¶
func (c WorkspacePrivateEndpointConnectionsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error)
ListByWorkspace ...
Source Files ¶
- client.go
- constants.go
- id_workspace.go
- id_workspaceprivateendpointconnection.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyworkspace.go
- model_privateendpoint.go
- model_privateendpointconnectiondescription.go
- model_privateendpointconnectionlistresultdescription.go
- model_privateendpointconnectionproperties.go
- model_privatelinkserviceconnectionstate.go
- version.go