azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/machinelearning/mgmt/2016-04-01/workspaces Index | Files | Directories

package workspaces

import "github.com/Azure/azure-sdk-for-go/services/machinelearning/mgmt/2016-04-01/workspaces"

Package workspaces implements the Azure ARM Workspaces service API version 2016-04-01.

These APIs allow end users to operate on Azure Machine Learning Workspace resources. They support CRUD operations for Azure Machine Learning Workspaces.

Index

Package Files

client.go models.go operations.go version.go workspaces.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Workspaces
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Workspaces.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Client Uses

type Client struct {
    BaseClient
}

Client is the these APIs allow end users to operate on Azure Machine Learning Workspace resources. They support CRUD operations for Azure Machine Learning Workspaces.

func NewClient Uses

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI Uses

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client.

func (Client) CreateOrUpdate Uses

func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace) (result Workspace, err error)

CreateOrUpdate creates or updates a workspace with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the machine learning workspace belongs. workspaceName - the name of the machine learning workspace. parameters - the parameters for creating or updating a machine learning workspace.

func (Client) CreateOrUpdatePreparer Uses

func (client Client) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (Client) CreateOrUpdateResponder Uses

func (client Client) CreateOrUpdateResponder(resp *http.Response) (result Workspace, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (Client) CreateOrUpdateSender Uses

func (client Client) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (Client) Delete Uses

func (client Client) Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result autorest.Response, err error)

Delete deletes a machine learning workspace. Parameters: resourceGroupName - the name of the resource group to which the machine learning workspace belongs. workspaceName - the name of the machine learning workspace.

func (Client) DeletePreparer Uses

func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (Client) DeleteResponder Uses

func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (Client) DeleteSender Uses

func (client Client) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (Client) Get Uses

func (client Client) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result Workspace, err error)

Get gets the properties of the specified machine learning workspace. Parameters: resourceGroupName - the name of the resource group to which the machine learning workspace belongs. workspaceName - the name of the machine learning workspace.

func (Client) GetPreparer Uses

func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (Client) GetResponder Uses

func (client Client) GetResponder(resp *http.Response) (result Workspace, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (Client) GetSender Uses

func (client Client) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (Client) List Uses

func (client Client) List(ctx context.Context) (result ListResultPage, err error)

List lists all the available machine learning workspaces under the specified subscription.

func (Client) ListByResourceGroup Uses

func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error)

ListByResourceGroup lists all the available machine learning workspaces under the specified resource group. Parameters: resourceGroupName - the name of the resource group to which the machine learning workspace belongs.

func (Client) ListByResourceGroupComplete Uses

func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (Client) ListByResourceGroupPreparer Uses

func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (Client) ListByResourceGroupResponder Uses

func (client Client) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (Client) ListByResourceGroupSender Uses

func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (Client) ListComplete Uses

