README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/sqlpoolsusages
Documentation
The sqlpoolsusages
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/sqlpoolsusages"
Client Initialization
client := sqlpoolsusages.NewSqlPoolsUsagesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: SqlPoolsUsagesClient.SqlPoolUsagesList
ctx := context.TODO()
id := sqlpoolsusages.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")
// alternatively `client.SqlPoolUsagesList(ctx, id)` can be used to do batched pagination
items, err := client.SqlPoolUsagesListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidateSqlPoolID(input interface{}, key string) (warnings []string, errors []error)
- type SqlPoolId
- type SqlPoolUsage
- type SqlPoolUsageOperationPredicate
- type SqlPoolUsagesListCompleteResult
- type SqlPoolUsagesListOperationResponse
- type SqlPoolsUsagesClient
- func (c SqlPoolsUsagesClient) SqlPoolUsagesList(ctx context.Context, id SqlPoolId) (result SqlPoolUsagesListOperationResponse, err error)
- func (c SqlPoolsUsagesClient) SqlPoolUsagesListComplete(ctx context.Context, id SqlPoolId) (SqlPoolUsagesListCompleteResult, error)
- func (c SqlPoolsUsagesClient) SqlPoolUsagesListCompleteMatchingPredicate(ctx context.Context, id SqlPoolId, predicate SqlPoolUsageOperationPredicate) (result SqlPoolUsagesListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateSqlPoolID ¶
ValidateSqlPoolID checks that 'input' can be parsed as a Sql Pool ID
Types ¶
type SqlPoolId ¶
type SqlPoolId struct { SubscriptionId string ResourceGroupName string WorkspaceName string SqlPoolName string }
SqlPoolId is a struct representing the Resource ID for a Sql Pool
func NewSqlPoolID ¶
func NewSqlPoolID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string) SqlPoolId
NewSqlPoolID returns a new SqlPoolId struct
func ParseSqlPoolID ¶
ParseSqlPoolID parses 'input' into a SqlPoolId
func ParseSqlPoolIDInsensitively ¶
ParseSqlPoolIDInsensitively parses 'input' case-insensitively into a SqlPoolId note: this method should only be used for API response data and not user input
func (*SqlPoolId) FromParseResult ¶
func (id *SqlPoolId) FromParseResult(input resourceids.ParseResult) error
func (SqlPoolId) Segments ¶
func (id SqlPoolId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Sql Pool ID
type SqlPoolUsage ¶
type SqlPoolUsage struct { CurrentValue *float64 `json:"currentValue,omitempty"` DisplayName *string `json:"displayName,omitempty"` Limit *float64 `json:"limit,omitempty"` Name *string `json:"name,omitempty"` NextResetTime *string `json:"nextResetTime,omitempty"` ResourceName *string `json:"resourceName,omitempty"` Unit *string `json:"unit,omitempty"` }
func (*SqlPoolUsage) GetNextResetTimeAsTime ¶
func (o *SqlPoolUsage) GetNextResetTimeAsTime() (*time.Time, error)
func (*SqlPoolUsage) SetNextResetTimeAsTime ¶
func (o *SqlPoolUsage) SetNextResetTimeAsTime(input time.Time)
type SqlPoolUsageOperationPredicate ¶
type SqlPoolUsageOperationPredicate struct { CurrentValue *float64 DisplayName *string Limit *float64 Name *string NextResetTime *string ResourceName *string Unit *string }
func (SqlPoolUsageOperationPredicate) Matches ¶
func (p SqlPoolUsageOperationPredicate) Matches(input SqlPoolUsage) bool
type SqlPoolUsagesListCompleteResult ¶
type SqlPoolUsagesListCompleteResult struct { LatestHttpResponse *http.Response Items []SqlPoolUsage }
type SqlPoolUsagesListOperationResponse ¶
type SqlPoolUsagesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SqlPoolUsage }
type SqlPoolsUsagesClient ¶
type SqlPoolsUsagesClient struct {
Client *resourcemanager.Client
}
func NewSqlPoolsUsagesClientWithBaseURI ¶
func NewSqlPoolsUsagesClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsUsagesClient, error)
func (SqlPoolsUsagesClient) SqlPoolUsagesList ¶
func (c SqlPoolsUsagesClient) SqlPoolUsagesList(ctx context.Context, id SqlPoolId) (result SqlPoolUsagesListOperationResponse, err error)
SqlPoolUsagesList ...
func (SqlPoolsUsagesClient) SqlPoolUsagesListComplete ¶
func (c SqlPoolsUsagesClient) SqlPoolUsagesListComplete(ctx context.Context, id SqlPoolId) (SqlPoolUsagesListCompleteResult, error)
SqlPoolUsagesListComplete retrieves all the results into a single object
func (SqlPoolsUsagesClient) SqlPoolUsagesListCompleteMatchingPredicate ¶
func (c SqlPoolsUsagesClient) SqlPoolUsagesListCompleteMatchingPredicate(ctx context.Context, id SqlPoolId, predicate SqlPoolUsageOperationPredicate) (result SqlPoolUsagesListCompleteResult, err error)
SqlPoolUsagesListCompleteMatchingPredicate retrieves all the results and then applies the predicate