operations

package
v0.20230608.1112153 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MPL-2.0 Imports: 7 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-01-01/operations Documentation

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

Client Initialization

client := operations.NewOperationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: OperationsClient.List

ctx := context.TODO()
id := operations.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display struct {
	Description *string `json:"description,omitempty"`
	Operation   *string `json:"operation,omitempty"`
	Provider    *string `json:"provider,omitempty"`
	Resource    *string `json:"resource,omitempty"`
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []OperationsDiscovery
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]OperationsDiscovery
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type OperationsClient

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

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(endpoint string) OperationsClient

func (OperationsClient) List

List ...

func (OperationsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (OperationsClient) ListCompleteMatchingPredicate

func (c OperationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate OperationsDiscoveryOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type OperationsDiscovery

type OperationsDiscovery struct {
	Display    *Display     `json:"display,omitempty"`
	Name       *string      `json:"name,omitempty"`
	Origin     *string      `json:"origin,omitempty"`
	Properties *interface{} `json:"properties,omitempty"`
}

type OperationsDiscoveryOperationPredicate

type OperationsDiscoveryOperationPredicate struct {
	Name       *string
	Origin     *string
	Properties *interface{}
}

func (OperationsDiscoveryOperationPredicate) Matches

Jump to

Keyboard shortcuts

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