workspacemanagedsqlserversqlusages

package
v0.20240327.1073535 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

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

The workspacemanagedsqlserversqlusages 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/workspacemanagedsqlserversqlusages"

Client Initialization

client := workspacemanagedsqlserversqlusages.NewWorkspaceManagedSqlServerSqlUsagesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WorkspaceManagedSqlServerSqlUsagesClient.WorkspaceManagedSqlServerUsagesList

ctx := context.TODO()
id := workspacemanagedsqlserversqlusages.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue")

// alternatively `client.WorkspaceManagedSqlServerUsagesList(ctx, id)` can be used to do batched pagination
items, err := client.WorkspaceManagedSqlServerUsagesListComplete(ctx, id)
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 ValidateWorkspaceID

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

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

Types

type ServerUsage

type ServerUsage 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 (*ServerUsage) GetNextResetTimeAsTime

func (o *ServerUsage) GetNextResetTimeAsTime() (*time.Time, error)

func (*ServerUsage) SetNextResetTimeAsTime

func (o *ServerUsage) SetNextResetTimeAsTime(input time.Time)

type ServerUsageOperationPredicate

type ServerUsageOperationPredicate struct {
	CurrentValue  *float64
	DisplayName   *string
	Limit         *float64
	Name          *string
	NextResetTime *string
	ResourceName  *string
	Unit          *string
}

func (ServerUsageOperationPredicate) Matches

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
}

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

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

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

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

type WorkspaceManagedSqlServerSqlUsagesClient

type WorkspaceManagedSqlServerSqlUsagesClient struct {
	Client *resourcemanager.Client
}

func NewWorkspaceManagedSqlServerSqlUsagesClientWithBaseURI

func NewWorkspaceManagedSqlServerSqlUsagesClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspaceManagedSqlServerSqlUsagesClient, error)

func (WorkspaceManagedSqlServerSqlUsagesClient) WorkspaceManagedSqlServerUsagesList

WorkspaceManagedSqlServerUsagesList ...

func (WorkspaceManagedSqlServerSqlUsagesClient) WorkspaceManagedSqlServerUsagesListComplete

WorkspaceManagedSqlServerUsagesListComplete retrieves all the results into a single object

func (WorkspaceManagedSqlServerSqlUsagesClient) WorkspaceManagedSqlServerUsagesListCompleteMatchingPredicate

func (c WorkspaceManagedSqlServerSqlUsagesClient) WorkspaceManagedSqlServerUsagesListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate ServerUsageOperationPredicate) (result WorkspaceManagedSqlServerUsagesListCompleteResult, err error)

WorkspaceManagedSqlServerUsagesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type WorkspaceManagedSqlServerUsagesListCompleteResult

type WorkspaceManagedSqlServerUsagesListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ServerUsage
}

type WorkspaceManagedSqlServerUsagesListOperationResponse

type WorkspaceManagedSqlServerUsagesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ServerUsage
}

Jump to

Keyboard shortcuts

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