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 ¶
- func PossibleValuesForType() []string
- func ValidateDataExportID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DataExport
- type DataExportClient
- func (c DataExportClient) CreateOrUpdate(ctx context.Context, id DataExportId, input DataExport) (result CreateOrUpdateOperationResponse, err error)
- func (c DataExportClient) Delete(ctx context.Context, id DataExportId) (result DeleteOperationResponse, err error)
- func (c DataExportClient) Get(ctx context.Context, id DataExportId) (result GetOperationResponse, err error)
- func (c DataExportClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error)
- type DataExportId
- type DataExportListResult
- type DataExportProperties
- type DeleteOperationResponse
- type Destination
- type DestinationMetaData
- type GetOperationResponse
- type ListByWorkspaceOperationResponse
- type Type
- type WorkspaceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForType ¶
func PossibleValuesForType() []string
func ValidateDataExportID ¶
ValidateDataExportID checks that 'input' can be parsed as a Data Export ID
func ValidateWorkspaceID ¶
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 ¶
func (c DataExportClient) Delete(ctx context.Context, id DataExportId) (result DeleteOperationResponse, err error)
Delete ...
func (DataExportClient) Get ¶
func (c DataExportClient) Get(ctx context.Context, id DataExportId) (result GetOperationResponse, err error)
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) FromParseResult ¶
func (id *DataExportId) FromParseResult(input resourceids.ParseResult) error
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 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 WorkspaceId ¶
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) 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