netappresource

package
v0.20230414.1145511 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-01-01/netappresource Documentation

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

Client Initialization

client := netappresource.NewNetAppResourceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: NetAppResourceClient.NetAppResourceCheckFilePathAvailability

ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

payload := netappresource.FilePathAvailabilityRequest{
	// ...
}


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

ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

payload := netappresource.ResourceNameAvailabilityRequest{
	// ...
}


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

ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

payload := netappresource.QuotaAvailabilityRequest{
	// ...
}


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

ctx := context.TODO()
id := netappresource.NewQuotaLimitID("12345678-1234-9876-4563-123456789012", "locationValue", "quotaLimitValue")

read, err := client.NetAppResourceQuotaLimitsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: NetAppResourceClient.NetAppResourceQuotaLimitsList

ctx := context.TODO()
id := netappresource.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

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

func PossibleValuesForCheckNameResourceTypes() []string

func PossibleValuesForCheckQuotaNameResourceTypes

func PossibleValuesForCheckQuotaNameResourceTypes() []string

func PossibleValuesForInAvailabilityReasonType

func PossibleValuesForInAvailabilityReasonType() []string

func ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

func ValidateQuotaLimitID

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

ValidateQuotaLimitID checks that 'input' can be parsed as a Quota Limit ID

Types

type CheckAvailabilityResponse

type CheckAvailabilityResponse struct {
	IsAvailable *bool                     `json:"isAvailable,omitempty"`
	Message     *string                   `json:"message,omitempty"`
	Reason      *InAvailabilityReasonType `json:"reason,omitempty"`
}

type CheckNameResourceTypes

type CheckNameResourceTypes string
const (
	CheckNameResourceTypesMicrosoftPointNetAppNetAppAccounts                              CheckNameResourceTypes = "Microsoft.NetApp/netAppAccounts"
	CheckNameResourceTypesMicrosoftPointNetAppNetAppAccountsCapacityPools                 CheckNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools"
	CheckNameResourceTypesMicrosoftPointNetAppNetAppAccountsCapacityPoolsVolumes          CheckNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes"
	CheckNameResourceTypesMicrosoftPointNetAppNetAppAccountsCapacityPoolsVolumesSnapshots CheckNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"
)

type CheckQuotaNameResourceTypes

type CheckQuotaNameResourceTypes string
const (
	CheckQuotaNameResourceTypesMicrosoftPointNetAppNetAppAccounts                              CheckQuotaNameResourceTypes = "Microsoft.NetApp/netAppAccounts"
	CheckQuotaNameResourceTypesMicrosoftPointNetAppNetAppAccountsCapacityPools                 CheckQuotaNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools"
	CheckQuotaNameResourceTypesMicrosoftPointNetAppNetAppAccountsCapacityPoolsVolumes          CheckQuotaNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes"
	CheckQuotaNameResourceTypesMicrosoftPointNetAppNetAppAccountsCapacityPoolsVolumesSnapshots CheckQuotaNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"
)

type FilePathAvailabilityRequest

type FilePathAvailabilityRequest struct {
	Name     string `json:"name"`
	SubnetId string `json:"subnetId"`
}

type InAvailabilityReasonType

type InAvailabilityReasonType string
const (
	InAvailabilityReasonTypeAlreadyExists InAvailabilityReasonType = "AlreadyExists"
	InAvailabilityReasonTypeInvalid       InAvailabilityReasonType = "Invalid"
)

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Location ID

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type NetAppResourceCheckFilePathAvailabilityOperationResponse

type NetAppResourceCheckFilePathAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	Model        *CheckAvailabilityResponse
}

type NetAppResourceCheckNameAvailabilityOperationResponse

type NetAppResourceCheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	Model        *CheckAvailabilityResponse
}

type NetAppResourceCheckQuotaAvailabilityOperationResponse

type NetAppResourceCheckQuotaAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	Model        *CheckAvailabilityResponse
}

type NetAppResourceClient

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

func NewNetAppResourceClientWithBaseURI

