privateendpoint

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: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2022-03-01/privateendpoint Documentation

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

Client Initialization

client := privateendpoint.NewPrivateEndpointClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PrivateEndpointClient.GetOperationStatus

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

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

func PossibleValuesForOperationStatusValues() []string

func ValidateOperationsStatusID

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

ValidateOperationsStatusID checks that 'input' can be parsed as a Operations Status ID

Types

type ClientScriptForConnect

type ClientScriptForConnect struct {
	OsType           *string `json:"osType,omitempty"`
	ScriptContent    *string `json:"scriptContent,omitempty"`
	ScriptExtension  *string `json:"scriptExtension,omitempty"`
	ScriptNameSuffix *string `json:"scriptNameSuffix,omitempty"`
	Url              *string `json:"url,omitempty"`
}

type ErrorDetail

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

type GetOperationStatusOperationResponse

type GetOperationStatusOperationResponse struct {
	HttpResponse *http.Response
	Model        *OperationStatus
}

type InstantItemRecoveryTarget

type InstantItemRecoveryTarget struct {
	ClientScripts *[]ClientScriptForConnect `json:"clientScripts,omitempty"`
}

type OperationStatus

type OperationStatus struct {
	EndTime    *string                     `json:"endTime,omitempty"`
	Error      *OperationStatusError       `json:"error,omitempty"`
	Id         *string                     `json:"id,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties OperationStatusExtendedInfo `json:"properties"`
	StartTime  *string                     `json:"startTime,omitempty"`
	Status     *OperationStatusValues      `json:"status,omitempty"`
}

func (*OperationStatus) GetEndTimeAsTime

func (o *OperationStatus) GetEndTimeAsTime() (*time.Time, error)

func (*OperationStatus) GetStartTimeAsTime

func (o *OperationStatus) GetStartTimeAsTime() (*time.Time, error)

func (*OperationStatus) SetEndTimeAsTime

func (o *OperationStatus) SetEndTimeAsTime(input time.Time)

func (*OperationStatus) SetStartTimeAsTime

func (o *OperationStatus) SetStartTimeAsTime(input time.Time)

func (*OperationStatus) UnmarshalJSON

func (s *OperationStatus) UnmarshalJSON(bytes []byte) error

type OperationStatusError

type OperationStatusError struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

type OperationStatusExtendedInfo

type OperationStatusExtendedInfo interface {
}

type OperationStatusJobExtendedInfo

type OperationStatusJobExtendedInfo struct {
	JobId *string `json:"jobId,omitempty"`
}

func (OperationStatusJobExtendedInfo) MarshalJSON

func (s OperationStatusJobExtendedInfo) MarshalJSON() ([]byte, error)

type OperationStatusJobsExtendedInfo

type OperationStatusJobsExtendedInfo struct {
	FailedJobsError *map[string]string `json:"failedJobsError,omitempty"`
	JobIds          *[]string          `json:"jobIds,omitempty"`
}

func (OperationStatusJobsExtendedInfo) MarshalJSON

func (s OperationStatusJobsExtendedInfo) MarshalJSON() ([]byte, error)

type OperationStatusProvisionILRExtendedInfo

type OperationStatusProvisionILRExtendedInfo struct {
	RecoveryTarget *InstantItemRecoveryTarget `json:"recoveryTarget,omitempty"`
}

func (OperationStatusProvisionILRExtendedInfo) MarshalJSON

func (s OperationStatusProvisionILRExtendedInfo) MarshalJSON() ([]byte, error)

type OperationStatusValidateOperationExtendedInfo

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

func (OperationStatusValidateOperationExtendedInfo) MarshalJSON

type OperationStatusValues

type OperationStatusValues string
const (
	OperationStatusValuesCanceled   OperationStatusValues = "Canceled"
	OperationStatusValuesFailed     OperationStatusValues = "Failed"
	OperationStatusValuesInProgress OperationStatusValues = "InProgress"
	OperationStatusValuesInvalid    OperationStatusValues = "Invalid"
	OperationStatusValuesSucceeded  OperationStatusValues = "Succeeded"
)

type OperationsStatusId

type OperationsStatusId struct {
	SubscriptionId                string
	ResourceGroupName             string
	VaultName                     string
	PrivateEndpointConnectionName string
	OperationId                   string
}

OperationsStatusId is a struct representing the Resource ID for a Operations Status

func NewOperationsStatusID

func NewOperationsStatusID(subscriptionId string, resourceGroupName string, vaultName string, privateEndpointConnectionName string, operationId string) OperationsStatusId

NewOperationsStatusID returns a new OperationsStatusId struct

func ParseOperationsStatusID

func ParseOperationsStatusID(input string) (*OperationsStatusId, error)

ParseOperationsStatusID parses 'input' into a OperationsStatusId

func ParseOperationsStatusIDInsensitively

func ParseOperationsStatusIDInsensitively(input string) (*OperationsStatusId, error)

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

func (OperationsStatusId) ID

func (id OperationsStatusId) ID() string

ID returns the formatted Operations Status ID

func (OperationsStatusId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Operations Status ID

func (OperationsStatusId) String

func (id OperationsStatusId) String() string

String returns a human-readable description of this Operations Status ID

type PrivateEndpointClient

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

func NewPrivateEndpointClientWithBaseURI

func NewPrivateEndpointClientWithBaseURI(endpoint string) PrivateEndpointClient

func (PrivateEndpointClient) GetOperationStatus

GetOperationStatus ...

type ValidateOperationResponse

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

Jump to

Keyboard shortcuts

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