proxy

package
v0.20240715.1100358 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/proxy Documentation

The proxy SDK allows for interaction with the Azure Resource Manager Service healthcareapis (API Version 2022-12-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/healthcareapis/2022-12-01/proxy"

Client Initialization

client := proxy.NewProxyClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ProxyClient.ServicesCheckNameAvailability

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

payload := proxy.CheckNameAvailabilityParameters{
	// ...
}


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

func PossibleValuesForServiceNameUnavailabilityReason() []string

Types

type CheckNameAvailabilityParameters

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

type ProxyClient

type ProxyClient struct {
	Client *resourcemanager.Client
}

func NewProxyClientWithBaseURI

func NewProxyClientWithBaseURI(sdkApi sdkEnv.Api) (*ProxyClient, error)

func (ProxyClient) ServicesCheckNameAvailability

ServicesCheckNameAvailability ...

type ServiceNameUnavailabilityReason

type ServiceNameUnavailabilityReason string
const (
	ServiceNameUnavailabilityReasonAlreadyExists ServiceNameUnavailabilityReason = "AlreadyExists"
	ServiceNameUnavailabilityReasonInvalid       ServiceNameUnavailabilityReason = "Invalid"
)

func (*ServiceNameUnavailabilityReason) UnmarshalJSON

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

type ServicesCheckNameAvailabilityOperationResponse

type ServicesCheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServicesNameAvailabilityInfo
}

type ServicesNameAvailabilityInfo

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

Jump to

Keyboard shortcuts

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