featuresetcontainer

package
v0.20230823.1052657 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2023-04-01-preview/featuresetcontainer Documentation

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

Client Initialization

client := featuresetcontainer.NewFeaturesetContainerClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: FeaturesetContainerClient.CreateOrUpdate

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

payload := featuresetcontainer.FeaturesetContainerResource{
	// ...
}


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

Example Usage: FeaturesetContainerClient.Delete

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

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

Example Usage: FeaturesetContainerClient.GetEntity

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

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

Example Usage: FeaturesetContainerClient.List

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

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

func PossibleValuesForListViewType() []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 ValidateWorkspaceID

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

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace 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 CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

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) 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 FeaturesetContainer

type FeaturesetContainer struct {
	Description       *string                 `json:"description,omitempty"`
	IsArchived        *bool                   `json:"isArchived,omitempty"`
	LatestVersion     *string                 `json:"latestVersion,omitempty"`
	NextVersion       *string                 `json:"nextVersion,omitempty"`
	Properties        *map[string]string      `json:"properties,omitempty"`
	ProvisioningState *AssetProvisioningState `json:"provisioningState,omitempty"`
	Tags              *map[string]string      `json:"tags,omitempty"`
}

type FeaturesetContainerClient

type FeaturesetContainerClient struct {
	Client *resourcemanager.Client
}

func NewFeaturesetContainerClientWithBaseURI

func NewFeaturesetContainerClientWithBaseURI(sdkApi sdkEnv.Api) (*FeaturesetContainerClient, error)

func (FeaturesetContainerClient) CreateOrUpdate

CreateOrUpdate ...

func (FeaturesetContainerClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (FeaturesetContainerClient) Delete

Delete ...

func (FeaturesetContainerClient) DeleteThenPoll

func (c FeaturesetContainerClient) DeleteThenPoll(ctx context.Context, id FeatureSetId) error

DeleteThenPoll performs Delete then polls until it's completed

func (FeaturesetContainerClient) GetEntity

GetEntity ...

func (FeaturesetContainerClient) List

List ...

func (FeaturesetContainerClient) ListComplete

ListComplete retrieves all the results into a single object

func (FeaturesetContainerClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type FeaturesetContainerResource

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

type FeaturesetContainerResourceOperationPredicate

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

func (FeaturesetContainerResourceOperationPredicate) Matches

type GetEntityOperationResponse

type GetEntityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *FeaturesetContainerResource
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []FeaturesetContainerResource
}

type ListOperationOptions

type ListOperationOptions struct {
	CreatedBy    *string
	Description  *string
	ListViewType *ListViewType
	Name         *string
	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        *[]FeaturesetContainerResource
}

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

Jump to

Keyboard shortcuts

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