README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/checknameavailabilitydisasterrecoveryconfigs
Documentation
The checknameavailabilitydisasterrecoveryconfigs
SDK allows for interaction with the Azure Resource Manager Service eventhub
(API Version 2022-01-01-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-sdk/resource-manager/eventhub/2022-01-01-preview/checknameavailabilitydisasterrecoveryconfigs"
Client Initialization
client := checknameavailabilitydisasterrecoveryconfigs.NewCheckNameAvailabilityDisasterRecoveryConfigsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: CheckNameAvailabilityDisasterRecoveryConfigsClient.DisasterRecoveryConfigsCheckNameAvailability
ctx := context.TODO()
id := checknameavailabilitydisasterrecoveryconfigs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue")
payload := checknameavailabilitydisasterrecoveryconfigs.CheckNameAvailabilityParameter{
// ...
}
read, err := client.DisasterRecoveryConfigsCheckNameAvailability(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 PossibleValuesForUnavailableReason() []string
- func ValidateNamespaceID(input interface{}, key string) (warnings []string, errors []error)
- type CheckNameAvailabilityDisasterRecoveryConfigsClient
- type CheckNameAvailabilityParameter
- type CheckNameAvailabilityResult
- type DisasterRecoveryConfigsCheckNameAvailabilityOperationResponse
- type NamespaceId
- type UnavailableReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForUnavailableReason ¶
func PossibleValuesForUnavailableReason() []string
func ValidateNamespaceID ¶
ValidateNamespaceID checks that 'input' can be parsed as a Namespace ID
Types ¶
type CheckNameAvailabilityDisasterRecoveryConfigsClient ¶
type CheckNameAvailabilityDisasterRecoveryConfigsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewCheckNameAvailabilityDisasterRecoveryConfigsClientWithBaseURI ¶
func NewCheckNameAvailabilityDisasterRecoveryConfigsClientWithBaseURI(endpoint string) CheckNameAvailabilityDisasterRecoveryConfigsClient
func (CheckNameAvailabilityDisasterRecoveryConfigsClient) DisasterRecoveryConfigsCheckNameAvailability ¶
func (c CheckNameAvailabilityDisasterRecoveryConfigsClient) DisasterRecoveryConfigsCheckNameAvailability(ctx context.Context, id NamespaceId, input CheckNameAvailabilityParameter) (result DisasterRecoveryConfigsCheckNameAvailabilityOperationResponse, err error)
DisasterRecoveryConfigsCheckNameAvailability ...
type CheckNameAvailabilityParameter ¶
type CheckNameAvailabilityParameter struct {
Name string `json:"name"`
}
type CheckNameAvailabilityResult ¶
type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` NameAvailable *bool `json:"nameAvailable,omitempty"` Reason *UnavailableReason `json:"reason,omitempty"` }
type DisasterRecoveryConfigsCheckNameAvailabilityOperationResponse ¶
type DisasterRecoveryConfigsCheckNameAvailabilityOperationResponse struct { HttpResponse *http.Response Model *CheckNameAvailabilityResult }
type NamespaceId ¶
NamespaceId is a struct representing the Resource ID for a Namespace
func NewNamespaceID ¶
func NewNamespaceID(subscriptionId string, resourceGroupName string, namespaceName string) NamespaceId
NewNamespaceID returns a new NamespaceId struct
func ParseNamespaceID ¶
func ParseNamespaceID(input string) (*NamespaceId, error)
ParseNamespaceID parses 'input' into a NamespaceId
func ParseNamespaceIDInsensitively ¶
func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error)
ParseNamespaceIDInsensitively parses 'input' case-insensitively into a NamespaceId note: this method should only be used for API response data and not user input
func (NamespaceId) Segments ¶
func (id NamespaceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Namespace ID
func (NamespaceId) String ¶
func (id NamespaceId) String() string
String returns a human-readable description of this Namespace ID