endpoint

package
v0.20250115.1141151 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-10-01-preview/endpoint Documentation

The endpoint SDK allows for interaction with Azure Resource Manager machinelearningservices (API Version 2024-10-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/machinelearningservices/2024-10-01-preview/endpoint"

Client Initialization

client := endpoint.NewEndpointClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EndpointClient.CreateOrUpdate

ctx := context.TODO()
id := endpoint.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName")

payload := endpoint.EndpointResourcePropertiesBasicResource{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: EndpointClient.DeploymentCreateOrUpdate

ctx := context.TODO()
id := endpoint.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName", "deploymentName")

payload := endpoint.EndpointDeploymentResourcePropertiesBasicResource{
	// ...
}


if err := client.DeploymentCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: EndpointClient.DeploymentDelete

ctx := context.TODO()
id := endpoint.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName", "deploymentName")

if err := client.DeploymentDeleteThenPoll(ctx, id, endpoint.DefaultDeploymentDeleteOperationOptions()); err != nil {
	// handle the error
}

Example Usage: EndpointClient.DeploymentGet

ctx := context.TODO()
id := endpoint.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName", "deploymentName")

read, err := client.DeploymentGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EndpointClient.DeploymentGetInWorkspace

ctx := context.TODO()
id := endpoint.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")

// alternatively `client.DeploymentGetInWorkspace(ctx, id, endpoint.DefaultDeploymentGetInWorkspaceOperationOptions())` can be used to do batched pagination
items, err := client.DeploymentGetInWorkspaceComplete(ctx, id, endpoint.DefaultDeploymentGetInWorkspaceOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: EndpointClient.DeploymentList

ctx := context.TODO()
id := endpoint.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName")

// alternatively `client.DeploymentList(ctx, id)` can be used to do batched pagination
items, err := client.DeploymentListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: EndpointClient.Get

ctx := context.TODO()
id := endpoint.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EndpointClient.GetModels

ctx := context.TODO()
id := endpoint.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName")

// alternatively `client.GetModels(ctx, id)` can be used to do batched pagination
items, err := client.GetModelsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: EndpointClient.List

ctx := context.TODO()
id := endpoint.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")

// alternatively `client.List(ctx, id, endpoint.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, endpoint.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: EndpointClient.ListKeys

ctx := context.TODO()
id := endpoint.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName")

read, err := client.ListKeys(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EndpointClient.RaiPoliciesList

ctx := context.TODO()
id := endpoint.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName")

// alternatively `client.RaiPoliciesList(ctx, id, endpoint.DefaultRaiPoliciesListOperationOptions())` can be used to do batched pagination
items, err := client.RaiPoliciesListComplete(ctx, id, endpoint.DefaultRaiPoliciesListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: EndpointClient.RaiPolicyCreate

ctx := context.TODO()
id := endpoint.NewRaiPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName", "raiPolicyName")

payload := endpoint.RaiPolicyPropertiesBasicResource{
	// ...
}


if err := client.RaiPolicyCreateThenPoll(ctx, id, payload, endpoint.DefaultRaiPolicyCreateOperationOptions()); err != nil {
	// handle the error
}

Example Usage: EndpointClient.RaiPolicyDelete

ctx := context.TODO()
id := endpoint.NewRaiPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName", "raiPolicyName")

if err := client.RaiPolicyDeleteThenPoll(ctx, id, endpoint.DefaultRaiPolicyDeleteOperationOptions()); err != nil {
	// handle the error
}

Example Usage: EndpointClient.RaiPolicyGet

ctx := context.TODO()
id := endpoint.NewRaiPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName", "raiPolicyName")

read, err := client.RaiPolicyGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EndpointClient.RegenerateKeys

ctx := context.TODO()
id := endpoint.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "endpointName")

payload := endpoint.RegenerateServiceAccountKeyContent{
	// ...
}


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

func PossibleValuesForAllowedContentLevel() []string

func PossibleValuesForContentSafetyStatus

func PossibleValuesForContentSafetyStatus() []string

func PossibleValuesForDefaultResourceProvisioningState

func PossibleValuesForDefaultResourceProvisioningState() []string

func PossibleValuesForDeploymentModelVersionUpgradeOption

func PossibleValuesForDeploymentModelVersionUpgradeOption() []string

func PossibleValuesForEndpointAuthMode

func PossibleValuesForEndpointAuthMode() []string

func PossibleValuesForEndpointComputeType

func PossibleValuesForEndpointComputeType() []string

func PossibleValuesForEndpointType

func PossibleValuesForEndpointType() []string

func PossibleValuesForModelLifecycleStatus

func PossibleValuesForModelLifecycleStatus() []string

func PossibleValuesForRaiPolicyContentSource

func PossibleValuesForRaiPolicyContentSource() []string

func PossibleValuesForRaiPolicyMode

func PossibleValuesForRaiPolicyMode() []string

func PossibleValuesForRaiPolicyType

func PossibleValuesForRaiPolicyType() []string

func PossibleValuesForServerlessEndpointState

func PossibleValuesForServerlessEndpointState() []string

func PossibleValuesForServerlessInferenceEndpointAuthMode

func PossibleValuesForServerlessInferenceEndpointAuthMode() []string

func PossibleValuesForServiceAccountKeyName

func PossibleValuesForServiceAccountKeyName() []string

func ValidateDeploymentID

func ValidateDeploymentID(input interface{}, key string) (warnings []string, errors []error)

ValidateDeploymentID checks that 'input' can be parsed as a Deployment ID

func ValidateEndpointID

func ValidateEndpointID(input interface{}, key string) (warnings []string, errors []error)

ValidateEndpointID checks that 'input' can be parsed as a Endpoint ID

func ValidateRaiPolicyID

func ValidateRaiPolicyID(input interface{}, key string) (warnings []string, errors []error)

ValidateRaiPolicyID checks that 'input' can be parsed as a Rai Policy ID

func ValidateWorkspaceID

func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

Types

type AccountApiKeys

type AccountApiKeys struct {
	Key1 *string `json:"key1,omitempty"`
	Key2 *string `json:"key2,omitempty"`
}

type AllowedContentLevel

type AllowedContentLevel string
const (
	AllowedContentLevelHigh   AllowedContentLevel = "High"
	AllowedContentLevelLow    AllowedContentLevel = "Low"
	AllowedContentLevelMedium AllowedContentLevel = "Medium"
)

func (*AllowedContentLevel) UnmarshalJSON

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

type BaseEndpointDeploymentResourcePropertiesImpl

type BaseEndpointDeploymentResourcePropertiesImpl struct {
	FailureReason     *string                           `json:"failureReason,omitempty"`
	ProvisioningState *DefaultResourceProvisioningState `json:"provisioningState,omitempty"`
	Type              string                            `json:"type"`
}

func (BaseEndpointDeploymentResourcePropertiesImpl) EndpointDeploymentResourceProperties

type BaseEndpointResourcePropertiesImpl

type BaseEndpointResourcePropertiesImpl struct {
	AssociatedResourceId           *string                                              `json:"associatedResourceId,omitempty"`
	Deployments                    *[]EndpointDeploymentResourcePropertiesBasicResource `json:"deployments,omitempty"`
	EndpointType                   EndpointType                                         `json:"endpointType"`
	EndpointUri                    *string                                              `json:"endpointUri,omitempty"`
	FailureReason                  *string                                              `json:"failureReason,omitempty"`
	Location                       *string                                              `json:"location,omitempty"`
	Name                           *string                                              `json:"name,omitempty"`
	ProvisioningState              *DefaultResourceProvisioningState                    `json:"provisioningState,omitempty"`
	ShouldCreateAiServicesEndpoint *bool                                                `json:"shouldCreateAiServicesEndpoint,omitempty"`
}

func (BaseEndpointResourcePropertiesImpl) EndpointResourceProperties

type CognitiveServicesSku

type CognitiveServicesSku struct {
	Capacity *int64  `json:"capacity,omitempty"`
	Family   *string `json:"family,omitempty"`
	Name     *string `json:"name,omitempty"`
	Size     *string `json:"size,omitempty"`
	Tier     *string `json:"tier,omitempty"`
}

type ContentSafetyEndpointDeploymentResourceProperties

type ContentSafetyEndpointDeploymentResourceProperties struct {
	Model                EndpointDeploymentModel              `json:"model"`
	RaiPolicyName        *string                              `json:"raiPolicyName,omitempty"`
	Sku                  *CognitiveServicesSku                `json:"sku,omitempty"`
	VersionUpgradeOption *DeploymentModelVersionUpgradeOption `json:"versionUpgradeOption,omitempty"`

	FailureReason     *string                           `json:"failureReason,omitempty"`
	ProvisioningState *DefaultResourceProvisioningState `json:"provisioningState,omitempty"`
	Type              string                            `json:"type"`
}

func (ContentSafetyEndpointDeploymentResourceProperties) EndpointDeploymentResourceProperties

func (ContentSafetyEndpointDeploymentResourceProperties) MarshalJSON

type ContentSafetyEndpointResourceProperties

type ContentSafetyEndpointResourceProperties struct {
	AssociatedResourceId           *string                                              `json:"associatedResourceId,omitempty"`
	Deployments                    *[]EndpointDeploymentResourcePropertiesBasicResource `json:"deployments,omitempty"`
	EndpointType                   EndpointType                                         `json:"endpointType"`
	EndpointUri                    *string                                              `json:"endpointUri,omitempty"`
	FailureReason                  *string                                              `json:"failureReason,omitempty"`
	Location                       *string                                              `json:"location,omitempty"`
	Name                           *string                                              `json:"name,omitempty"`
	ProvisioningState              *DefaultResourceProvisioningState                    `json:"provisioningState,omitempty"`
	ShouldCreateAiServicesEndpoint *bool                                                `json:"shouldCreateAiServicesEndpoint,omitempty"`
}

func (ContentSafetyEndpointResourceProperties) EndpointResourceProperties

func (ContentSafetyEndpointResourceProperties) MarshalJSON

func (s ContentSafetyEndpointResourceProperties) MarshalJSON() ([]byte, error)

type ContentSafetyStatus

type ContentSafetyStatus string
const (
	ContentSafetyStatusDisabled ContentSafetyStatus = "Disabled"
	ContentSafetyStatusEnabled  ContentSafetyStatus = "Enabled"
)

func (*ContentSafetyStatus) UnmarshalJSON

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EndpointResourcePropertiesBasicResource
}

type DefaultResourceProvisioningState

type DefaultResourceProvisioningState string
const (
	DefaultResourceProvisioningStateAccepted   DefaultResourceProvisioningState = "Accepted"
	DefaultResourceProvisioningStateCanceled   DefaultResourceProvisioningState = "Canceled"
	DefaultResourceProvisioningStateCreating   DefaultResourceProvisioningState = "Creating"
	DefaultResourceProvisioningStateDeleting   DefaultResourceProvisioningState = "Deleting"
	DefaultResourceProvisioningStateDisabled   DefaultResourceProvisioningState = "Disabled"
	DefaultResourceProvisioningStateFailed     DefaultResourceProvisioningState = "Failed"
	DefaultResourceProvisioningStateNotStarted DefaultResourceProvisioningState = "NotStarted"
	DefaultResourceProvisioningStateScaling    DefaultResourceProvisioningState = "Scaling"
	DefaultResourceProvisioningStateSucceeded  DefaultResourceProvisioningState = "Succeeded"
	DefaultResourceProvisioningStateUpdating   DefaultResourceProvisioningState = "Updating"
)

func (*DefaultResourceProvisioningState) UnmarshalJSON

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

type DeploymentCreateOrUpdateOperationResponse

type DeploymentCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EndpointDeploymentResourcePropertiesBasicResource
}

type DeploymentDeleteOperationOptions

type DeploymentDeleteOperationOptions struct {
	ProxyApiVersion *string
}

func DefaultDeploymentDeleteOperationOptions

func DefaultDeploymentDeleteOperationOptions() DeploymentDeleteOperationOptions

func (DeploymentDeleteOperationOptions) ToHeaders

func (DeploymentDeleteOperationOptions) ToOData

func (DeploymentDeleteOperationOptions) ToQuery

type DeploymentDeleteOperationResponse

type DeploymentDeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeploymentGetInWorkspaceCompleteResult

type DeploymentGetInWorkspaceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []EndpointDeploymentResourcePropertiesBasicResource
}

type DeploymentGetInWorkspaceCustomPager

type DeploymentGetInWorkspaceCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *DeploymentGetInWorkspaceCustomPager) NextPageLink() *odata.Link

