nameavailability

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/videoindexer/2024-01-01/nameavailability Documentation

The nameavailability SDK allows for interaction with Azure Resource Manager videoindexer (API Version 2024-01-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/videoindexer/2024-01-01/nameavailability"

Client Initialization

client := nameavailability.NewNameAvailabilityClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: NameAvailabilityClient.AccountsCheckNameAvailability

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

payload := nameavailability.AccountCheckNameAvailabilityParameters{
	// ...
}


read, err := client.AccountsCheckNameAvailability(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 PossibleValuesForReason

func PossibleValuesForReason() []string

func PossibleValuesForType

func PossibleValuesForType() []string

Types

type AccountCheckNameAvailabilityParameters

type AccountCheckNameAvailabilityParameters struct {
	Name string `json:"name"`
	Type Type   `json:"type"`
}

type AccountsCheckNameAvailabilityOperationResponse

type AccountsCheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CheckNameAvailabilityResult
}

type CheckNameAvailabilityResult

type CheckNameAvailabilityResult struct {
	Message       *string `json:"message,omitempty"`
	NameAvailable *bool   `json:"nameAvailable,omitempty"`
	Reason        *Reason `json:"reason,omitempty"`
}

type NameAvailabilityClient

type NameAvailabilityClient struct {
	Client *resourcemanager.Client
}

func NewNameAvailabilityClientWithBaseURI

func NewNameAvailabilityClientWithBaseURI(sdkApi sdkEnv.Api) (*NameAvailabilityClient, error)

func (NameAvailabilityClient) AccountsCheckNameAvailability

AccountsCheckNameAvailability ...

type Reason

type Reason string
const (
	ReasonAlreadyExists Reason = "AlreadyExists"
)

func (*Reason) UnmarshalJSON

func (s *Reason) UnmarshalJSON(bytes []byte) error

type Type

type Type string
const (
	TypeMicrosoftPointVideoIndexerAccounts Type = "Microsoft.VideoIndexer/accounts"
)

func (*Type) UnmarshalJSON

func (s *Type) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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