validateoperationresults

package
v0.20221207.1121859 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2022-10-01/validateoperationresults Documentation

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

Client Initialization

client := validateoperationresults.NewValidateOperationResultsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ValidateOperationResultsClient.Get

ctx := context.TODO()
id := validateoperationresults.NewBackupValidateOperationResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "operationIdValue")

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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateBackupValidateOperationResultID

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

ValidateBackupValidateOperationResultID checks that 'input' can be parsed as a Backup Validate Operation Result ID

Types

type BackupValidateOperationResultId

type BackupValidateOperationResultId struct {
	SubscriptionId    string
	ResourceGroupName string
	VaultName         string
	OperationId       string
}

BackupValidateOperationResultId is a struct representing the Resource ID for a Backup Validate Operation Result

func NewBackupValidateOperationResultID

func NewBackupValidateOperationResultID(subscriptionId string, resourceGroupName string, vaultName string, operationId string) BackupValidateOperationResultId

NewBackupValidateOperationResultID returns a new BackupValidateOperationResultId struct

func ParseBackupValidateOperationResultID

func ParseBackupValidateOperationResultID(input string) (*BackupValidateOperationResultId, error)

ParseBackupValidateOperationResultID parses 'input' into a BackupValidateOperationResultId

func ParseBackupValidateOperationResultIDInsensitively

func ParseBackupValidateOperationResultIDInsensitively(input string) (*BackupValidateOperationResultId, error)

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

func (BackupValidateOperationResultId) ID

ID returns the formatted Backup Validate Operation Result ID

func (BackupValidateOperationResultId) Segments

Segments returns a slice of Resource ID Segments which comprise this Backup Validate Operation Result ID

func (BackupValidateOperationResultId) String

String returns a human-readable description of this Backup Validate Operation Result ID

type ErrorDetail

type ErrorDetail struct {
	Code            *string   `json:"code,omitempty"`
	Message         *string   `json:"message,omitempty"`
	Recommendations *[]string `json:"recommendations,omitempty"`
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *ValidateOperationsResponse
}

type ValidateOperationResponse

type ValidateOperationResponse struct {
	ValidationResults *[]ErrorDetail `json:"validationResults,omitempty"`
}

type ValidateOperationResultsClient

type ValidateOperationResultsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewValidateOperationResultsClientWithBaseURI

func NewValidateOperationResultsClientWithBaseURI(endpoint string) ValidateOperationResultsClient

func (ValidateOperationResultsClient) Get

Get ...

type ValidateOperationsResponse

type ValidateOperationsResponse struct {
	ValidateOperationResponse *ValidateOperationResponse `json:"validateOperationResponse,omitempty"`
}

Jump to

Keyboard shortcuts

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