type DeploymentGetInWorkspaceOperationOptions

type DeploymentGetInWorkspaceOperationOptions struct {
	EndpointType *EndpointType
	Skip         *string
}

func DefaultDeploymentGetInWorkspaceOperationOptions

func DefaultDeploymentGetInWorkspaceOperationOptions() DeploymentGetInWorkspaceOperationOptions

func (DeploymentGetInWorkspaceOperationOptions) ToHeaders

func (DeploymentGetInWorkspaceOperationOptions) ToOData

func (DeploymentGetInWorkspaceOperationOptions) ToQuery

type DeploymentGetInWorkspaceOperationResponse

type DeploymentGetInWorkspaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EndpointDeploymentResourcePropertiesBasicResource
}

type DeploymentGetOperationResponse

type DeploymentGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EndpointDeploymentResourcePropertiesBasicResource
}

type DeploymentId

type DeploymentId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	EndpointName      string
	DeploymentName    string
}

DeploymentId is a struct representing the Resource ID for a Deployment

func NewDeploymentID

func NewDeploymentID(subscriptionId string, resourceGroupName string, workspaceName string, endpointName string, deploymentName string) DeploymentId

NewDeploymentID returns a new DeploymentId struct

func ParseDeploymentID

func ParseDeploymentID(input string) (*DeploymentId, error)

