sqlpoolstables

package
v0.20240228.1135502 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/sqlpoolstables Documentation

The sqlpoolstables SDK allows for interaction with the Azure Resource Manager Service synapse (API Version 2021-06-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/synapse/2021-06-01/sqlpoolstables"

Client Initialization

client := sqlpoolstables.NewSqlPoolsTablesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlPoolsTablesClient.SqlPoolTableColumnsListByTableName

ctx := context.TODO()
id := sqlpoolstables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue", "schemaValue", "tableValue")

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

Example Usage: SqlPoolsTablesClient.SqlPoolTablesListBySchema

ctx := context.TODO()
id := sqlpoolstables.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue", "schemaValue")

// alternatively `client.SqlPoolTablesListBySchema(ctx, id, sqlpoolstables.DefaultSqlPoolTablesListBySchemaOperationOptions())` can be used to do batched pagination
items, err := client.SqlPoolTablesListBySchemaComplete(ctx, id, sqlpoolstables.DefaultSqlPoolTablesListBySchemaOperationOptions())
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 PossibleValuesForColumnDataType

func PossibleValuesForColumnDataType() []string

func ValidateSchemaID

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

ValidateSchemaID checks that 'input' can be parsed as a Schema ID

func ValidateTableID

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

ValidateTableID checks that 'input' can be parsed as a Table ID

Types

type ColumnDataType

type ColumnDataType string
const (
	ColumnDataTypeBigint           ColumnDataType = "bigint"
	ColumnDataTypeBinary           ColumnDataType = "binary"
	ColumnDataTypeBit              ColumnDataType = "bit"
	ColumnDataTypeChar             ColumnDataType = "char"
	ColumnDataTypeDate             ColumnDataType = "date"
	ColumnDataTypeDatetime         ColumnDataType = "datetime"
	ColumnDataTypeDatetimeTwo      ColumnDataType = "datetime2"
	ColumnDataTypeDatetimeoffset   ColumnDataType = "datetimeoffset"
	ColumnDataTypeDecimal          ColumnDataType = "decimal"
	ColumnDataTypeFloat            ColumnDataType = "float"
	ColumnDataTypeGeography        ColumnDataType = "geography"
	ColumnDataTypeGeometry         ColumnDataType = "geometry"
	ColumnDataTypeHierarchyid      ColumnDataType = "hierarchyid"
	ColumnDataTypeImage            ColumnDataType = "image"
	ColumnDataTypeInt              ColumnDataType = "int"
	ColumnDataTypeMoney            ColumnDataType = "money"
	ColumnDataTypeNchar            ColumnDataType = "nchar"
	ColumnDataTypeNtext            ColumnDataType = "ntext"
	ColumnDataTypeNumeric          ColumnDataType = "numeric"
	ColumnDataTypeNvarchar         ColumnDataType = "nvarchar"
	ColumnDataTypeReal             ColumnDataType = "real"
	ColumnDataTypeSmalldatetime    ColumnDataType = "smalldatetime"
	ColumnDataTypeSmallint         ColumnDataType = "smallint"
	ColumnDataTypeSmallmoney       ColumnDataType = "smallmoney"
	ColumnDataTypeSqlVariant       ColumnDataType = "sql_variant"
	ColumnDataTypeSysname          ColumnDataType = "sysname"
	ColumnDataTypeText             ColumnDataType = "text"
	ColumnDataTypeTime             ColumnDataType = "time"
	ColumnDataTypeTimestamp        ColumnDataType = "timestamp"
	ColumnDataTypeTinyint          ColumnDataType = "tinyint"
	ColumnDataTypeUniqueidentifier ColumnDataType = "uniqueidentifier"
	ColumnDataTypeVarbinary        ColumnDataType = "varbinary"
	ColumnDataTypeVarchar          ColumnDataType = "varchar"
	ColumnDataTypeXml              ColumnDataType = "xml"
)

func (*ColumnDataType) UnmarshalJSON

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

type Resource

type Resource struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

type ResourceOperationPredicate

type ResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ResourceOperationPredicate) Matches

func (p ResourceOperationPredicate) Matches(input Resource) bool

type SchemaId

type SchemaId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	SqlPoolName       string
	SchemaName        string
}

SchemaId is a struct representing the Resource ID for a Schema

func NewSchemaID

func NewSchemaID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string) SchemaId

NewSchemaID returns a new SchemaId struct

func ParseSchemaID

func ParseSchemaID(input string) (*SchemaId, error)

ParseSchemaID parses 'input' into a SchemaId

func ParseSchemaIDInsensitively

func ParseSchemaIDInsensitively(input string) (*SchemaId, error)

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

func (*SchemaId) FromParseResult

func (id *SchemaId) FromParseResult(input resourceids.ParseResult) error

func (SchemaId) ID

func (id SchemaId) ID() string

ID returns the formatted Schema ID

