workspacemanagedsqlserver

package
v0.20240712.1173055 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

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

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

Client Initialization

client := workspacemanagedsqlserver.NewWorkspaceManagedSqlServerClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WorkspaceManagedSqlServerClient.RecoverableSqlPoolsGet

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

read, err := client.RecoverableSqlPoolsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: WorkspaceManagedSqlServerClient.RecoverableSqlPoolsList

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

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

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

ValidateRecoverableSqlPoolID checks that 'input' can be parsed as a Recoverable Sql Pool ID

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 RecoverableSqlPool

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

type RecoverableSqlPoolId

type RecoverableSqlPoolId struct {
	SubscriptionId         string
	ResourceGroupName      string
	WorkspaceName          string
	RecoverableSqlPoolName string
}

RecoverableSqlPoolId is a struct representing the Resource ID for a Recoverable Sql Pool

func NewRecoverableSqlPoolID

func NewRecoverableSqlPoolID(subscriptionId string, resourceGroupName string, workspaceName string, recoverableSqlPoolName string) RecoverableSqlPoolId

NewRecoverableSqlPoolID returns a new RecoverableSqlPoolId struct

func ParseRecoverableSqlPoolID

func ParseRecoverableSqlPoolID(input string) (*RecoverableSqlPoolId, error)

ParseRecoverableSqlPoolID parses 'input' into a RecoverableSqlPoolId

func ParseRecoverableSqlPoolIDInsensitively

func ParseRecoverableSqlPoolIDInsensitively(input string) (*RecoverableSqlPoolId, error)

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

func (*RecoverableSqlPoolId) FromParseResult

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

func (RecoverableSqlPoolId) ID

func (id RecoverableSqlPoolId) ID() string

ID returns the formatted Recoverable Sql Pool ID

func (RecoverableSqlPoolId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Recoverable Sql Pool ID

func (RecoverableSqlPoolId) String

func (id RecoverableSqlPoolId) String() string

String returns a human-readable description of this Recoverable Sql Pool ID

type RecoverableSqlPoolOperationPredicate

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

func (RecoverableSqlPoolOperationPredicate) Matches

type RecoverableSqlPoolProperties

type RecoverableSqlPoolProperties struct {
	Edition                 *string `json:"edition,omitempty"`
	ElasticPoolName         *string `json:"elasticPoolName,omitempty"`
	LastAvailableBackupDate *string `json:"lastAvailableBackupDate,omitempty"`
	ServiceLevelObjective   *string `json:"serviceLevelObjective,omitempty"`
}

func (*RecoverableSqlPoolProperties) GetLastAvailableBackupDateAsTime

func (o *RecoverableSqlPoolProperties) GetLastAvailableBackupDateAsTime() (*time.Time, error)

func (*RecoverableSqlPoolProperties) SetLastAvailableBackupDateAsTime

func (o *RecoverableSqlPoolProperties) SetLastAvailableBackupDateAsTime(input time.Time)

type RecoverableSqlPoolsGetOperationResponse

type RecoverableSqlPoolsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RecoverableSqlPool
}

type RecoverableSqlPoolsListCompleteResult

type RecoverableSqlPoolsListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RecoverableSqlPool
}

type RecoverableSqlPoolsListCustomPager added in v0.20240628.1153531

type RecoverableSqlPoolsListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *RecoverableSqlPoolsListCustomPager) NextPageLink() *odata.Link

type RecoverableSqlPoolsListOperationResponse

type RecoverableSqlPoolsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RecoverableSqlPool
}

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 WorkspaceManagedSqlServerClient

type WorkspaceManagedSqlServerClient struct {
	Client *resourcemanager.Client
}

func NewWorkspaceManagedSqlServerClientWithBaseURI

func NewWorkspaceManagedSqlServerClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspaceManagedSqlServerClient, error)

func (WorkspaceManagedSqlServerClient) RecoverableSqlPoolsGet

RecoverableSqlPoolsGet ...

func (WorkspaceManagedSqlServerClient) RecoverableSqlPoolsList

RecoverableSqlPoolsList ...

func (WorkspaceManagedSqlServerClient) RecoverableSqlPoolsListComplete

RecoverableSqlPoolsListComplete retrieves all the results into a single object

func (WorkspaceManagedSqlServerClient) RecoverableSqlPoolsListCompleteMatchingPredicate

func (c WorkspaceManagedSqlServerClient) RecoverableSqlPoolsListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate RecoverableSqlPoolOperationPredicate) (result RecoverableSqlPoolsListCompleteResult, err error)

RecoverableSqlPoolsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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