reports

package
v0.20230915.1085818 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/reports Documentation

The reports SDK allows for interaction with the Azure Resource Manager Service automanage (API Version 2022-05-04).

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/automanage/2022-05-04/reports"

Client Initialization

client := reports.NewReportsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReportsClient.Get

ctx := context.TODO()
id := reports.NewProviders2ConfigurationProfileAssignmentReportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "configurationProfileAssignmentValue", "reportValue")

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: ReportsClient.ListByConfigurationProfileAssignments

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

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

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

ValidateProviders2ConfigurationProfileAssignmentReportID checks that 'input' can be parsed as a Providers 2 Configuration Profile Assignment Report ID

func ValidateVirtualMachineProviders2ConfigurationProfileAssignmentID

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

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

Types

type AssignmentReportProperties

type AssignmentReportProperties struct {
	ConfigurationProfile *string           `json:"configurationProfile,omitempty"`
	Duration             *string           `json:"duration,omitempty"`
	EndTime              *string           `json:"endTime,omitempty"`
	Error                *ErrorDetail      `json:"error,omitempty"`
	LastModifiedTime     *string           `json:"lastModifiedTime,omitempty"`
	ReportFormatVersion  *string           `json:"reportFormatVersion,omitempty"`
	Resources            *[]ReportResource `json:"resources,omitempty"`
	StartTime            *string           `json:"startTime,omitempty"`
	Status               *string           `json:"status,omitempty"`
	Type                 *string           `json:"type,omitempty"`
}

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 GetOperationResponse

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

type ListByConfigurationProfileAssignmentsOperationResponse

type ListByConfigurationProfileAssignmentsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ReportList
}

type Providers2ConfigurationProfileAssignmentReportId

type Providers2ConfigurationProfileAssignmentReportId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	VirtualMachineName                 string
	ConfigurationProfileAssignmentName string
	ReportName                         string
}

Providers2ConfigurationProfileAssignmentReportId is a struct representing the Resource ID for a Providers 2 Configuration Profile Assignment Report

func NewProviders2ConfigurationProfileAssignmentReportID

func NewProviders2ConfigurationProfileAssignmentReportID(subscriptionId string, resourceGroupName string, virtualMachineName string, configurationProfileAssignmentName string, reportName string) Providers2ConfigurationProfileAssignmentReportId

NewProviders2ConfigurationProfileAssignmentReportID returns a new Providers2ConfigurationProfileAssignmentReportId struct

func ParseProviders2ConfigurationProfileAssignmentReportID

func ParseProviders2ConfigurationProfileAssignmentReportID(input string) (*Providers2ConfigurationProfileAssignmentReportId, error)

ParseProviders2ConfigurationProfileAssignmentReportID parses 'input' into a Providers2ConfigurationProfileAssignmentReportId

func ParseProviders2ConfigurationProfileAssignmentReportIDInsensitively

func ParseProviders2ConfigurationProfileAssignmentReportIDInsensitively(input string) (*Providers2ConfigurationProfileAssignmentReportId, error)

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

func (Providers2ConfigurationProfileAssignmentReportId) ID

ID returns the formatted Providers 2 Configuration Profile Assignment Report ID

func (Providers2ConfigurationProfileAssignmentReportId) Segments

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

func (Providers2ConfigurationProfileAssignmentReportId) String

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

type Report

type Report struct {
	Id         *string                     `json:"id,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties *AssignmentReportProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData      `json:"systemData,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type ReportList

type ReportList struct {
	Value *[]Report `json:"value,omitempty"`
}

type ReportResource

type ReportResource struct {
	Error  *ErrorDetail `json:"error,omitempty"`
	Id     *string      `json:"id,omitempty"`
	Name   *string      `json:"name,omitempty"`
	Status *string      `json:"status,omitempty"`
	Type   *string      `json:"type,omitempty"`
}

type ReportsClient

type ReportsClient struct {
	Client *resourcemanager.Client
}

func NewReportsClientWithBaseURI

func NewReportsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReportsClient, error)

func (ReportsClient) Get

Get ...

func (ReportsClient) ListByConfigurationProfileAssignments

ListByConfigurationProfileAssignments ...

type VirtualMachineProviders2ConfigurationProfileAssignmentId

type VirtualMachineProviders2ConfigurationProfileAssignmentId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	VirtualMachineName                 string
	ConfigurationProfileAssignmentName string
}

VirtualMachineProviders2ConfigurationProfileAssignmentId is a struct representing the Resource ID for a Virtual Machine Providers 2 Configuration Profile Assignment

func NewVirtualMachineProviders2ConfigurationProfileAssignmentID

func NewVirtualMachineProviders2ConfigurationProfileAssignmentID(subscriptionId string, resourceGroupName string, virtualMachineName string, configurationProfileAssignmentName string) VirtualMachineProviders2ConfigurationProfileAssignmentId

NewVirtualMachineProviders2ConfigurationProfileAssignmentID returns a new VirtualMachineProviders2ConfigurationProfileAssignmentId struct

func ParseVirtualMachineProviders2ConfigurationProfileAssignmentID

func ParseVirtualMachineProviders2ConfigurationProfileAssignmentID(input string) (*VirtualMachineProviders2ConfigurationProfileAssignmentId, error)

ParseVirtualMachineProviders2ConfigurationProfileAssignmentID parses 'input' into a VirtualMachineProviders2ConfigurationProfileAssignmentId

func ParseVirtualMachineProviders2ConfigurationProfileAssignmentIDInsensitively

func ParseVirtualMachineProviders2ConfigurationProfileAssignmentIDInsensitively(input string) (*VirtualMachineProviders2ConfigurationProfileAssignmentId, error)

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

func (VirtualMachineProviders2ConfigurationProfileAssignmentId) ID

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

func (VirtualMachineProviders2ConfigurationProfileAssignmentId) Segments

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

func (VirtualMachineProviders2ConfigurationProfileAssignmentId) String

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

Jump to

Keyboard shortcuts

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