hcrpreports

package
v0.20240715.1103416 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

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

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

Client Initialization

client := hcrpreports.NewHCRPReportsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: HCRPReportsClient.Get

ctx := context.TODO()
id := hcrpreports.NewConfigurationProfileAssignmentReportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "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: HCRPReportsClient.ListByConfigurationProfileAssignments

ctx := context.TODO()
id := hcrpreports.NewProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "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 ValidateConfigurationProfileAssignmentReportID

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

ValidateConfigurationProfileAssignmentReportID checks that 'input' can be parsed as a Configuration Profile Assignment Report ID

func ValidateProviders2ConfigurationProfileAssignmentID

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

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

type ConfigurationProfileAssignmentReportId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	MachineName                        string
	ConfigurationProfileAssignmentName string
	ReportName                         string
}

ConfigurationProfileAssignmentReportId is a struct representing the Resource ID for a Configuration Profile Assignment Report

func NewConfigurationProfileAssignmentReportID

func NewConfigurationProfileAssignmentReportID(subscriptionId string, resourceGroupName string, machineName string, configurationProfileAssignmentName string, reportName string) ConfigurationProfileAssignmentReportId

NewConfigurationProfileAssignmentReportID returns a new ConfigurationProfileAssignmentReportId struct

func ParseConfigurationProfileAssignmentReportID

func ParseConfigurationProfileAssignmentReportID(input string) (*ConfigurationProfileAssignmentReportId, error)

ParseConfigurationProfileAssignmentReportID parses 'input' into a ConfigurationProfileAssignmentReportId

func ParseConfigurationProfileAssignmentReportIDInsensitively

func ParseConfigurationProfileAssignmentReportIDInsensitively(input string) (*ConfigurationProfileAssignmentReportId, error)

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

func (*ConfigurationProfileAssignmentReportId) FromParseResult

func (ConfigurationProfileAssignmentReportId) ID

ID returns the formatted Configuration Profile Assignment Report ID

func (ConfigurationProfileAssignmentReportId) Segments

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

func (ConfigurationProfileAssignmentReportId) String

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

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 HCRPReportsClient

type HCRPReportsClient struct {
	Client *resourcemanager.Client
}

func NewHCRPReportsClientWithBaseURI

func NewHCRPReportsClientWithBaseURI(sdkApi sdkEnv.Api) (*HCRPReportsClient, error)

func (HCRPReportsClient) Get

Get ...

func (HCRPReportsClient) ListByConfigurationProfileAssignments

ListByConfigurationProfileAssignments ...

type ListByConfigurationProfileAssignmentsOperationResponse

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

type Providers2ConfigurationProfileAssignmentId

type Providers2ConfigurationProfileAssignmentId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	MachineName                        string
	ConfigurationProfileAssignmentName string
}

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

func NewProviders2ConfigurationProfileAssignmentID

func NewProviders2ConfigurationProfileAssignmentID(subscriptionId string, resourceGroupName string, machineName string, configurationProfileAssignmentName string) Providers2ConfigurationProfileAssignmentId

NewProviders2ConfigurationProfileAssignmentID returns a new Providers2ConfigurationProfileAssignmentId struct

func ParseProviders2ConfigurationProfileAssignmentID

func ParseProviders2ConfigurationProfileAssignmentID(input string) (*Providers2ConfigurationProfileAssignmentId, error)

ParseProviders2ConfigurationProfileAssignmentID parses 'input' into a Providers2ConfigurationProfileAssignmentId

func ParseProviders2ConfigurationProfileAssignmentIDInsensitively

func ParseProviders2ConfigurationProfileAssignmentIDInsensitively(input string) (*Providers2ConfigurationProfileAssignmentId, error)

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

func (*Providers2ConfigurationProfileAssignmentId) FromParseResult

func (Providers2ConfigurationProfileAssignmentId) ID

ID returns the formatted Providers 2 Configuration Profile Assignment ID

func (Providers2ConfigurationProfileAssignmentId) Segments

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

func (Providers2ConfigurationProfileAssignmentId) String

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

Jump to

Keyboard shortcuts

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