featuresetversion

package
v0.20240416.1115834 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

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

The featuresetversion 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/featuresetversion"

Client Initialization

client := featuresetversion.NewFeaturesetVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: FeaturesetVersionClient.Backfill

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

payload := featuresetversion.FeaturesetVersionBackfillRequest{
	// ...
}


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

Example Usage: FeaturesetVersionClient.CreateOrUpdate

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

payload := featuresetversion.FeaturesetVersionResource{
	// ...
}


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

Example Usage: FeaturesetVersionClient.Delete

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

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

Example Usage: FeaturesetVersionClient.Get

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

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

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

// alternatively `client.List(ctx, id, featuresetversion.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, featuresetversion.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 PossibleValuesForAssetProvisioningState

func PossibleValuesForAssetProvisioningState() []string

func PossibleValuesForDataAvailabilityStatus

func PossibleValuesForDataAvailabilityStatus() []string

func PossibleValuesForEmailNotificationEnableType

func PossibleValuesForEmailNotificationEnableType() []string

func PossibleValuesForListViewType

func PossibleValuesForListViewType() []string

func PossibleValuesForMaterializationStoreType

func PossibleValuesForMaterializationStoreType() []string

func PossibleValuesForRecurrenceFrequency

func PossibleValuesForRecurrenceFrequency() []string

func PossibleValuesForTriggerType

func PossibleValuesForTriggerType() []string

func PossibleValuesForWebhookType

func PossibleValuesForWebhookType() []string

func PossibleValuesForWeekDay

func PossibleValuesForWeekDay() []string

func ValidateFeatureSetID

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

ValidateFeatureSetID checks that 'input' can be parsed as a Feature Set 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 AssetProvisioningState

type AssetProvisioningState string
const (
	AssetProvisioningStateCanceled  AssetProvisioningState = "Canceled"
	AssetProvisioningStateCreating  AssetProvisioningState = "Creating"
	AssetProvisioningStateDeleting  AssetProvisioningState = "Deleting"
	AssetProvisioningStateFailed    AssetProvisioningState = "Failed"
	AssetProvisioningStateSucceeded AssetProvisioningState = "Succeeded"
	AssetProvisioningStateUpdating  AssetProvisioningState = "Updating"
)

func (*AssetProvisioningState) UnmarshalJSON

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

type AzureDevOpsWebhook

type AzureDevOpsWebhook struct {

	// Fields inherited from Webhook
	EventType *string `json:"eventType,omitempty"`
}

func (AzureDevOpsWebhook) MarshalJSON

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

type BackfillOperationResponse

type BackfillOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *FeaturesetVersionBackfillResponse
}

type CreateOrUpdateOperationResponse

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

type CronTrigger

type CronTrigger struct {
	Expression string `json:"expression"`

	// Fields inherited from TriggerBase
	EndTime   *string `json:"endTime,omitempty"`
	StartTime *string `json:"startTime,omitempty"`
	TimeZone  *string `json:"timeZone,omitempty"`
}

func (CronTrigger) MarshalJSON

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

type DataAvailabilityStatus

type DataAvailabilityStatus string
const (
	DataAvailabilityStatusComplete   DataAvailabilityStatus = "Complete"
	DataAvailabilityStatusIncomplete DataAvailabilityStatus = "Incomplete"
	DataAvailabilityStatusNone       DataAvailabilityStatus = "None"
	DataAvailabilityStatusPending    DataAvailabilityStatus = "Pending"
)

func (*DataAvailabilityStatus) UnmarshalJSON

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

type DeleteOperationResponse

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

type EmailNotificationEnableType

type EmailNotificationEnableType string
const (
	EmailNotificationEnableTypeJobCancelled EmailNotificationEnableType = "JobCancelled"
	EmailNotificationEnableTypeJobCompleted EmailNotificationEnableType = "JobCompleted"
	EmailNotificationEnableTypeJobFailed    EmailNotificationEnableType = "JobFailed"
)

func (*EmailNotificationEnableType) UnmarshalJSON

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

type FeatureSetId

type FeatureSetId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	FeatureSetName    string
}

FeatureSetId is a struct representing the Resource ID for a Feature Set

func NewFeatureSetID

func NewFeatureSetID(subscriptionId string, resourceGroupName string, workspaceName string, featureSetName string) FeatureSetId

NewFeatureSetID returns a new FeatureSetId struct

func ParseFeatureSetID

func ParseFeatureSetID(input string) (*FeatureSetId, error)

ParseFeatureSetID parses 'input' into a FeatureSetId

