subscriptionquotaallocationrequest

package
v0.20250131.1134653 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/quota/2025-03-01/subscriptionquotaallocationrequest Documentation

The subscriptionquotaallocationrequest SDK allows for interaction with Azure Resource Manager quota (API Version 2025-03-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/quota/2025-03-01/subscriptionquotaallocationrequest"

Client Initialization

client := subscriptionquotaallocationrequest.NewSubscriptionQuotaAllocationRequestClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SubscriptionQuotaAllocationRequestClient.GroupQuotaSubscriptionAllocationRequestGet

ctx := context.TODO()
id := subscriptionquotaallocationrequest.NewQuotaAllocationRequestID("managementGroupId", "12345678-1234-9876-4563-123456789012", "groupQuotaName", "resourceProviderName", "allocationId")

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

Example Usage: SubscriptionQuotaAllocationRequestClient.GroupQuotaSubscriptionAllocationRequestList

ctx := context.TODO()
id := subscriptionquotaallocationrequest.NewGroupQuotaResourceProviderID("managementGroupId", "12345678-1234-9876-4563-123456789012", "groupQuotaName", "resourceProviderName")

// alternatively `client.GroupQuotaSubscriptionAllocationRequestList(ctx, id, subscriptionquotaallocationrequest.DefaultGroupQuotaSubscriptionAllocationRequestListOperationOptions())` can be used to do batched pagination
items, err := client.GroupQuotaSubscriptionAllocationRequestListComplete(ctx, id, subscriptionquotaallocationrequest.DefaultGroupQuotaSubscriptionAllocationRequestListOperationOptions())
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

func PossibleValuesForRequestState

func PossibleValuesForRequestState() []string

func ValidateGroupQuotaResourceProviderID

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

ValidateGroupQuotaResourceProviderID checks that 'input' can be parsed as a Group Quota Resource Provider ID

func ValidateQuotaAllocationRequestID

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

ValidateQuotaAllocationRequestID checks that 'input' can be parsed as a Quota Allocation Request ID

Types

type GroupQuotaResourceProviderId

type GroupQuotaResourceProviderId struct {
	ManagementGroupId    string
	SubscriptionId       string
	GroupQuotaName       string
	ResourceProviderName string
}

GroupQuotaResourceProviderId is a struct representing the Resource ID for a Group Quota Resource Provider

func NewGroupQuotaResourceProviderID

func NewGroupQuotaResourceProviderID(managementGroupId string, subscriptionId string, groupQuotaName string, resourceProviderName string) GroupQuotaResourceProviderId

NewGroupQuotaResourceProviderID returns a new GroupQuotaResourceProviderId struct

func ParseGroupQuotaResourceProviderID

func ParseGroupQuotaResourceProviderID(input string) (*GroupQuotaResourceProviderId, error)

ParseGroupQuotaResourceProviderID parses 'input' into a GroupQuotaResourceProviderId

func ParseGroupQuotaResourceProviderIDInsensitively

func ParseGroupQuotaResourceProviderIDInsensitively(input string) (*GroupQuotaResourceProviderId, error)

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

func (*GroupQuotaResourceProviderId) FromParseResult

func (id *GroupQuotaResourceProviderId) FromParseResult(input resourceids.ParseResult) error

func (GroupQuotaResourceProviderId) ID

ID returns the formatted Group Quota Resource Provider ID

func (GroupQuotaResourceProviderId) Segments

Segments returns a slice of Resource ID Segments which comprise this Group Quota Resource Provider ID

func (GroupQuotaResourceProviderId) String

String returns a human-readable description of this Group Quota Resource Provider ID

type GroupQuotaSubscriptionAllocationRequestGetOperationResponse

type GroupQuotaSubscriptionAllocationRequestGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *QuotaAllocationRequestStatus
}

type GroupQuotaSubscriptionAllocationRequestListCompleteResult

type GroupQuotaSubscriptionAllocationRequestListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []QuotaAllocationRequestStatus
}

type GroupQuotaSubscriptionAllocationRequestListCustomPager

type GroupQuotaSubscriptionAllocationRequestListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type GroupQuotaSubscriptionAllocationRequestListOperationOptions

type GroupQuotaSubscriptionAllocationRequestListOperationOptions struct {
	Filter *string
}

func (GroupQuotaSubscriptionAllocationRequestListOperationOptions) ToHeaders

func (GroupQuotaSubscriptionAllocationRequestListOperationOptions) ToOData

func (GroupQuotaSubscriptionAllocationRequestListOperationOptions) ToQuery

type GroupQuotaSubscriptionAllocationRequestListOperationResponse

type GroupQuotaSubscriptionAllocationRequestListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]QuotaAllocationRequestStatus
}

type QuotaAllocationRequestBase

type QuotaAllocationRequestBase struct {
	Properties *QuotaAllocationRequestBaseProperties `json:"properties,omitempty"`
}

