sqlpoolsmaintenancewindows

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

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

The sqlpoolsmaintenancewindows SDK allows for interaction with Azure Resource Manager 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/sqlpoolsmaintenancewindows"

Client Initialization

client := sqlpoolsmaintenancewindows.NewSqlPoolsMaintenanceWindowsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlPoolsMaintenanceWindowsClient.SqlPoolMaintenanceWindowsCreateOrUpdate

ctx := context.TODO()
id := sqlpoolsmaintenancewindows.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "sqlPoolName")

payload := sqlpoolsmaintenancewindows.MaintenanceWindows{
	// ...
}


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

Example Usage: SqlPoolsMaintenanceWindowsClient.SqlPoolMaintenanceWindowsGet

ctx := context.TODO()
id := sqlpoolsmaintenancewindows.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "sqlPoolName")

read, err := client.SqlPoolMaintenanceWindowsGet(ctx, id, sqlpoolsmaintenancewindows.DefaultSqlPoolMaintenanceWindowsGetOperationOptions())
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 PossibleValuesForDayOfWeek

func PossibleValuesForDayOfWeek() []string

func ValidateSqlPoolID

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

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

Types

type DayOfWeek

type DayOfWeek string
const (
	DayOfWeekFriday    DayOfWeek = "Friday"
	DayOfWeekMonday    DayOfWeek = "Monday"
	DayOfWeekSaturday  DayOfWeek = "Saturday"
	DayOfWeekSunday    DayOfWeek = "Sunday"
	DayOfWeekThursday  DayOfWeek = "Thursday"
	DayOfWeekTuesday   DayOfWeek = "Tuesday"
	DayOfWeekWednesday DayOfWeek = "Wednesday"
)

func (*DayOfWeek) UnmarshalJSON

func (s *DayOfWeek) UnmarshalJSON(bytes []byte) error

type MaintenanceWindowTimeRange

type MaintenanceWindowTimeRange struct {
	DayOfWeek *DayOfWeek `json:"dayOfWeek,omitempty"`
	Duration  *string    `json:"duration,omitempty"`
	StartTime *string    `json:"startTime,omitempty"`
}

type MaintenanceWindows

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

type MaintenanceWindowsProperties

type MaintenanceWindowsProperties struct {
	TimeRanges *[]MaintenanceWindowTimeRange `json:"timeRanges,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

func ParseSqlPoolID(input string) (*SqlPoolId, error)

ParseSqlPoolID parses 'input' into a SqlPoolId

func ParseSqlPoolIDInsensitively

func ParseSqlPoolIDInsensitively(input string) (*SqlPoolId, error)

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

func (id SqlPoolId) ID() string

ID returns the formatted Sql Pool ID

func (SqlPoolId) Segments

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

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

func (SqlPoolId) String

func (id SqlPoolId) String() string

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

type SqlPoolMaintenanceWindowsCreateOrUpdateOperationOptions

type SqlPoolMaintenanceWindowsCreateOrUpdateOperationOptions struct {
	MaintenanceWindowName *string
}

func (SqlPoolMaintenanceWindowsCreateOrUpdateOperationOptions) ToHeaders

func (SqlPoolMaintenanceWindowsCreateOrUpdateOperationOptions) ToOData

func (SqlPoolMaintenanceWindowsCreateOrUpdateOperationOptions) ToQuery

type SqlPoolMaintenanceWindowsCreateOrUpdateOperationResponse

type SqlPoolMaintenanceWindowsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type SqlPoolMaintenanceWindowsGetOperationOptions

type SqlPoolMaintenanceWindowsGetOperationOptions struct {
	MaintenanceWindowName *string
}

func DefaultSqlPoolMaintenanceWindowsGetOperationOptions

func DefaultSqlPoolMaintenanceWindowsGetOperationOptions() SqlPoolMaintenanceWindowsGetOperationOptions

func (SqlPoolMaintenanceWindowsGetOperationOptions) ToHeaders

func (SqlPoolMaintenanceWindowsGetOperationOptions) ToOData

func (SqlPoolMaintenanceWindowsGetOperationOptions) ToQuery

type SqlPoolMaintenanceWindowsGetOperationResponse

type SqlPoolMaintenanceWindowsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MaintenanceWindows
}

type SqlPoolsMaintenanceWindowsClient

type SqlPoolsMaintenanceWindowsClient struct {
	Client *resourcemanager.Client
}

func NewSqlPoolsMaintenanceWindowsClientWithBaseURI

func NewSqlPoolsMaintenanceWindowsClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsMaintenanceWindowsClient, error)

func (SqlPoolsMaintenanceWindowsClient) SqlPoolMaintenanceWindowsCreateOrUpdate

SqlPoolMaintenanceWindowsCreateOrUpdate ...

func (SqlPoolsMaintenanceWindowsClient) SqlPoolMaintenanceWindowsGet

SqlPoolMaintenanceWindowsGet ...

Jump to

Keyboard shortcuts

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