feature

package
v0.20240320.1144505 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2023-10-01/feature Documentation

The feature SDK allows for interaction with the Azure Resource Manager Service machinelearningservices (API Version 2023-10-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/machinelearningservices/2023-10-01/feature"

Client Initialization

client := feature.NewFeatureClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: FeatureClient.Get

ctx := context.TODO()
id := feature.NewFeatureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "featureSetValue", "versionValue", "featureValue")

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: FeatureClient.List

ctx := context.TODO()
id := feature.NewFeatureSetVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "featureSetValue", "versionValue")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForFeatureDataType

func PossibleValuesForFeatureDataType() []string

func PossibleValuesForListViewType

func PossibleValuesForListViewType() []string

func ValidateFeatureID

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

ValidateFeatureID checks that 'input' can be parsed as a Feature ID

func ValidateFeatureSetVersionID

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

ValidateFeatureSetVersionID checks that 'input' can be parsed as a Feature Set Version ID

Types

type Feature

type Feature struct {
	DataType    *FeatureDataType   `json:"dataType,omitempty"`
	Description *string            `json:"description,omitempty"`
	FeatureName *string            `json:"featureName,omitempty"`
	Properties  *map[string]string `json:"properties,omitempty"`
	Tags        *map[string]string `json:"tags,omitempty"`
}

type FeatureClient

type FeatureClient struct {
	Client *resourcemanager.Client
}

func NewFeatureClientWithBaseURI

func NewFeatureClientWithBaseURI(sdkApi sdkEnv.Api) (*FeatureClient, error)

func (FeatureClient) Get

func (c FeatureClient) Get(ctx context.Context, id FeatureId) (result GetOperationResponse, err error)

Get ...

func (FeatureClient) List

List ...

func (FeatureClient) ListComplete

ListComplete retrieves all the results into a single object

func (FeatureClient) ListCompleteMatchingPredicate

func (c FeatureClient) ListCompleteMatchingPredicate(ctx context.Context, id FeatureSetVersionId, options ListOperationOptions, predicate FeatureResourceOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type FeatureDataType

type FeatureDataType string
const (
	FeatureDataTypeBinary   FeatureDataType = "Binary"
	FeatureDataTypeBoolean  FeatureDataType = "Boolean"
	FeatureDataTypeDatetime FeatureDataType = "Datetime"
	FeatureDataTypeDouble   FeatureDataType = "Double"
	FeatureDataTypeFloat    FeatureDataType = "Float"
	FeatureDataTypeInteger  FeatureDataType = "Integer"
	FeatureDataTypeLong     FeatureDataType = "Long"
	FeatureDataTypeString   FeatureDataType = "String"
)

func (*FeatureDataType) UnmarshalJSON

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

type FeatureId

type FeatureId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	FeatureSetName    string
	VersionName       string
	FeatureName       string
}

FeatureId is a struct representing the Resource ID for a Feature

func NewFeatureID

func NewFeatureID(subscriptionId string, resourceGroupName string, workspaceName string, featureSetName string, versionName string, featureName string) FeatureId

NewFeatureID returns a new FeatureId struct

func ParseFeatureID

func ParseFeatureID(input string) (*FeatureId, error)

ParseFeatureID parses 'input' into a FeatureId

func ParseFeatureIDInsensitively

func ParseFeatureIDInsensitively(input string) (*FeatureId, error)

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

func (*FeatureId) FromParseResult

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

func (FeatureId) ID

func (id FeatureId) ID() string

ID returns the formatted Feature ID

func (FeatureId) Segments

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

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

func (FeatureId) String

func (id FeatureId) String() string

String returns a human-readable description of this Feature ID

type FeatureResource

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

type FeatureResourceOperationPredicate

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

func (FeatureResourceOperationPredicate) Matches

type FeatureSetVersionId

type FeatureSetVersionId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	FeatureSetName    string
	VersionName       string
}

FeatureSetVersionId is a struct representing the Resource ID for a Feature Set Version

func NewFeatureSetVersionID

func NewFeatureSetVersionID(subscriptionId string, resourceGroupName string, workspaceName string, featureSetName string, versionName string) FeatureSetVersionId

NewFeatureSetVersionID returns a new FeatureSetVersionId struct

func ParseFeatureSetVersionID

func ParseFeatureSetVersionID(input string) (*FeatureSetVersionId, error)

ParseFeatureSetVersionID parses 'input' into a FeatureSetVersionId

func ParseFeatureSetVersionIDInsensitively

func ParseFeatureSetVersionIDInsensitively(input string) (*FeatureSetVersionId, error)

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

func (*FeatureSetVersionId) FromParseResult

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

func (FeatureSetVersionId) ID

func (id FeatureSetVersionId) ID() string

ID returns the formatted Feature Set Version ID

func (FeatureSetVersionId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Feature Set Version ID

func (FeatureSetVersionId) String

func (id FeatureSetVersionId) String() string

String returns a human-readable description of this Feature Set Version ID

type GetOperationResponse

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

type ListCompleteResult

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

type ListOperationOptions

type ListOperationOptions struct {
	Description  *string
	FeatureName  *string
	ListViewType *ListViewType
	PageSize     *int64
	Skip         *string
	Tags         *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        *[]FeatureResource
}

type ListViewType

type ListViewType string
const (
	ListViewTypeActiveOnly   ListViewType = "ActiveOnly"
	ListViewTypeAll          ListViewType = "All"
	ListViewTypeArchivedOnly ListViewType = "ArchivedOnly"
)

func (*ListViewType) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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