restorabledroppedsqlpools

package
v0.20240320.1000025 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := restorabledroppedsqlpools.NewRestorableDroppedSqlPoolsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RestorableDroppedSqlPoolsClient.Get

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

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

Example Usage: RestorableDroppedSqlPoolsClient.ListByWorkspace

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRestorableDroppedSqlPoolID

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

ValidateRestorableDroppedSqlPoolID checks that 'input' can be parsed as a Restorable Dropped 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 GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RestorableDroppedSqlPool
}

type ListByWorkspaceOperationResponse

type ListByWorkspaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RestorableDroppedSqlPoolListResult
}

type RestorableDroppedSqlPool

type RestorableDroppedSqlPool struct {
	Id         *string                             `json:"id,omitempty"`
	Location   *string                             `json:"location,omitempty"`
	Name       *string                             `json:"name,omitempty"`
	Properties *RestorableDroppedSqlPoolProperties `json:"properties,omitempty"`
	Type       *string                             `json:"type,omitempty"`
}

type RestorableDroppedSqlPoolId

type RestorableDroppedSqlPoolId struct {
	SubscriptionId             string
	ResourceGroupName          string
	WorkspaceName              string
	RestorableDroppedSqlPoolId string
}

RestorableDroppedSqlPoolId is a struct representing the Resource ID for a Restorable Dropped Sql Pool

func NewRestorableDroppedSqlPoolID

func NewRestorableDroppedSqlPoolID(subscriptionId string, resourceGroupName string, workspaceName string, restorableDroppedSqlPoolId string) RestorableDroppedSqlPoolId

NewRestorableDroppedSqlPoolID returns a new RestorableDroppedSqlPoolId struct

func ParseRestorableDroppedSqlPoolID

func ParseRestorableDroppedSqlPoolID(input string) (*RestorableDroppedSqlPoolId, error)

ParseRestorableDroppedSqlPoolID parses 'input' into a RestorableDroppedSqlPoolId

func ParseRestorableDroppedSqlPoolIDInsensitively

func ParseRestorableDroppedSqlPoolIDInsensitively(input string) (*RestorableDroppedSqlPoolId, error)

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

func (*RestorableDroppedSqlPoolId) FromParseResult

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

func (RestorableDroppedSqlPoolId) ID

ID returns the formatted Restorable Dropped Sql Pool ID

func (RestorableDroppedSqlPoolId) Segments

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

func (RestorableDroppedSqlPoolId) String

func (id RestorableDroppedSqlPoolId) String() string

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

type RestorableDroppedSqlPoolListResult

type RestorableDroppedSqlPoolListResult struct {
	Value []RestorableDroppedSqlPool `json:"value"`
}

type RestorableDroppedSqlPoolProperties

type RestorableDroppedSqlPoolProperties struct {
	CreationDate          *string `json:"creationDate,omitempty"`
	DatabaseName          *string `json:"databaseName,omitempty"`
	DeletionDate          *string `json:"deletionDate,omitempty"`
	EarliestRestoreDate   *string `json:"earliestRestoreDate,omitempty"`
	Edition               *string `json:"edition,omitempty"`
	ElasticPoolName       *string `json:"elasticPoolName,omitempty"`
	MaxSizeBytes          *string `json:"maxSizeBytes,omitempty"`
	ServiceLevelObjective *string `json:"serviceLevelObjective,omitempty"`
}

func (*RestorableDroppedSqlPoolProperties) GetCreationDateAsTime

func (o *RestorableDroppedSqlPoolProperties) GetCreationDateAsTime() (*time.Time, error)

func (*RestorableDroppedSqlPoolProperties) GetDeletionDateAsTime

func (o *RestorableDroppedSqlPoolProperties) GetDeletionDateAsTime() (*time.Time, error)

func (*RestorableDroppedSqlPoolProperties) GetEarliestRestoreDateAsTime

func (o *RestorableDroppedSqlPoolProperties) GetEarliestRestoreDateAsTime() (*time.Time, error)

func (*RestorableDroppedSqlPoolProperties) SetCreationDateAsTime

func (o *RestorableDroppedSqlPoolProperties) SetCreationDateAsTime(input time.Time)

func (*RestorableDroppedSqlPoolProperties) SetDeletionDateAsTime

func (o *RestorableDroppedSqlPoolProperties) SetDeletionDateAsTime(input time.Time)

func (*RestorableDroppedSqlPoolProperties) SetEarliestRestoreDateAsTime

func (o *RestorableDroppedSqlPoolProperties) SetEarliestRestoreDateAsTime(input time.Time)

type RestorableDroppedSqlPoolsClient

type RestorableDroppedSqlPoolsClient struct {
	Client *resourcemanager.Client
}

func NewRestorableDroppedSqlPoolsClientWithBaseURI

func NewRestorableDroppedSqlPoolsClientWithBaseURI(sdkApi sdkEnv.Api) (*RestorableDroppedSqlPoolsClient, error)

func (RestorableDroppedSqlPoolsClient) Get

Get ...

func (RestorableDroppedSqlPoolsClient) ListByWorkspace

ListByWorkspace ...

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

Jump to

Keyboard shortcuts

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