Documentation ¶
Index ¶
- func PossibleValuesForEligibleProductType() []string
- func PossibleValuesForInitiatorCustomerType() []string
- func PossibleValuesForProductTransferStatus() []string
- func PossibleValuesForProductType() []string
- func PossibleValuesForSupportedAccountType() []string
- func PossibleValuesForTransferStatus() []string
- func ValidateTransferID(input interface{}, key string) (warnings []string, errors []error)
- type AcceptOperationResponse
- type AcceptTransferProperties
- type AcceptTransferRequest
- type DeclineOperationResponse
- type DetailedTransferStatus
- type EligibleProductType
- type GetOperationResponse
- type InitiatorCustomerType
- type ListCompleteResult
- type ListOperationResponse
- type ProductDetails
- type ProductTransferStatus
- type ProductType
- type RecipientTransferDetails
- type RecipientTransferDetailsOperationPredicate
- type RecipientTransferProperties
- type RecipientTransfersClient
- func (c RecipientTransfersClient) Accept(ctx context.Context, id TransferId, input AcceptTransferRequest) (result AcceptOperationResponse, err error)
- func (c RecipientTransfersClient) Decline(ctx context.Context, id TransferId) (result DeclineOperationResponse, err error)
- func (c RecipientTransfersClient) Get(ctx context.Context, id TransferId) (result GetOperationResponse, err error)
- func (c RecipientTransfersClient) List(ctx context.Context) (result ListOperationResponse, err error)
- func (c RecipientTransfersClient) ListComplete(ctx context.Context) (ListCompleteResult, error)
- func (c RecipientTransfersClient) ListCompleteMatchingPredicate(ctx context.Context, predicate RecipientTransferDetailsOperationPredicate) (result ListCompleteResult, err error)
- func (c RecipientTransfersClient) Validate(ctx context.Context, id TransferId, input AcceptTransferRequest) (result ValidateOperationResponse, err error)
- type SupportedAccountType
- type TransferError
- type TransferId
- type TransferStatus
- type ValidateOperationResponse
- type ValidateTransferListResponse
- type ValidateTransferResponse
- type ValidateTransferResponseProperties
- type ValidationResultProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEligibleProductType ¶
func PossibleValuesForEligibleProductType() []string
func PossibleValuesForInitiatorCustomerType ¶
func PossibleValuesForInitiatorCustomerType() []string
func PossibleValuesForProductTransferStatus ¶
func PossibleValuesForProductTransferStatus() []string
func PossibleValuesForProductType ¶
func PossibleValuesForProductType() []string
func PossibleValuesForSupportedAccountType ¶
func PossibleValuesForSupportedAccountType() []string
func PossibleValuesForTransferStatus ¶
func PossibleValuesForTransferStatus() []string
func ValidateTransferID ¶
ValidateTransferID checks that 'input' can be parsed as a Transfer ID
Types ¶
type AcceptOperationResponse ¶
type AcceptOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RecipientTransferDetails }
type AcceptTransferProperties ¶
type AcceptTransferProperties struct {
ProductDetails *[]ProductDetails `json:"productDetails,omitempty"`
}
type AcceptTransferRequest ¶
type AcceptTransferRequest struct {
Properties *AcceptTransferProperties `json:"properties,omitempty"`
}
type DeclineOperationResponse ¶
type DeclineOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RecipientTransferDetails }
type DetailedTransferStatus ¶
type DetailedTransferStatus struct { ErrorDetails *TransferError `json:"errorDetails,omitempty"` ProductId *string `json:"productId,omitempty"` ProductName *string `json:"productName,omitempty"` ProductType *ProductType `json:"productType,omitempty"` SkuDescription *string `json:"skuDescription,omitempty"` TransferStatus *ProductTransferStatus `json:"transferStatus,omitempty"` }
type EligibleProductType ¶
type EligibleProductType string
const ( EligibleProductTypeAzureReservation EligibleProductType = "AzureReservation" EligibleProductTypeDevTestAzureSubscription EligibleProductType = "DevTestAzureSubscription" EligibleProductTypeStandardAzureSubscription EligibleProductType = "StandardAzureSubscription" )
func (*EligibleProductType) UnmarshalJSON ¶
func (s *EligibleProductType) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RecipientTransferDetails }
type InitiatorCustomerType ¶
type InitiatorCustomerType string
const ( InitiatorCustomerTypeEA InitiatorCustomerType = "EA" InitiatorCustomerTypePartner InitiatorCustomerType = "Partner" )
func (*InitiatorCustomerType) UnmarshalJSON ¶
func (s *InitiatorCustomerType) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []RecipientTransferDetails }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RecipientTransferDetails }
type ProductDetails ¶
type ProductDetails struct { ProductId *string `json:"productId,omitempty"` ProductType *ProductType `json:"productType,omitempty"` }
type ProductTransferStatus ¶
type ProductTransferStatus string
const ( ProductTransferStatusCompleted ProductTransferStatus = "Completed" ProductTransferStatusFailed ProductTransferStatus = "Failed" ProductTransferStatusInProgress ProductTransferStatus = "InProgress" ProductTransferStatusNotStarted ProductTransferStatus = "NotStarted" )
func (*ProductTransferStatus) UnmarshalJSON ¶
func (s *ProductTransferStatus) UnmarshalJSON(bytes []byte) error
type ProductType ¶
type ProductType string
const ( ProductTypeAzureReservation ProductType = "AzureReservation" ProductTypeAzureSubscription ProductType = "AzureSubscription" ProductTypeDepartment ProductType = "Department" ProductTypeSAAS ProductType = "SAAS" ProductTypeSavingsPlan ProductType = "SavingsPlan" )
func (*ProductType) UnmarshalJSON ¶
func (s *ProductType) UnmarshalJSON(bytes []byte) error
type RecipientTransferDetails ¶
type RecipientTransferDetails struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RecipientTransferProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type RecipientTransferDetailsOperationPredicate ¶
func (RecipientTransferDetailsOperationPredicate) Matches ¶
func (p RecipientTransferDetailsOperationPredicate) Matches(input RecipientTransferDetails) bool
type RecipientTransferProperties ¶
type RecipientTransferProperties struct { AllowedProductType *[]EligibleProductType `json:"allowedProductType,omitempty"` CanceledBy *string `json:"canceledBy,omitempty"` CustomerTenantId *string `json:"customerTenantId,omitempty"` DetailedTransferStatus *[]DetailedTransferStatus `json:"detailedTransferStatus,omitempty"` ExpirationTime *string `json:"expirationTime,omitempty"` InitiatorCustomerType *InitiatorCustomerType `json:"initiatorCustomerType,omitempty"` InitiatorEmailId *string `json:"initiatorEmailId,omitempty"` RecipientEmailId *string `json:"recipientEmailId,omitempty"` ResellerId *string `json:"resellerId,omitempty"` ResellerName *string `json:"resellerName,omitempty"` SupportedAccounts *[]SupportedAccountType `json:"supportedAccounts,omitempty"` TransferStatus *TransferStatus `json:"transferStatus,omitempty"` }
func (*RecipientTransferProperties) GetExpirationTimeAsTime ¶
func (o *RecipientTransferProperties) GetExpirationTimeAsTime() (*time.Time, error)
func (*RecipientTransferProperties) SetExpirationTimeAsTime ¶
func (o *RecipientTransferProperties) SetExpirationTimeAsTime(input time.Time)
type RecipientTransfersClient ¶
type RecipientTransfersClient struct {
Client *resourcemanager.Client
}
func NewRecipientTransfersClientWithBaseURI ¶
func NewRecipientTransfersClientWithBaseURI(sdkApi sdkEnv.Api) (*RecipientTransfersClient, error)
func (RecipientTransfersClient) Accept ¶
func (c RecipientTransfersClient) Accept(ctx context.Context, id TransferId, input AcceptTransferRequest) (result AcceptOperationResponse, err error)
Accept ...
func (RecipientTransfersClient) Decline ¶
func (c RecipientTransfersClient) Decline(ctx context.Context, id TransferId) (result DeclineOperationResponse, err error)
Decline ...
func (RecipientTransfersClient) Get ¶
func (c RecipientTransfersClient) Get(ctx context.Context, id TransferId) (result GetOperationResponse, err error)
Get ...
func (RecipientTransfersClient) List ¶
func (c RecipientTransfersClient) List(ctx context.Context) (result ListOperationResponse, err error)
List ...
func (RecipientTransfersClient) ListComplete ¶
func (c RecipientTransfersClient) ListComplete(ctx context.Context) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (RecipientTransfersClient) ListCompleteMatchingPredicate ¶
func (c RecipientTransfersClient) ListCompleteMatchingPredicate(ctx context.Context, predicate RecipientTransferDetailsOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (RecipientTransfersClient) Validate ¶
func (c RecipientTransfersClient) Validate(ctx context.Context, id TransferId, input AcceptTransferRequest) (result ValidateOperationResponse, err error)
Validate ...
type SupportedAccountType ¶
type SupportedAccountType string
const ( SupportedAccountTypeEnterprise SupportedAccountType = "Enterprise" SupportedAccountTypeIndividual SupportedAccountType = "Individual" SupportedAccountTypeNone SupportedAccountType = "None" SupportedAccountTypePartner SupportedAccountType = "Partner" )
func (*SupportedAccountType) UnmarshalJSON ¶
func (s *SupportedAccountType) UnmarshalJSON(bytes []byte) error
type TransferError ¶
type TransferId ¶
type TransferId struct {
TransferName string
}
TransferId is a struct representing the Resource ID for a Transfer
func NewTransferID ¶
func NewTransferID(transferName string) TransferId
NewTransferID returns a new TransferId struct
func ParseTransferID ¶
func ParseTransferID(input string) (*TransferId, error)
ParseTransferID parses 'input' into a TransferId
func ParseTransferIDInsensitively ¶
func ParseTransferIDInsensitively(input string) (*TransferId, error)
ParseTransferIDInsensitively parses 'input' case-insensitively into a TransferId note: this method should only be used for API response data and not user input
func (*TransferId) FromParseResult ¶
func (id *TransferId) FromParseResult(input resourceids.ParseResult) error
func (TransferId) Segments ¶
func (id TransferId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Transfer ID
func (TransferId) String ¶
func (id TransferId) String() string
String returns a human-readable description of this Transfer ID
type TransferStatus ¶
type TransferStatus string
const ( TransferStatusCanceled TransferStatus = "Canceled" TransferStatusCompleted TransferStatus = "Completed" TransferStatusCompletedWithErrors TransferStatus = "CompletedWithErrors" TransferStatusDeclined TransferStatus = "Declined" TransferStatusExpired TransferStatus = "Expired" TransferStatusFailed TransferStatus = "Failed" TransferStatusInProgress TransferStatus = "InProgress" TransferStatusPending TransferStatus = "Pending" )
func (*TransferStatus) UnmarshalJSON ¶
func (s *TransferStatus) UnmarshalJSON(bytes []byte) error
type ValidateOperationResponse ¶
type ValidateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ValidateTransferListResponse }
type ValidateTransferListResponse ¶
type ValidateTransferListResponse struct {
Value *[]ValidateTransferResponse `json:"value,omitempty"`
}
type ValidateTransferResponse ¶
type ValidateTransferResponse struct {
Properties *ValidateTransferResponseProperties `json:"properties,omitempty"`
}
type ValidateTransferResponseProperties ¶
type ValidateTransferResponseProperties struct { ProductId *string `json:"productId,omitempty"` Results *[]ValidationResultProperties `json:"results,omitempty"` Status *string `json:"status,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_transfer.go
- method_accept.go
- method_decline.go
- method_get.go
- method_list.go
- method_validate.go
- model_accepttransferproperties.go
- model_accepttransferrequest.go
- model_detailedtransferstatus.go
- model_productdetails.go
- model_recipienttransferdetails.go
- model_recipienttransferproperties.go
- model_transfererror.go
- model_validatetransferlistresponse.go
- model_validatetransferresponse.go
- model_validatetransferresponseproperties.go
- model_validationresultproperties.go
- predicates.go
- version.go