datasources

package
v0.20231116.1162710 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

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

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

Client Initialization

client := datasources.NewDataSourcesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DataSourcesClient.CreateOrUpdate

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

payload := datasources.DataSource{
	// ...
}


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: DataSourcesClient.Delete

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

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: DataSourcesClient.Get

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

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: DataSourcesClient.ListByWorkspace

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDataSourceKind

func PossibleValuesForDataSourceKind() []string

func ValidateDataSourceID

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

ValidateDataSourceID checks that 'input' can be parsed as a Data Source 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
	OData        *odata.OData
	Model        *DataSource
}

type DataSource

type DataSource struct {
	Etag       *string            `json:"etag,omitempty"`
	Id         *string            `json:"id,omitempty"`
	Kind       DataSourceKind     `json:"kind"`
	Name       *string            `json:"name,omitempty"`
	Properties interface{}        `json:"properties"`
	Tags       *map[string]string `json:"tags,omitempty"`
	Type       *string            `json:"type,omitempty"`
}

type DataSourceId

type DataSourceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	DataSourceName    string
}

DataSourceId is a struct representing the Resource ID for a Data Source

func NewDataSourceID

func NewDataSourceID(subscriptionId string, resourceGroupName string, workspaceName string, dataSourceName string) DataSourceId

NewDataSourceID returns a new DataSourceId struct

func ParseDataSourceID

func ParseDataSourceID(input string) (*DataSourceId, error)

ParseDataSourceID parses 'input' into a DataSourceId

func ParseDataSourceIDInsensitively

func ParseDataSourceIDInsensitively(input string) (*DataSourceId, error)

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

func (DataSourceId) ID

func (id DataSourceId) ID() string

ID returns the formatted Data Source ID

func (DataSourceId) Segments

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

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

func (DataSourceId) String

func (id DataSourceId) String() string

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

type DataSourceKind

type DataSourceKind string
const (
	DataSourceKindApplicationInsights                                  DataSourceKind = "ApplicationInsights"
	DataSourceKindAzureActivityLog                                     DataSourceKind = "AzureActivityLog"
	DataSourceKindAzureAuditLog                                        DataSourceKind = "AzureAuditLog"
	DataSourceKindChangeTrackingContentLocation                        DataSourceKind = "ChangeTrackingContentLocation"
	DataSourceKindChangeTrackingCustomPath                             DataSourceKind = "ChangeTrackingCustomPath"
	DataSourceKindChangeTrackingDataTypeConfiguration                  DataSourceKind = "ChangeTrackingDataTypeConfiguration"
	DataSourceKindChangeTrackingDefaultRegistry                        DataSourceKind = "ChangeTrackingDefaultRegistry"
	DataSourceKindChangeTrackingLinuxPath                              DataSourceKind = "ChangeTrackingLinuxPath"
	DataSourceKindChangeTrackingPath                                   DataSourceKind = "ChangeTrackingPath"
	DataSourceKindChangeTrackingRegistry                               DataSourceKind = "ChangeTrackingRegistry"
	DataSourceKindChangeTrackingServices                               DataSourceKind = "ChangeTrackingServices"
	DataSourceKindCustomLog                                            DataSourceKind = "CustomLog"
	DataSourceKindCustomLogCollection                                  DataSourceKind = "CustomLogCollection"
	DataSourceKindDnsAnalytics                                         DataSourceKind = "DnsAnalytics"
	DataSourceKindGenericDataSource                                    DataSourceKind = "GenericDataSource"
	DataSourceKindIISLogs                                              DataSourceKind = "IISLogs"
	DataSourceKindImportComputerGroup                                  DataSourceKind = "ImportComputerGroup"
	DataSourceKindItsm                                                 DataSourceKind = "Itsm"
	DataSourceKindLinuxChangeTrackingPath                              DataSourceKind = "LinuxChangeTrackingPath"
	DataSourceKindLinuxPerformanceCollection                           DataSourceKind = "LinuxPerformanceCollection"
	DataSourceKindLinuxPerformanceObject                               DataSourceKind = "LinuxPerformanceObject"
	DataSourceKindLinuxSyslog                                          DataSourceKind = "LinuxSyslog"
	DataSourceKindLinuxSyslogCollection                                DataSourceKind = "LinuxSyslogCollection"
	DataSourceKindNetworkMonitoring                                    DataSourceKind = "NetworkMonitoring"
	DataSourceKindOfficeThreeSixFive                                   DataSourceKind = "Office365"
	DataSourceKindSecurityCenterSecurityWindowsBaselineConfiguration   DataSourceKind = "SecurityCenterSecurityWindowsBaselineConfiguration"
	DataSourceKindSecurityEventCollectionConfiguration                 DataSourceKind = "SecurityEventCollectionConfiguration"
	DataSourceKindSecurityInsightsSecurityEventCollectionConfiguration DataSourceKind = "SecurityInsightsSecurityEventCollectionConfiguration"
	DataSourceKindSecurityWindowsBaselineConfiguration                 DataSourceKind = "SecurityWindowsBaselineConfiguration"
	DataSourceKindSqlDataClassification                                DataSourceKind = "SqlDataClassification"
	DataSourceKindWindowsEvent                                         DataSourceKind = "WindowsEvent"
	DataSourceKindWindowsPerformanceCounter                            DataSourceKind = "WindowsPerformanceCounter"
	DataSourceKindWindowsTelemetry                                     DataSourceKind = "WindowsTelemetry"
)

func (*DataSourceKind) UnmarshalJSON added in v0.20230825.1030756

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

type DataSourceOperationPredicate

type DataSourceOperationPredicate struct {
	Etag       *string
	Id         *string
	Name       *string
	Properties *interface{}
	Type       *string
}

func (DataSourceOperationPredicate) Matches

func (p DataSourceOperationPredicate) Matches(input DataSource) bool

type DataSourcesClient

type DataSourcesClient struct {
	Client *resourcemanager.Client
}

func NewDataSourcesClientWithBaseURI

func NewDataSourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*DataSourcesClient, error)

func (DataSourcesClient) CreateOrUpdate

func (c DataSourcesClient) CreateOrUpdate(ctx context.Context, id DataSourceId, input DataSource) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (DataSourcesClient) Delete

Delete ...

func (DataSourcesClient) Get

Get ...

func (DataSourcesClient) ListByWorkspace

ListByWorkspace ...

func (DataSourcesClient) ListByWorkspaceComplete

ListByWorkspaceComplete retrieves all the results into a single object

func (DataSourcesClient) ListByWorkspaceCompleteMatchingPredicate

func (c DataSourcesClient) ListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListByWorkspaceOperationOptions, predicate DataSourceOperationPredicate) (result ListByWorkspaceCompleteResult, err error)

ListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate

type DeleteOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DataSource
}

type ListByWorkspaceCompleteResult

type ListByWorkspaceCompleteResult struct {
	Items []DataSource
}

type ListByWorkspaceOperationOptions

type ListByWorkspaceOperationOptions struct {
	Filter *string
}

func DefaultListByWorkspaceOperationOptions

func DefaultListByWorkspaceOperationOptions() ListByWorkspaceOperationOptions

func (ListByWorkspaceOperationOptions) ToHeaders added in v0.20230825.1030756

func (ListByWorkspaceOperationOptions) ToOData added in v0.20230825.1030756

func (ListByWorkspaceOperationOptions) ToQuery added in v0.20230825.1030756

type ListByWorkspaceOperationResponse

type ListByWorkspaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DataSource
}

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