README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/checknameavailabilitynamespaces
Documentation
The checknameavailabilitynamespaces
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/checknameavailabilitynamespaces"
Client Initialization
client := checknameavailabilitynamespaces.NewCheckNameAvailabilityNamespacesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: CheckNameAvailabilityNamespacesClient.NamespacesCheckNameAvailability
ctx := context.TODO()
id := checknameavailabilitynamespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
payload := checknameavailabilitynamespaces.CheckNameAvailabilityParameter{
// ...
}
read, err := client.NamespacesCheckNameAvailability(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 PossibleValuesForUnavailableReason ¶
func PossibleValuesForUnavailableReason() []string
Types ¶
type CheckNameAvailabilityNamespacesClient ¶
type CheckNameAvailabilityNamespacesClient struct {
Client *resourcemanager.Client
}
func NewCheckNameAvailabilityNamespacesClientWithBaseURI ¶
func NewCheckNameAvailabilityNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*CheckNameAvailabilityNamespacesClient, error)
func (CheckNameAvailabilityNamespacesClient) NamespacesCheckNameAvailability ¶
func (c CheckNameAvailabilityNamespacesClient) NamespacesCheckNameAvailability(ctx context.Context, id commonids.SubscriptionId, input CheckNameAvailabilityParameter) (result NamespacesCheckNameAvailabilityOperationResponse, err error)
NamespacesCheckNameAvailability ...
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 NamespacesCheckNameAvailabilityOperationResponse ¶
type NamespacesCheckNameAvailabilityOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CheckNameAvailabilityResult }
type UnavailableReason ¶
type UnavailableReason string
const ()
func (*UnavailableReason) UnmarshalJSON ¶ added in v0.20230508.1101604
func (s *UnavailableReason) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.