func (client Client) ListComplete(ctx context.Context) (result ListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (Client) ListPreparer Uses

func (client Client) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (Client) ListResponder Uses

func (client Client) ListResponder(resp *http.Response) (result ListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (Client) ListSender Uses

func (client Client) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (Client) ListWorkspaceKeys Uses

func (client Client) ListWorkspaceKeys(ctx context.Context, workspaceName string, resourceGroupName string) (result KeysResponse, err error)

ListWorkspaceKeys list the authorization keys associated with this workspace. Parameters: workspaceName - the name of the machine learning workspace. resourceGroupName - the name of the resource group to which the machine learning workspace belongs.

func (Client) ListWorkspaceKeysPreparer Uses

func (client Client) ListWorkspaceKeysPreparer(ctx context.Context, workspaceName string, resourceGroupName string) (*http.Request, error)

ListWorkspaceKeysPreparer prepares the ListWorkspaceKeys request.

func (Client) ListWorkspaceKeysResponder Uses

func (client Client) ListWorkspaceKeysResponder(resp *http.Response) (result KeysResponse, err error)

ListWorkspaceKeysResponder handles the response to the ListWorkspaceKeys request. The method always closes the http.Response Body.

func (Client) ListWorkspaceKeysSender Uses

func (client Client) ListWorkspaceKeysSender(req *http.Request) (*http.Response, error)

ListWorkspaceKeysSender sends the ListWorkspaceKeys request. The method will close the http.Response Body if it receives an error.

func (Client) ResyncStorageKeys Uses

func (client Client) ResyncStorageKeys(ctx context.Context, workspaceName string, resourceGroupName string) (result autorest.Response, err error)

ResyncStorageKeys resync storage keys associated with this workspace. Parameters: workspaceName - the name of the machine learning workspace. resourceGroupName - the name of the resource group to which the machine learning workspace belongs.

func (Client) ResyncStorageKeysPreparer Uses

func (client Client) ResyncStorageKeysPreparer(ctx context.Context, workspaceName string, resourceGroupName string) (*http.Request, error)

ResyncStorageKeysPreparer prepares the ResyncStorageKeys request.

func (Client) ResyncStorageKeysResponder Uses

func (client Client) ResyncStorageKeysResponder(resp *http.Response) (result autorest.Response, err error)

ResyncStorageKeysResponder handles the response to the ResyncStorageKeys request. The method always closes the http.Response Body.

func (Client) ResyncStorageKeysSender Uses

func (client Client) ResyncStorageKeysSender(req *http.Request) (*http.Response, error)

ResyncStorageKeysSender sends the ResyncStorageKeys request. The method will close the http.Response Body if it receives an error.

func (Client) Update Uses

func (client Client) Update(ctx context.Context, resourceGroupName string, workspaceName string, parameters UpdateParameters) (result Workspace, err error)

Update updates a machine learning workspace with the specified parameters. Parameters: resourceGroupName - the name of the resource group to which the machine learning workspace belongs. workspaceName - the name of the machine learning workspace. parameters - the parameters for updating a machine learning workspace.

func (Client) UpdatePreparer Uses

func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, parameters UpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (Client) UpdateResponder Uses

func (client Client) UpdateResponder(resp *http.Response) (result Workspace, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (Client) UpdateSender Uses

func (client Client) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ErrorResponse Uses

type ErrorResponse struct {
    // Code - error code
    Code *string `json:"code,omitempty"`
    // Message - error message
    Message *string `json:"message,omitempty"`
}

ErrorResponse the error response send when an operation fails.

type KeysResponse Uses

type KeysResponse struct {
    autorest.Response `json:"-"`
    // PrimaryToken - Primary authorization key for this workspace.
    PrimaryToken *string `json:"primaryToken,omitempty"`
    // SecondaryToken - Secondary authorization key for this workspace.
    SecondaryToken *string `json:"secondaryToken,omitempty"`
}

KeysResponse workspace authorization keys for a workspace.

type ListResult Uses

type ListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces.
    Value *[]Workspace `json:"value,omitempty"`
    // NextLink - The URI that can be used to request the next list of machine learning workspaces.
    NextLink *string `json:"nextLink,omitempty"`
}

ListResult the result of a request to list machine learning workspace keys.

func (ListResult) IsEmpty Uses

func (lr ListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ListResultIterator Uses

type ListResultIterator struct {
    // contains filtered or unexported fields
}

ListResultIterator provides access to a complete listing of Workspace values.

func NewListResultIterator Uses

func NewListResultIterator(page ListResultPage) ListResultIterator

Creates a new instance of the ListResultIterator type.

func (*ListResultIterator) Next Uses

func (iter *ListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultIterator) NextWithContext Uses

func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ListResultIterator) NotDone Uses

func (iter ListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ListResultIterator) Response Uses

func (iter ListResultIterator) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultIterator) Value Uses

func (iter ListResultIterator) Value() Workspace

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ListResultPage Uses

type ListResultPage struct {
    // contains filtered or unexported fields
}

ListResultPage contains a page of Workspace values.

func NewListResultPage Uses

func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage

Creates a new instance of the ListResultPage type.

func (*ListResultPage) Next Uses

func (page *ListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultPage) NextWithContext Uses

func (page *ListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ListResultPage) NotDone Uses

func (page ListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ListResultPage) Response Uses

func (page ListResultPage) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultPage) Values Uses

func (page ListResultPage) Values() []Workspace

Values returns the slice of values for the current page or nil if there are no values.

type Operation Uses

type Operation struct {
    // Name - Operation name: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
    // Display - Display name of operation
    Display *OperationDisplay `json:"display,omitempty"`
}

Operation azure Machine Learning Studio REST API operation

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - The resource provider name: Microsoft.MachineLearning
    Provider *string `json:"provider,omitempty"`
    // Resource - The resource on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
    // Operation - The operation that users can perform.
    Operation *string `json:"operation,omitempty"`
    // Description - The description for the operation.
    Description *string `json:"description,omitempty"`
}

OperationDisplay display name of operation

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - List of AML Studio operations supported by the AML Studio resource provider.
    Value *[]Operation `json:"value,omitempty"`
}

OperationListResult an array of operations supported by the resource provider.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the these APIs allow end users to operate on Azure Machine Learning Workspace resources. They support CRUD operations for Azure Machine Learning Workspaces.

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)

List lists all of the available Azure Machine Learning Studio REST API operations.

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Properties Uses

