Documentation ¶
Index ¶
- func PossibleValuesForColumnDataType() []string
- func PossibleValuesForTableTemporalType() []string
- func ValidateColumnID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateTableID(input interface{}, key string) (warnings []string, errors []error)
- type ColumnDataType
- type ColumnId
- type DatabaseColumn
- type DatabaseColumnOperationPredicate
- type DatabaseColumnProperties
- type DatabaseColumnsClient
- func (c DatabaseColumnsClient) Get(ctx context.Context, id ColumnId) (result GetOperationResponse, err error)
- func (c DatabaseColumnsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId, ...) (result ListByDatabaseOperationResponse, err error)
- func (c DatabaseColumnsClient) ListByDatabaseComplete(ctx context.Context, id commonids.SqlDatabaseId, ...) (ListByDatabaseCompleteResult, error)
- func (c DatabaseColumnsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, ...) (result ListByDatabaseCompleteResult, err error)
- func (c DatabaseColumnsClient) ListByTable(ctx context.Context, id TableId, options ListByTableOperationOptions) (result ListByTableOperationResponse, err error)
- func (c DatabaseColumnsClient) ListByTableComplete(ctx context.Context, id TableId, options ListByTableOperationOptions) (ListByTableCompleteResult, error)
- func (c DatabaseColumnsClient) ListByTableCompleteMatchingPredicate(ctx context.Context, id TableId, options ListByTableOperationOptions, ...) (result ListByTableCompleteResult, err error)
- type GetOperationResponse
- type ListByDatabaseCompleteResult
- type ListByDatabaseOperationOptions
- type ListByDatabaseOperationResponse
- type ListByTableCompleteResult
- type ListByTableOperationOptions
- type ListByTableOperationResponse
- type TableId
- type TableTemporalType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForColumnDataType ¶
func PossibleValuesForColumnDataType() []string
func PossibleValuesForTableTemporalType ¶
func PossibleValuesForTableTemporalType() []string
func ValidateColumnID ¶
ValidateColumnID checks that 'input' can be parsed as a Column ID
func ValidateTableID ¶
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 ColumnId ¶
type ColumnId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string SchemaName string TableName string ColumnName string }
ColumnId is a struct representing the Resource ID for a Column
func NewColumnID ¶
func NewColumnID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string) ColumnId
NewColumnID returns a new ColumnId struct
func ParseColumnID ¶
ParseColumnID parses 'input' into a ColumnId
func ParseColumnIDInsensitively ¶
ParseColumnIDInsensitively parses 'input' case-insensitively into a ColumnId note: this method should only be used for API response data and not user input
func (*ColumnId) FromParseResult ¶
func (id *ColumnId) FromParseResult(input resourceids.ParseResult) error
func (ColumnId) Segments ¶
func (id ColumnId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Column ID
type DatabaseColumn ¶
type DatabaseColumn struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DatabaseColumnProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type DatabaseColumnOperationPredicate ¶
func (DatabaseColumnOperationPredicate) Matches ¶
func (p DatabaseColumnOperationPredicate) Matches(input DatabaseColumn) bool
type DatabaseColumnProperties ¶
type DatabaseColumnProperties struct { ColumnType *ColumnDataType `json:"columnType,omitempty"` IsComputed *bool `json:"isComputed,omitempty"` MemoryOptimized *bool `json:"memoryOptimized,omitempty"` TemporalType *TableTemporalType `json:"temporalType,omitempty"` }
type DatabaseColumnsClient ¶
type DatabaseColumnsClient struct {
Client *resourcemanager.Client
}
func NewDatabaseColumnsClientWithBaseURI ¶
func NewDatabaseColumnsClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabaseColumnsClient, error)
func (DatabaseColumnsClient) Get ¶
func (c DatabaseColumnsClient) Get(ctx context.Context, id ColumnId) (result GetOperationResponse, err error)
Get ...
func (DatabaseColumnsClient) ListByDatabase ¶
func (c DatabaseColumnsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (DatabaseColumnsClient) ListByDatabaseComplete ¶
func (c DatabaseColumnsClient) ListByDatabaseComplete(ctx context.Context, id commonids.SqlDatabaseId, options ListByDatabaseOperationOptions) (ListByDatabaseCompleteResult, error)
ListByDatabaseComplete retrieves all the results into a single object
func (DatabaseColumnsClient) ListByDatabaseCompleteMatchingPredicate ¶
func (c DatabaseColumnsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, options ListByDatabaseOperationOptions, predicate DatabaseColumnOperationPredicate) (result ListByDatabaseCompleteResult, err error)
ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DatabaseColumnsClient) ListByTable ¶
func (c DatabaseColumnsClient) ListByTable(ctx context.Context, id TableId, options ListByTableOperationOptions) (result ListByTableOperationResponse, err error)
ListByTable ...
func (DatabaseColumnsClient) ListByTableComplete ¶
func (c DatabaseColumnsClient) ListByTableComplete(ctx context.Context, id TableId, options ListByTableOperationOptions) (ListByTableCompleteResult, error)
ListByTableComplete retrieves all the results into a single object
func (DatabaseColumnsClient) ListByTableCompleteMatchingPredicate ¶
func (c DatabaseColumnsClient) ListByTableCompleteMatchingPredicate(ctx context.Context, id TableId, options ListByTableOperationOptions, predicate DatabaseColumnOperationPredicate) (result ListByTableCompleteResult, err error)
ListByTableCompleteMatchingPredicate retrieves all the results and then applies the predicate
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DatabaseColumn }
type ListByDatabaseCompleteResult ¶
type ListByDatabaseCompleteResult struct { LatestHttpResponse *http.Response Items []DatabaseColumn }
type ListByDatabaseOperationOptions ¶
type ListByDatabaseOperationOptions struct { Column *[]string OrderBy *[]string Schema *[]string Table *[]string }
func DefaultListByDatabaseOperationOptions ¶
func DefaultListByDatabaseOperationOptions() ListByDatabaseOperationOptions
func (ListByDatabaseOperationOptions) ToHeaders ¶
func (o ListByDatabaseOperationOptions) ToHeaders() *client.Headers
func (ListByDatabaseOperationOptions) ToOData ¶
func (o ListByDatabaseOperationOptions) ToOData() *odata.Query
func (ListByDatabaseOperationOptions) ToQuery ¶
func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams
type ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DatabaseColumn }
type ListByTableCompleteResult ¶
type ListByTableCompleteResult struct { LatestHttpResponse *http.Response Items []DatabaseColumn }
type ListByTableOperationOptions ¶
type ListByTableOperationOptions struct {
Filter *string
}
func DefaultListByTableOperationOptions ¶
func DefaultListByTableOperationOptions() ListByTableOperationOptions
func (ListByTableOperationOptions) ToHeaders ¶
func (o ListByTableOperationOptions) ToHeaders() *client.Headers
func (ListByTableOperationOptions) ToOData ¶
func (o ListByTableOperationOptions) ToOData() *odata.Query
func (ListByTableOperationOptions) ToQuery ¶
func (o ListByTableOperationOptions) ToQuery() *client.QueryParams
type ListByTableOperationResponse ¶
type ListByTableOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DatabaseColumn }
type TableId ¶
type TableId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string SchemaName string TableName string }
TableId is a struct representing the Resource ID for a Table
func NewTableID ¶
func NewTableID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, schemaName 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) FromParseResult ¶
func (id *TableId) FromParseResult(input resourceids.ParseResult) error
func (TableId) Segments ¶
func (id TableId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Table ID
type TableTemporalType ¶
type TableTemporalType string
const ( TableTemporalTypeHistoryTable TableTemporalType = "HistoryTable" TableTemporalTypeNonTemporalTable TableTemporalType = "NonTemporalTable" TableTemporalTypeSystemVersionedTemporalTable TableTemporalType = "SystemVersionedTemporalTable" )
func (*TableTemporalType) UnmarshalJSON ¶
func (s *TableTemporalType) UnmarshalJSON(bytes []byte) error