machines

package
v0.20231016.1052817 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MPL-2.0 Imports: 16 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-12-27/machines Documentation

The machines SDK allows for interaction with the Azure Resource Manager Service hybridcompute (API Version 2022-12-27).

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/hybridcompute/2022-12-27/machines"

Client Initialization

client := machines.NewMachinesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MachinesClient.AssessPatches

ctx := context.TODO()
id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue")

if err := client.AssessPatchesThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: MachinesClient.CreateOrUpdate

ctx := context.TODO()
id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue")

payload := machines.Machine{
	// ...
}


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

Example Usage: MachinesClient.Delete

ctx := context.TODO()
id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue")

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

Example Usage: MachinesClient.Get

ctx := context.TODO()
id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue")

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

Example Usage: MachinesClient.InstallPatches

ctx := context.TODO()
id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue")

payload := machines.MachineInstallPatchesParameters{
	// ...
}


if err := client.InstallPatchesThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: MachinesClient.ListByResourceGroup

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

// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MachinesClient.ListBySubscription

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

// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ListBySubscriptionComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MachinesClient.Update

ctx := context.TODO()
id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue")

payload := machines.MachineUpdate{
	// ...
}


read, err := client.Update(ctx, id, payload)
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 PossibleValuesForAgentConfigurationMode

func PossibleValuesForAgentConfigurationMode() []string

func PossibleValuesForAssessmentModeTypes

func PossibleValuesForAssessmentModeTypes() []string

func PossibleValuesForInstanceViewTypes

func PossibleValuesForInstanceViewTypes() []string

func PossibleValuesForLastAttemptStatusEnum

func PossibleValuesForLastAttemptStatusEnum() []string

func PossibleValuesForOsType

func PossibleValuesForOsType() []string

func PossibleValuesForPatchModeTypes

func PossibleValuesForPatchModeTypes() []string

func PossibleValuesForPatchOperationStartedBy

func PossibleValuesForPatchOperationStartedBy() []string

func PossibleValuesForPatchOperationStatus

func PossibleValuesForPatchOperationStatus() []string

func PossibleValuesForPatchServiceUsed

func PossibleValuesForPatchServiceUsed() []string

func PossibleValuesForStatusLevelTypes

func PossibleValuesForStatusLevelTypes() []string

func PossibleValuesForStatusTypes

func PossibleValuesForStatusTypes() []string

func PossibleValuesForVMGuestPatchClassificationLinux

func PossibleValuesForVMGuestPatchClassificationLinux() []string

func PossibleValuesForVMGuestPatchClassificationWindows

func PossibleValuesForVMGuestPatchClassificationWindows() []string

func PossibleValuesForVMGuestPatchRebootSetting

func PossibleValuesForVMGuestPatchRebootSetting() []string

func PossibleValuesForVMGuestPatchRebootStatus

func PossibleValuesForVMGuestPatchRebootStatus() []string

func ValidateMachineID

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

ValidateMachineID checks that 'input' can be parsed as a Machine ID

Types

type AgentConfiguration

type AgentConfiguration struct {
	ConfigMode                *AgentConfigurationMode   `json:"configMode,omitempty"`
	ExtensionsAllowList       *[]ConfigurationExtension `json:"extensionsAllowList,omitempty"`
	ExtensionsBlockList       *[]ConfigurationExtension `json:"extensionsBlockList,omitempty"`
	ExtensionsEnabled         *string                   `json:"extensionsEnabled,omitempty"`
	GuestConfigurationEnabled *string                   `json:"guestConfigurationEnabled,omitempty"`
	IncomingConnectionsPorts  *[]string                 `json:"incomingConnectionsPorts,omitempty"`
	ProxyBypass               *[]string                 `json:"proxyBypass,omitempty"`
	ProxyUrl                  *string                   `json:"proxyUrl,omitempty"`
}

type AgentConfigurationMode

type AgentConfigurationMode string
const (
	AgentConfigurationModeFull    AgentConfigurationMode = "full"
	AgentConfigurationModeMonitor AgentConfigurationMode = "monitor"
)

func (*AgentConfigurationMode) UnmarshalJSON added in v0.20230804.1074947

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