ParseDeploymentID parses 'input' into a DeploymentId

func ParseDeploymentIDInsensitively

func ParseDeploymentIDInsensitively(input string) (*DeploymentId, error)

ParseDeploymentIDInsensitively parses 'input' case-insensitively into a DeploymentId note: this method should only be used for API response data and not user input

func (*DeploymentId) FromParseResult

func (id *DeploymentId) FromParseResult(input resourceids.ParseResult) error

func (DeploymentId) ID

func (id DeploymentId) ID() string

ID returns the formatted Deployment ID

func (DeploymentId) Segments

func (id DeploymentId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Deployment ID

func (DeploymentId) String

func (id DeploymentId) String() string

String returns a human-readable description of this Deployment ID

type DeploymentListCompleteResult

type DeploymentListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []EndpointDeploymentResourcePropertiesBasicResource
}

type DeploymentListCustomPager

type DeploymentListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *DeploymentListCustomPager) NextPageLink() *odata.Link

type DeploymentListOperationResponse

type DeploymentListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EndpointDeploymentResourcePropertiesBasicResource
}

type DeploymentModelVersionUpgradeOption

type DeploymentModelVersionUpgradeOption string
const (
	DeploymentModelVersionUpgradeOptionNoAutoUpgrade                  DeploymentModelVersionUpgradeOption = "NoAutoUpgrade"
	DeploymentModelVersionUpgradeOptionOnceCurrentVersionExpired      DeploymentModelVersionUpgradeOption = "OnceCurrentVersionExpired"
	DeploymentModelVersionUpgradeOptionOnceNewDefaultVersionAvailable DeploymentModelVersionUpgradeOption = "OnceNewDefaultVersionAvailable"
)

func (*DeploymentModelVersionUpgradeOption) UnmarshalJSON

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

type EndpointAuthMode

type EndpointAuthMode string
const (
	EndpointAuthModeAADToken EndpointAuthMode = "AADToken"
	EndpointAuthModeAMLToken EndpointAuthMode = "AMLToken"
	EndpointAuthModeKey      EndpointAuthMode = "Key"
)

func (*EndpointAuthMode) UnmarshalJSON

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

type EndpointClient

type EndpointClient struct {
	Client *resourcemanager.Client
}

func NewEndpointClientWithBaseURI

func NewEndpointClientWithBaseURI(sdkApi sdkEnv.Api) (*EndpointClient, error)

func (EndpointClient) CreateOrUpdate

CreateOrUpdate ...

func (EndpointClient) CreateOrUpdateThenPoll

func (c EndpointClient) CreateOrUpdateThenPoll(ctx context.Context, id EndpointId, input EndpointResourcePropertiesBasicResource) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (EndpointClient) DeploymentCreateOrUpdate

DeploymentCreateOrUpdate ...

func (EndpointClient) DeploymentCreateOrUpdateThenPoll

func (c EndpointClient) DeploymentCreateOrUpdateThenPoll(ctx context.Context, id DeploymentId, input EndpointDeploymentResourcePropertiesBasicResource) error

DeploymentCreateOrUpdateThenPoll performs DeploymentCreateOrUpdate then polls until it's completed

func (EndpointClient) DeploymentDelete

DeploymentDelete ...

func (EndpointClient) DeploymentDeleteThenPoll

func (c EndpointClient) DeploymentDeleteThenPoll(ctx context.Context, id DeploymentId, options DeploymentDeleteOperationOptions) error

DeploymentDeleteThenPoll performs DeploymentDelete then polls until it's completed

func (EndpointClient) DeploymentGet

func (c EndpointClient) DeploymentGet(ctx context.Context, id DeploymentId) (result DeploymentGetOperationResponse, err error)

DeploymentGet ...

func (EndpointClient) DeploymentGetInWorkspace

DeploymentGetInWorkspace ...

func (EndpointClient) DeploymentGetInWorkspaceComplete

DeploymentGetInWorkspaceComplete retrieves all the results into a single object

func (EndpointClient) DeploymentGetInWorkspaceCompleteMatchingPredicate

DeploymentGetInWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EndpointClient) DeploymentList

func (c EndpointClient) DeploymentList(ctx context.Context, id EndpointId) (result DeploymentListOperationResponse, err error)

DeploymentList ...

func (EndpointClient) DeploymentListComplete

func (c EndpointClient) DeploymentListComplete(ctx context.Context, id EndpointId) (DeploymentListCompleteResult, error)

DeploymentListComplete retrieves all the results into a single object