type QuotaAllocationRequestBaseProperties

type QuotaAllocationRequestBaseProperties struct {
	Limit  *int64                                    `json:"limit,omitempty"`
	Name   *QuotaAllocationRequestBasePropertiesName `json:"name,omitempty"`
	Region *string                                   `json:"region,omitempty"`
}

type QuotaAllocationRequestBasePropertiesName

type QuotaAllocationRequestBasePropertiesName struct {
	LocalizedValue *string `json:"localizedValue,omitempty"`
	Value          *string `json:"value,omitempty"`
}

type QuotaAllocationRequestId

type QuotaAllocationRequestId struct {
	ManagementGroupId    string
	SubscriptionId       string
	GroupQuotaName       string
	ResourceProviderName string
	AllocationId         string
}

QuotaAllocationRequestId is a struct representing the Resource ID for a Quota Allocation Request

func NewQuotaAllocationRequestID

func NewQuotaAllocationRequestID(managementGroupId string, subscriptionId string, groupQuotaName string, resourceProviderName string, allocationId string) QuotaAllocationRequestId

NewQuotaAllocationRequestID returns a new QuotaAllocationRequestId struct

func ParseQuotaAllocationRequestID

func ParseQuotaAllocationRequestID(input string) (*QuotaAllocationRequestId, error)

ParseQuotaAllocationRequestID parses 'input' into a QuotaAllocationRequestId

func ParseQuotaAllocationRequestIDInsensitively

func ParseQuotaAllocationRequestIDInsensitively(input string) (*QuotaAllocationRequestId, error)

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

func (*QuotaAllocationRequestId) FromParseResult

func (id *QuotaAllocationRequestId) FromParseResult(input resourceids.ParseResult) error

func (QuotaAllocationRequestId) ID

ID returns the formatted Quota Allocation Request ID

func (QuotaAllocationRequestId) Segments

Segments returns a slice of Resource ID Segments which comprise this Quota Allocation Request ID

func (QuotaAllocationRequestId) String

func (id QuotaAllocationRequestId) String() string

String returns a human-readable description of this Quota Allocation Request ID

type QuotaAllocationRequestStatus

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

type QuotaAllocationRequestStatusOperationPredicate

type QuotaAllocationRequestStatusOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (QuotaAllocationRequestStatusOperationPredicate) Matches

type QuotaAllocationRequestStatusProperties

type QuotaAllocationRequestStatusProperties struct {
	FaultCode         *string                     `json:"faultCode,omitempty"`
	ProvisioningState *RequestState               `json:"provisioningState,omitempty"`
	RequestSubmitTime *string                     `json:"requestSubmitTime,omitempty"`
	RequestedResource *QuotaAllocationRequestBase `json:"requestedResource,omitempty"`
}

func (*QuotaAllocationRequestStatusProperties) GetRequestSubmitTimeAsTime

func (o *QuotaAllocationRequestStatusProperties) GetRequestSubmitTimeAsTime() (*time.Time, error)

func (*QuotaAllocationRequestStatusProperties) SetRequestSubmitTimeAsTime

func (o *QuotaAllocationRequestStatusProperties) SetRequestSubmitTimeAsTime(input time.Time)

type RequestState

type RequestState string
const (
	RequestStateAccepted   RequestState = "Accepted"
	RequestStateCanceled   RequestState = "Canceled"
	RequestStateCreated    RequestState = "Created"
	RequestStateFailed     RequestState = "Failed"
	RequestStateInProgress RequestState = "InProgress"
	RequestStateInvalid    RequestState = "Invalid"
	RequestStateSucceeded  RequestState = "Succeeded"
)

func (*RequestState) UnmarshalJSON

func (s *RequestState) UnmarshalJSON(bytes []byte) error

type SubscriptionQuotaAllocationRequestClient

type SubscriptionQuotaAllocationRequestClient struct {
	Client *resourcemanager.Client
}

func NewSubscriptionQuotaAllocationRequestClientWithBaseURI

func NewSubscriptionQuotaAllocationRequestClientWithBaseURI(sdkApi sdkEnv.Api) (*SubscriptionQuotaAllocationRequestClient, error)

func (SubscriptionQuotaAllocationRequestClient) GroupQuotaSubscriptionAllocationRequestGet

GroupQuotaSubscriptionAllocationRequestGet ...

func (SubscriptionQuotaAllocationRequestClient) GroupQuotaSubscriptionAllocationRequestList

GroupQuotaSubscriptionAllocationRequestList ...

func (SubscriptionQuotaAllocationRequestClient) GroupQuotaSubscriptionAllocationRequestListComplete

GroupQuotaSubscriptionAllocationRequestListComplete retrieves all the results into a single object

func (SubscriptionQuotaAllocationRequestClient) GroupQuotaSubscriptionAllocationRequestListCompleteMatchingPredicate

GroupQuotaSubscriptionAllocationRequestListCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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