type AgentUpgrade

type AgentUpgrade struct {
	CorrelationId          *string                `json:"correlationId,omitempty"`
	DesiredVersion         *string                `json:"desiredVersion,omitempty"`
	EnableAutomaticUpgrade *bool                  `json:"enableAutomaticUpgrade,omitempty"`
	LastAttemptMessage     *string                `json:"lastAttemptMessage,omitempty"`
	LastAttemptStatus      *LastAttemptStatusEnum `json:"lastAttemptStatus,omitempty"`
	LastAttemptTimestamp   *string                `json:"lastAttemptTimestamp,omitempty"`
}

type AssessPatchesOperationResponse

type AssessPatchesOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type AssessmentModeTypes

type AssessmentModeTypes string
const (
	AssessmentModeTypesAutomaticByPlatform AssessmentModeTypes = "AutomaticByPlatform"
	AssessmentModeTypesImageDefault        AssessmentModeTypes = "ImageDefault"
)

func (*AssessmentModeTypes) UnmarshalJSON added in v0.20230804.1074947

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

type AvailablePatchCountByClassification

type AvailablePatchCountByClassification struct {
	Critical     *int64 `json:"critical,omitempty"`
	Definition   *int64 `json:"definition,omitempty"`
	FeaturePack  *int64 `json:"featurePack,omitempty"`
	Other        *int64 `json:"other,omitempty"`
	Security     *int64 `json:"security,omitempty"`
	ServicePack  *int64 `json:"servicePack,omitempty"`
	Tools        *int64 `json:"tools,omitempty"`
	UpdateRollup *int64 `json:"updateRollup,omitempty"`
	Updates      *int64 `json:"updates,omitempty"`
}

type CloudMetadata

type CloudMetadata struct {
	Provider *string `json:"provider,omitempty"`
}

type ConfigurationExtension

