proxyoperations

package
v0.20250110.1074108 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := proxyoperations.NewProxyOperationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ProxyOperationsClient.WorkspacesDiagnose

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

payload := proxyoperations.DiagnoseWorkspaceParameters{
	// ...
}


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

Example Usage: ProxyOperationsClient.WorkspacesListKeys

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

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

Example Usage: ProxyOperationsClient.WorkspacesListNotebookAccessToken

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

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

Example Usage: ProxyOperationsClient.WorkspacesListNotebookKeys

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

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

Example Usage: ProxyOperationsClient.WorkspacesListStorageAccountKeys

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

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

Example Usage: ProxyOperationsClient.WorkspacesPrepareNotebook

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

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

Example Usage: ProxyOperationsClient.WorkspacesResyncKeys

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDiagnoseResultLevel

func PossibleValuesForDiagnoseResultLevel() []string

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 DiagnoseRequestProperties

type DiagnoseRequestProperties struct {
	ApplicationInsights       *map[string]interface{} `json:"applicationInsights,omitempty"`
	ContainerRegistry         *map[string]interface{} `json:"containerRegistry,omitempty"`
	DnsResolution             *map[string]interface{} `json:"dnsResolution,omitempty"`
	KeyVault                  *map[string]interface{} `json:"keyVault,omitempty"`
	Nsg                       *map[string]interface{} `json:"nsg,omitempty"`
	Others                    *map[string]interface{} `json:"others,omitempty"`
	RequiredResourceProviders *map[string]interface{} `json:"requiredResourceProviders,omitempty"`
	ResourceLock              *map[string]interface{} `json:"resourceLock,omitempty"`
	StorageAccount            *map[string]interface{} `json:"storageAccount,omitempty"`
	Udr                       *map[string]interface{} `json:"udr,omitempty"`
}

type DiagnoseResponseResult

type DiagnoseResponseResult struct {
	Value *DiagnoseResponseResultValue `json:"value,omitempty"`
}

type DiagnoseResponseResultValue

type DiagnoseResponseResultValue struct {
	ApplicationInsightsResults *[]DiagnoseResult `json:"applicationInsightsResults,omitempty"`
	ContainerRegistryResults   *[]DiagnoseResult `json:"containerRegistryResults,omitempty"`
	DnsResolutionResults       *[]DiagnoseResult `json:"dnsResolutionResults,omitempty"`
	KeyVaultResults            *[]DiagnoseResult `json:"keyVaultResults,omitempty"`
	NetworkSecurityRuleResults *[]DiagnoseResult `json:"networkSecurityRuleResults,omitempty"`
	OtherResults               *[]DiagnoseResult `json:"otherResults,omitempty"`
	ResourceLockResults        *[]DiagnoseResult `json:"resourceLockResults,omitempty"`
	StorageAccountResults      *[]DiagnoseResult `json:"storageAccountResults,omitempty"`
	UserDefinedRouteResults    *[]DiagnoseResult `json:"userDefinedRouteResults,omitempty"`
}

type DiagnoseResult

type DiagnoseResult struct {
	Code    *string              `json:"code,omitempty"`
	Level   *DiagnoseResultLevel `json:"level,omitempty"`
	Message *string              `json:"message,omitempty"`
}

type DiagnoseResultLevel

type DiagnoseResultLevel string
const (
	DiagnoseResultLevelError       DiagnoseResultLevel = "Error"
	DiagnoseResultLevelInformation DiagnoseResultLevel = "Information"
	DiagnoseResultLevelWarning     DiagnoseResultLevel = "Warning"
)

func (*DiagnoseResultLevel) UnmarshalJSON

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

type DiagnoseWorkspaceParameters

type DiagnoseWorkspaceParameters struct {
	Value *DiagnoseRequestProperties `json:"value,omitempty"`
}

type ListNotebookKeysResult

type ListNotebookKeysResult struct {
	PrimaryAccessKey   *string `json:"primaryAccessKey,omitempty"`
	SecondaryAccessKey *string `json:"secondaryAccessKey,omitempty"`
}

type ListStorageAccountKeysResult

type ListStorageAccountKeysResult struct {
	UserStorageKey *string `json:"userStorageKey,omitempty"`
}

type ListWorkspaceKeysResult

type ListWorkspaceKeysResult struct {
	AppInsightsInstrumentationKey *string                        `json:"appInsightsInstrumentationKey,omitempty"`
	ContainerRegistryCredentials  *RegistryListCredentialsResult `json:"containerRegistryCredentials,omitempty"`
	NotebookAccessKeys            *ListNotebookKeysResult        `json:"notebookAccessKeys,omitempty"`
	UserStorageArmId              *string                        `json:"userStorageArmId,omitempty"`
	UserStorageKey                *string                        `json:"userStorageKey,omitempty"`
}

type NotebookAccessTokenResult

