groupquotasubscriptionrequests

package
v0.20250303.1135340 Latest Latest
Warning

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

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

README

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

The groupquotasubscriptionrequests 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/groupquotasubscriptionrequests"

Client Initialization

client := groupquotasubscriptionrequests.NewGroupQuotaSubscriptionRequestsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GroupQuotaSubscriptionRequestsClient.Get

ctx := context.TODO()
id := groupquotasubscriptionrequests.NewSubscriptionRequestID("managementGroupId", "groupQuotaName", "requestId")

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

Example Usage: GroupQuotaSubscriptionRequestsClient.List

ctx := context.TODO()
id := groupquotasubscriptionrequests.NewGroupQuotaID("managementGroupId", "groupQuotaName")

// 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

func PossibleValuesForRequestState

func PossibleValuesForRequestState() []string

func ValidateGroupQuotaID

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

ValidateGroupQuotaID checks that 'input' can be parsed as a Group Quota ID

func ValidateSubscriptionRequestID

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

ValidateSubscriptionRequestID checks that 'input' can be parsed as a Subscription Request ID

Types

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GroupQuotaSubscriptionRequestStatus
}

type GroupQuotaId

type GroupQuotaId struct {
	ManagementGroupId string
	GroupQuotaName    string
}

GroupQuotaId is a struct representing the Resource ID for a Group Quota

func NewGroupQuotaID

func NewGroupQuotaID(managementGroupId string, groupQuotaName string) GroupQuotaId

NewGroupQuotaID returns a new GroupQuotaId struct

func ParseGroupQuotaID

func ParseGroupQuotaID(input string) (*GroupQuotaId, error)

ParseGroupQuotaID parses 'input' into a GroupQuotaId

func ParseGroupQuotaIDInsensitively

func ParseGroupQuotaIDInsensitively(input string) (*GroupQuotaId, error)

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

func (*GroupQuotaId) FromParseResult

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

func (GroupQuotaId) ID

func (id GroupQuotaId) ID() string

ID returns the formatted Group Quota ID

func (GroupQuotaId) Segments

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

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

func (GroupQuotaId) String

func (id GroupQuotaId) String() string

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

type GroupQuotaSubscriptionRequestStatus

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

type GroupQuotaSubscriptionRequestStatusOperationPredicate

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

func (GroupQuotaSubscriptionRequestStatusOperationPredicate) Matches

type GroupQuotaSubscriptionRequestStatusProperties

type GroupQuotaSubscriptionRequestStatusProperties struct {
	ProvisioningState *RequestState `json:"provisioningState,omitempty"`
	RequestSubmitTime *string       `json:"requestSubmitTime,omitempty"`
	SubscriptionId    *string       `json:"subscriptionId,omitempty"`
}

func (*GroupQuotaSubscriptionRequestStatusProperties) GetRequestSubmitTimeAsTime

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

func (*GroupQuotaSubscriptionRequestStatusProperties) SetRequestSubmitTimeAsTime

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

type GroupQuotaSubscriptionRequestsClient

type GroupQuotaSubscriptionRequestsClient struct {
	Client *resourcemanager.Client
}

func NewGroupQuotaSubscriptionRequestsClientWithBaseURI

func NewGroupQuotaSubscriptionRequestsClientWithBaseURI(sdkApi sdkEnv.Api) (*GroupQuotaSubscriptionRequestsClient, error)

func (GroupQuotaSubscriptionRequestsClient) Get

Get ...

func (GroupQuotaSubscriptionRequestsClient) List

List ...

func (GroupQuotaSubscriptionRequestsClient) ListComplete

ListComplete retrieves all the results into a single object

func (GroupQuotaSubscriptionRequestsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []GroupQuotaSubscriptionRequestStatus
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]GroupQuotaSubscriptionRequestStatus
}

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 SubscriptionRequestId

type SubscriptionRequestId struct {
	ManagementGroupId string
	GroupQuotaName    string
	RequestId         string
}

SubscriptionRequestId is a struct representing the Resource ID for a Subscription Request

func NewSubscriptionRequestID

func NewSubscriptionRequestID(managementGroupId string, groupQuotaName string, requestId string) SubscriptionRequestId

NewSubscriptionRequestID returns a new SubscriptionRequestId struct

func ParseSubscriptionRequestID

func ParseSubscriptionRequestID(input string) (*SubscriptionRequestId, error)

ParseSubscriptionRequestID parses 'input' into a SubscriptionRequestId

func ParseSubscriptionRequestIDInsensitively

func ParseSubscriptionRequestIDInsensitively(input string) (*SubscriptionRequestId, error)

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

func (*SubscriptionRequestId) FromParseResult

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

func (SubscriptionRequestId) ID

func (id SubscriptionRequestId) ID() string

ID returns the formatted Subscription Request ID

func (SubscriptionRequestId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Subscription Request ID

func (SubscriptionRequestId) String

func (id SubscriptionRequestId) String() string

String returns a human-readable description of this Subscription Request ID

Jump to

Keyboard shortcuts

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