dataexport

package
v0.20231101.1154023 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := dataexport.NewDataExportClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DataExportClient.CreateOrUpdate

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

payload := dataexport.DataExport{
	// ...
}


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

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

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

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

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

ctx := context.TODO()
id := dataexport.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 PossibleValuesForType

func PossibleValuesForType() []string

func ValidateDataExportID

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

ValidateDataExportID checks that 'input' can be parsed as a Data Export 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        *DataExport
}

type DataExport

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

type DataExportClient

type DataExportClient struct {
	Client *resourcemanager.Client
}

func NewDataExportClientWithBaseURI

func NewDataExportClientWithBaseURI(sdkApi sdkEnv.Api) (*DataExportClient, error)

func (DataExportClient) CreateOrUpdate

func (c DataExportClient) CreateOrUpdate(ctx context.Context, id DataExportId, input DataExport) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (DataExportClient) Delete

Delete ...

func (DataExportClient) Get

Get ...

func (DataExportClient) ListByWorkspace

func (c DataExportClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error)

ListByWorkspace ...

type DataExportId

type DataExportId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	DataExportName    string
}

DataExportId is a struct representing the Resource ID for a Data Export

func NewDataExportID

func NewDataExportID(subscriptionId string, resourceGroupName string, workspaceName string, dataExportName string) DataExportId

NewDataExportID returns a new DataExportId struct

func ParseDataExportID

func ParseDataExportID(input string) (*DataExportId, error)

ParseDataExportID parses 'input' into a DataExportId

func ParseDataExportIDInsensitively

func ParseDataExportIDInsensitively(input string) (*DataExportId, error)

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

func (DataExportId) ID

func (id DataExportId) ID() string

ID returns the formatted Data Export ID

func (DataExportId) Segments

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

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

func (DataExportId) String

func (id DataExportId) String() string

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

type DataExportListResult

type DataExportListResult struct {
	Value *[]DataExport `json:"value,omitempty"`
}

type DataExportProperties

type DataExportProperties struct {
	CreatedDate      *string      `json:"createdDate,omitempty"`
	DataExportId     *string      `json:"dataExportId,omitempty"`
	Destination      *Destination `json:"destination,omitempty"`
	Enable           *bool        `json:"enable,omitempty"`
	LastModifiedDate *string      `json:"lastModifiedDate,omitempty"`
	TableNames       []string     `json:"tableNames"`
}

type DeleteOperationResponse

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

type Destination

type Destination struct {
	MetaData   *DestinationMetaData `json:"metaData,omitempty"`
	ResourceId string               `json:"resourceId"`
	Type       *Type                `json:"type,omitempty"`
}

type DestinationMetaData

type DestinationMetaData struct {
	EventHubName *string `json:"eventHubName,omitempty"`
}

type GetOperationResponse

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

type ListByWorkspaceOperationResponse

type ListByWorkspaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DataExportListResult
}

type Type

type Type string
const (
	TypeEventHub       Type = "EventHub"
	TypeStorageAccount Type = "StorageAccount"
)

func (*Type) UnmarshalJSON added in v0.20230825.1030756

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

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