publicmaintenanceconfigurations

package
v0.20241009.1142232 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations Documentation

The publicmaintenanceconfigurations SDK allows for interaction with Azure Resource Manager maintenance (API Version 2023-04-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations"

Client Initialization

client := publicmaintenanceconfigurations.NewPublicMaintenanceConfigurationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PublicMaintenanceConfigurationsClient.Get

ctx := context.TODO()
id := publicmaintenanceconfigurations.NewPublicMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "publicMaintenanceConfigurationName")

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: PublicMaintenanceConfigurationsClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.List(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 PossibleValuesForMaintenanceScope

func PossibleValuesForMaintenanceScope() []string

func PossibleValuesForRebootOptions

func PossibleValuesForRebootOptions() []string

func PossibleValuesForVisibility

func PossibleValuesForVisibility() []string

func ValidatePublicMaintenanceConfigurationID

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

ValidatePublicMaintenanceConfigurationID checks that 'input' can be parsed as a Public Maintenance Configuration ID

Types

type GetOperationResponse

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

type InputLinuxParameters

type InputLinuxParameters struct {
	ClassificationsToInclude  *[]string `json:"classificationsToInclude,omitempty"`
	PackageNameMasksToExclude *[]string `json:"packageNameMasksToExclude,omitempty"`
	PackageNameMasksToInclude *[]string `json:"packageNameMasksToInclude,omitempty"`
}

type InputPatchConfiguration

type InputPatchConfiguration struct {
	LinuxParameters   *InputLinuxParameters   `json:"linuxParameters,omitempty"`
	RebootSetting     *RebootOptions          `json:"rebootSetting,omitempty"`
	WindowsParameters *InputWindowsParameters `json:"windowsParameters,omitempty"`
}

type InputWindowsParameters

type InputWindowsParameters struct {
	ClassificationsToInclude  *[]string `json:"classificationsToInclude,omitempty"`
	ExcludeKbsRequiringReboot *bool     `json:"excludeKbsRequiringReboot,omitempty"`
	KbNumbersToExclude        *[]string `json:"kbNumbersToExclude,omitempty"`
	KbNumbersToInclude        *[]string `json:"kbNumbersToInclude,omitempty"`
}

type ListMaintenanceConfigurationsResult

type ListMaintenanceConfigurationsResult struct {
	Value *[]MaintenanceConfiguration `json:"value,omitempty"`
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListMaintenanceConfigurationsResult
}

type MaintenanceConfiguration

type MaintenanceConfiguration struct {
	Id         *string                             `json:"id,omitempty"`
	Location   *string                             `json:"location,omitempty"`
	Name       *string                             `json:"name,omitempty"`
	Properties *MaintenanceConfigurationProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData              `json:"systemData,omitempty"`
	Tags       *map[string]string                  `json:"tags,omitempty"`
	Type       *string                             `json:"type,omitempty"`
}

type MaintenanceConfigurationProperties

type MaintenanceConfigurationProperties struct {
	ExtensionProperties *map[string]string       `json:"extensionProperties,omitempty"`
	InstallPatches      *InputPatchConfiguration `json:"installPatches,omitempty"`
	MaintenanceScope    *MaintenanceScope        `json:"maintenanceScope,omitempty"`
	MaintenanceWindow   *MaintenanceWindow       `json:"maintenanceWindow,omitempty"`
	Namespace           *string                  `json:"namespace,omitempty"`
	Visibility          *Visibility              `json:"visibility,omitempty"`
}

type MaintenanceScope

type MaintenanceScope string
const (
	MaintenanceScopeExtension          MaintenanceScope = "Extension"
	MaintenanceScopeHost               MaintenanceScope = "Host"
	MaintenanceScopeInGuestPatch       MaintenanceScope = "InGuestPatch"
	MaintenanceScopeOSImage            MaintenanceScope = "OSImage"
	MaintenanceScopeResource           MaintenanceScope = "Resource"
	MaintenanceScopeSQLDB              MaintenanceScope = "SQLDB"
	MaintenanceScopeSQLManagedInstance MaintenanceScope = "SQLManagedInstance"
)

func (*MaintenanceScope) UnmarshalJSON added in v0.20240208.1165011

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

type MaintenanceWindow

type MaintenanceWindow struct {
	Duration           *string `json:"duration,omitempty"`
	ExpirationDateTime *string `json:"expirationDateTime,omitempty"`
	RecurEvery         *string `json:"recurEvery,omitempty"`
	StartDateTime      *string `json:"startDateTime,omitempty"`
	TimeZone           *string `json:"timeZone,omitempty"`
}

type PublicMaintenanceConfigurationId

type PublicMaintenanceConfigurationId struct {
	SubscriptionId                     string
	PublicMaintenanceConfigurationName string
}

PublicMaintenanceConfigurationId is a struct representing the Resource ID for a Public Maintenance Configuration

func NewPublicMaintenanceConfigurationID

func NewPublicMaintenanceConfigurationID(subscriptionId string, publicMaintenanceConfigurationName string) PublicMaintenanceConfigurationId

NewPublicMaintenanceConfigurationID returns a new PublicMaintenanceConfigurationId struct

func ParsePublicMaintenanceConfigurationID

func ParsePublicMaintenanceConfigurationID(input string) (*PublicMaintenanceConfigurationId, error)

ParsePublicMaintenanceConfigurationID parses 'input' into a PublicMaintenanceConfigurationId

func ParsePublicMaintenanceConfigurationIDInsensitively

func ParsePublicMaintenanceConfigurationIDInsensitively(input string) (*PublicMaintenanceConfigurationId, error)

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

func (*PublicMaintenanceConfigurationId) FromParseResult

func (PublicMaintenanceConfigurationId) ID

ID returns the formatted Public Maintenance Configuration ID

func (PublicMaintenanceConfigurationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Public Maintenance Configuration ID

func (PublicMaintenanceConfigurationId) String

String returns a human-readable description of this Public Maintenance Configuration ID

type PublicMaintenanceConfigurationsClient

type PublicMaintenanceConfigurationsClient struct {
	Client *resourcemanager.Client
}

func NewPublicMaintenanceConfigurationsClientWithBaseURI

func NewPublicMaintenanceConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*PublicMaintenanceConfigurationsClient, error)

func (PublicMaintenanceConfigurationsClient) Get

Get ...

func (PublicMaintenanceConfigurationsClient) List

List ...

type RebootOptions

type RebootOptions string
const (
	RebootOptionsAlways     RebootOptions = "Always"
	RebootOptionsIfRequired RebootOptions = "IfRequired"
	RebootOptionsNever      RebootOptions = "Never"
)

func (*RebootOptions) UnmarshalJSON added in v0.20240208.1165011

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

type Visibility

type Visibility string
const (
	VisibilityCustom Visibility = "Custom"
	VisibilityPublic Visibility = "Public"
)

func (*Visibility) UnmarshalJSON added in v0.20240208.1165011

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

Jump to

Keyboard shortcuts

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