func (EndpointClient) DeploymentListCompleteMatchingPredicate

DeploymentListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EndpointClient) Get

func (c EndpointClient) Get(ctx context.Context, id EndpointId) (result GetOperationResponse, err error)

Get ...

func (EndpointClient) GetModels

func (c EndpointClient) GetModels(ctx context.Context, id EndpointId) (result GetModelsOperationResponse, err error)

GetModels ...

func (EndpointClient) GetModelsComplete

func (c EndpointClient) GetModelsComplete(ctx context.Context, id EndpointId) (GetModelsCompleteResult, error)

GetModelsComplete retrieves all the results into a single object

func (EndpointClient) GetModelsCompleteMatchingPredicate

func (c EndpointClient) GetModelsCompleteMatchingPredicate(ctx context.Context, id EndpointId, predicate EndpointModelPropertiesOperationPredicate) (result GetModelsCompleteResult, err error)

GetModelsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EndpointClient) List

List ...

func (EndpointClient) ListComplete

ListComplete retrieves all the results into a single object

func (EndpointClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EndpointClient) ListKeys

func (c EndpointClient) ListKeys(ctx context.Context, id EndpointId) (result ListKeysOperationResponse, err error)

ListKeys ...

func (EndpointClient) RaiPoliciesList

RaiPoliciesList ...

func (EndpointClient) RaiPoliciesListComplete

RaiPoliciesListComplete retrieves all the results into a single object

func (EndpointClient) RaiPoliciesListCompleteMatchingPredicate

func (c EndpointClient) RaiPoliciesListCompleteMatchingPredicate(ctx context.Context, id EndpointId, options RaiPoliciesListOperationOptions, predicate RaiPolicyPropertiesBasicResourceOperationPredicate) (result RaiPoliciesListCompleteResult, err error)

RaiPoliciesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EndpointClient) RaiPolicyCreate

RaiPolicyCreate ...

func (EndpointClient) RaiPolicyCreateThenPoll

RaiPolicyCreateThenPoll performs RaiPolicyCreate then polls until it's completed

func (EndpointClient) RaiPolicyDelete

RaiPolicyDelete ...

func (EndpointClient) RaiPolicyDeleteThenPoll

func (c EndpointClient) RaiPolicyDeleteThenPoll(ctx context.Context, id RaiPolicyId, options RaiPolicyDeleteOperationOptions) error

RaiPolicyDeleteThenPoll performs RaiPolicyDelete then polls until it's completed

func (EndpointClient) RaiPolicyGet

func (c EndpointClient) RaiPolicyGet(ctx context.Context, id RaiPolicyId) (result RaiPolicyGetOperationResponse, err error)

RaiPolicyGet ...

func (EndpointClient) RegenerateKeys

RegenerateKeys ...

type EndpointComputeType

type EndpointComputeType string
const (
	EndpointComputeTypeAzureMLCompute EndpointComputeType = "AzureMLCompute"
	EndpointComputeTypeKubernetes     EndpointComputeType = "Kubernetes"
	EndpointComputeTypeManaged        EndpointComputeType = "Managed"
)

func (*EndpointComputeType) UnmarshalJSON

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

type EndpointDeploymentModel

type EndpointDeploymentModel struct {
	Format  *string `json:"format,omitempty"`
	Name    *string `json:"name,omitempty"`
	Source  *string `json:"source,omitempty"`
	Version *string `json:"version,omitempty"`
}

type EndpointDeploymentResourceProperties

type EndpointDeploymentResourceProperties interface {
	EndpointDeploymentResourceProperties() BaseEndpointDeploymentResourcePropertiesImpl
}

func UnmarshalEndpointDeploymentResourcePropertiesImplementation

func UnmarshalEndpointDeploymentResourcePropertiesImplementation(input []byte) (EndpointDeploymentResourceProperties, error)

type EndpointDeploymentResourcePropertiesBasicResource

type EndpointDeploymentResourcePropertiesBasicResource struct {
	Id         *string                              `json:"id,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties EndpointDeploymentResourceProperties `json:"properties"`
	SystemData *systemdata.SystemData               `json:"systemData,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

func (*EndpointDeploymentResourcePropertiesBasicResource) UnmarshalJSON

type EndpointDeploymentResourcePropertiesBasicResourceOperationPredicate

type EndpointDeploymentResourcePropertiesBasicResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (EndpointDeploymentResourcePropertiesBasicResourceOperationPredicate) Matches

type EndpointId

type EndpointId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	EndpointName      string
}

EndpointId is a struct representing the Resource ID for a Endpoint

func NewEndpointID

func NewEndpointID(subscriptionId string, resourceGroupName string, workspaceName string, endpointName string) EndpointId

NewEndpointID returns a new EndpointId struct

func ParseEndpointID

func ParseEndpointID(input string) (*EndpointId, error)

ParseEndpointID parses 'input' into a EndpointId

func ParseEndpointIDInsensitively

func ParseEndpointIDInsensitively(input string) (*EndpointId, error)

ParseEndpointIDInsensitively parses 'input' case-insensitively into a EndpointId note: this method should only be used for API response data and not user input

func (*EndpointId) FromParseResult

func (id *EndpointId) FromParseResult(input resourceids.ParseResult) error

func (EndpointId) ID

func (id EndpointId) ID() string

ID returns the formatted Endpoint ID

func (EndpointId) Segments

