README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindowoptions
Documentation
The sqlpoolsmaintenancewindowoptions
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/sqlpoolsmaintenancewindowoptions"
Client Initialization
client := sqlpoolsmaintenancewindowoptions.NewSqlPoolsMaintenanceWindowOptionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: SqlPoolsMaintenanceWindowOptionsClient.SqlPoolMaintenanceWindowOptionsGet
ctx := context.TODO()
id := sqlpoolsmaintenancewindowoptions.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")
read, err := client.SqlPoolMaintenanceWindowOptionsGet(ctx, id, sqlpoolsmaintenancewindowoptions.DefaultSqlPoolMaintenanceWindowOptionsGetOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForDayOfWeek() []string
- func ValidateSqlPoolID(input interface{}, key string) (warnings []string, errors []error)
- type DayOfWeek
- type MaintenanceWindowOptions
- type MaintenanceWindowOptionsProperties
- type MaintenanceWindowTimeRange
- type SqlPoolId
- type SqlPoolMaintenanceWindowOptionsGetOperationOptions
- type SqlPoolMaintenanceWindowOptionsGetOperationResponse
- type SqlPoolsMaintenanceWindowOptionsClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDayOfWeek ¶
func PossibleValuesForDayOfWeek() []string
func ValidateSqlPoolID ¶
ValidateSqlPoolID checks that 'input' can be parsed as a Sql Pool ID
Types ¶
type MaintenanceWindowOptions ¶
type MaintenanceWindowOptions struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *MaintenanceWindowOptionsProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type MaintenanceWindowOptionsProperties ¶
type MaintenanceWindowOptionsProperties struct { AllowMultipleMaintenanceWindowsPerCycle *bool `json:"allowMultipleMaintenanceWindowsPerCycle,omitempty"` DefaultDurationInMinutes *int64 `json:"defaultDurationInMinutes,omitempty"` IsEnabled *bool `json:"isEnabled,omitempty"` MaintenanceWindowCycles *[]MaintenanceWindowTimeRange `json:"maintenanceWindowCycles,omitempty"` MinCycles *int64 `json:"minCycles,omitempty"` MinDurationInMinutes *int64 `json:"minDurationInMinutes,omitempty"` TimeGranularityInMinutes *int64 `json:"timeGranularityInMinutes,omitempty"` }
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 SqlPoolMaintenanceWindowOptionsGetOperationOptions ¶
type SqlPoolMaintenanceWindowOptionsGetOperationOptions struct {
MaintenanceWindowOptionsName *string
}
func DefaultSqlPoolMaintenanceWindowOptionsGetOperationOptions ¶
func DefaultSqlPoolMaintenanceWindowOptionsGetOperationOptions() SqlPoolMaintenanceWindowOptionsGetOperationOptions
func (SqlPoolMaintenanceWindowOptionsGetOperationOptions) ToHeaders ¶
func (o SqlPoolMaintenanceWindowOptionsGetOperationOptions) ToHeaders() *client.Headers
func (SqlPoolMaintenanceWindowOptionsGetOperationOptions) ToOData ¶
func (o SqlPoolMaintenanceWindowOptionsGetOperationOptions) ToOData() *odata.Query
func (SqlPoolMaintenanceWindowOptionsGetOperationOptions) ToQuery ¶
func (o SqlPoolMaintenanceWindowOptionsGetOperationOptions) ToQuery() *client.QueryParams
type SqlPoolMaintenanceWindowOptionsGetOperationResponse ¶
type SqlPoolMaintenanceWindowOptionsGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *MaintenanceWindowOptions }
type SqlPoolsMaintenanceWindowOptionsClient ¶
type SqlPoolsMaintenanceWindowOptionsClient struct {
Client *resourcemanager.Client
}
func NewSqlPoolsMaintenanceWindowOptionsClientWithBaseURI ¶
func NewSqlPoolsMaintenanceWindowOptionsClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsMaintenanceWindowOptionsClient, error)
func (SqlPoolsMaintenanceWindowOptionsClient) SqlPoolMaintenanceWindowOptionsGet ¶
func (c SqlPoolsMaintenanceWindowOptionsClient) SqlPoolMaintenanceWindowOptionsGet(ctx context.Context, id SqlPoolId, options SqlPoolMaintenanceWindowOptionsGetOperationOptions) (result SqlPoolMaintenanceWindowOptionsGetOperationResponse, err error)
SqlPoolMaintenanceWindowOptionsGet ...