linkedstorageaccounts

package
v0.20220715.1104737 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MPL-2.0 Imports: 7 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts Documentation

The linkedstorageaccounts SDK allows for interaction with the Azure Resource Manager Service operationalinsights (API Version 2020-08-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/operationalinsights/2020-08-01/linkedstorageaccounts"

Client Initialization

client := linkedstorageaccounts.NewLinkedStorageAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LinkedStorageAccountsClient.CreateOrUpdate

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

payload := linkedstorageaccounts.LinkedStorageAccountsResource{
	// ...
}


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

Example Usage: LinkedStorageAccountsClient.Delete

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

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

Example Usage: LinkedStorageAccountsClient.Get

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

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

Example Usage: LinkedStorageAccountsClient.ListByWorkspace

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

read, err := client.ListByWorkspace(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 PossibleValuesForDataSourceType

func PossibleValuesForDataSourceType() []string

func ValidateDataSourceTypeID

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

ValidateDataSourceTypeID checks that 'input' can be parsed as a Data Source Type 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 CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *LinkedStorageAccountsResource
}

type DataSourceType

type DataSourceType string
const (
	DataSourceTypeAlerts      DataSourceType = "Alerts"
	DataSourceTypeAzureWatson DataSourceType = "AzureWatson"
	DataSourceTypeCustomLogs  DataSourceType = "CustomLogs"
	DataSourceTypeIngestion   DataSourceType = "Ingestion"
	DataSourceTypeQuery       DataSourceType = "Query"
)

type DataSourceTypeId

type DataSourceTypeId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	DataSourceType    DataSourceType
}

DataSourceTypeId is a struct representing the Resource ID for a Data Source Type

func NewDataSourceTypeID

func NewDataSourceTypeID(subscriptionId string, resourceGroupName string, workspaceName string, dataSourceType DataSourceType) DataSourceTypeId

NewDataSourceTypeID returns a new DataSourceTypeId struct

func ParseDataSourceTypeID

func ParseDataSourceTypeID(input string) (*DataSourceTypeId, error)

ParseDataSourceTypeID parses 'input' into a DataSourceTypeId

func ParseDataSourceTypeIDInsensitively

func ParseDataSourceTypeIDInsensitively(input string) (*DataSourceTypeId, error)

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

func (DataSourceTypeId) ID

func (id DataSourceTypeId) ID() string

ID returns the formatted Data Source Type ID

func (DataSourceTypeId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Data Source Type ID

func (DataSourceTypeId) String

func (id DataSourceTypeId) String() string

String returns a human-readable description of this Data Source Type ID

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *LinkedStorageAccountsResource
}

type LinkedStorageAccountsClient

type LinkedStorageAccountsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewLinkedStorageAccountsClientWithBaseURI

func NewLinkedStorageAccountsClientWithBaseURI(endpoint string) LinkedStorageAccountsClient

func (LinkedStorageAccountsClient) CreateOrUpdate

CreateOrUpdate ...

func (LinkedStorageAccountsClient) Delete

Delete ...

func (LinkedStorageAccountsClient) Get

Get ...

func (LinkedStorageAccountsClient) ListByWorkspace

ListByWorkspace ...

type LinkedStorageAccountsListResult

type LinkedStorageAccountsListResult struct {
	Value *[]LinkedStorageAccountsResource `json:"value,omitempty"`
}

type LinkedStorageAccountsProperties

type LinkedStorageAccountsProperties struct {
	DataSourceType    *DataSourceType `json:"dataSourceType,omitempty"`
	StorageAccountIds *[]string       `json:"storageAccountIds,omitempty"`
}

type LinkedStorageAccountsResource

type LinkedStorageAccountsResource struct {
	Id         *string                         `json:"id,omitempty"`
	Name       *string                         `json:"name,omitempty"`
	Properties LinkedStorageAccountsProperties `json:"properties"`
	Type       *string                         `json:"type,omitempty"`
}

type ListByWorkspaceOperationResponse

type ListByWorkspaceOperationResponse struct {
	HttpResponse *http.Response
	Model        *LinkedStorageAccountsListResult
}

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