README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-02-01/operations
Documentation
The operations
SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery
(API Version 2023-02-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-02-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 ¶
- type Display
- type ListCompleteResult
- type ListOperationResponse
- type OperationsClient
- func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error)
- func (c OperationsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error)
- func (c OperationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListCompleteResult, err error)
- type OperationsDiscovery
- type OperationsDiscoveryOperationPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []OperationsDiscovery }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]OperationsDiscovery }
type OperationsClient ¶
type OperationsClient struct {
Client *resourcemanager.Client
}
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(sdkApi sdkEnv.Api) (*OperationsClient, error)
func (OperationsClient) List ¶
func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error)
List ...
func (OperationsClient) ListComplete ¶
func (c OperationsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (OperationsClient) ListCompleteMatchingPredicate ¶
func (c OperationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate OperationsDiscoveryOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type OperationsDiscovery ¶
type OperationsDiscoveryOperationPredicate ¶
type OperationsDiscoveryOperationPredicate struct { Name *string Origin *string Properties *interface{} }
func (OperationsDiscoveryOperationPredicate) Matches ¶
func (p OperationsDiscoveryOperationPredicate) Matches(input OperationsDiscovery) bool
Click to show internal directories.
Click to hide internal directories.