type ConfigurationExtension struct {
	Publisher *string `json:"publisher,omitempty"`
	Type      *string `json:"type,omitempty"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Machine
}

type DeleteOperationResponse

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

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	Info *interface{} `json:"info,omitempty"`
	Type *string      `json:"type,omitempty"`
}

type ErrorDetail

type ErrorDetail struct {
	AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
	Code           *string                `json:"code,omitempty"`
	Details        *[]ErrorDetail         `json:"details,omitempty"`
	Message        *string                `json:"message,omitempty"`
	Target         *string                `json:"target,omitempty"`
}

type GetOperationOptions

type GetOperationOptions struct {
	Expand *InstanceViewTypes
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

func (GetOperationOptions) ToHeaders added in v0.20230804.1074947

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

func (GetOperationOptions) ToOData added in v0.20230804.1074947

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

func (GetOperationOptions) ToQuery added in v0.20230804.1074947

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

type GetOperationResponse

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

type InstallPatchesOperationResponse

type InstallPatchesOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type InstanceViewTypes

type InstanceViewTypes string
const (
	InstanceViewTypesInstanceView InstanceViewTypes = "instanceView"
)

func (*InstanceViewTypes) UnmarshalJSON added in v0.20230804.1074947

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

type LastAttemptStatusEnum

type LastAttemptStatusEnum string
const (
	LastAttemptStatusEnumFailed  LastAttemptStatusEnum = "Failed"
	LastAttemptStatusEnumSuccess LastAttemptStatusEnum = "Success"
)

func (*LastAttemptStatusEnum) UnmarshalJSON added in v0.20230804.1074947

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

type LinuxParameters

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

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []Machine
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Machine
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	Items []Machine
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Machine
}

type LocationData

type LocationData struct {
	City            *string `json:"city,omitempty"`
	CountryOrRegion *string `json:"countryOrRegion,omitempty"`
	District        *string `json:"district,omitempty"`
	Name            string  `json:"name"`
}

type Machine

type Machine struct {
	Id         *string                  `json:"id,omitempty"`
	Identity   *identity.SystemAssigned `json:"identity,omitempty"`
	Location   string                   `json:"location"`
	Name       *string                  `json:"name,omitempty"`
	Properties *MachineProperties       `json:"properties,omitempty"`
	Resources  *[]MachineExtension      `json:"resources,omitempty"`
	SystemData *systemdata.SystemData   `json:"systemData,omitempty"`
	Tags       *map[string]string       `json:"tags,omitempty"`
	Type       *string                  `json:"type,omitempty"`
}

type MachineAssessPatchesResult

type MachineAssessPatchesResult struct {
	AssessmentActivityId                *string                              `json:"assessmentActivityId,omitempty"`
	AvailablePatchCountByClassification *AvailablePatchCountByClassification `json:"availablePatchCountByClassification,omitempty"`
	ErrorDetails                        *ErrorDetail                         `json:"errorDetails,omitempty"`
	LastModifiedDateTime                *string                              `json:"lastModifiedDateTime,omitempty"`
	OsType                              *OsType                              `json:"osType,omitempty"`
	PatchServiceUsed                    *PatchServiceUsed                    `json:"patchServiceUsed,omitempty"`
	RebootPending                       *bool                                `json:"rebootPending,omitempty"`
	StartDateTime                       *string                              `json:"startDateTime,omitempty"`
	StartedBy                           *PatchOperationStartedBy             `json:"startedBy,omitempty"`
	Status                              *PatchOperationStatus                `json:"status,omitempty"`
}

func (*MachineAssessPatchesResult) GetLastModifiedDateTimeAsTime

func (o *MachineAssessPatchesResult) GetLastModifiedDateTimeAsTime() (*time.Time, error)

func (*MachineAssessPatchesResult) GetStartDateTimeAsTime

func (o *MachineAssessPatchesResult) GetStartDateTimeAsTime() (*time.Time, error)

func (*MachineAssessPatchesResult) SetLastModifiedDateTimeAsTime

func (o *MachineAssessPatchesResult) SetLastModifiedDateTimeAsTime(input time.Time)

func (*MachineAssessPatchesResult) SetStartDateTimeAsTime

func (o *MachineAssessPatchesResult) SetStartDateTimeAsTime(input time.Time)

type MachineExtension

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

type MachineExtensionInstanceView

type MachineExtensionInstanceView struct {
	Name               *string                             `json:"name,omitempty"`
	Status             *MachineExtensionInstanceViewStatus `json:"status,omitempty"`
	Type               *string                             `json:"type,omitempty"`
	TypeHandlerVersion *string                             `json:"typeHandlerVersion,omitempty"`
}

type MachineExtensionInstanceViewStatus

type MachineExtensionInstanceViewStatus struct {
	Code          *string           `json:"code,omitempty"`
	DisplayStatus *string           `json:"displayStatus,omitempty"`
	Level         *StatusLevelTypes `json:"level,omitempty"`
	Message       *string           `json:"message,omitempty"`
	Time          *string           `json:"time,omitempty"`
}

func (*MachineExtensionInstanceViewStatus) GetTimeAsTime

func (o *MachineExtensionInstanceViewStatus) GetTimeAsTime() (*time.Time, error)

func (*MachineExtensionInstanceViewStatus) SetTimeAsTime

func (o *MachineExtensionInstanceViewStatus) SetTimeAsTime(input time.Time)

type MachineExtensionProperties

type MachineExtensionProperties struct {
	AutoUpgradeMinorVersion *bool                         `json:"autoUpgradeMinorVersion,omitempty"`
	EnableAutomaticUpgrade  *bool                         `json:"enableAutomaticUpgrade,omitempty"`
	ForceUpdateTag          *string                       `json:"forceUpdateTag,omitempty"`
	InstanceView            *MachineExtensionInstanceView `json:"instanceView,omitempty"`
	ProtectedSettings       *interface{}                  `json:"protectedSettings,omitempty"`
	ProvisioningState       *string                       `json:"provisioningState,omitempty"`
	Publisher               *string                       `json:"publisher,omitempty"`
	Settings                *interface{}                  `json:"settings,omitempty"`
	Type                    *string                       `json:"type,omitempty"`
	TypeHandlerVersion      *string                       `json:"typeHandlerVersion,omitempty"`
}

type MachineId

type MachineId struct {
	SubscriptionId    string
	ResourceGroupName string
	MachineName       string
}

MachineId is a struct representing the Resource ID for a Machine

func NewMachineID

func NewMachineID(subscriptionId string, resourceGroupName string, machineName string) MachineId

NewMachineID returns a new MachineId struct

func ParseMachineID

func ParseMachineID(input string) (*MachineId, error)

ParseMachineID parses 'input' into a MachineId

func ParseMachineIDInsensitively

func ParseMachineIDInsensitively(input string) (*MachineId, error)

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

func (MachineId) ID

func (id MachineId) ID() string

ID returns the formatted Machine ID

func (MachineId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Machine ID

func (MachineId) String

func (id MachineId) String() string

String returns a human-readable description of this Machine ID

type MachineInstallPatchesParameters

type MachineInstallPatchesParameters struct {
	LinuxParameters   *LinuxParameters          `json:"linuxParameters,omitempty"`
	MaximumDuration   string                    `json:"maximumDuration"`
	RebootSetting     VMGuestPatchRebootSetting `json:"rebootSetting"`
	WindowsParameters *WindowsParameters        `json:"windowsParameters,omitempty"`
}

type MachineInstallPatchesResult

type MachineInstallPatchesResult struct {
	ErrorDetails              *ErrorDetail              `json:"errorDetails,omitempty"`
	ExcludedPatchCount        *int64                    `json:"excludedPatchCount,omitempty"`
	FailedPatchCount          *int64                    `json:"failedPatchCount,omitempty"`
	InstallationActivityId    *string                   `json:"installationActivityId,omitempty"`
	InstalledPatchCount       *int64                    `json:"installedPatchCount,omitempty"`
	LastModifiedDateTime      *string                   `json:"lastModifiedDateTime,omitempty"`
	MaintenanceWindowExceeded *bool                     `json:"maintenanceWindowExceeded,omitempty"`
	NotSelectedPatchCount     *int64                    `json:"notSelectedPatchCount,omitempty"`
	OsType                    *OsType                   `json:"osType,omitempty"`
	PatchServiceUsed          *PatchServiceUsed         `json:"patchServiceUsed,omitempty"`
	PendingPatchCount         *int64                    `json:"pendingPatchCount,omitempty"`
	RebootStatus              *VMGuestPatchRebootStatus `json:"rebootStatus,omitempty"`
	StartDateTime             *string                   `json:"startDateTime,omitempty"`
	StartedBy                 *PatchOperationStartedBy  `json:"startedBy,omitempty"`
	Status                    *PatchOperationStatus     `json:"status,omitempty"`
}

func (*MachineInstallPatchesResult) GetLastModifiedDateTimeAsTime

func (o *MachineInstallPatchesResult) GetLastModifiedDateTimeAsTime() (*time.Time, error)

func (*MachineInstallPatchesResult) GetStartDateTimeAsTime

func (o *MachineInstallPatchesResult) GetStartDateTimeAsTime() (*time.Time, error)

func (*MachineInstallPatchesResult) SetLastModifiedDateTimeAsTime

func (o *MachineInstallPatchesResult) SetLastModifiedDateTimeAsTime(input time.Time)

func (*MachineInstallPatchesResult) SetStartDateTimeAsTime

func (o *MachineInstallPatchesResult) SetStartDateTimeAsTime(input time.Time)

type MachineOperationPredicate

type MachineOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (MachineOperationPredicate) Matches

func (p MachineOperationPredicate) Matches(input Machine) bool

type MachineProperties

type MachineProperties struct {
	AdFqdn                     *string                         `json:"adFqdn,omitempty"`
	AgentConfiguration         *AgentConfiguration             `json:"agentConfiguration,omitempty"`
	AgentUpgrade               *AgentUpgrade                   `json:"agentUpgrade,omitempty"`
	AgentVersion               *string                         `json:"agentVersion,omitempty"`
	ClientPublicKey            *string                         `json:"clientPublicKey,omitempty"`
	CloudMetadata              *CloudMetadata                  `json:"cloudMetadata,omitempty"`
	DetectedProperties         *map[string]string              `json:"detectedProperties,omitempty"`
	DisplayName                *string                         `json:"displayName,omitempty"`
	DnsFqdn                    *string                         `json:"dnsFqdn,omitempty"`
	DomainName                 *string                         `json:"domainName,omitempty"`
	ErrorDetails               *[]ErrorDetail                  `json:"errorDetails,omitempty"`
	Extensions                 *[]MachineExtensionInstanceView `json:"extensions,omitempty"`
	LastStatusChange           *string                         `json:"lastStatusChange,omitempty"`
	LocationData               *LocationData                   `json:"locationData,omitempty"`
	MachineFqdn                *string                         `json:"machineFqdn,omitempty"`
	MssqlDiscovered            *string                         `json:"mssqlDiscovered,omitempty"`
	OsName                     *string                         `json:"osName,omitempty"`
	OsProfile                  *OSProfile                      `json:"osProfile,omitempty"`
	OsSku                      *string                         `json:"osSku,omitempty"`
	OsType                     *string                         `json:"osType,omitempty"`
	OsVersion                  *string                         `json:"osVersion,omitempty"`
	ParentClusterResourceId    *string                         `json:"parentClusterResourceId,omitempty"`
	PrivateLinkScopeResourceId *string                         `json:"privateLinkScopeResourceId,omitempty"`
	ProvisioningState          *string                         `json:"provisioningState,omitempty"`
	ServiceStatuses            *ServiceStatuses                `json:"serviceStatuses,omitempty"`
	Status                     *StatusTypes                    `json:"status,omitempty"`
	VMId                       *string                         `json:"vmId,omitempty"`
	VMUuid                     *string                         `json:"vmUuid,omitempty"`
}

func (*MachineProperties) GetLastStatusChangeAsTime

func (o *MachineProperties) GetLastStatusChangeAsTime() (*time.Time, error)

func (*MachineProperties) SetLastStatusChangeAsTime

func (o *MachineProperties) SetLastStatusChangeAsTime(input time.Time)

type MachineUpdate

type MachineUpdate struct {
	Identity   *identity.SystemAssigned `json:"identity,omitempty"`
	Properties *MachineUpdateProperties `json:"properties,omitempty"`
	Tags       *map[string]string       `json:"tags,omitempty"`
}

type MachineUpdateProperties

type MachineUpdateProperties struct {
	AgentUpgrade               *AgentUpgrade  `json:"agentUpgrade,omitempty"`
	CloudMetadata              *CloudMetadata `json:"cloudMetadata,omitempty"`
	LocationData               *LocationData  `json:"locationData,omitempty"`
	OsProfile                  *OSProfile     `json:"osProfile,omitempty"`
	ParentClusterResourceId    *string        `json:"parentClusterResourceId,omitempty"`
	PrivateLinkScopeResourceId *string        `json:"privateLinkScopeResourceId,omitempty"`
}

type MachinesClient

type MachinesClient struct {
	Client *resourcemanager.Client
}

func NewMachinesClientWithBaseURI

func NewMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*MachinesClient, error)

func (MachinesClient) AssessPatches

func (c MachinesClient) AssessPatches(ctx context.Context, id MachineId) (result AssessPatchesOperationResponse, err error)

AssessPatches ...

func (MachinesClient) AssessPatchesThenPoll

func (c MachinesClient) AssessPatchesThenPoll(ctx context.Context, id MachineId) error

AssessPatchesThenPoll performs AssessPatches then polls until it's completed

func (MachinesClient) CreateOrUpdate

func (c MachinesClient) CreateOrUpdate(ctx context.Context, id MachineId, input Machine) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (MachinesClient) Delete

func (c MachinesClient) Delete(ctx context.Context, id MachineId) (result DeleteOperationResponse, err error)

Delete ...

func (MachinesClient) Get

Get ...

func (MachinesClient) InstallPatches

InstallPatches ...

func (MachinesClient) InstallPatchesThenPoll

func (c MachinesClient) InstallPatchesThenPoll(ctx context.Context, id MachineId, input MachineInstallPatchesParameters) error

InstallPatchesThenPoll performs InstallPatches then polls until it's completed

func (MachinesClient) ListByResourceGroup

ListByResourceGroup ...

func (MachinesClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (MachinesClient) ListByResourceGroupCompleteMatchingPredicate

func (c MachinesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate MachineOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MachinesClient) ListBySubscription

ListBySubscription ...

func (MachinesClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (MachinesClient) ListBySubscriptionCompleteMatchingPredicate

func (c MachinesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate MachineOperationPredicate) (result ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MachinesClient) Update

func (c MachinesClient) Update(ctx context.Context, id MachineId, input MachineUpdate) (result UpdateOperationResponse, err error)

Update ...

type OSProfile

type OSProfile struct {
	ComputerName         *string                        `json:"computerName,omitempty"`
	LinuxConfiguration   *OSProfileLinuxConfiguration   `json:"linuxConfiguration,omitempty"`
	WindowsConfiguration *OSProfileWindowsConfiguration `json:"windowsConfiguration,omitempty"`
}

type OSProfileLinuxConfiguration

type OSProfileLinuxConfiguration struct {
	PatchSettings *PatchSettings `json:"patchSettings,omitempty"`
}

type OSProfileWindowsConfiguration

type OSProfileWindowsConfiguration struct {
	PatchSettings *PatchSettings `json:"patchSettings,omitempty"`
}

type OsType

type OsType string
const (
	OsTypeLinux   OsType = "Linux"
	OsTypeWindows OsType = "Windows"
)

func (*OsType) UnmarshalJSON added in v0.20230804.1074947

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

type PatchModeTypes

type PatchModeTypes string
const (
	PatchModeTypesAutomaticByOS       PatchModeTypes = "AutomaticByOS"
	PatchModeTypesAutomaticByPlatform PatchModeTypes = "AutomaticByPlatform"
	PatchModeTypesImageDefault        PatchModeTypes = "ImageDefault"
	PatchModeTypesManual              PatchModeTypes = "Manual"
)

func (*PatchModeTypes) UnmarshalJSON added in v0.20230804.1074947

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

type PatchOperationStartedBy

type PatchOperationStartedBy string
const (
	PatchOperationStartedByPlatform PatchOperationStartedBy = "Platform"
	PatchOperationStartedByUser     PatchOperationStartedBy = "User"
)

func (*PatchOperationStartedBy) UnmarshalJSON added in v0.20230804.1074947

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

type PatchOperationStatus

type PatchOperationStatus string
const (
	PatchOperationStatusCompletedWithWarnings PatchOperationStatus = "CompletedWithWarnings"
	PatchOperationStatusFailed                PatchOperationStatus = "Failed"
	PatchOperationStatusInProgress            PatchOperationStatus = "InProgress"
	PatchOperationStatusSucceeded             PatchOperationStatus = "Succeeded"
	PatchOperationStatusUnknown               PatchOperationStatus = "Unknown"
)

func (*PatchOperationStatus) UnmarshalJSON added in v0.20230804.1074947

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

type PatchServiceUsed

type PatchServiceUsed string
const (
	PatchServiceUsedAPT     PatchServiceUsed = "APT"
	PatchServiceUsedUnknown PatchServiceUsed = "Unknown"
	PatchServiceUsedWU      PatchServiceUsed = "WU"
	PatchServiceUsedWUWSUS  PatchServiceUsed = "WU_WSUS"
	PatchServiceUsedYUM     PatchServiceUsed = "YUM"
	PatchServiceUsedZypper  PatchServiceUsed = "Zypper"
)

func (*PatchServiceUsed) UnmarshalJSON added in v0.20230804.1074947

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

type PatchSettings

type PatchSettings struct {
	AssessmentMode *AssessmentModeTypes `json:"assessmentMode,omitempty"`
	PatchMode      *PatchModeTypes      `json:"patchMode,omitempty"`
}

type ServiceStatus

type ServiceStatus struct {
	StartupType *string `json:"startupType,omitempty"`
	Status      *string `json:"status,omitempty"`
}

type ServiceStatuses

type ServiceStatuses struct {
	ExtensionService          *ServiceStatus `json:"extensionService,omitempty"`
	GuestConfigurationService *ServiceStatus `json:"guestConfigurationService,omitempty"`
}

type StatusLevelTypes

type StatusLevelTypes string
const (
	StatusLevelTypesError   StatusLevelTypes = "Error"
	StatusLevelTypesInfo    StatusLevelTypes = "Info"
	StatusLevelTypesWarning StatusLevelTypes = "Warning"
)

func (*StatusLevelTypes) UnmarshalJSON added in v0.20230804.1074947

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

type StatusTypes

type StatusTypes string
const (
	StatusTypesConnected    StatusTypes = "Connected"
	StatusTypesDisconnected StatusTypes = "Disconnected"
	StatusTypesError        StatusTypes = "Error"
)

func (*StatusTypes) UnmarshalJSON added in v0.20230804.1074947

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Machine
}

type VMGuestPatchClassificationLinux

type VMGuestPatchClassificationLinux string
const (
	VMGuestPatchClassificationLinuxCritical VMGuestPatchClassificationLinux = "Critical"
	VMGuestPatchClassificationLinuxOther    VMGuestPatchClassificationLinux = "Other"
	VMGuestPatchClassificationLinuxSecurity VMGuestPatchClassificationLinux = "Security"
)

func (*VMGuestPatchClassificationLinux) UnmarshalJSON added in v0.20230804.1074947

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

type VMGuestPatchClassificationWindows

type VMGuestPatchClassificationWindows string
const (
	VMGuestPatchClassificationWindowsCritical     VMGuestPatchClassificationWindows = "Critical"
	VMGuestPatchClassificationWindowsDefinition   VMGuestPatchClassificationWindows = "Definition"
	VMGuestPatchClassificationWindowsFeaturePack  VMGuestPatchClassificationWindows = "FeaturePack"
	VMGuestPatchClassificationWindowsSecurity     VMGuestPatchClassificationWindows = "Security"
	VMGuestPatchClassificationWindowsServicePack  VMGuestPatchClassificationWindows = "ServicePack"
	VMGuestPatchClassificationWindowsTools        VMGuestPatchClassificationWindows = "Tools"
	VMGuestPatchClassificationWindowsUpdateRollUp VMGuestPatchClassificationWindows = "UpdateRollUp"
	VMGuestPatchClassificationWindowsUpdates      VMGuestPatchClassificationWindows = "Updates"
)

func (*VMGuestPatchClassificationWindows) UnmarshalJSON added in v0.20230804.1074947

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

type VMGuestPatchRebootSetting

type VMGuestPatchRebootSetting string
const (
	VMGuestPatchRebootSettingAlways     VMGuestPatchRebootSetting = "Always"
	VMGuestPatchRebootSettingIfRequired VMGuestPatchRebootSetting = "IfRequired"
	VMGuestPatchRebootSettingNever      VMGuestPatchRebootSetting = "Never"
)

func (*VMGuestPatchRebootSetting) UnmarshalJSON added in v0.20230804.1074947

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

type VMGuestPatchRebootStatus

type VMGuestPatchRebootStatus string
const (
	VMGuestPatchRebootStatusCompleted VMGuestPatchRebootStatus = "Completed"
	VMGuestPatchRebootStatusFailed    VMGuestPatchRebootStatus = "Failed"
	VMGuestPatchRebootStatusNotNeeded VMGuestPatchRebootStatus = "NotNeeded"
	VMGuestPatchRebootStatusRequired  VMGuestPatchRebootStatus = "Required"
	VMGuestPatchRebootStatusStarted   VMGuestPatchRebootStatus = "Started"
	VMGuestPatchRebootStatusUnknown   VMGuestPatchRebootStatus = "Unknown"
)

func (*VMGuestPatchRebootStatus) UnmarshalJSON added in v0.20230804.1074947

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

type WindowsParameters

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

func (*WindowsParameters) GetMaxPatchPublishDateAsTime

func (o *WindowsParameters) GetMaxPatchPublishDateAsTime() (*time.Time, error)

func (*WindowsParameters) SetMaxPatchPublishDateAsTime

func (o *WindowsParameters) SetMaxPatchPublishDateAsTime(input time.Time)

Jump to

Keyboard shortcuts

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