README
¶
github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/tables
Documentation
The tables
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/tables"
Client Initialization
client := tables.NewTablesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: TablesClient.Get
ctx := context.TODO()
id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "tableValue")
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: TablesClient.ListByWorkspace
ctx := context.TODO()
id := tables.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
}
Example Usage: TablesClient.Update
ctx := context.TODO()
id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "tableValue")
payload := tables.Table{
// ...
}
read, err := client.Update(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation
¶
Index ¶
- func ValidateTableID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByWorkspaceOperationResponse
- type Table
- type TableId
- type TableProperties
- type TablesClient
- func (c TablesClient) Get(ctx context.Context, id TableId) (result GetOperationResponse, err error)
- func (c TablesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error)
- func (c TablesClient) Update(ctx context.Context, id TableId, input Table) (result UpdateOperationResponse, err error)
- type TablesListResult
- type UpdateOperationResponse
- type WorkspaceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateTableID ¶
ValidateTableID checks that 'input' can be parsed as a Table ID
func ValidateWorkspaceID ¶
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID
Types ¶
type GetOperationResponse ¶
type ListByWorkspaceOperationResponse ¶
type ListByWorkspaceOperationResponse struct { HttpResponse *http.Response Model *TablesListResult }
type Table ¶
type Table struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *TableProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type TableId ¶
type TableId struct { SubscriptionId string ResourceGroupName string WorkspaceName string TableName string }
TableId is a struct representing the Resource ID for a Table
func NewTableID ¶
func NewTableID(subscriptionId string, resourceGroupName string, workspaceName string, tableName string) TableId
NewTableID returns a new TableId struct
func ParseTableID ¶
ParseTableID parses 'input' into a TableId
func ParseTableIDInsensitively ¶
ParseTableIDInsensitively parses 'input' case-insensitively into a TableId note: this method should only be used for API response data and not user input
func (TableId) Segments ¶
func (id TableId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Table ID
type TableProperties ¶
type TableProperties struct {
RetentionInDays *int64 `json:"retentionInDays,omitempty"`
}
type TablesClient ¶
func NewTablesClientWithBaseURI ¶
func NewTablesClientWithBaseURI(endpoint string) TablesClient
func (TablesClient) Get ¶
func (c TablesClient) Get(ctx context.Context, id TableId) (result GetOperationResponse, err error)
Get ...
func (TablesClient) ListByWorkspace ¶
func (c TablesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error)
ListByWorkspace ...
func (TablesClient) Update ¶
func (c TablesClient) Update(ctx context.Context, id TableId, input Table) (result UpdateOperationResponse, err error)
Update ...
type TablesListResult ¶
type TablesListResult struct {
Value *[]Table `json:"value,omitempty"`
}
type UpdateOperationResponse ¶
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) 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