operation

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/containerregistry/2023-06-01-preview/operation Documentation

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

Client Initialization

client := operation.NewOperationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: OperationClient.RegistriesCheckNameAvailability

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

payload := operation.RegistryNameCheckRequest{
	// ...
}


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

func PossibleValuesForContainerRegistryResourceType() []string

Types

type ContainerRegistryResourceType

type ContainerRegistryResourceType string
const (
	ContainerRegistryResourceTypeMicrosoftPointContainerRegistryRegistries ContainerRegistryResourceType = "Microsoft.ContainerRegistry/registries"
)

func (*ContainerRegistryResourceType) UnmarshalJSON

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

type OperationClient

type OperationClient struct {
	Client *resourcemanager.Client
}

func NewOperationClientWithBaseURI

func NewOperationClientWithBaseURI(sdkApi sdkEnv.Api) (*OperationClient, error)

func (OperationClient) RegistriesCheckNameAvailability

RegistriesCheckNameAvailability ...

type RegistriesCheckNameAvailabilityOperationResponse

type RegistriesCheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RegistryNameStatus
}

type RegistryNameCheckRequest

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

type RegistryNameStatus

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

Jump to

Keyboard shortcuts

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