operationsstatus

package
v0.20221102.1171058 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2022-01-01/operationsstatus Documentation

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

Client Initialization

client := operationsstatus.NewOperationsStatusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: OperationsStatusClient.Get

ctx := context.TODO()
id := operationsstatus.NewOperationsStatusID("12345678-1234-9876-4563-123456789012", "locationValue", "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 ValidateOperationsStatusID added in v0.20220907.1111434

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

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

Types

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 ErrorResponse

type ErrorResponse struct {
	Error *ErrorDetail `json:"error,omitempty"`
}

type GetOperationResponse

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

type OperationStatus

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

type OperationsStatusClient

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

func NewOperationsStatusClientWithBaseURI

func NewOperationsStatusClientWithBaseURI(endpoint string) OperationsStatusClient

func (OperationsStatusClient) Get

Get ...

type OperationsStatusId added in v0.20220907.1111434

type OperationsStatusId struct {
	SubscriptionId string
	Location       string
	OperationId    string
}

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

func NewOperationsStatusID added in v0.20220907.1111434

func NewOperationsStatusID(subscriptionId string, location string, operationId string) OperationsStatusId

NewOperationsStatusID returns a new OperationsStatusId struct

func ParseOperationsStatusID added in v0.20220907.1111434

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

ParseOperationsStatusID parses 'input' into a OperationsStatusId

func ParseOperationsStatusIDInsensitively added in v0.20220907.1111434

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 added in v0.20220907.1111434

func (id OperationsStatusId) ID() string

ID returns the formatted Operations Status ID

func (OperationsStatusId) Segments added in v0.20220907.1111434

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

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

func (OperationsStatusId) String added in v0.20220907.1111434

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