func ParseFeatureSetIDInsensitively

func ParseFeatureSetIDInsensitively(input string) (*FeatureSetId, error)

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

func (*FeatureSetId) FromParseResult

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

func (FeatureSetId) ID

func (id FeatureSetId) ID() string

ID returns the formatted Feature Set ID

func (FeatureSetId) Segments

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

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

func (FeatureSetId) String

func (id FeatureSetId) String() string

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

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 FeatureWindow

type FeatureWindow struct {
	FeatureWindowEnd   *string `json:"featureWindowEnd,omitempty"`
	FeatureWindowStart *string `json:"featureWindowStart,omitempty"`
}

func (*FeatureWindow) GetFeatureWindowEndAsTime

func (o *FeatureWindow) GetFeatureWindowEndAsTime() (*time.Time, error)

func (*FeatureWindow) GetFeatureWindowStartAsTime

func (o *FeatureWindow) GetFeatureWindowStartAsTime() (*time.Time, error)

func (*FeatureWindow) SetFeatureWindowEndAsTime

func (o *FeatureWindow) SetFeatureWindowEndAsTime(input time.Time)

func (*FeatureWindow) SetFeatureWindowStartAsTime

func (o *FeatureWindow) SetFeatureWindowStartAsTime(input time.Time)

type FeaturesetSpecification

type FeaturesetSpecification struct {
	Path *string `json:"path,omitempty"`
}

type FeaturesetVersion

type FeaturesetVersion struct {
	Description             *string                  `json:"description,omitempty"`
	Entities                *[]string                `json:"entities,omitempty"`
	IsAnonymous             *bool                    `json:"isAnonymous,omitempty"`
	IsArchived              *bool                    `json:"isArchived,omitempty"`
	MaterializationSettings *MaterializationSettings `json:"materializationSettings,omitempty"`
	Properties              *map[string]string       `json:"properties,omitempty"`
	ProvisioningState       *AssetProvisioningState  `json:"provisioningState,omitempty"`
	Specification           *FeaturesetSpecification `json:"specification,omitempty"`
	Stage                   *string                  `json:"stage,omitempty"`
	Tags                    *map[string]string       `json:"tags,omitempty"`
}

type FeaturesetVersionBackfillRequest

type FeaturesetVersionBackfillRequest struct {
	DataAvailabilityStatus *[]DataAvailabilityStatus       `json:"dataAvailabilityStatus,omitempty"`
	Description            *string                         `json:"description,omitempty"`
	DisplayName            *string                         `json:"displayName,omitempty"`
	FeatureWindow          *FeatureWindow                  `json:"featureWindow,omitempty"`
	JobId                  *string                         `json:"jobId,omitempty"`
	Properties             *map[string]string              `json:"properties,omitempty"`
	Resource               *MaterializationComputeResource `json:"resource,omitempty"`
	SparkConfiguration     *map[string]string              `json:"sparkConfiguration,omitempty"`
	Tags                   *map[string]string              `json:"tags,omitempty"`
}

type FeaturesetVersionBackfillResponse

type FeaturesetVersionBackfillResponse struct {
	JobIds *[]string `json:"jobIds,omitempty"`
}

type FeaturesetVersionClient

type FeaturesetVersionClient struct {
	Client *resourcemanager.Client
}

func NewFeaturesetVersionClientWithBaseURI

func NewFeaturesetVersionClientWithBaseURI(sdkApi sdkEnv.Api) (*FeaturesetVersionClient, error)

func (FeaturesetVersionClient) Backfill

Backfill ...

func (FeaturesetVersionClient) BackfillThenPoll

BackfillThenPoll performs Backfill then polls until it's completed

func (FeaturesetVersionClient) CreateOrUpdate

CreateOrUpdate ...

