asyncoperations

package
v0.20231114.1115341 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/asyncoperations Documentation

The asyncoperations SDK allows for interaction with the Azure Resource Manager Service chaosstudio (API Version 2023-11-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/chaosstudio/2023-11-01/asyncoperations"

Client Initialization

client := asyncoperations.NewAsyncOperationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AsyncOperationsClient.OperationStatusesGet

ctx := context.TODO()
id := asyncoperations.NewOperationsStatusID("12345678-1234-9876-4563-123456789012", "locationValue", "asyncOperationIdValue")

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

type AsyncOperationsClient struct {
	Client *resourcemanager.Client
}

func NewAsyncOperationsClientWithBaseURI

func NewAsyncOperationsClientWithBaseURI(sdkApi sdkEnv.Api) (*AsyncOperationsClient, error)

func (AsyncOperationsClient) OperationStatusesGet

OperationStatusesGet ...

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 OperationStatus

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

type OperationStatusesGetOperationResponse

type OperationStatusesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *OperationStatus
}

type OperationsStatusId

type OperationsStatusId struct {
	SubscriptionId   string
	LocationName     string
	AsyncOperationId string
}

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

func NewOperationsStatusID

func NewOperationsStatusID(subscriptionId string, locationName string, asyncOperationId 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

Jump to

Keyboard shortcuts

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