guestconfigurationassignmenthcrpreports

package
v0.20230509.1154719 Latest Latest
Warning

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

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

README

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

The guestconfigurationassignmenthcrpreports 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/guestconfigurationassignmenthcrpreports"

Client Initialization

client := guestconfigurationassignmenthcrpreports.NewGuestConfigurationAssignmentHCRPReportsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GuestConfigurationAssignmentHCRPReportsClient.GuestConfigurationHCRPAssignmentReportsGet

ctx := context.TODO()
id := guestconfigurationassignmenthcrpreports.NewGuestConfigurationAssignmentReportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "guestConfigurationAssignmentValue", "reportIdValue")

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

Example Usage: GuestConfigurationAssignmentHCRPReportsClient.GuestConfigurationHCRPAssignmentReportsList

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

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

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

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

func ValidateProviders2GuestConfigurationAssignmentID

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

ValidateProviders2GuestConfigurationAssignmentID checks that 'input' can be parsed as a 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 GuestConfigurationAssignmentHCRPReportsClient

type GuestConfigurationAssignmentHCRPReportsClient struct {
	Client *resourcemanager.Client
}

func NewGuestConfigurationAssignmentHCRPReportsClientWithBaseURI

func NewGuestConfigurationAssignmentHCRPReportsClientWithBaseURI(api environments.Api) (*GuestConfigurationAssignmentHCRPReportsClient, error)

func (GuestConfigurationAssignmentHCRPReportsClient) GuestConfigurationHCRPAssignmentReportsGet

GuestConfigurationHCRPAssignmentReportsGet ...

func (GuestConfigurationAssignmentHCRPReportsClient) GuestConfigurationHCRPAssignmentReportsList

GuestConfigurationHCRPAssignmentReportsList ...

type GuestConfigurationAssignmentReport

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

type GuestConfigurationAssignmentReportId

type GuestConfigurationAssignmentReportId struct {
	SubscriptionId                   string
	ResourceGroupName                string
	MachineName                      string
	GuestConfigurationAssignmentName string
	ReportId                         string
}

GuestConfigurationAssignmentReportId is a struct representing the Resource ID for a Guest Configuration Assignment Report

func NewGuestConfigurationAssignmentReportID

func NewGuestConfigurationAssignmentReportID(subscriptionId string, resourceGroupName string, machineName string, guestConfigurationAssignmentName string, reportId string) GuestConfigurationAssignmentReportId

NewGuestConfigurationAssignmentReportID returns a new GuestConfigurationAssignmentReportId struct

func ParseGuestConfigurationAssignmentReportID

func ParseGuestConfigurationAssignmentReportID(input string) (*GuestConfigurationAssignmentReportId, error)

ParseGuestConfigurationAssignmentReportID parses 'input' into a GuestConfigurationAssignmentReportId

func ParseGuestConfigurationAssignmentReportIDInsensitively

func ParseGuestConfigurationAssignmentReportIDInsensitively(input string) (*GuestConfigurationAssignmentReportId, error)

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

func (GuestConfigurationAssignmentReportId) ID

ID returns the formatted Guest Configuration Assignment Report ID

func (GuestConfigurationAssignmentReportId) Segments

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

func (GuestConfigurationAssignmentReportId) String

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

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 GuestConfigurationHCRPAssignmentReportsGetOperationResponse

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

type GuestConfigurationHCRPAssignmentReportsListOperationResponse

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

type Providers2GuestConfigurationAssignmentId

type Providers2GuestConfigurationAssignmentId struct {
	SubscriptionId                   string
	ResourceGroupName                string
	MachineName                      string
	GuestConfigurationAssignmentName string
}

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

func NewProviders2GuestConfigurationAssignmentID

func NewProviders2GuestConfigurationAssignmentID(subscriptionId string, resourceGroupName string, machineName string, guestConfigurationAssignmentName string) Providers2GuestConfigurationAssignmentId

NewProviders2GuestConfigurationAssignmentID returns a new Providers2GuestConfigurationAssignmentId struct

func ParseProviders2GuestConfigurationAssignmentID

func ParseProviders2GuestConfigurationAssignmentID(input string) (*Providers2GuestConfigurationAssignmentId, error)

ParseProviders2GuestConfigurationAssignmentID parses 'input' into a Providers2GuestConfigurationAssignmentId

func ParseProviders2GuestConfigurationAssignmentIDInsensitively

func ParseProviders2GuestConfigurationAssignmentIDInsensitively(input string) (*Providers2GuestConfigurationAssignmentId, error)

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

func (Providers2GuestConfigurationAssignmentId) ID

ID returns the formatted Providers 2 Guest Configuration Assignment ID

func (Providers2GuestConfigurationAssignmentId) Segments

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

func (Providers2GuestConfigurationAssignmentId) String

String returns a human-readable description of this Providers 2 Guest Configuration Assignment 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"`
}

Jump to

Keyboard shortcuts

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