README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/sql/2018-06-01-preview/manageddatabasetables
Documentation
The manageddatabasetables
SDK allows for interaction with the Azure Resource Manager Service sql
(API Version 2018-06-01-preview
).
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/sql/2018-06-01-preview/manageddatabasetables"
Client Initialization
client := manageddatabasetables.NewManagedDatabaseTablesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ManagedDatabaseTablesClient.Get
ctx := context.TODO()
id := manageddatabasetables.NewSchemaTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue", "schemaValue", "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: ManagedDatabaseTablesClient.ListBySchema
ctx := context.TODO()
id := manageddatabasetables.NewDatabaseSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue", "schemaValue")
// alternatively `client.ListBySchema(ctx, id, manageddatabasetables.DefaultListBySchemaOperationOptions())` can be used to do batched pagination
items, err := client.ListBySchemaComplete(ctx, id, manageddatabasetables.DefaultListBySchemaOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidateDatabaseSchemaID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateSchemaTableID(input interface{}, key string) (warnings []string, errors []error)
- type DatabaseSchemaId
- type GetOperationResponse
- type ListBySchemaCompleteResult
- type ListBySchemaOperationOptions
- type ListBySchemaOperationResponse
- type ManagedDatabaseTablesClient
- func (c ManagedDatabaseTablesClient) Get(ctx context.Context, id SchemaTableId) (result GetOperationResponse, err error)
- func (c ManagedDatabaseTablesClient) ListBySchema(ctx context.Context, id DatabaseSchemaId, options ListBySchemaOperationOptions) (result ListBySchemaOperationResponse, err error)
- func (c ManagedDatabaseTablesClient) ListBySchemaComplete(ctx context.Context, id DatabaseSchemaId, options ListBySchemaOperationOptions) (ListBySchemaCompleteResult, error)
- func (c ManagedDatabaseTablesClient) ListBySchemaCompleteMatchingPredicate(ctx context.Context, id DatabaseSchemaId, options ListBySchemaOperationOptions, ...) (result ListBySchemaCompleteResult, err error)
- type Resource
- type ResourceOperationPredicate
- type SchemaTableId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateDatabaseSchemaID ¶
ValidateDatabaseSchemaID checks that 'input' can be parsed as a Database Schema ID
func ValidateSchemaTableID ¶
ValidateSchemaTableID checks that 'input' can be parsed as a Schema Table ID
Types ¶
type DatabaseSchemaId ¶
type DatabaseSchemaId struct { SubscriptionId string ResourceGroupName string ManagedInstanceName string DatabaseName string SchemaName string }
DatabaseSchemaId is a struct representing the Resource ID for a Database Schema
func NewDatabaseSchemaID ¶
func NewDatabaseSchemaID(subscriptionId string, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string) DatabaseSchemaId
NewDatabaseSchemaID returns a new DatabaseSchemaId struct
func ParseDatabaseSchemaID ¶
func ParseDatabaseSchemaID(input string) (*DatabaseSchemaId, error)
ParseDatabaseSchemaID parses 'input' into a DatabaseSchemaId
func ParseDatabaseSchemaIDInsensitively ¶
func ParseDatabaseSchemaIDInsensitively(input string) (*DatabaseSchemaId, error)
ParseDatabaseSchemaIDInsensitively parses 'input' case-insensitively into a DatabaseSchemaId note: this method should only be used for API response data and not user input
func (DatabaseSchemaId) ID ¶
func (id DatabaseSchemaId) ID() string
ID returns the formatted Database Schema ID
func (DatabaseSchemaId) Segments ¶
func (id DatabaseSchemaId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Database Schema ID
func (DatabaseSchemaId) String ¶
func (id DatabaseSchemaId) String() string
String returns a human-readable description of this Database Schema ID
type GetOperationResponse ¶
type ListBySchemaCompleteResult ¶
type ListBySchemaCompleteResult struct {
Items []Resource
}
type ListBySchemaOperationOptions ¶
type ListBySchemaOperationOptions struct {
Filter *string
}
func DefaultListBySchemaOperationOptions ¶
func DefaultListBySchemaOperationOptions() ListBySchemaOperationOptions
func (ListBySchemaOperationOptions) ToHeaders ¶
func (o ListBySchemaOperationOptions) ToHeaders() *client.Headers
func (ListBySchemaOperationOptions) ToOData ¶
func (o ListBySchemaOperationOptions) ToOData() *odata.Query
func (ListBySchemaOperationOptions) ToQuery ¶
func (o ListBySchemaOperationOptions) ToQuery() *client.QueryParams
type ManagedDatabaseTablesClient ¶
type ManagedDatabaseTablesClient struct {
Client *resourcemanager.Client
}
func NewManagedDatabaseTablesClientWithBaseURI ¶
func NewManagedDatabaseTablesClientWithBaseURI(api environments.Api) (*ManagedDatabaseTablesClient, error)
func (ManagedDatabaseTablesClient) Get ¶
func (c ManagedDatabaseTablesClient) Get(ctx context.Context, id SchemaTableId) (result GetOperationResponse, err error)
Get ...
func (ManagedDatabaseTablesClient) ListBySchema ¶
func (c ManagedDatabaseTablesClient) ListBySchema(ctx context.Context, id DatabaseSchemaId, options ListBySchemaOperationOptions) (result ListBySchemaOperationResponse, err error)
ListBySchema ...
func (ManagedDatabaseTablesClient) ListBySchemaComplete ¶
func (c ManagedDatabaseTablesClient) ListBySchemaComplete(ctx context.Context, id DatabaseSchemaId, options ListBySchemaOperationOptions) (ListBySchemaCompleteResult, error)
ListBySchemaComplete retrieves all the results into a single object
func (ManagedDatabaseTablesClient) ListBySchemaCompleteMatchingPredicate ¶
func (c ManagedDatabaseTablesClient) ListBySchemaCompleteMatchingPredicate(ctx context.Context, id DatabaseSchemaId, options ListBySchemaOperationOptions, predicate ResourceOperationPredicate) (result ListBySchemaCompleteResult, err error)
ListBySchemaCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ResourceOperationPredicate ¶
func (ResourceOperationPredicate) Matches ¶
func (p ResourceOperationPredicate) Matches(input Resource) bool
type SchemaTableId ¶
type SchemaTableId struct { SubscriptionId string ResourceGroupName string ManagedInstanceName string DatabaseName string SchemaName string TableName string }
SchemaTableId is a struct representing the Resource ID for a Schema Table
func NewSchemaTableID ¶
func NewSchemaTableID(subscriptionId string, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string) SchemaTableId
NewSchemaTableID returns a new SchemaTableId struct
func ParseSchemaTableID ¶
func ParseSchemaTableID(input string) (*SchemaTableId, error)
ParseSchemaTableID parses 'input' into a SchemaTableId
func ParseSchemaTableIDInsensitively ¶
func ParseSchemaTableIDInsensitively(input string) (*SchemaTableId, error)
ParseSchemaTableIDInsensitively parses 'input' case-insensitively into a SchemaTableId note: this method should only be used for API response data and not user input
func (SchemaTableId) ID ¶
func (id SchemaTableId) ID() string
ID returns the formatted Schema Table ID
func (SchemaTableId) Segments ¶
func (id SchemaTableId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Schema Table ID
func (SchemaTableId) String ¶
func (id SchemaTableId) String() string
String returns a human-readable description of this Schema Table ID