type Properties struct {
    // UserStorageAccountID - The fully qualified arm id of the storage account associated with this workspace.
    UserStorageAccountID *string `json:"userStorageAccountId,omitempty"`
    // OwnerEmail - The email id of the owner for this workspace.
    OwnerEmail *string `json:"ownerEmail,omitempty"`
    // WorkspaceType - READ-ONLY; The type of this workspace. Possible values include: 'Production', 'Free', 'Anonymous', 'PaidStandard', 'PaidPremium'
    WorkspaceType WorkspaceType `json:"workspaceType,omitempty"`
    // WorkspaceState - READ-ONLY; The current state of workspace resource. Possible values include: 'Deleted', 'Enabled', 'Disabled', 'Migrated', 'Updated', 'Registered', 'Unregistered'
    WorkspaceState State `json:"workspaceState,omitempty"`
    // WorkspaceID - READ-ONLY; The immutable id associated with this workspace.
    WorkspaceID *string `json:"workspaceId,omitempty"`
    // CreationTime - READ-ONLY; The creation time for this workspace resource.
    CreationTime *string `json:"creationTime,omitempty"`
    // StudioEndpoint - READ-ONLY; The regional endpoint for the machine learning studio service which hosts this workspace.
    StudioEndpoint *string `json:"studioEndpoint,omitempty"`
    // KeyVaultIdentifierID - The key vault identifier used for encrypted workspaces.
    KeyVaultIdentifierID *string `json:"keyVaultIdentifierId,omitempty"`
}

Properties the properties of a machine learning workspace.

type PropertiesUpdateParameters Uses

type PropertiesUpdateParameters struct {
    // WorkspaceState - The current state of workspace resource. Possible values include: 'Deleted', 'Enabled', 'Disabled', 'Migrated', 'Updated', 'Registered', 'Unregistered'
    WorkspaceState State `json:"workspaceState,omitempty"`
    // KeyVaultIdentifierID - The key vault identifier used for encrypted workspaces.
    KeyVaultIdentifierID *string `json:"keyVaultIdentifierId,omitempty"`
}

PropertiesUpdateParameters the parameters for updating the properties of a machine learning workspace.

type Resource Uses

type Resource struct {
    // ID - READ-ONLY; The resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    Type *string `json:"type,omitempty"`
    // Location - The location of the resource. This cannot be changed after the resource is created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags of the resource.
    Tags map[string]*string `json:"tags"`
}

Resource an Azure resource.

func (Resource) MarshalJSON Uses

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type State Uses

type State string

State enumerates the values for state.

const (
    // Deleted ...
    Deleted State = "Deleted"
    // Disabled ...
    Disabled State = "Disabled"
    // Enabled ...
    Enabled State = "Enabled"
    // Migrated ...
    Migrated State = "Migrated"
    // Registered ...
    Registered State = "Registered"
    // Unregistered ...
    Unregistered State = "Unregistered"
    // Updated ...
    Updated State = "Updated"
)

func PossibleStateValues Uses

func PossibleStateValues() []State

PossibleStateValues returns an array of possible values for the State const type.

type UpdateParameters Uses

type UpdateParameters struct {
    // Tags - The resource tags for the machine learning workspace.
    Tags map[string]*string `json:"tags"`
    // PropertiesUpdateParameters - The properties that the machine learning workspace will be updated with.
    *PropertiesUpdateParameters `json:"properties,omitempty"`
}

UpdateParameters the parameters for updating a machine learning workspace.

func (UpdateParameters) MarshalJSON Uses

func (up UpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UpdateParameters.

func (*UpdateParameters) UnmarshalJSON Uses

func (up *UpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UpdateParameters struct.

type Workspace Uses

type Workspace struct {
    autorest.Response `json:"-"`
    // Properties - The properties of the machine learning workspace.
    *Properties `json:"properties,omitempty"`
    // ID - READ-ONLY; The resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource.
    Type *string `json:"type,omitempty"`
    // Location - The location of the resource. This cannot be changed after the resource is created.
    Location *string `json:"location,omitempty"`
    // Tags - The tags of the resource.
    Tags map[string]*string `json:"tags"`
}

Workspace an object that represents a machine learning workspace.

func (Workspace) MarshalJSON Uses

func (w Workspace) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Workspace.

func (*Workspace) UnmarshalJSON Uses

func (w *Workspace) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Workspace struct.

type WorkspaceType Uses

type WorkspaceType string

WorkspaceType enumerates the values for workspace type.

const (
    // Anonymous ...
    Anonymous WorkspaceType = "Anonymous"
    // Free ...
    Free WorkspaceType = "Free"
    // PaidPremium ...
    PaidPremium WorkspaceType = "PaidPremium"
    // PaidStandard ...
    PaidStandard WorkspaceType = "PaidStandard"
    // Production ...
    Production WorkspaceType = "Production"
)

func PossibleWorkspaceTypeValues Uses

func PossibleWorkspaceTypeValues() []WorkspaceType

PossibleWorkspaceTypeValues returns an array of possible values for the WorkspaceType const type.

Directories

PathSynopsis
workspacesapi

Package workspaces imports 9 packages (graph) and is imported by 4 packages. Updated 2019-09-01. Refresh now. Tools for package owners.