func (id EndpointId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Endpoint ID

func (EndpointId) String

func (id EndpointId) String() string

String returns a human-readable description of this Endpoint ID

type EndpointKeys

type EndpointKeys struct {
	Keys *AccountApiKeys `json:"keys,omitempty"`
}

type EndpointModelDeprecationProperties

type EndpointModelDeprecationProperties struct {
	FineTune  *string `json:"fineTune,omitempty"`
	Inference *string `json:"inference,omitempty"`
}

func (*EndpointModelDeprecationProperties) GetFineTuneAsTime

func (o *EndpointModelDeprecationProperties) GetFineTuneAsTime() (*time.Time, error)

func (*EndpointModelDeprecationProperties) GetInferenceAsTime

func (o *EndpointModelDeprecationProperties) GetInferenceAsTime() (*time.Time, error)

func (*EndpointModelDeprecationProperties) SetFineTuneAsTime

func (o *EndpointModelDeprecationProperties) SetFineTuneAsTime(input time.Time)

func (*EndpointModelDeprecationProperties) SetInferenceAsTime

func (o *EndpointModelDeprecationProperties) SetInferenceAsTime(input time.Time)

type EndpointModelProperties

type EndpointModelProperties struct {
	Capabilities         *map[string]string                  `json:"capabilities,omitempty"`
	Deprecation          *EndpointModelDeprecationProperties `json:"deprecation,omitempty"`
	FinetuneCapabilities *map[string]string                  `json:"finetuneCapabilities,omitempty"`
	Format               *string                             `json:"format,omitempty"`
	IsDefaultVersion     *bool                               `json:"isDefaultVersion,omitempty"`
	LifecycleStatus      *ModelLifecycleStatus               `json:"lifecycleStatus,omitempty"`
	MaxCapacity          *int64                              `json:"maxCapacity,omitempty"`
	Name                 *string                             `json:"name,omitempty"`
	Skus                 *[]EndpointModelSkuProperties       `json:"skus,omitempty"`
	SystemData           *systemdata.SystemData              `json:"systemData,omitempty"`
	Version              *string                             `json:"version,omitempty"`
}

type EndpointModelPropertiesOperationPredicate

type EndpointModelPropertiesOperationPredicate struct {
	Format           *string
	IsDefaultVersion *bool
	MaxCapacity      *int64
	Name             *string
	Version          *string
}

func (EndpointModelPropertiesOperationPredicate) Matches

type EndpointModelSkuCapacityProperties

type EndpointModelSkuCapacityProperties struct {
	Default *int64 `json:"default,omitempty"`
	Maximum *int64 `json:"maximum,omitempty"`
}

type EndpointModelSkuProperties

type EndpointModelSkuProperties struct {
	Capacity        *EndpointModelSkuCapacityProperties    `json:"capacity,omitempty"`
	ConnectionIds   *[]string                              `json:"connectionIds,omitempty"`
	DeprecationDate *string                                `json:"deprecationDate,omitempty"`
	Name            *string                                `json:"name,omitempty"`
	RateLimits      *[]EndpointModelSkuRateLimitProperties `json:"rateLimits,omitempty"`
	UsageName       *string                                `json:"usageName,omitempty"`
}

func (*EndpointModelSkuProperties) GetDeprecationDateAsTime

func (o *EndpointModelSkuProperties) GetDeprecationDateAsTime() (*time.Time, error)

func (*EndpointModelSkuProperties) SetDeprecationDateAsTime

func (o *EndpointModelSkuProperties) SetDeprecationDateAsTime(input time.Time)

type EndpointModelSkuRateLimitProperties

type EndpointModelSkuRateLimitProperties struct {
	Count         *float64                                   `json:"count,omitempty"`
	RenewalPeriod *float64                                   `json:"renewalPeriod,omitempty"`
	Rules         *[]EndpointModelSkuRateLimitRuleProperties `json:"rules,omitempty"`
}

type EndpointModelSkuRateLimitRulePatternProperties

type EndpointModelSkuRateLimitRulePatternProperties struct {
	Method *string `json:"method,omitempty"`
	Path   *string `json:"path,omitempty"`
}

type EndpointModelSkuRateLimitRuleProperties

type EndpointModelSkuRateLimitRuleProperties struct {
	Count                    *float64                                          `json:"count,omitempty"`
	DynamicThrottlingEnabled *bool                                             `json:"dynamicThrottlingEnabled,omitempty"`
	Key                      *string                                           `json:"key,omitempty"`
	MatchPatterns            *[]EndpointModelSkuRateLimitRulePatternProperties `json:"matchPatterns,omitempty"`
	MinCount                 *float64                                          `json:"minCount,omitempty"`
	RenewalPeriod            *float64                                          `json:"renewalPeriod,omitempty"`
}

type EndpointResourceProperties

type EndpointResourceProperties interface {
	EndpointResourceProperties() BaseEndpointResourcePropertiesImpl
}

func UnmarshalEndpointResourcePropertiesImplementation

func UnmarshalEndpointResourcePropertiesImplementation(input []byte) (EndpointResourceProperties, error)

type EndpointResourcePropertiesBasicResource

type EndpointResourcePropertiesBasicResource struct {
	Id         *string                    `json:"id,omitempty"`
	Name       *string                    `json:"name,omitempty"`
	Properties EndpointResourceProperties `json:"properties"`
	SystemData *systemdata.SystemData     `json:"systemData,omitempty"`
	Type       *string                    `json:"type,omitempty"`
}

func (*EndpointResourcePropertiesBasicResource) UnmarshalJSON

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

type EndpointResourcePropertiesBasicResourceOperationPredicate

type EndpointResourcePropertiesBasicResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (EndpointResourcePropertiesBasicResourceOperationPredicate) Matches

type EndpointType

type EndpointType string
const (
	EndpointTypeAzurePointContentSafety EndpointType = "Azure.ContentSafety"
	EndpointTypeAzurePointLlama         EndpointType = "Azure.Llama"
	EndpointTypeAzurePointOpenAI        EndpointType = "Azure.OpenAI"
	EndpointTypeAzurePointSpeech        EndpointType = "Azure.Speech"
	EndpointTypeManagedOnlineEndpoint   EndpointType = "managedOnlineEndpoint"
	EndpointTypeServerlessEndpoint      EndpointType = "serverlessEndpoint"
)

func (*EndpointType) UnmarshalJSON

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

type GetModelsCompleteResult

type GetModelsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []EndpointModelProperties
}

type GetModelsCustomPager

type GetModelsCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *GetModelsCustomPager) NextPageLink() *odata.Link

type GetModelsOperationResponse

type GetModelsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EndpointModelProperties
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EndpointResourcePropertiesBasicResource
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []EndpointResourcePropertiesBasicResource
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListKeysOperationResponse

type ListKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EndpointKeys
}

type ListOperationOptions

type ListOperationOptions struct {
	EndpointType               *EndpointType
	Expand                     *string
	IncludeConnections         *bool
	IncludeOnlineEndpoints     *bool
	IncludeServerlessEndpoints *bool
	Skip                       *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EndpointResourcePropertiesBasicResource
}