func (FeaturesetVersionClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (FeaturesetVersionClient) Delete

Delete ...

func (FeaturesetVersionClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (FeaturesetVersionClient) Get

Get ...

func (FeaturesetVersionClient) List

List ...

func (FeaturesetVersionClient) ListComplete

ListComplete retrieves all the results into a single object

func (FeaturesetVersionClient) ListCompleteMatchingPredicate

func (c FeaturesetVersionClient) ListCompleteMatchingPredicate(ctx context.Context, id FeatureSetId, options ListOperationOptions, predicate FeaturesetVersionResourceOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type FeaturesetVersionResource

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

type FeaturesetVersionResourceOperationPredicate

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

func (FeaturesetVersionResourceOperationPredicate) Matches

type GetOperationResponse

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

type ListCompleteResult

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

type ListOperationOptions

type ListOperationOptions struct {
	CreatedBy    *string
	Description  *string
	ListViewType *ListViewType
	PageSize     *int64
	Skip         *string
	Stage        *string
	Tags         *string
	Version      *string
	VersionName  *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        *[]FeaturesetVersionResource
}

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

type MaterializationComputeResource

type MaterializationComputeResource struct {
	InstanceType *string `json:"instanceType,omitempty"`
}

type MaterializationSettings

type MaterializationSettings struct {
	Notification       *NotificationSetting            `json:"notification,omitempty"`
	Resource           *MaterializationComputeResource `json:"resource,omitempty"`
	Schedule           *RecurrenceTrigger              `json:"schedule,omitempty"`
	SparkConfiguration *map[string]string              `json:"sparkConfiguration,omitempty"`
	StoreType          *MaterializationStoreType       `json:"storeType,omitempty"`
}

type MaterializationStoreType

type MaterializationStoreType string
const (
	MaterializationStoreTypeNone             MaterializationStoreType = "None"
	MaterializationStoreTypeOffline          MaterializationStoreType = "Offline"
	MaterializationStoreTypeOnline           MaterializationStoreType = "Online"
	MaterializationStoreTypeOnlineAndOffline MaterializationStoreType = "OnlineAndOffline"
)

func (*MaterializationStoreType) UnmarshalJSON

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

type NotificationSetting

type NotificationSetting struct {
	EmailOn  *[]EmailNotificationEnableType `json:"emailOn,omitempty"`
	Emails   *[]string                      `json:"emails,omitempty"`
	WebHooks *map[string]Webhook            `json:"webhooks,omitempty"`
}

func (*NotificationSetting) UnmarshalJSON

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

type RawTriggerBaseImpl

type RawTriggerBaseImpl struct {
	Type   string
	Values map[string]interface{}
}

RawTriggerBaseImpl 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).

type RawWebhookImpl

type RawWebhookImpl struct {
	Type   string
	Values map[string]interface{}
}

RawWebhookImpl 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).

type RecurrenceFrequency

type RecurrenceFrequency string
const (
	RecurrenceFrequencyDay    RecurrenceFrequency = "Day"
	RecurrenceFrequencyHour   RecurrenceFrequency = "Hour"
	RecurrenceFrequencyMinute RecurrenceFrequency = "Minute"
	RecurrenceFrequencyMonth  RecurrenceFrequency = "Month"
	RecurrenceFrequencyWeek   RecurrenceFrequency = "Week"
)

func (*RecurrenceFrequency) UnmarshalJSON

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

type RecurrenceSchedule

type RecurrenceSchedule struct {
	Hours     []int64    `json:"hours"`
	Minutes   []int64    `json:"minutes"`
	MonthDays *[]int64   `json:"monthDays,omitempty"`
	WeekDays  *[]WeekDay `json:"weekDays,omitempty"`
}

type RecurrenceTrigger

type RecurrenceTrigger struct {
	Frequency RecurrenceFrequency `json:"frequency"`
	Interval  int64               `json:"interval"`
	Schedule  *RecurrenceSchedule `json:"schedule,omitempty"`

	// Fields inherited from TriggerBase
	EndTime   *string `json:"endTime,omitempty"`
	StartTime *string `json:"startTime,omitempty"`
	TimeZone  *string `json:"timeZone,omitempty"`
}

func (RecurrenceTrigger) MarshalJSON

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

type TriggerBase

type TriggerBase interface {
}

type TriggerType

type TriggerType string
const (
	TriggerTypeCron       TriggerType = "Cron"
	TriggerTypeRecurrence TriggerType = "Recurrence"
)

func (*TriggerType) UnmarshalJSON

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

type Webhook

type Webhook interface {
}

type WebhookType

type WebhookType string
const (
	WebhookTypeAzureDevOps WebhookType = "AzureDevOps"
)

func (*WebhookType) UnmarshalJSON

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

type WeekDay

type WeekDay string
const (
	WeekDayFriday    WeekDay = "Friday"
	WeekDayMonday    WeekDay = "Monday"
	WeekDaySaturday  WeekDay = "Saturday"
	WeekDaySunday    WeekDay = "Sunday"
	WeekDayThursday  WeekDay = "Thursday"
	WeekDayTuesday   WeekDay = "Tuesday"
	WeekDayWednesday WeekDay = "Wednesday"
)

func (*WeekDay) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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