package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-11-01/netappresource
Documentation
The netappresource
SDK allows for interaction with the Azure Resource Manager Service netapp
(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/netapp/2023-11-01/netappresource"
Client Initialization
client := netappresource.NewNetAppResourceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: NetAppResourceClient.CheckFilePathAvailability
ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
payload := netappresource.FilePathAvailabilityRequest{
// ...
}
read, err := client.CheckFilePathAvailability(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetAppResourceClient.CheckNameAvailability
ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
payload := netappresource.ResourceNameAvailabilityRequest{
// ...
}
read, err := client.CheckNameAvailability(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetAppResourceClient.CheckQuotaAvailability
ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
payload := netappresource.QuotaAvailabilityRequest{
// ...
}
read, err := client.CheckQuotaAvailability(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetAppResourceClient.QueryNetworkSiblingSet
ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
payload := netappresource.QueryNetworkSiblingSetRequest{
// ...
}
read, err := client.QueryNetworkSiblingSet(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetAppResourceClient.QueryRegionInfo
ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
read, err := client.QueryRegionInfo(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetAppResourceClient.QuotaLimitsGet
ctx := context.TODO()
id := netappresource.NewQuotaLimitID("12345678-1234-9876-4563-123456789012", "locationValue", "quotaLimitValue")
read, err := client.QuotaLimitsGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetAppResourceClient.QuotaLimitsList
ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
read, err := client.QuotaLimitsList(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetAppResourceClient.RegionInfosGet
ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
read, err := client.RegionInfosGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetAppResourceClient.RegionInfosList
ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
// alternatively `client.RegionInfosList(ctx, id)` can be used to do batched pagination
items, err := client.RegionInfosListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetAppResourceClient.UpdateNetworkSiblingSet
ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")
payload := netappresource.UpdateNetworkSiblingSetRequest{
// ...
}
if err := client.UpdateNetworkSiblingSetThenPoll(ctx, id, payload); err != nil {
// handle the error
}