v2workspaceconnectionresource

package
v0.20241104.1140654 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/v2workspaceconnectionresource Documentation

The v2workspaceconnectionresource SDK allows for interaction with Azure Resource Manager machinelearningservices (API Version 2024-04-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/2024-04-01/v2workspaceconnectionresource"

Client Initialization

client := v2workspaceconnectionresource.NewV2WorkspaceConnectionResourceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: V2WorkspaceConnectionResourceClient.WorkspaceConnectionsCreate

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

payload := v2workspaceconnectionresource.WorkspaceConnectionPropertiesV2BasicResource{
	// ...
}


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

Example Usage: V2WorkspaceConnectionResourceClient.WorkspaceConnectionsDelete

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

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

Example Usage: V2WorkspaceConnectionResourceClient.WorkspaceConnectionsGet

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

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

Example Usage: V2WorkspaceConnectionResourceClient.WorkspaceConnectionsList

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

// alternatively `client.WorkspaceConnectionsList(ctx, id, v2workspaceconnectionresource.DefaultWorkspaceConnectionsListOperationOptions())` can be used to do batched pagination
items, err := client.WorkspaceConnectionsListComplete(ctx, id, v2workspaceconnectionresource.DefaultWorkspaceConnectionsListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: V2WorkspaceConnectionResourceClient.WorkspaceConnectionsListSecrets

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

read, err := client.WorkspaceConnectionsListSecrets(ctx, id)
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 PossibleValuesForConnectionAuthType

func PossibleValuesForConnectionAuthType() []string

func PossibleValuesForConnectionCategory

func PossibleValuesForConnectionCategory() []string

func PossibleValuesForConnectionGroup

func PossibleValuesForConnectionGroup() []string

func PossibleValuesForValueFormat

func PossibleValuesForValueFormat() []string

func ValidateConnectionID

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

ValidateConnectionID checks that 'input' can be parsed as a Connection 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 AADAuthTypeWorkspaceConnectionProperties

type AADAuthTypeWorkspaceConnectionProperties struct {
	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*AADAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (o *AADAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime() (*time.Time, error)

func (AADAuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*AADAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *AADAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (AADAuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type AccessKeyAuthTypeWorkspaceConnectionProperties

type AccessKeyAuthTypeWorkspaceConnectionProperties struct {
	Credentials *WorkspaceConnectionAccessKey `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*AccessKeyAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (o *AccessKeyAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime() (*time.Time, error)

func (AccessKeyAuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*AccessKeyAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *AccessKeyAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (AccessKeyAuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type AccountKeyAuthTypeWorkspaceConnectionProperties

type AccountKeyAuthTypeWorkspaceConnectionProperties struct {
	Credentials *WorkspaceConnectionAccountKey `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*AccountKeyAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (o *AccountKeyAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime() (*time.Time, error)

func (AccountKeyAuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*AccountKeyAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *AccountKeyAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (AccountKeyAuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type ApiKeyAuthWorkspaceConnectionProperties

type ApiKeyAuthWorkspaceConnectionProperties struct {
	Credentials *WorkspaceConnectionApiKey `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*ApiKeyAuthWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (o *ApiKeyAuthWorkspaceConnectionProperties) GetExpiryTimeAsTime() (*time.Time, error)

func (ApiKeyAuthWorkspaceConnectionProperties) MarshalJSON

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

func (*ApiKeyAuthWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *ApiKeyAuthWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (ApiKeyAuthWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type BaseWorkspaceConnectionPropertiesV2Impl added in v0.20240920.1135249

type BaseWorkspaceConnectionPropertiesV2Impl struct {
	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (BaseWorkspaceConnectionPropertiesV2Impl) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type ConnectionAuthType

type ConnectionAuthType string
const (
	ConnectionAuthTypeAAD              ConnectionAuthType = "AAD"
	ConnectionAuthTypeAccessKey        ConnectionAuthType = "AccessKey"
	ConnectionAuthTypeAccountKey       ConnectionAuthType = "AccountKey"
	ConnectionAuthTypeApiKey           ConnectionAuthType = "ApiKey"
	ConnectionAuthTypeCustomKeys       ConnectionAuthType = "CustomKeys"
	ConnectionAuthTypeManagedIdentity  ConnectionAuthType = "ManagedIdentity"
	ConnectionAuthTypeNone             ConnectionAuthType = "None"
	ConnectionAuthTypeOAuthTwo         ConnectionAuthType = "OAuth2"
	ConnectionAuthTypePAT              ConnectionAuthType = "PAT"
	ConnectionAuthTypeSAS              ConnectionAuthType = "SAS"
	ConnectionAuthTypeServicePrincipal ConnectionAuthType = "ServicePrincipal"
	ConnectionAuthTypeUsernamePassword ConnectionAuthType = "UsernamePassword"
)

func (*ConnectionAuthType) UnmarshalJSON

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

type ConnectionCategory

type ConnectionCategory string
const (
	ConnectionCategoryADLSGenTwo               ConnectionCategory = "ADLSGen2"
	ConnectionCategoryAIServices               ConnectionCategory = "AIServices"
	ConnectionCategoryAmazonMws                ConnectionCategory = "AmazonMws"
	ConnectionCategoryAmazonRdsForOracle       ConnectionCategory = "AmazonRdsForOracle"
	ConnectionCategoryAmazonRdsForSqlServer    ConnectionCategory = "AmazonRdsForSqlServer"
	ConnectionCategoryAmazonRedshift           ConnectionCategory = "AmazonRedshift"
	ConnectionCategoryAmazonSThreeCompatible   ConnectionCategory = "AmazonS3Compatible"
	ConnectionCategoryApiKey                   ConnectionCategory = "ApiKey"
	ConnectionCategoryAzureBlob                ConnectionCategory = "AzureBlob"
	ConnectionCategoryAzureDataExplorer        ConnectionCategory = "AzureDataExplorer"
	ConnectionCategoryAzureDatabricksDeltaLake ConnectionCategory = "AzureDatabricksDeltaLake"
	ConnectionCategoryAzureMariaDb             ConnectionCategory = "AzureMariaDb"
	ConnectionCategoryAzureMySqlDb             ConnectionCategory = "AzureMySqlDb"
	ConnectionCategoryAzureOneLake             ConnectionCategory = "AzureOneLake"
	ConnectionCategoryAzureOpenAI              ConnectionCategory = "AzureOpenAI"
	ConnectionCategoryAzurePostgresDb          ConnectionCategory = "AzurePostgresDb"
	ConnectionCategoryAzureSqlDb               ConnectionCategory = "AzureSqlDb"
	ConnectionCategoryAzureSqlMi               ConnectionCategory = "AzureSqlMi"
	ConnectionCategoryAzureSynapseAnalytics    ConnectionCategory = "AzureSynapseAnalytics"
	ConnectionCategoryAzureTableStorage        ConnectionCategory = "AzureTableStorage"
	ConnectionCategoryBingLLMSearch            ConnectionCategory = "BingLLMSearch"
	ConnectionCategoryCassandra                ConnectionCategory = "Cassandra"
	ConnectionCategoryCognitiveSearch          ConnectionCategory = "CognitiveSearch"
	ConnectionCategoryCognitiveService         ConnectionCategory = "CognitiveService"
	ConnectionCategoryConcur                   ConnectionCategory = "Concur"
	ConnectionCategoryContainerRegistry        ConnectionCategory = "ContainerRegistry"
	ConnectionCategoryCosmosDb                 ConnectionCategory = "CosmosDb"
	ConnectionCategoryCosmosDbMongoDbApi       ConnectionCategory = "CosmosDbMongoDbApi"
	ConnectionCategoryCouchbase                ConnectionCategory = "Couchbase"
	ConnectionCategoryCustomKeys               ConnectionCategory = "CustomKeys"
	ConnectionCategoryDbTwo                    ConnectionCategory = "Db2"
	ConnectionCategoryDrill                    ConnectionCategory = "Drill"
	ConnectionCategoryDynamics                 ConnectionCategory = "Dynamics"
	ConnectionCategoryDynamicsAx               ConnectionCategory = "DynamicsAx"
	ConnectionCategoryDynamicsCrm              ConnectionCategory = "DynamicsCrm"
	ConnectionCategoryEloqua                   ConnectionCategory = "Eloqua"
	ConnectionCategoryFileServer               ConnectionCategory = "FileServer"
	ConnectionCategoryFtpServer                ConnectionCategory = "FtpServer"
	ConnectionCategoryGenericContainerRegistry ConnectionCategory = "GenericContainerRegistry"
	ConnectionCategoryGenericHTTP              ConnectionCategory = "GenericHttp"
	ConnectionCategoryGenericRest              ConnectionCategory = "GenericRest"
	ConnectionCategoryGit                      ConnectionCategory = "Git"
	ConnectionCategoryGoogleAdWords            ConnectionCategory = "GoogleAdWords"
	ConnectionCategoryGoogleBigQuery           ConnectionCategory = "GoogleBigQuery"
	ConnectionCategoryGoogleCloudStorage       ConnectionCategory = "GoogleCloudStorage"
	ConnectionCategoryGreenplum                ConnectionCategory = "Greenplum"
	ConnectionCategoryHbase                    ConnectionCategory = "Hbase"
	ConnectionCategoryHdfs                     ConnectionCategory = "Hdfs"
	ConnectionCategoryHive                     ConnectionCategory = "Hive"
	ConnectionCategoryHubspot                  ConnectionCategory = "Hubspot"
	ConnectionCategoryImpala                   ConnectionCategory = "Impala"
	ConnectionCategoryInformix                 ConnectionCategory = "Informix"
	ConnectionCategoryJira                     ConnectionCategory = "Jira"
	ConnectionCategoryMagento                  ConnectionCategory = "Magento"
	ConnectionCategoryMariaDb                  ConnectionCategory = "MariaDb"
	ConnectionCategoryMarketo                  ConnectionCategory = "Marketo"
	ConnectionCategoryMicrosoftAccess          ConnectionCategory = "MicrosoftAccess"
	ConnectionCategoryMongoDbAtlas             ConnectionCategory = "MongoDbAtlas"
	ConnectionCategoryMongoDbVTwo              ConnectionCategory = "MongoDbV2"
	ConnectionCategoryMySql                    ConnectionCategory = "MySql"
	ConnectionCategoryNetezza                  ConnectionCategory = "Netezza"
	ConnectionCategoryODataRest                ConnectionCategory = "ODataRest"
	ConnectionCategoryOdbc                     ConnectionCategory = "Odbc"
	ConnectionCategoryOfficeThreeSixFive       ConnectionCategory = "Office365"
	ConnectionCategoryOpenAI                   ConnectionCategory = "OpenAI"
	ConnectionCategoryOracle                   ConnectionCategory = "Oracle"
	ConnectionCategoryOracleCloudStorage       ConnectionCategory = "OracleCloudStorage"
	ConnectionCategoryOracleServiceCloud       ConnectionCategory = "OracleServiceCloud"
	ConnectionCategoryPayPal                   ConnectionCategory = "PayPal"
	ConnectionCategoryPhoenix                  ConnectionCategory = "Phoenix"
	ConnectionCategoryPostgreSql               ConnectionCategory = "PostgreSql"
	ConnectionCategoryPresto                   ConnectionCategory = "Presto"
	ConnectionCategoryPythonFeed               ConnectionCategory = "PythonFeed"
	ConnectionCategoryQuickBooks               ConnectionCategory = "QuickBooks"
	ConnectionCategoryRedis                    ConnectionCategory = "Redis"
	ConnectionCategoryResponsys                ConnectionCategory = "Responsys"
	ConnectionCategorySThree                   ConnectionCategory = "S3"
	ConnectionCategorySalesforce               ConnectionCategory = "Salesforce"
	ConnectionCategorySalesforceMarketingCloud ConnectionCategory = "SalesforceMarketingCloud"
	ConnectionCategorySalesforceServiceCloud   ConnectionCategory = "SalesforceServiceCloud"
	ConnectionCategorySapBw                    ConnectionCategory = "SapBw"
	ConnectionCategorySapCloudForCustomer      ConnectionCategory = "SapCloudForCustomer"
	ConnectionCategorySapEcc                   ConnectionCategory = "SapEcc"
	ConnectionCategorySapHana                  ConnectionCategory = "SapHana"
	ConnectionCategorySapOpenHub               ConnectionCategory = "SapOpenHub"
	ConnectionCategorySapTable                 ConnectionCategory = "SapTable"
	ConnectionCategorySerp                     ConnectionCategory = "Serp"
	ConnectionCategoryServerless               ConnectionCategory = "Serverless"
	ConnectionCategoryServiceNow               ConnectionCategory = "ServiceNow"
	ConnectionCategorySftp                     ConnectionCategory = "Sftp"
	ConnectionCategorySharePointOnlineList     ConnectionCategory = "SharePointOnlineList"
	ConnectionCategoryShopify                  ConnectionCategory = "Shopify"
	ConnectionCategorySnowflake                ConnectionCategory = "Snowflake"
	ConnectionCategorySpark                    ConnectionCategory = "Spark"
	ConnectionCategorySqlServer                ConnectionCategory = "SqlServer"
	ConnectionCategorySquare                   ConnectionCategory = "Square"
	ConnectionCategorySybase                   ConnectionCategory = "Sybase"
	ConnectionCategoryTeradata                 ConnectionCategory = "Teradata"
	ConnectionCategoryVertica                  ConnectionCategory = "Vertica"
	ConnectionCategoryWebTable                 ConnectionCategory = "WebTable"
	ConnectionCategoryXero                     ConnectionCategory = "Xero"
	ConnectionCategoryZoho                     ConnectionCategory = "Zoho"
)

func (*ConnectionCategory) UnmarshalJSON

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

type ConnectionGroup

type ConnectionGroup string
const (
	ConnectionGroupAzure           ConnectionGroup = "Azure"
	ConnectionGroupAzureAI         ConnectionGroup = "AzureAI"
	ConnectionGroupDatabase        ConnectionGroup = "Database"
	ConnectionGroupFile            ConnectionGroup = "File"
	ConnectionGroupGenericProtocol ConnectionGroup = "GenericProtocol"
	ConnectionGroupNoSQL           ConnectionGroup = "NoSQL"
	ConnectionGroupServicesAndApps ConnectionGroup = "ServicesAndApps"
)

func (*ConnectionGroup) UnmarshalJSON

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

type ConnectionId

type ConnectionId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	ConnectionName    string
}

ConnectionId is a struct representing the Resource ID for a Connection

func NewConnectionID

func NewConnectionID(subscriptionId string, resourceGroupName string, workspaceName string, connectionName string) ConnectionId

NewConnectionID returns a new ConnectionId struct

func ParseConnectionID

func ParseConnectionID(input string) (*ConnectionId, error)

ParseConnectionID parses 'input' into a ConnectionId

func ParseConnectionIDInsensitively

func ParseConnectionIDInsensitively(input string) (*ConnectionId, error)

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

func (*ConnectionId) FromParseResult

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

func (ConnectionId) ID

func (id ConnectionId) ID() string

ID returns the formatted Connection ID

func (ConnectionId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Connection ID

func (ConnectionId) String

func (id ConnectionId) String() string

String returns a human-readable description of this Connection ID

type CustomKeys

type CustomKeys struct {
	Keys *map[string]string `json:"keys,omitempty"`
}

type CustomKeysWorkspaceConnectionProperties

type CustomKeysWorkspaceConnectionProperties struct {
	Credentials *CustomKeys `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*CustomKeysWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (o *CustomKeysWorkspaceConnectionProperties) GetExpiryTimeAsTime() (*time.Time, error)

func (CustomKeysWorkspaceConnectionProperties) MarshalJSON

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

func (*CustomKeysWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *CustomKeysWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (CustomKeysWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type ManagedIdentityAuthTypeWorkspaceConnectionProperties

type ManagedIdentityAuthTypeWorkspaceConnectionProperties struct {
	Credentials *WorkspaceConnectionManagedIdentity `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*ManagedIdentityAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (ManagedIdentityAuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*ManagedIdentityAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *ManagedIdentityAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (ManagedIdentityAuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type NoneAuthTypeWorkspaceConnectionProperties

type NoneAuthTypeWorkspaceConnectionProperties struct {
	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*NoneAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (o *NoneAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime() (*time.Time, error)

func (NoneAuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*NoneAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *NoneAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (NoneAuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type OAuth2AuthTypeWorkspaceConnectionProperties

type OAuth2AuthTypeWorkspaceConnectionProperties struct {
	Credentials *WorkspaceConnectionOAuth2 `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*OAuth2AuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (o *OAuth2AuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime() (*time.Time, error)

func (OAuth2AuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*OAuth2AuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *OAuth2AuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (OAuth2AuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type PATAuthTypeWorkspaceConnectionProperties

type PATAuthTypeWorkspaceConnectionProperties struct {
	Credentials *WorkspaceConnectionPersonalAccessToken `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*PATAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (o *PATAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime() (*time.Time, error)

func (PATAuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*PATAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *PATAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (PATAuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type RawWorkspaceConnectionPropertiesV2Impl

type RawWorkspaceConnectionPropertiesV2Impl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

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

func (RawWorkspaceConnectionPropertiesV2Impl) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type SASAuthTypeWorkspaceConnectionProperties

type SASAuthTypeWorkspaceConnectionProperties struct {
	Credentials *WorkspaceConnectionSharedAccessSignature `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*SASAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (o *SASAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime() (*time.Time, error)

func (SASAuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*SASAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *SASAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (SASAuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type ServicePrincipalAuthTypeWorkspaceConnectionProperties

type ServicePrincipalAuthTypeWorkspaceConnectionProperties struct {
	Credentials *WorkspaceConnectionServicePrincipal `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*ServicePrincipalAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (ServicePrincipalAuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*ServicePrincipalAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *ServicePrincipalAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (ServicePrincipalAuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type UsernamePasswordAuthTypeWorkspaceConnectionProperties

type UsernamePasswordAuthTypeWorkspaceConnectionProperties struct {
	Credentials *WorkspaceConnectionUsernamePassword `json:"credentials,omitempty"`

	AuthType                ConnectionAuthType  `json:"authType"`
	Category                *ConnectionCategory `json:"category,omitempty"`
	CreatedByWorkspaceArmId *string             `json:"createdByWorkspaceArmId,omitempty"`
	ExpiryTime              *string             `json:"expiryTime,omitempty"`
	Group                   *ConnectionGroup    `json:"group,omitempty"`
	IsSharedToAll           *bool               `json:"isSharedToAll,omitempty"`
	Metadata                *map[string]string  `json:"metadata,omitempty"`
	SharedUserList          *[]string           `json:"sharedUserList,omitempty"`
	Target                  *string             `json:"target,omitempty"`
	Value                   *string             `json:"value,omitempty"`
	ValueFormat             *ValueFormat        `json:"valueFormat,omitempty"`
}

func (*UsernamePasswordAuthTypeWorkspaceConnectionProperties) GetExpiryTimeAsTime

func (UsernamePasswordAuthTypeWorkspaceConnectionProperties) MarshalJSON

func (*UsernamePasswordAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime

func (o *UsernamePasswordAuthTypeWorkspaceConnectionProperties) SetExpiryTimeAsTime(input time.Time)

func (UsernamePasswordAuthTypeWorkspaceConnectionProperties) WorkspaceConnectionPropertiesV2 added in v0.20240920.1135249

type V2WorkspaceConnectionResourceClient

type V2WorkspaceConnectionResourceClient struct {
	Client *resourcemanager.Client
}

func NewV2WorkspaceConnectionResourceClientWithBaseURI

func NewV2WorkspaceConnectionResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*V2WorkspaceConnectionResourceClient, error)

func (V2WorkspaceConnectionResourceClient) WorkspaceConnectionsCreate

WorkspaceConnectionsCreate ...

func (V2WorkspaceConnectionResourceClient) WorkspaceConnectionsDelete

WorkspaceConnectionsDelete ...

func (V2WorkspaceConnectionResourceClient) WorkspaceConnectionsGet

WorkspaceConnectionsGet ...

func (V2WorkspaceConnectionResourceClient) WorkspaceConnectionsList

WorkspaceConnectionsList ...

func (V2WorkspaceConnectionResourceClient) WorkspaceConnectionsListComplete

WorkspaceConnectionsListComplete retrieves all the results into a single object

func (V2WorkspaceConnectionResourceClient) WorkspaceConnectionsListCompleteMatchingPredicate

WorkspaceConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (V2WorkspaceConnectionResourceClient) WorkspaceConnectionsListSecrets

WorkspaceConnectionsListSecrets ...

type ValueFormat

type ValueFormat string
const (
	ValueFormatJSON ValueFormat = "JSON"
)

func (*ValueFormat) UnmarshalJSON

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

type WorkspaceConnectionAccessKey

type WorkspaceConnectionAccessKey struct {
	AccessKeyId     *string `json:"accessKeyId,omitempty"`
	SecretAccessKey *string `json:"secretAccessKey,omitempty"`
}

type WorkspaceConnectionAccountKey added in v0.20240611.1112045

type WorkspaceConnectionAccountKey struct {
	Key *string `json:"key,omitempty"`
}

type WorkspaceConnectionApiKey

type WorkspaceConnectionApiKey struct {
	Key *string `json:"key,omitempty"`
}

type WorkspaceConnectionManagedIdentity

type WorkspaceConnectionManagedIdentity struct {
	ClientId   *string `json:"clientId,omitempty"`
	ResourceId *string `json:"resourceId,omitempty"`
}

type WorkspaceConnectionOAuth2

type WorkspaceConnectionOAuth2 struct {
	AuthURL        *string `json:"authUrl,omitempty"`
	ClientId       *string `json:"clientId,omitempty"`
	ClientSecret   *string `json:"clientSecret,omitempty"`
	DeveloperToken *string `json:"developerToken,omitempty"`
	Password       *string `json:"password,omitempty"`
	RefreshToken   *string `json:"refreshToken,omitempty"`
	TenantId       *string `json:"tenantId,omitempty"`
	Username       *string `json:"username,omitempty"`
}

type WorkspaceConnectionPersonalAccessToken

type WorkspaceConnectionPersonalAccessToken struct {
	Pat *string `json:"pat,omitempty"`
}

type WorkspaceConnectionPropertiesV2

type WorkspaceConnectionPropertiesV2 interface {
	WorkspaceConnectionPropertiesV2() BaseWorkspaceConnectionPropertiesV2Impl
}

func UnmarshalWorkspaceConnectionPropertiesV2Implementation added in v0.20240920.1135249

func UnmarshalWorkspaceConnectionPropertiesV2Implementation(input []byte) (WorkspaceConnectionPropertiesV2, error)

type WorkspaceConnectionPropertiesV2BasicResource

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

func (*WorkspaceConnectionPropertiesV2BasicResource) UnmarshalJSON

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

type WorkspaceConnectionPropertiesV2BasicResourceOperationPredicate

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

func (WorkspaceConnectionPropertiesV2BasicResourceOperationPredicate) Matches

type WorkspaceConnectionServicePrincipal

type WorkspaceConnectionServicePrincipal struct {
	ClientId     *string `json:"clientId,omitempty"`
	ClientSecret *string `json:"clientSecret,omitempty"`
	TenantId     *string `json:"tenantId,omitempty"`
}

type WorkspaceConnectionSharedAccessSignature

type WorkspaceConnectionSharedAccessSignature struct {
	Sas *string `json:"sas,omitempty"`
}

type WorkspaceConnectionUsernamePassword

type WorkspaceConnectionUsernamePassword struct {
	Password      *string `json:"password,omitempty"`
	SecurityToken *string `json:"securityToken,omitempty"`
	Username      *string `json:"username,omitempty"`
}

type WorkspaceConnectionsCreateOperationResponse

type WorkspaceConnectionsCreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkspaceConnectionPropertiesV2BasicResource
}

type WorkspaceConnectionsDeleteOperationResponse

type WorkspaceConnectionsDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WorkspaceConnectionsGetOperationResponse

type WorkspaceConnectionsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkspaceConnectionPropertiesV2BasicResource
}

type WorkspaceConnectionsListCompleteResult

type WorkspaceConnectionsListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []WorkspaceConnectionPropertiesV2BasicResource
}

type WorkspaceConnectionsListCustomPager added in v0.20240628.1153531

type WorkspaceConnectionsListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *WorkspaceConnectionsListCustomPager) NextPageLink() *odata.Link

type WorkspaceConnectionsListOperationOptions

type WorkspaceConnectionsListOperationOptions struct {
	Category *string
	Target   *string
}

func DefaultWorkspaceConnectionsListOperationOptions

func DefaultWorkspaceConnectionsListOperationOptions() WorkspaceConnectionsListOperationOptions

func (WorkspaceConnectionsListOperationOptions) ToHeaders

func (WorkspaceConnectionsListOperationOptions) ToOData

func (WorkspaceConnectionsListOperationOptions) ToQuery

type WorkspaceConnectionsListOperationResponse

type WorkspaceConnectionsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]WorkspaceConnectionPropertiesV2BasicResource
}

type WorkspaceConnectionsListSecretsOperationResponse

type WorkspaceConnectionsListSecretsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkspaceConnectionPropertiesV2BasicResource
}

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

Jump to

Keyboard shortcuts

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