func NewNetAppResourceClientWithBaseURI(endpoint string) NetAppResourceClient

func (NetAppResourceClient) NetAppResourceCheckFilePathAvailability

NetAppResourceCheckFilePathAvailability ...

func (NetAppResourceClient) NetAppResourceCheckNameAvailability

NetAppResourceCheckNameAvailability ...

func (NetAppResourceClient) NetAppResourceCheckQuotaAvailability

func (c NetAppResourceClient) NetAppResourceCheckQuotaAvailability(ctx context.Context, id LocationId, input QuotaAvailabilityRequest) (result NetAppResourceCheckQuotaAvailabilityOperationResponse, err error)

NetAppResourceCheckQuotaAvailability ...

func (NetAppResourceClient) NetAppResourceQuotaLimitsGet

func (c NetAppResourceClient) NetAppResourceQuotaLimitsGet(ctx context.Context, id QuotaLimitId) (result NetAppResourceQuotaLimitsGetOperationResponse, err error)

NetAppResourceQuotaLimitsGet ...

func (NetAppResourceClient) NetAppResourceQuotaLimitsList

func (c NetAppResourceClient) NetAppResourceQuotaLimitsList(ctx context.Context, id LocationId) (result NetAppResourceQuotaLimitsListOperationResponse, err error)

NetAppResourceQuotaLimitsList ...

type NetAppResourceQuotaLimitsGetOperationResponse

type NetAppResourceQuotaLimitsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *SubscriptionQuotaItem
}

type NetAppResourceQuotaLimitsListOperationResponse

type NetAppResourceQuotaLimitsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *SubscriptionQuotaItemList
}

type QuotaAvailabilityRequest

type QuotaAvailabilityRequest struct {
	Name          string                      `json:"name"`
	ResourceGroup string                      `json:"resourceGroup"`
	Type          CheckQuotaNameResourceTypes `json:"type"`
}

type QuotaLimitId

type QuotaLimitId struct {
	SubscriptionId string
	LocationName   string
	QuotaLimitName string
}

QuotaLimitId is a struct representing the Resource ID for a Quota Limit

func NewQuotaLimitID

func NewQuotaLimitID(subscriptionId string, locationName string, quotaLimitName string) QuotaLimitId

NewQuotaLimitID returns a new QuotaLimitId struct

func ParseQuotaLimitID

func ParseQuotaLimitID(input string) (*QuotaLimitId, error)

ParseQuotaLimitID parses 'input' into a QuotaLimitId

func ParseQuotaLimitIDInsensitively

func ParseQuotaLimitIDInsensitively(input string) (*QuotaLimitId, error)

ParseQuotaLimitIDInsensitively parses 'input' case-insensitively into a QuotaLimitId note: this method should only be used for API response data and not user input

func (QuotaLimitId) ID

func (id QuotaLimitId) ID() string

ID returns the formatted Quota Limit ID

func (QuotaLimitId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Quota Limit ID

func (QuotaLimitId) String

func (id QuotaLimitId) String() string

String returns a human-readable description of this Quota Limit ID

type ResourceNameAvailabilityRequest

type ResourceNameAvailabilityRequest struct {
	Name          string                 `json:"name"`
	ResourceGroup string                 `json:"resourceGroup"`
	Type          CheckNameResourceTypes `json:"type"`
}

type SubscriptionQuotaItem

type SubscriptionQuotaItem struct {
	Id         *string                          `json:"id,omitempty"`
	Name       *string                          `json:"name,omitempty"`
	Properties *SubscriptionQuotaItemProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData           `json:"systemData,omitempty"`
	Type       *string                          `json:"type,omitempty"`
}

type SubscriptionQuotaItemList

type SubscriptionQuotaItemList struct {
	Value *[]SubscriptionQuotaItem `json:"value,omitempty"`
}

type SubscriptionQuotaItemProperties

type SubscriptionQuotaItemProperties struct {
	Current *int64 `json:"current,omitempty"`
	Default *int64 `json:"default,omitempty"`
}

Jump to

Keyboard shortcuts

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