func (SchemaId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Schema ID

func (SchemaId) String

func (id SchemaId) String() string

String returns a human-readable description of this Schema ID

type SqlPoolColumn

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

type SqlPoolColumnOperationPredicate

type SqlPoolColumnOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (SqlPoolColumnOperationPredicate) Matches

type SqlPoolColumnProperties

type SqlPoolColumnProperties struct {
	ColumnType *ColumnDataType `json:"columnType,omitempty"`
	IsComputed *bool           `json:"isComputed,omitempty"`
}

type SqlPoolTableColumnsListByTableNameCompleteResult

type SqlPoolTableColumnsListByTableNameCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SqlPoolColumn
}

type SqlPoolTableColumnsListByTableNameOperationOptions

type SqlPoolTableColumnsListByTableNameOperationOptions struct {
	Filter *string
}

func DefaultSqlPoolTableColumnsListByTableNameOperationOptions

func DefaultSqlPoolTableColumnsListByTableNameOperationOptions() SqlPoolTableColumnsListByTableNameOperationOptions

func (SqlPoolTableColumnsListByTableNameOperationOptions) ToHeaders

func (SqlPoolTableColumnsListByTableNameOperationOptions) ToOData

func (SqlPoolTableColumnsListByTableNameOperationOptions) ToQuery

type SqlPoolTableColumnsListByTableNameOperationResponse

type SqlPoolTableColumnsListByTableNameOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SqlPoolColumn
}

type SqlPoolTablesListBySchemaCompleteResult

type SqlPoolTablesListBySchemaCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Resource
}

type SqlPoolTablesListBySchemaOperationOptions

type SqlPoolTablesListBySchemaOperationOptions struct {
	Filter *string
}

func DefaultSqlPoolTablesListBySchemaOperationOptions

func DefaultSqlPoolTablesListBySchemaOperationOptions() SqlPoolTablesListBySchemaOperationOptions

func (SqlPoolTablesListBySchemaOperationOptions) ToHeaders

func (SqlPoolTablesListBySchemaOperationOptions) ToOData

func (SqlPoolTablesListBySchemaOperationOptions) ToQuery

type SqlPoolTablesListBySchemaOperationResponse

type SqlPoolTablesListBySchemaOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Resource
}

type SqlPoolsTablesClient

type SqlPoolsTablesClient struct {
	Client *resourcemanager.Client
}

func NewSqlPoolsTablesClientWithBaseURI

func NewSqlPoolsTablesClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsTablesClient, error)

func (SqlPoolsTablesClient) SqlPoolTableColumnsListByTableName

SqlPoolTableColumnsListByTableName ...

func (SqlPoolsTablesClient) SqlPoolTableColumnsListByTableNameComplete

SqlPoolTableColumnsListByTableNameComplete retrieves all the results into a single object

func (SqlPoolsTablesClient) SqlPoolTableColumnsListByTableNameCompleteMatchingPredicate

func (c SqlPoolsTablesClient) SqlPoolTableColumnsListByTableNameCompleteMatchingPredicate(ctx context.Context, id TableId, options SqlPoolTableColumnsListByTableNameOperationOptions, predicate SqlPoolColumnOperationPredicate) (result SqlPoolTableColumnsListByTableNameCompleteResult, err error)

SqlPoolTableColumnsListByTableNameCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SqlPoolsTablesClient) SqlPoolTablesListBySchema

SqlPoolTablesListBySchema ...

func (SqlPoolsTablesClient) SqlPoolTablesListBySchemaComplete

SqlPoolTablesListBySchemaComplete retrieves all the results into a single object

func (SqlPoolsTablesClient) SqlPoolTablesListBySchemaCompleteMatchingPredicate

func (c SqlPoolsTablesClient) SqlPoolTablesListBySchemaCompleteMatchingPredicate(ctx context.Context, id SchemaId, options SqlPoolTablesListBySchemaOperationOptions, predicate ResourceOperationPredicate) (result SqlPoolTablesListBySchemaCompleteResult, err error)

SqlPoolTablesListBySchemaCompleteMatchingPredicate retrieves all the results and then applies the predicate

type TableId

type TableId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	SqlPoolName       string
	SchemaName        string
	TableName         string
}

TableId is a struct representing the Resource ID for a Table

func NewTableID

func NewTableID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string) TableId

NewTableID returns a new TableId struct

func ParseTableID

func ParseTableID(input string) (*TableId, error)

ParseTableID parses 'input' into a TableId

func ParseTableIDInsensitively

func ParseTableIDInsensitively(input string) (*TableId, error)

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) FromParseResult

func (id *TableId) FromParseResult(input resourceids.ParseResult) error

func (TableId) ID

func (id TableId) ID() string

ID returns the formatted Table ID

func (TableId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Table ID

func (TableId) String

func (id TableId) String() string

String returns a human-readable description of this Table ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL