checknameavailabilitynamespaces

package
v0.20220715.1104737 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2017-04-01/checknameavailabilitynamespaces Documentation

The checknameavailabilitynamespaces SDK allows for interaction with the Azure Resource Manager Service eventhub (API Version 2017-04-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/eventhub/2017-04-01/checknameavailabilitynamespaces"

Client Initialization

client := checknameavailabilitynamespaces.NewCheckNameAvailabilityNamespacesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CheckNameAvailabilityNamespacesClient.NamespacesCheckNameAvailability

ctx := context.TODO()
id := checknameavailabilitynamespaces.NewSubscriptionID()

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 autorest.Client
	// contains filtered or unexported fields
}

func NewCheckNameAvailabilityNamespacesClientWithBaseURI

func NewCheckNameAvailabilityNamespacesClientWithBaseURI(endpoint string) CheckNameAvailabilityNamespacesClient

func (CheckNameAvailabilityNamespacesClient) NamespacesCheckNameAvailability

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
	Model        *CheckNameAvailabilityResult
}

type UnavailableReason

type UnavailableReason string
const (
	UnavailableReasonInvalidName                           UnavailableReason = "InvalidName"
	UnavailableReasonNameInLockdown                        UnavailableReason = "NameInLockdown"
	UnavailableReasonNameInUse                             UnavailableReason = "NameInUse"
	UnavailableReasonNone                                  UnavailableReason = "None"
	UnavailableReasonSubscriptionIsDisabled                UnavailableReason = "SubscriptionIsDisabled"
	UnavailableReasonTooManyNamespaceInCurrentSubscription UnavailableReason = "TooManyNamespaceInCurrentSubscription"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL