guestconfigurationconnectedvmwarevsphereassignments

package
v0.20230518.1140509 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationconnectedvmwarevsphereassignments Documentation

The guestconfigurationconnectedvmwarevsphereassignments SDK allows for interaction with the Azure Resource Manager Service guestconfiguration (API Version 2020-06-25).

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/guestconfiguration/2020-06-25/guestconfigurationconnectedvmwarevsphereassignments"

Client Initialization

client := guestconfigurationconnectedvmwarevsphereassignments.NewGuestConfigurationConnectedVMwarevSphereAssignmentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GuestConfigurationConnectedVMwarevSphereAssignmentsClient.CreateOrUpdate

ctx := context.TODO()
id := guestconfigurationconnectedvmwarevsphereassignments.NewVirtualMachineProviders2GuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "guestConfigurationAssignmentValue")

payload := guestconfigurationconnectedvmwarevsphereassignments.GuestConfigurationAssignment{
	// ...
}


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: GuestConfigurationConnectedVMwarevSphereAssignmentsClient.Delete

ctx := context.TODO()
id := guestconfigurationconnectedvmwarevsphereassignments.NewVirtualMachineProviders2GuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "guestConfigurationAssignmentValue")

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: GuestConfigurationConnectedVMwarevSphereAssignmentsClient.Get

ctx := context.TODO()
id := guestconfigurationconnectedvmwarevsphereassignments.NewVirtualMachineProviders2GuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "guestConfigurationAssignmentValue")

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

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

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 PossibleValuesForActionAfterReboot

func PossibleValuesForActionAfterReboot() []string

func PossibleValuesForAssignmentType

func PossibleValuesForAssignmentType() []string

func PossibleValuesForComplianceStatus

func PossibleValuesForComplianceStatus() []string

func PossibleValuesForConfigurationMode

func PossibleValuesForConfigurationMode() []string

func PossibleValuesForKind

func PossibleValuesForKind() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForType

func PossibleValuesForType() []string

func ValidateProviderVirtualMachineID

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

ValidateProviderVirtualMachineID checks that 'input' can be parsed as a Provider Virtual Machine ID

func ValidateVirtualMachineProviders2GuestConfigurationAssignmentID

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

ValidateVirtualMachineProviders2GuestConfigurationAssignmentID checks that 'input' can be parsed as a Virtual Machine Providers 2 Guest Configuration Assignment ID

Types

type ActionAfterReboot

type ActionAfterReboot string
const (
	ActionAfterRebootContinueConfiguration ActionAfterReboot = "ContinueConfiguration"
	ActionAfterRebootStopConfiguration     ActionAfterReboot = "StopConfiguration"
)

func (*ActionAfterReboot) UnmarshalJSON

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

type AssignmentInfo

type AssignmentInfo struct {
	Configuration *ConfigurationInfo `json:"configuration,omitempty"`
	Name          *string            `json:"name,omitempty"`
}

type AssignmentReport

type AssignmentReport struct {
	Assignment       *AssignmentInfo             `json:"assignment,omitempty"`
	ComplianceStatus *ComplianceStatus           `json:"complianceStatus,omitempty"`
	EndTime          *string                     `json:"endTime,omitempty"`
	Id               *string                     `json:"id,omitempty"`
	OperationType    *Type                       `json:"operationType,omitempty"`
	ReportId         *string                     `json:"reportId,omitempty"`
	Resources        *[]AssignmentReportResource `json:"resources,omitempty"`
	StartTime        *string                     `json:"startTime,omitempty"`
	VM               *VMInfo                     `json:"vm,omitempty"`
}

func (*AssignmentReport) GetEndTimeAsTime

func (o *AssignmentReport) GetEndTimeAsTime() (*time.Time, error)

func (*AssignmentReport) GetStartTimeAsTime

func (o *AssignmentReport) GetStartTimeAsTime() (*time.Time, error)

func (*AssignmentReport) SetEndTimeAsTime

func (o *AssignmentReport) SetEndTimeAsTime(input time.Time)

func (*AssignmentReport) SetStartTimeAsTime

func (o *AssignmentReport) SetStartTimeAsTime(input time.Time)

type AssignmentReportResource

type AssignmentReportResource struct {
	ComplianceStatus *ComplianceStatus                           `json:"complianceStatus,omitempty"`
	Properties       *interface{}                                `json:"properties,omitempty"`
	Reasons          *[]AssignmentReportResourceComplianceReason `json:"reasons,omitempty"`
	ResourceId       *string                                     `json:"resourceId,omitempty"`
}

type AssignmentReportResourceComplianceReason

type AssignmentReportResourceComplianceReason struct {
	Code   *string `json:"code,omitempty"`
	Phrase *string `json:"phrase,omitempty"`
}

type AssignmentType

type AssignmentType string
const (
	AssignmentTypeApplyAndAutoCorrect  AssignmentType = "ApplyAndAutoCorrect"
	AssignmentTypeApplyAndMonitor      AssignmentType = "ApplyAndMonitor"
	AssignmentTypeAudit                AssignmentType = "Audit"
	AssignmentTypeDeployAndAutoCorrect AssignmentType = "DeployAndAutoCorrect"
)

func (*AssignmentType) UnmarshalJSON

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

type ComplianceStatus

type ComplianceStatus string
const (
	ComplianceStatusCompliant    ComplianceStatus = "Compliant"
	ComplianceStatusNonCompliant ComplianceStatus = "NonCompliant"
	ComplianceStatusPending      ComplianceStatus = "Pending"
)

func (*ComplianceStatus) UnmarshalJSON

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

type ConfigurationInfo

type ConfigurationInfo struct {
	Name    *string `json:"name,omitempty"`
	Version *string `json:"version,omitempty"`
}

type ConfigurationMode

type ConfigurationMode string
const (
	ConfigurationModeApplyAndAutoCorrect ConfigurationMode = "ApplyAndAutoCorrect"
	ConfigurationModeApplyAndMonitor     ConfigurationMode = "ApplyAndMonitor"
	ConfigurationModeApplyOnly           ConfigurationMode = "ApplyOnly"
)

func (*ConfigurationMode) UnmarshalJSON

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

type ConfigurationParameter

type ConfigurationParameter struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type ConfigurationSetting

type ConfigurationSetting struct {
	ActionAfterReboot              *ActionAfterReboot `json:"actionAfterReboot,omitempty"`
	AllowModuleOverwrite           *bool              `json:"allowModuleOverwrite,omitempty"`
	ConfigurationMode              *ConfigurationMode `json:"configurationMode,omitempty"`
	ConfigurationModeFrequencyMins *float64           `json:"configurationModeFrequencyMins,omitempty"`
	RebootIfNeeded                 *bool              `json:"rebootIfNeeded,omitempty"`
	RefreshFrequencyMins           *float64           `json:"refreshFrequencyMins,omitempty"`
}

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type GuestConfigurationAssignment

type GuestConfigurationAssignment struct {
	Id         *string                                 `json:"id,omitempty"`
	Location   *string                                 `json:"location,omitempty"`
	Name       *string                                 `json:"name,omitempty"`
	Properties *GuestConfigurationAssignmentProperties `json:"properties,omitempty"`
	Type       *string                                 `json:"type,omitempty"`
}

type GuestConfigurationAssignmentList

type GuestConfigurationAssignmentList struct {
	Value *[]GuestConfigurationAssignment `json:"value,omitempty"`
}

type GuestConfigurationAssignmentProperties

type GuestConfigurationAssignmentProperties struct {
	AssignmentHash              *string                       `json:"assignmentHash,omitempty"`
	ComplianceStatus            *ComplianceStatus             `json:"complianceStatus,omitempty"`
	Context                     *string                       `json:"context,omitempty"`
	GuestConfiguration          *GuestConfigurationNavigation `json:"guestConfiguration,omitempty"`
	LastComplianceStatusChecked *string                       `json:"lastComplianceStatusChecked,omitempty"`
	LatestAssignmentReport      *AssignmentReport             `json:"latestAssignmentReport,omitempty"`
	LatestReportId              *string                       `json:"latestReportId,omitempty"`
	ParameterHash               *string                       `json:"parameterHash,omitempty"`
	ProvisioningState           *ProvisioningState            `json:"provisioningState,omitempty"`
	ResourceType                *string                       `json:"resourceType,omitempty"`
	TargetResourceId            *string                       `json:"targetResourceId,omitempty"`
	VMSSVMList                  *[]VMSSVMInfo                 `json:"vmssVMList,omitempty"`
}

func (*GuestConfigurationAssignmentProperties) GetLastComplianceStatusCheckedAsTime

func (o *GuestConfigurationAssignmentProperties) GetLastComplianceStatusCheckedAsTime() (*time.Time, error)

func (*GuestConfigurationAssignmentProperties) SetLastComplianceStatusCheckedAsTime

func (o *GuestConfigurationAssignmentProperties) SetLastComplianceStatusCheckedAsTime(input time.Time)

type GuestConfigurationConnectedVMwarevSphereAssignmentsClient

type GuestConfigurationConnectedVMwarevSphereAssignmentsClient struct {
	Client *resourcemanager.Client
}

func (GuestConfigurationConnectedVMwarevSphereAssignmentsClient) CreateOrUpdate

CreateOrUpdate ...

func (GuestConfigurationConnectedVMwarevSphereAssignmentsClient) Delete

Delete ...

func (GuestConfigurationConnectedVMwarevSphereAssignmentsClient) Get

Get ...

func (GuestConfigurationConnectedVMwarevSphereAssignmentsClient) List

List ...

type GuestConfigurationNavigation

type GuestConfigurationNavigation struct {
	AssignmentType                  *AssignmentType           `json:"assignmentType,omitempty"`
	ConfigurationParameter          *[]ConfigurationParameter `json:"configurationParameter,omitempty"`
	ConfigurationProtectedParameter *[]ConfigurationParameter `json:"configurationProtectedParameter,omitempty"`
	ConfigurationSetting            *ConfigurationSetting     `json:"configurationSetting,omitempty"`
	ContentHash                     *string                   `json:"contentHash,omitempty"`
	ContentType                     *string                   `json:"contentType,omitempty"`
	ContentUri                      *string                   `json:"contentUri,omitempty"`
	Kind                            *Kind                     `json:"kind,omitempty"`
	Name                            *string                   `json:"name,omitempty"`
	Version                         *string                   `json:"version,omitempty"`
}

type Kind

type Kind string
const (
	KindDSC Kind = "DSC"
)

func (*Kind) UnmarshalJSON

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

type ListOperationResponse

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

type ProviderVirtualMachineId

type ProviderVirtualMachineId struct {
	SubscriptionId     string
	ResourceGroupName  string
	VirtualMachineName string
}

ProviderVirtualMachineId is a struct representing the Resource ID for a Provider Virtual Machine

func NewProviderVirtualMachineID

func NewProviderVirtualMachineID(subscriptionId string, resourceGroupName string, virtualMachineName string) ProviderVirtualMachineId

NewProviderVirtualMachineID returns a new ProviderVirtualMachineId struct

func ParseProviderVirtualMachineID

func ParseProviderVirtualMachineID(input string) (*ProviderVirtualMachineId, error)

ParseProviderVirtualMachineID parses 'input' into a ProviderVirtualMachineId

func ParseProviderVirtualMachineIDInsensitively

func ParseProviderVirtualMachineIDInsensitively(input string) (*ProviderVirtualMachineId, error)

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

func (ProviderVirtualMachineId) ID

ID returns the formatted Provider Virtual Machine ID

func (ProviderVirtualMachineId) Segments

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

func (ProviderVirtualMachineId) String

func (id ProviderVirtualMachineId) String() string

String returns a human-readable description of this Provider Virtual Machine ID

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateCreated   ProvisioningState = "Created"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

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

type Type

type Type string
const (
	TypeConsistency Type = "Consistency"
	TypeInitial     Type = "Initial"
)

func (*Type) UnmarshalJSON

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

type VMInfo

type VMInfo struct {
	Id   *string `json:"id,omitempty"`
	Uuid *string `json:"uuid,omitempty"`
}

type VMSSVMInfo

type VMSSVMInfo struct {
	ComplianceStatus      *ComplianceStatus `json:"complianceStatus,omitempty"`
	LastComplianceChecked *string           `json:"lastComplianceChecked,omitempty"`
	LatestReportId        *string           `json:"latestReportId,omitempty"`
	VMId                  *string           `json:"vmId,omitempty"`
	VMResourceId          *string           `json:"vmResourceId,omitempty"`
}

func (*VMSSVMInfo) GetLastComplianceCheckedAsTime

func (o *VMSSVMInfo) GetLastComplianceCheckedAsTime() (*time.Time, error)

func (*VMSSVMInfo) SetLastComplianceCheckedAsTime

func (o *VMSSVMInfo) SetLastComplianceCheckedAsTime(input time.Time)

type VirtualMachineProviders2GuestConfigurationAssignmentId

type VirtualMachineProviders2GuestConfigurationAssignmentId struct {
	SubscriptionId                   string
	ResourceGroupName                string
	VirtualMachineName               string
	GuestConfigurationAssignmentName string
}

VirtualMachineProviders2GuestConfigurationAssignmentId is a struct representing the Resource ID for a Virtual Machine Providers 2 Guest Configuration Assignment

func NewVirtualMachineProviders2GuestConfigurationAssignmentID

func NewVirtualMachineProviders2GuestConfigurationAssignmentID(subscriptionId string, resourceGroupName string, virtualMachineName string, guestConfigurationAssignmentName string) VirtualMachineProviders2GuestConfigurationAssignmentId

NewVirtualMachineProviders2GuestConfigurationAssignmentID returns a new VirtualMachineProviders2GuestConfigurationAssignmentId struct

func ParseVirtualMachineProviders2GuestConfigurationAssignmentID

func ParseVirtualMachineProviders2GuestConfigurationAssignmentID(input string) (*VirtualMachineProviders2GuestConfigurationAssignmentId, error)

ParseVirtualMachineProviders2GuestConfigurationAssignmentID parses 'input' into a VirtualMachineProviders2GuestConfigurationAssignmentId

func ParseVirtualMachineProviders2GuestConfigurationAssignmentIDInsensitively

func ParseVirtualMachineProviders2GuestConfigurationAssignmentIDInsensitively(input string) (*VirtualMachineProviders2GuestConfigurationAssignmentId, error)

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

func (VirtualMachineProviders2GuestConfigurationAssignmentId) ID

ID returns the formatted Virtual Machine Providers 2 Guest Configuration Assignment ID

func (VirtualMachineProviders2GuestConfigurationAssignmentId) Segments

Segments returns a slice of Resource ID Segments which comprise this Virtual Machine Providers 2 Guest Configuration Assignment ID

func (VirtualMachineProviders2GuestConfigurationAssignmentId) String

String returns a human-readable description of this Virtual Machine Providers 2 Guest Configuration Assignment ID

Jump to

Keyboard shortcuts

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