maintenancewindowoptions

package
v0.20240715.1100358 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions Documentation

The maintenancewindowoptions SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2023-02-01-preview).

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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions"

Client Initialization

client := maintenancewindowoptions.NewMaintenanceWindowOptionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MaintenanceWindowOptionsClient.Get

ctx := context.TODO()
id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

read, err := client.Get(ctx, id, maintenancewindowoptions.DefaultGetOperationOptions())
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

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 GetOperationOptions

type GetOperationOptions struct {
	MaintenanceWindowOptionsName *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

func (GetOperationOptions) ToHeaders

func (o GetOperationOptions) ToHeaders() *client.Headers

func (GetOperationOptions) ToOData

func (o GetOperationOptions) ToOData() *odata.Query

func (GetOperationOptions) ToQuery

func (o GetOperationOptions) ToQuery() *client.QueryParams

type GetOperationResponse

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

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 MaintenanceWindowOptionsClient

type MaintenanceWindowOptionsClient struct {
	Client *resourcemanager.Client
}

func NewMaintenanceWindowOptionsClientWithBaseURI

func NewMaintenanceWindowOptionsClientWithBaseURI(sdkApi sdkEnv.Api) (*MaintenanceWindowOptionsClient, error)

func (MaintenanceWindowOptionsClient) Get

Get ...

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 MaintenanceWindowTimeRange

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

Jump to

Keyboard shortcuts

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