Documentation ¶
Index ¶
- func PossibleValuesForEligibleProductType() []string
- func PossibleValuesForProductTransferStatus() []string
- func PossibleValuesForProductType() []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 Error
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ProductDetails
- type ProductTransferStatus
- type ProductType
- type RecipientTransferDetails
- type RecipientTransferDetailsOperationPredicate
- type RecipientTransferProperties
- func (o *RecipientTransferProperties) GetCreationTimeAsTime() (*time.Time, error)
- func (o *RecipientTransferProperties) GetExpirationTimeAsTime() (*time.Time, error)
- func (o *RecipientTransferProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
- func (o *RecipientTransferProperties) SetCreationTimeAsTime(input time.Time)
- func (o *RecipientTransferProperties) SetExpirationTimeAsTime(input time.Time)
- func (o *RecipientTransferProperties) SetLastModifiedTimeAsTime(input time.Time)
- 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 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 PossibleValuesForProductTransferStatus ¶
func PossibleValuesForProductTransferStatus() []string
func PossibleValuesForProductType ¶
func PossibleValuesForProductType() []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 *Error `json:"errorDetails,omitempty"` ProductId *string `json:"productId,omitempty"` ProductType *ProductType `json:"productType,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 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" )
func (*ProductType) UnmarshalJSON ¶
func (s *ProductType) UnmarshalJSON(bytes []byte) error
type RecipientTransferDetails ¶
type RecipientTransferDetails struct {
Properties *RecipientTransferProperties `json:"properties,omitempty"`
}
type RecipientTransferDetailsOperationPredicate ¶
type RecipientTransferDetailsOperationPredicate struct { }
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"` CreationTime *string `json:"creationTime,omitempty"` DetailedTransferStatus *[]DetailedTransferStatus `json:"detailedTransferStatus,omitempty"` ExpirationTime *string `json:"expirationTime,omitempty"` InitiatorCustomerType *string `json:"initiatorCustomerType,omitempty"` InitiatorEmailId *string `json:"initiatorEmailId,omitempty"` LastModifiedTime *string `json:"lastModifiedTime,omitempty"` RecipientEmailId *string `json:"recipientEmailId,omitempty"` ResellerId *string `json:"resellerId,omitempty"` ResellerName *string `json:"resellerName,omitempty"` TransferStatus *TransferStatus `json:"transferStatus,omitempty"` }
func (*RecipientTransferProperties) GetCreationTimeAsTime ¶
func (o *RecipientTransferProperties) GetCreationTimeAsTime() (*time.Time, error)
func (*RecipientTransferProperties) GetExpirationTimeAsTime ¶
func (o *RecipientTransferProperties) GetExpirationTimeAsTime() (*time.Time, error)
func (*RecipientTransferProperties) GetLastModifiedTimeAsTime ¶
func (o *RecipientTransferProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
func (*RecipientTransferProperties) SetCreationTimeAsTime ¶
func (o *RecipientTransferProperties) SetCreationTimeAsTime(input time.Time)
func (*RecipientTransferProperties) SetExpirationTimeAsTime ¶
func (o *RecipientTransferProperties) SetExpirationTimeAsTime(input time.Time)
func (*RecipientTransferProperties) SetLastModifiedTimeAsTime ¶
func (o *RecipientTransferProperties) SetLastModifiedTimeAsTime(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 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" 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_error.go
- model_productdetails.go
- model_recipienttransferdetails.go
- model_recipienttransferproperties.go
- model_validatetransferlistresponse.go
- model_validatetransferresponse.go
- model_validatetransferresponseproperties.go
- model_validationresultproperties.go
- predicates.go
- version.go