datareference

package
v0.20240111.1120634 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := datareference.NewDataReferenceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DataReferenceClient.RegistryDataReferencesGetBlobReferenceSAS

ctx := context.TODO()
id := datareference.NewDataReferenceVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "dataReferenceValue", "versionValue")

payload := datareference.GetBlobReferenceSASRequestDto{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDataReferenceCredentialType

func PossibleValuesForDataReferenceCredentialType() []string

func ValidateDataReferenceVersionID

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

ValidateDataReferenceVersionID checks that 'input' can be parsed as a Data Reference Version ID

Types

type AnonymousAccessCredential

type AnonymousAccessCredential struct {
}

func (AnonymousAccessCredential) MarshalJSON

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

type DataReferenceClient

type DataReferenceClient struct {
	Client *resourcemanager.Client
}

func NewDataReferenceClientWithBaseURI

func NewDataReferenceClientWithBaseURI(sdkApi sdkEnv.Api) (*DataReferenceClient, error)

func (DataReferenceClient) RegistryDataReferencesGetBlobReferenceSAS

RegistryDataReferencesGetBlobReferenceSAS ...

type DataReferenceCredential

type DataReferenceCredential interface {
}

type DataReferenceCredentialType

type DataReferenceCredentialType string
const (
	DataReferenceCredentialTypeDockerCredentials DataReferenceCredentialType = "DockerCredentials"
	DataReferenceCredentialTypeManagedIdentity   DataReferenceCredentialType = "ManagedIdentity"
	DataReferenceCredentialTypeNoCredentials     DataReferenceCredentialType = "NoCredentials"
	DataReferenceCredentialTypeSAS               DataReferenceCredentialType = "SAS"
)

func (*DataReferenceCredentialType) UnmarshalJSON

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

type DataReferenceVersionId

type DataReferenceVersionId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	DataReferenceName string
	VersionName       string
}

DataReferenceVersionId is a struct representing the Resource ID for a Data Reference Version

func NewDataReferenceVersionID

func NewDataReferenceVersionID(subscriptionId string, resourceGroupName string, registryName string, dataReferenceName string, versionName string) DataReferenceVersionId

NewDataReferenceVersionID returns a new DataReferenceVersionId struct

func ParseDataReferenceVersionID

func ParseDataReferenceVersionID(input string) (*DataReferenceVersionId, error)

ParseDataReferenceVersionID parses 'input' into a DataReferenceVersionId

func ParseDataReferenceVersionIDInsensitively

func ParseDataReferenceVersionIDInsensitively(input string) (*DataReferenceVersionId, error)

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

func (*DataReferenceVersionId) FromParseResult added in v0.20231127.1171502

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

func (DataReferenceVersionId) ID

ID returns the formatted Data Reference Version ID

func (DataReferenceVersionId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Data Reference Version ID

func (DataReferenceVersionId) String

func (id DataReferenceVersionId) String() string

String returns a human-readable description of this Data Reference Version ID

type DockerCredential

type DockerCredential struct {
	Password *string `json:"password,omitempty"`
	UserName *string `json:"userName,omitempty"`
}

func (DockerCredential) MarshalJSON

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

type GetBlobReferenceForConsumptionDto

type GetBlobReferenceForConsumptionDto struct {
	BlobUri             *string                 `json:"blobUri,omitempty"`
	Credential          DataReferenceCredential `json:"credential"`
	StorageAccountArmId *string                 `json:"storageAccountArmId,omitempty"`
}

func (*GetBlobReferenceForConsumptionDto) UnmarshalJSON

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

type GetBlobReferenceSASRequestDto

type GetBlobReferenceSASRequestDto struct {
	AssetId *string `json:"assetId,omitempty"`
	BlobUri *string `json:"blobUri,omitempty"`
}

type GetBlobReferenceSASResponseDto

type GetBlobReferenceSASResponseDto struct {
	BlobReferenceForConsumption *GetBlobReferenceForConsumptionDto `json:"blobReferenceForConsumption,omitempty"`
}

type ManagedIdentityCredential

type ManagedIdentityCredential struct {
	ManagedIdentityType            *string `json:"managedIdentityType,omitempty"`
	UserManagedIdentityClientId    *string `json:"userManagedIdentityClientId,omitempty"`
	UserManagedIdentityPrincipalId *string `json:"userManagedIdentityPrincipalId,omitempty"`
	UserManagedIdentityResourceId  *string `json:"userManagedIdentityResourceId,omitempty"`
	UserManagedIdentityTenantId    *string `json:"userManagedIdentityTenantId,omitempty"`
}

func (ManagedIdentityCredential) MarshalJSON

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

type RawDataReferenceCredentialImpl

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

RawDataReferenceCredentialImpl 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 RegistryDataReferencesGetBlobReferenceSASOperationResponse

type RegistryDataReferencesGetBlobReferenceSASOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GetBlobReferenceSASResponseDto
}

type SASCredential

type SASCredential struct {
	SasUri *string `json:"sasUri,omitempty"`
}

func (SASCredential) MarshalJSON

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

Jump to

Keyboard shortcuts

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