type ManagedOnlineEndpointDeploymentResourceProperties

type ManagedOnlineEndpointDeploymentResourceProperties struct {
	EndpointComputeType *EndpointComputeType `json:"endpointComputeType,omitempty"`
	Model               *string              `json:"model,omitempty"`

	FailureReason     *string                           `json:"failureReason,omitempty"`
	ProvisioningState *DefaultResourceProvisioningState `json:"provisioningState,omitempty"`
	Type              string                            `json:"type"`
}

func (ManagedOnlineEndpointDeploymentResourceProperties) EndpointDeploymentResourceProperties

func (ManagedOnlineEndpointDeploymentResourceProperties) MarshalJSON

type ManagedOnlineEndpointResourceProperties

type ManagedOnlineEndpointResourceProperties struct {
	AuthMode      *EndpointAuthMode `json:"authMode,omitempty"`
	Compute       *string           `json:"compute,omitempty"`
	Description   *string           `json:"description,omitempty"`
	MirrorTraffic *map[string]int64 `json:"mirrorTraffic,omitempty"`
	ScoringUri    *string           `json:"scoringUri,omitempty"`
	Traffic       *map[string]int64 `json:"traffic,omitempty"`

	AssociatedResourceId           *string                                              `json:"associatedResourceId,omitempty"`
	Deployments                    *[]EndpointDeploymentResourcePropertiesBasicResource `json:"deployments,omitempty"`
	EndpointType                   EndpointType                                         `json:"endpointType"`
	EndpointUri                    *string                                              `json:"endpointUri,omitempty"`
	FailureReason                  *string                                              `json:"failureReason,omitempty"`
	Location                       *string                                              `json:"location,omitempty"`
	Name                           *string                                              `json:"name,omitempty"`
	ProvisioningState              *DefaultResourceProvisioningState                    `json:"provisioningState,omitempty"`
	ShouldCreateAiServicesEndpoint *bool                                                `json:"shouldCreateAiServicesEndpoint,omitempty"`
}

func (ManagedOnlineEndpointResourceProperties) EndpointResourceProperties

func (ManagedOnlineEndpointResourceProperties) MarshalJSON

func (s ManagedOnlineEndpointResourceProperties) MarshalJSON() ([]byte, error)

type ModelLifecycleStatus

type ModelLifecycleStatus string
const (
	ModelLifecycleStatusGenerallyAvailable ModelLifecycleStatus = "GenerallyAvailable"
	ModelLifecycleStatusPreview            ModelLifecycleStatus = "Preview"
)

func (*ModelLifecycleStatus) UnmarshalJSON

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

type OpenAIEndpointDeploymentResourceProperties

type OpenAIEndpointDeploymentResourceProperties struct {
	Model                EndpointDeploymentModel              `json:"model"`
	RaiPolicyName        *string                              `json:"raiPolicyName,omitempty"`
	Sku                  *CognitiveServicesSku                `json:"sku,omitempty"`
	VersionUpgradeOption *DeploymentModelVersionUpgradeOption `json:"versionUpgradeOption,omitempty"`

	FailureReason     *string                           `json:"failureReason,omitempty"`
	ProvisioningState *DefaultResourceProvisioningState `json:"provisioningState,omitempty"`
	Type              string                            `json:"type"`
}

func (OpenAIEndpointDeploymentResourceProperties) EndpointDeploymentResourceProperties

func (OpenAIEndpointDeploymentResourceProperties) MarshalJSON

type OpenAIEndpointResourceProperties

type OpenAIEndpointResourceProperties struct {
	AssociatedResourceId           *string                                              `json:"associatedResourceId,omitempty"`
	Deployments                    *[]EndpointDeploymentResourcePropertiesBasicResource `json:"deployments,omitempty"`
	EndpointType                   EndpointType                                         `json:"endpointType"`
	EndpointUri                    *string                                              `json:"endpointUri,omitempty"`
	FailureReason                  *string                                              `json:"failureReason,omitempty"`
	Location                       *string                                              `json:"location,omitempty"`
	Name                           *string                                              `json:"name,omitempty"`
	ProvisioningState              *DefaultResourceProvisioningState                    `json:"provisioningState,omitempty"`
	ShouldCreateAiServicesEndpoint *bool                                                `json:"shouldCreateAiServicesEndpoint,omitempty"`
}

func (OpenAIEndpointResourceProperties) EndpointResourceProperties

func (OpenAIEndpointResourceProperties) MarshalJSON

func (s OpenAIEndpointResourceProperties) MarshalJSON() ([]byte, error)

type RaiBlocklistConfig

type RaiBlocklistConfig struct {
	Blocking      *bool   `json:"blocking,omitempty"`
	BlocklistName *string `json:"blocklistName,omitempty"`
}

type RaiPoliciesListCompleteResult

type RaiPoliciesListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RaiPolicyPropertiesBasicResource
}

type RaiPoliciesListCustomPager

type RaiPoliciesListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *RaiPoliciesListCustomPager) NextPageLink() *odata.Link

type RaiPoliciesListOperationOptions

type RaiPoliciesListOperationOptions struct {
	ProxyApiVersion *string
}

func DefaultRaiPoliciesListOperationOptions

func DefaultRaiPoliciesListOperationOptions() RaiPoliciesListOperationOptions

func (RaiPoliciesListOperationOptions) ToHeaders

func (RaiPoliciesListOperationOptions) ToOData

func (RaiPoliciesListOperationOptions) ToQuery

type RaiPoliciesListOperationResponse

type RaiPoliciesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RaiPolicyPropertiesBasicResource
}

type RaiPolicyContentFilter

type RaiPolicyContentFilter struct {
	AllowedContentLevel *AllowedContentLevel    `json:"allowedContentLevel,omitempty"`
	Blocking            *bool                   `json:"blocking,omitempty"`
	Enabled             *bool                   `json:"enabled,omitempty"`
	Name                *string                 `json:"name,omitempty"`
	Source              *RaiPolicyContentSource `json:"source,omitempty"`
}

type RaiPolicyContentSource

