nginxconfigurationanalysis

package
v0.20240627.1122744 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-09-01/nginxconfigurationanalysis Documentation

The nginxconfigurationanalysis SDK allows for interaction with the Azure Resource Manager Service nginx (API Version 2023-09-01).

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/nginx/2023-09-01/nginxconfigurationanalysis"

Client Initialization

client := nginxconfigurationanalysis.NewNginxConfigurationAnalysisClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: NginxConfigurationAnalysisClient.ConfigurationsAnalysis

ctx := context.TODO()
id := nginxconfigurationanalysis.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue", "configurationValue")

payload := nginxconfigurationanalysis.AnalysisCreate{
	// ...
}


read, err := client.ConfigurationsAnalysis(ctx, id, payload)
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 ValidateConfigurationID

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

ValidateConfigurationID checks that 'input' can be parsed as a Configuration ID

Types

type AnalysisCreate

type AnalysisCreate struct {
	Config AnalysisCreateConfig `json:"config"`
}

type AnalysisCreateConfig

type AnalysisCreateConfig struct {
	Files          *[]NginxConfigurationFile  `json:"files,omitempty"`
	Package        *NginxConfigurationPackage `json:"package,omitempty"`
	ProtectedFiles *[]NginxConfigurationFile  `json:"protectedFiles,omitempty"`
	RootFile       *string                    `json:"rootFile,omitempty"`
}

type AnalysisError

type AnalysisError struct {
	Description string  `json:"description"`
	Directive   string  `json:"directive"`
	File        string  `json:"file"`
	Id          *string `json:"id,omitempty"`
	Line        float64 `json:"line"`
	Message     string  `json:"message"`
	Rule        string  `json:"rule"`
}

type AnalysisResult

type AnalysisResult struct {
	Data   *AnalysisResultData `json:"data,omitempty"`
	Status string              `json:"status"`
}

type AnalysisResultData

type AnalysisResultData struct {
	Errors *[]AnalysisError `json:"errors,omitempty"`
}

type ConfigurationId

type ConfigurationId struct {
	SubscriptionId      string
	ResourceGroupName   string
	NginxDeploymentName string
	ConfigurationName   string
}

ConfigurationId is a struct representing the Resource ID for a Configuration

func NewConfigurationID

func NewConfigurationID(subscriptionId string, resourceGroupName string, nginxDeploymentName string, configurationName string) ConfigurationId

NewConfigurationID returns a new ConfigurationId struct

func ParseConfigurationID

func ParseConfigurationID(input string) (*ConfigurationId, error)

ParseConfigurationID parses 'input' into a ConfigurationId

func ParseConfigurationIDInsensitively

func ParseConfigurationIDInsensitively(input string) (*ConfigurationId, error)

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

func (*ConfigurationId) FromParseResult

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

func (ConfigurationId) ID

func (id ConfigurationId) ID() string

ID returns the formatted Configuration ID

func (ConfigurationId) Segments

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

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

func (ConfigurationId) String

func (id ConfigurationId) String() string

String returns a human-readable description of this Configuration ID

type ConfigurationsAnalysisOperationResponse

type ConfigurationsAnalysisOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AnalysisResult
}

type NginxConfigurationAnalysisClient

type NginxConfigurationAnalysisClient struct {
	Client *resourcemanager.Client
}

func NewNginxConfigurationAnalysisClientWithBaseURI

func NewNginxConfigurationAnalysisClientWithBaseURI(sdkApi sdkEnv.Api) (*NginxConfigurationAnalysisClient, error)

func (NginxConfigurationAnalysisClient) ConfigurationsAnalysis

ConfigurationsAnalysis ...

type NginxConfigurationFile

type NginxConfigurationFile struct {
	Content     *string `json:"content,omitempty"`
	VirtualPath *string `json:"virtualPath,omitempty"`
}

type NginxConfigurationPackage

type NginxConfigurationPackage struct {
	Data           *string   `json:"data,omitempty"`
	ProtectedFiles *[]string `json:"protectedFiles,omitempty"`
}

Jump to

Keyboard shortcuts

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