guestconfigurationassignmentreports

package
v0.20240710.1075622 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2022-01-25/guestconfigurationassignmentreports Documentation

The guestconfigurationassignmentreports SDK allows for interaction with the Azure Resource Manager Service guestconfiguration (API Version 2022-01-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/2022-01-25/guestconfigurationassignmentreports"

Client Initialization

client := guestconfigurationassignmentreports.NewGuestConfigurationAssignmentReportsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GuestConfigurationAssignmentReportsClient.Get

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

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

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

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
}

Example Usage: GuestConfigurationAssignmentReportsClient.VMSSGet

ctx := context.TODO()
id := guestconfigurationassignmentreports.NewReportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "guestConfigurationAssignmentValue", "reportValue")

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

Example Usage: GuestConfigurationAssignmentReportsClient.VMSSList

ctx := context.TODO()
id := guestconfigurationassignmentreports.NewGuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "guestConfigurationAssignmentValue")

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

func PossibleValuesForComplianceStatus() []string

func PossibleValuesForType

func PossibleValuesForType() []string

func ValidateGuestConfigurationAssignmentID

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

ValidateGuestConfigurationAssignmentID checks that 'input' can be parsed as a Guest Configuration Assignment ID

func ValidateProviders2GuestConfigurationAssignmentReportID

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

ValidateProviders2GuestConfigurationAssignmentReportID checks that 'input' can be parsed as a Providers 2 Guest Configuration Assignment Report ID

func ValidateReportID

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

ValidateReportID checks that 'input' can be parsed as a Report 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 AssignmentInfo

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

type AssignmentReportDetails

type AssignmentReportDetails struct {
	ComplianceStatus *ComplianceStatus           `json:"complianceStatus,omitempty"`
	EndTime          *string                     `json:"endTime,omitempty"`
	JobId            *string                     `json:"jobId,omitempty"`
	OperationType    *Type                       `json:"operationType,omitempty"`
	Resources        *[]AssignmentReportResource `json:"resources,omitempty"`
	StartTime        *string                     `json:"startTime,omitempty"`
}

func (*AssignmentReportDetails) GetEndTimeAsTime

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

func (*AssignmentReportDetails) GetStartTimeAsTime

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

func (*AssignmentReportDetails) SetEndTimeAsTime

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

func (*AssignmentReportDetails) SetStartTimeAsTime

func (o *AssignmentReportDetails) 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 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 GetOperationResponse

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

type GuestConfigurationAssignmentId

type GuestConfigurationAssignmentId struct {
	SubscriptionId                   string
	ResourceGroupName                string
	VirtualMachineScaleSetName       string
	GuestConfigurationAssignmentName string
}

GuestConfigurationAssignmentId is a struct representing the Resource ID for a Guest Configuration Assignment

func NewGuestConfigurationAssignmentID

func NewGuestConfigurationAssignmentID(subscriptionId string, resourceGroupName string, virtualMachineScaleSetName string, guestConfigurationAssignmentName string) GuestConfigurationAssignmentId

NewGuestConfigurationAssignmentID returns a new GuestConfigurationAssignmentId struct

func ParseGuestConfigurationAssignmentID

func ParseGuestConfigurationAssignmentID(input string) (*GuestConfigurationAssignmentId, error)

ParseGuestConfigurationAssignmentID parses 'input' into a GuestConfigurationAssignmentId

func ParseGuestConfigurationAssignmentIDInsensitively

func ParseGuestConfigurationAssignmentIDInsensitively(input string) (*GuestConfigurationAssignmentId, error)

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

func (*GuestConfigurationAssignmentId) FromParseResult

func (id *GuestConfigurationAssignmentId) FromParseResult(input resourceids.ParseResult) error

func (GuestConfigurationAssignmentId) ID

ID returns the formatted Guest Configuration Assignment ID

func (GuestConfigurationAssignmentId) Segments

Segments returns a slice of Resource ID Segments which comprise this Guest Configuration Assignment ID

func (GuestConfigurationAssignmentId) String

String returns a human-readable description of this Guest Configuration Assignment ID

type GuestConfigurationAssignmentReport

type GuestConfigurationAssignmentReport struct {
	Id         *string                                       `json:"id,omitempty"`
	Name       *string                                       `json:"name,omitempty"`
	Properties *GuestConfigurationAssignmentReportProperties `json:"properties,omitempty"`
}

type GuestConfigurationAssignmentReportList

type GuestConfigurationAssignmentReportList struct {
	Value *[]GuestConfigurationAssignmentReport `json:"value,omitempty"`
}

type GuestConfigurationAssignmentReportProperties