type RaiPolicyContentSource string
const (
	RaiPolicyContentSourceCompletion RaiPolicyContentSource = "Completion"
	RaiPolicyContentSourcePrompt     RaiPolicyContentSource = "Prompt"
)

func (*RaiPolicyContentSource) UnmarshalJSON

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

type RaiPolicyCreateOperationOptions

type RaiPolicyCreateOperationOptions struct {
	ProxyApiVersion *string
}

func DefaultRaiPolicyCreateOperationOptions

func DefaultRaiPolicyCreateOperationOptions() RaiPolicyCreateOperationOptions

func (RaiPolicyCreateOperationOptions) ToHeaders

func (RaiPolicyCreateOperationOptions) ToOData

func (RaiPolicyCreateOperationOptions) ToQuery

type RaiPolicyCreateOperationResponse

type RaiPolicyCreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RaiPolicyPropertiesBasicResource
}

type RaiPolicyDeleteOperationOptions

type RaiPolicyDeleteOperationOptions struct {
	ProxyApiVersion *string
}

func DefaultRaiPolicyDeleteOperationOptions

func DefaultRaiPolicyDeleteOperationOptions() RaiPolicyDeleteOperationOptions

func (RaiPolicyDeleteOperationOptions) ToHeaders

func (RaiPolicyDeleteOperationOptions) ToOData

func (RaiPolicyDeleteOperationOptions) ToQuery

type RaiPolicyDeleteOperationResponse

type RaiPolicyDeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type RaiPolicyGetOperationResponse

type RaiPolicyGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RaiPolicyPropertiesBasicResource
}

type RaiPolicyId

type RaiPolicyId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	EndpointName      string
	RaiPolicyName     string
}

RaiPolicyId is a struct representing the Resource ID for a Rai Policy

func NewRaiPolicyID

func NewRaiPolicyID(subscriptionId string, resourceGroupName string, workspaceName string, endpointName string, raiPolicyName string) RaiPolicyId

NewRaiPolicyID returns a new RaiPolicyId struct

func ParseRaiPolicyID

func ParseRaiPolicyID(input string) (*RaiPolicyId, error)

ParseRaiPolicyID parses 'input' into a RaiPolicyId

func ParseRaiPolicyIDInsensitively

func ParseRaiPolicyIDInsensitively(input string) (*RaiPolicyId, error)

ParseRaiPolicyIDInsensitively parses 'input' case-insensitively into a RaiPolicyId note: this method should only be used for API response data and not user input

func (*RaiPolicyId) FromParseResult

func (id *RaiPolicyId) FromParseResult(input resourceids.ParseResult) error

func (RaiPolicyId) ID

func (id RaiPolicyId) ID() string

ID returns the formatted Rai Policy ID

func (RaiPolicyId) Segments

