README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2021-08-01/backendreconnect
Documentation
The backendreconnect
SDK allows for interaction with the Azure Resource Manager Service apimanagement
(API Version 2021-08-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/apimanagement/2021-08-01/backendreconnect"
Client Initialization
client := backendreconnect.NewBackendReconnectClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: BackendReconnectClient.BackendReconnect
ctx := context.TODO()
id := backendreconnect.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "backendIdValue")
payload := backendreconnect.BackendReconnectContract{
// ...
}
read, err := client.BackendReconnect(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 ValidateBackendID ¶
ValidateBackendID checks that 'input' can be parsed as a Backend ID
Types ¶
type BackendId ¶
type BackendId struct { SubscriptionId string ResourceGroupName string ServiceName string BackendId string }
BackendId is a struct representing the Resource ID for a Backend
func NewBackendID ¶
func NewBackendID(subscriptionId string, resourceGroupName string, serviceName string, backendId string) BackendId
NewBackendID returns a new BackendId struct
func ParseBackendID ¶
ParseBackendID parses 'input' into a BackendId
func ParseBackendIDInsensitively ¶
ParseBackendIDInsensitively parses 'input' case-insensitively into a BackendId note: this method should only be used for API response data and not user input
func (*BackendId) FromParseResult ¶ added in v0.20231127.1171502
func (id *BackendId) FromParseResult(input resourceids.ParseResult) error
func (BackendId) Segments ¶
func (id BackendId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Backend ID
type BackendReconnectClient ¶
type BackendReconnectClient struct {
Client *resourcemanager.Client
}
func NewBackendReconnectClientWithBaseURI ¶
func NewBackendReconnectClientWithBaseURI(sdkApi sdkEnv.Api) (*BackendReconnectClient, error)
func (BackendReconnectClient) BackendReconnect ¶
func (c BackendReconnectClient) BackendReconnect(ctx context.Context, id BackendId, input BackendReconnectContract) (result BackendReconnectOperationResponse, err error)
BackendReconnect ...
type BackendReconnectContract ¶
type BackendReconnectContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *BackendReconnectProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type BackendReconnectProperties ¶
type BackendReconnectProperties struct {
After *string `json:"after,omitempty"`
}