type GuestConfigurationAssignmentReportProperties struct {
	Assignment       *AssignmentInfo          `json:"assignment,omitempty"`
	ComplianceStatus *ComplianceStatus        `json:"complianceStatus,omitempty"`
	Details          *AssignmentReportDetails `json:"details,omitempty"`
	EndTime          *string                  `json:"endTime,omitempty"`
	ReportId         *string                  `json:"reportId,omitempty"`
	StartTime        *string                  `json:"startTime,omitempty"`
	VM               *VMInfo                  `json:"vm,omitempty"`
	VMSSResourceId   *string                  `json:"vmssResourceId,omitempty"`
}

func (*GuestConfigurationAssignmentReportProperties) GetEndTimeAsTime

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

func (*GuestConfigurationAssignmentReportProperties) GetStartTimeAsTime

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

func (*GuestConfigurationAssignmentReportProperties) SetEndTimeAsTime

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

func (*GuestConfigurationAssignmentReportProperties) SetStartTimeAsTime

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

type GuestConfigurationAssignmentReportsClient

type GuestConfigurationAssignmentReportsClient struct {
	Client *resourcemanager.Client
}

func NewGuestConfigurationAssignmentReportsClientWithBaseURI

func NewGuestConfigurationAssignmentReportsClientWithBaseURI(sdkApi sdkEnv.Api) (*GuestConfigurationAssignmentReportsClient, error)

func (GuestConfigurationAssignmentReportsClient) Get

Get ...

func (GuestConfigurationAssignmentReportsClient) List

List ...

func (GuestConfigurationAssignmentReportsClient) VMSSGet

VMSSGet ...

func (GuestConfigurationAssignmentReportsClient) VMSSList

VMSSList ...

type ListOperationResponse

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

type Providers2GuestConfigurationAssignmentReportId

type Providers2GuestConfigurationAssignmentReportId struct {
	SubscriptionId                   string
	ResourceGroupName                string
	VirtualMachineName               string
	GuestConfigurationAssignmentName string
	ReportId                         string
}

Providers2GuestConfigurationAssignmentReportId is a struct representing the Resource ID for a Providers 2 Guest Configuration Assignment Report

func NewProviders2GuestConfigurationAssignmentReportID

func NewProviders2GuestConfigurationAssignmentReportID(subscriptionId string, resourceGroupName string, virtualMachineName string, guestConfigurationAssignmentName string, reportId string) Providers2GuestConfigurationAssignmentReportId

NewProviders2GuestConfigurationAssignmentReportID returns a new Providers2GuestConfigurationAssignmentReportId struct

func ParseProviders2GuestConfigurationAssignmentReportID

func ParseProviders2GuestConfigurationAssignmentReportID(input string) (*Providers2GuestConfigurationAssignmentReportId, error)

ParseProviders2GuestConfigurationAssignmentReportID parses 'input' into a Providers2GuestConfigurationAssignmentReportId

func ParseProviders2GuestConfigurationAssignmentReportIDInsensitively

func ParseProviders2GuestConfigurationAssignmentReportIDInsensitively(input string) (*Providers2GuestConfigurationAssignmentReportId, error)

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

func (*Providers2GuestConfigurationAssignmentReportId) FromParseResult

func (Providers2GuestConfigurationAssignmentReportId) ID

ID returns the formatted Providers 2 Guest Configuration Assignment Report ID

func (Providers2GuestConfigurationAssignmentReportId) Segments

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

func (Providers2GuestConfigurationAssignmentReportId) String

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

type ReportId

type ReportId struct {
	SubscriptionId                   string
	ResourceGroupName                string
	VirtualMachineScaleSetName       string
	GuestConfigurationAssignmentName string
	ReportName                       string
}

ReportId is a struct representing the Resource ID for a Report

func NewReportID

func NewReportID(subscriptionId string, resourceGroupName string, virtualMachineScaleSetName string, guestConfigurationAssignmentName string, reportName string) ReportId

NewReportID returns a new ReportId struct

func ParseReportID

func ParseReportID(input string) (*ReportId, error)

ParseReportID parses 'input' into a ReportId

func ParseReportIDInsensitively

func ParseReportIDInsensitively(input string) (*ReportId, error)

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

func (*ReportId) FromParseResult

func (id *ReportId) FromParseResult(input resourceids.ParseResult) error

func (ReportId) ID

func (id ReportId) ID() string

ID returns the formatted Report ID

func (ReportId) Segments

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

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

func (ReportId) String

func (id ReportId) String() string

String returns a human-readable description of this Report ID

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 VMSSGetOperationResponse

type VMSSGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GuestConfigurationAssignmentReport
}

type VMSSListOperationResponse

type VMSSListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GuestConfigurationAssignmentReportList
}

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

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