type NotebookAccessTokenResult struct {
	AccessToken        *string `json:"accessToken,omitempty"`
	ExpiresIn          *int64  `json:"expiresIn,omitempty"`
	HostName           *string `json:"hostName,omitempty"`
	NotebookResourceId *string `json:"notebookResourceId,omitempty"`
	PublicDns          *string `json:"publicDns,omitempty"`
	RefreshToken       *string `json:"refreshToken,omitempty"`
	Scope              *string `json:"scope,omitempty"`
	TokenType          *string `json:"tokenType,omitempty"`
}

type NotebookPreparationError

type NotebookPreparationError struct {
	ErrorMessage *string `json:"errorMessage,omitempty"`
	StatusCode   *int64  `json:"statusCode,omitempty"`
}

type NotebookResourceInfo

type NotebookResourceInfo struct {
	Fqdn                     *string                   `json:"fqdn,omitempty"`
	IsPrivateLinkEnabled     *bool                     `json:"isPrivateLinkEnabled,omitempty"`
	NotebookPreparationError *NotebookPreparationError `json:"notebookPreparationError,omitempty"`
	ResourceId               *string                   `json:"resourceId,omitempty"`
}

type Password

type Password struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type ProxyOperationsClient

type ProxyOperationsClient struct {
	Client *resourcemanager.Client
}

func NewProxyOperationsClientWithBaseURI

func NewProxyOperationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ProxyOperationsClient, error)

func (ProxyOperationsClient) WorkspacesDiagnose

WorkspacesDiagnose ...

func (ProxyOperationsClient) WorkspacesDiagnoseThenPoll

func (c ProxyOperationsClient) WorkspacesDiagnoseThenPoll(ctx context.Context, id WorkspaceId, input DiagnoseWorkspaceParameters) error

WorkspacesDiagnoseThenPoll performs WorkspacesDiagnose then polls until it's completed

func (ProxyOperationsClient) WorkspacesListKeys

func (c ProxyOperationsClient) WorkspacesListKeys(ctx context.Context, id WorkspaceId) (result WorkspacesListKeysOperationResponse, err error)

WorkspacesListKeys ...

func (ProxyOperationsClient) WorkspacesListNotebookAccessToken

func (c ProxyOperationsClient) WorkspacesListNotebookAccessToken(ctx context.Context, id WorkspaceId) (result WorkspacesListNotebookAccessTokenOperationResponse, err error)

WorkspacesListNotebookAccessToken ...

func (ProxyOperationsClient) WorkspacesListNotebookKeys

func (c ProxyOperationsClient) WorkspacesListNotebookKeys(ctx context.Context, id WorkspaceId) (result WorkspacesListNotebookKeysOperationResponse, err error)

WorkspacesListNotebookKeys ...

func (ProxyOperationsClient) WorkspacesListStorageAccountKeys

func (c ProxyOperationsClient) WorkspacesListStorageAccountKeys(ctx context.Context, id WorkspaceId) (result WorkspacesListStorageAccountKeysOperationResponse, err error)

WorkspacesListStorageAccountKeys ...

func (ProxyOperationsClient) WorkspacesPrepareNotebook

func (c ProxyOperationsClient) WorkspacesPrepareNotebook(ctx context.Context, id WorkspaceId) (result WorkspacesPrepareNotebookOperationResponse, err error)

WorkspacesPrepareNotebook ...

func (ProxyOperationsClient) WorkspacesPrepareNotebookThenPoll

func (c ProxyOperationsClient) WorkspacesPrepareNotebookThenPoll(ctx context.Context, id WorkspaceId) error

WorkspacesPrepareNotebookThenPoll performs WorkspacesPrepareNotebook then polls until it's completed

func (ProxyOperationsClient) WorkspacesResyncKeys

func (c ProxyOperationsClient) WorkspacesResyncKeys(ctx context.Context, id WorkspaceId) (result WorkspacesResyncKeysOperationResponse, err error)

WorkspacesResyncKeys ...

func (ProxyOperationsClient) WorkspacesResyncKeysThenPoll

func (c ProxyOperationsClient) WorkspacesResyncKeysThenPoll(ctx context.Context, id WorkspaceId) error

WorkspacesResyncKeysThenPoll performs WorkspacesResyncKeys then polls until it's completed

type RegistryListCredentialsResult

type RegistryListCredentialsResult struct {
	Location  *string     `json:"location,omitempty"`
	Passwords *[]Password `json:"passwords,omitempty"`
	Username  *string     `json:"username,omitempty"`
}

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

type WorkspacesDiagnoseOperationResponse

type WorkspacesDiagnoseOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnoseResponseResult
}

type WorkspacesListKeysOperationResponse

type WorkspacesListKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListWorkspaceKeysResult
}

type WorkspacesListNotebookAccessTokenOperationResponse

type WorkspacesListNotebookAccessTokenOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NotebookAccessTokenResult
}

type WorkspacesListNotebookKeysOperationResponse

type WorkspacesListNotebookKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListNotebookKeysResult
}

type WorkspacesListStorageAccountKeysOperationResponse

type WorkspacesListStorageAccountKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListStorageAccountKeysResult
}

type WorkspacesPrepareNotebookOperationResponse

type WorkspacesPrepareNotebookOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NotebookResourceInfo
}

type WorkspacesResyncKeysOperationResponse

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

Jump to

Keyboard shortcuts

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