func (id RaiPolicyId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Rai Policy ID

func (RaiPolicyId) String

func (id RaiPolicyId) String() string

String returns a human-readable description of this Rai Policy ID

type RaiPolicyMode

type RaiPolicyMode string
const (
	RaiPolicyModeBlocking RaiPolicyMode = "Blocking"
	RaiPolicyModeDefault  RaiPolicyMode = "Default"
	RaiPolicyModeDeferred RaiPolicyMode = "Deferred"
)

func (*RaiPolicyMode) UnmarshalJSON

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

type RaiPolicyProperties

type RaiPolicyProperties struct {
	BasePolicyName       *string                   `json:"basePolicyName,omitempty"`
	CompletionBlocklists *[]RaiBlocklistConfig     `json:"completionBlocklists,omitempty"`
	ContentFilters       *[]RaiPolicyContentFilter `json:"contentFilters,omitempty"`
	Mode                 *RaiPolicyMode            `json:"mode,omitempty"`
	PromptBlocklists     *[]RaiBlocklistConfig     `json:"promptBlocklists,omitempty"`
	Type                 *RaiPolicyType            `json:"type,omitempty"`
}

type RaiPolicyPropertiesBasicResource

type RaiPolicyPropertiesBasicResource struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties RaiPolicyProperties    `json:"properties"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type RaiPolicyPropertiesBasicResourceOperationPredicate

type RaiPolicyPropertiesBasicResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (RaiPolicyPropertiesBasicResourceOperationPredicate) Matches

type RaiPolicyType

type RaiPolicyType string
const (
	RaiPolicyTypeSystemManaged RaiPolicyType = "SystemManaged"
	RaiPolicyTypeUserManaged   RaiPolicyType = "UserManaged"
)

func (*RaiPolicyType) UnmarshalJSON

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

type RawEndpointDeploymentResourcePropertiesImpl

type RawEndpointDeploymentResourcePropertiesImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawEndpointDeploymentResourcePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawEndpointDeploymentResourcePropertiesImpl) EndpointDeploymentResourceProperties

type RawEndpointResourcePropertiesImpl

type RawEndpointResourcePropertiesImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawEndpointResourcePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawEndpointResourcePropertiesImpl) EndpointResourceProperties

type RegenerateKeysOperationResponse

type RegenerateKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AccountApiKeys
}

type RegenerateServiceAccountKeyContent

type RegenerateServiceAccountKeyContent struct {
	KeyName *ServiceAccountKeyName `json:"keyName,omitempty"`
}

type ServerlessEndpointCapacityReservation

type ServerlessEndpointCapacityReservation struct {
	CapacityReservationGroupId string `json:"capacityReservationGroupId"`
	EndpointReservedCapacity   *int64 `json:"endpointReservedCapacity,omitempty"`
}

type ServerlessEndpointContentSafety

type ServerlessEndpointContentSafety struct {
	ContentSafetyStatus ContentSafetyStatus `json:"contentSafetyStatus"`
}

type ServerlessEndpointInferenceEndpoint

type ServerlessEndpointInferenceEndpoint struct {
	Headers *map[string]string `json:"headers,omitempty"`
	Uri     string             `json:"uri"`
}

type ServerlessEndpointModelSettings

type ServerlessEndpointModelSettings struct {
	ModelId string `json:"modelId"`
}

type ServerlessEndpointResourceProperties

type ServerlessEndpointResourceProperties struct {
	AuthMode                  *ServerlessInferenceEndpointAuthMode   `json:"authMode,omitempty"`
	CapacityReservation       *ServerlessEndpointCapacityReservation `json:"capacityReservation,omitempty"`
	ContentSafety             *ServerlessEndpointContentSafety       `json:"contentSafety,omitempty"`
	EndpointState             *ServerlessEndpointState               `json:"endpointState,omitempty"`
	InferenceEndpoint         *ServerlessEndpointInferenceEndpoint   `json:"inferenceEndpoint,omitempty"`
	MarketplaceSubscriptionId *string                                `json:"marketplaceSubscriptionId,omitempty"`
	Metadata                  *interface{}                           `json:"metadata,omitempty"`
	ModelSettings             *ServerlessEndpointModelSettings       `json:"modelSettings,omitempty"`
	Offer                     *ServerlessOffer                       `json:"offer,omitempty"`

	AssociatedResourceId           *string                                              `json:"associatedResourceId,omitempty"`
	Deployments                    *[]EndpointDeploymentResourcePropertiesBasicResource `json:"deployments,omitempty"`
	EndpointType                   EndpointType                                         `json:"endpointType"`
	EndpointUri                    *string                                              `json:"endpointUri,omitempty"`
	FailureReason                  *string                                              `json:"failureReason,omitempty"`
	Location                       *string                                              `json:"location,omitempty"`
	Name                           *string                                              `json:"name,omitempty"`
	ProvisioningState              *DefaultResourceProvisioningState                    `json:"provisioningState,omitempty"`
	ShouldCreateAiServicesEndpoint *bool                                                `json:"shouldCreateAiServicesEndpoint,omitempty"`
}

func (ServerlessEndpointResourceProperties) EndpointResourceProperties

func (ServerlessEndpointResourceProperties) MarshalJSON

func (s ServerlessEndpointResourceProperties) MarshalJSON() ([]byte, error)

type ServerlessEndpointState

type ServerlessEndpointState string
const (
	ServerlessEndpointStateCreating       ServerlessEndpointState = "Creating"
	ServerlessEndpointStateCreationFailed ServerlessEndpointState = "CreationFailed"
	ServerlessEndpointStateDeleting       ServerlessEndpointState = "Deleting"
	ServerlessEndpointStateDeletionFailed ServerlessEndpointState = "DeletionFailed"
	ServerlessEndpointStateOnline         ServerlessEndpointState = "Online"
	ServerlessEndpointStateReinstating    ServerlessEndpointState = "Reinstating"
	ServerlessEndpointStateSuspended      ServerlessEndpointState = "Suspended"
	ServerlessEndpointStateSuspending     ServerlessEndpointState = "Suspending"
	ServerlessEndpointStateUnknown        ServerlessEndpointState = "Unknown"
)

func (*ServerlessEndpointState) UnmarshalJSON

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

type ServerlessInferenceEndpointAuthMode

type ServerlessInferenceEndpointAuthMode string
const (
	ServerlessInferenceEndpointAuthModeAAD ServerlessInferenceEndpointAuthMode = "AAD"
	ServerlessInferenceEndpointAuthModeKey ServerlessInferenceEndpointAuthMode = "Key"
)

func (*ServerlessInferenceEndpointAuthMode) UnmarshalJSON

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

type ServerlessOffer

type ServerlessOffer struct {
	OfferName string `json:"offerName"`
	Publisher string `json:"publisher"`
}

type ServiceAccountKeyName

type ServiceAccountKeyName string
const (
	ServiceAccountKeyNameKeyOne ServiceAccountKeyName = "Key1"
	ServiceAccountKeyNameKeyTwo ServiceAccountKeyName = "Key2"
)

func (*ServiceAccountKeyName) UnmarshalJSON

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

type SpeechEndpointDeploymentResourceProperties

type SpeechEndpointDeploymentResourceProperties struct {
	Model                EndpointDeploymentModel              `json:"model"`
	RaiPolicyName        *string                              `json:"raiPolicyName,omitempty"`
	Sku                  *CognitiveServicesSku                `json:"sku,omitempty"`
	VersionUpgradeOption *DeploymentModelVersionUpgradeOption `json:"versionUpgradeOption,omitempty"`

	FailureReason     *string                           `json:"failureReason,omitempty"`
	ProvisioningState *DefaultResourceProvisioningState `json:"provisioningState,omitempty"`
	Type              string                            `json:"type"`
}

func (SpeechEndpointDeploymentResourceProperties) EndpointDeploymentResourceProperties

func (SpeechEndpointDeploymentResourceProperties) MarshalJSON

type SpeechEndpointResourceProperties

type SpeechEndpointResourceProperties struct {
	AssociatedResourceId           *string                                              `json:"associatedResourceId,omitempty"`
	Deployments                    *[]EndpointDeploymentResourcePropertiesBasicResource `json:"deployments,omitempty"`
	EndpointType                   EndpointType                                         `json:"endpointType"`
	EndpointUri                    *string                                              `json:"endpointUri,omitempty"`
	FailureReason                  *string                                              `json:"failureReason,omitempty"`
	Location                       *string                                              `json:"location,omitempty"`
	Name                           *string                                              `json:"name,omitempty"`
	ProvisioningState              *DefaultResourceProvisioningState                    `json:"provisioningState,omitempty"`
	ShouldCreateAiServicesEndpoint *bool                                                `json:"shouldCreateAiServicesEndpoint,omitempty"`
}

func (SpeechEndpointResourceProperties) EndpointResourceProperties

func (SpeechEndpointResourceProperties) MarshalJSON

func (s SpeechEndpointResourceProperties) MarshalJSON() ([]byte, error)

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId

NewWorkspaceID returns a new WorkspaceId struct

func ParseWorkspaceID

func ParseWorkspaceID(input string) (*WorkspaceId, error)

ParseWorkspaceID parses 'input' into a WorkspaceId

func ParseWorkspaceIDInsensitively

func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)

ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input

func (*WorkspaceId) FromParseResult

func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

func (WorkspaceId) Segments

func (id WorkspaceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Workspace ID

func (WorkspaceId) String

func (id WorkspaceId) String() string

String returns a human-readable description of this Workspace ID

Source Files

Jump to

Keyboard shortcuts

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