transfers

package
v0.20240124.1082632 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/billing/2019-10-01-preview/transfers Documentation

The transfers SDK allows for interaction with the Azure Resource Manager Service billing (API Version 2019-10-01-preview).

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/billing/2019-10-01-preview/transfers"

Client Initialization

client := transfers.NewTransfersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TransfersClient.Cancel

ctx := context.TODO()
id := transfers.NewInvoiceSectionTransferID("billingAccountValue", "billingProfileValue", "invoiceSectionValue", "transferValue")

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

Example Usage: TransfersClient.Get

ctx := context.TODO()
id := transfers.NewInvoiceSectionTransferID("billingAccountValue", "billingProfileValue", "invoiceSectionValue", "transferValue")

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: TransfersClient.Initiate

ctx := context.TODO()
id := transfers.NewInvoiceSectionID("billingAccountValue", "billingProfileValue", "invoiceSectionValue")

payload := transfers.InitiateTransferRequest{
	// ...
}


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

Example Usage: TransfersClient.List

ctx := context.TODO()
id := transfers.NewInvoiceSectionID("billingAccountValue", "billingProfileValue", "invoiceSectionValue")

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

Example Usage: TransfersClient.PartnerTransfersCancel

ctx := context.TODO()
id := transfers.NewCustomerTransferID("billingAccountValue", "billingProfileValue", "customerValue", "transferValue")

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

Example Usage: TransfersClient.PartnerTransfersGet

ctx := context.TODO()
id := transfers.NewCustomerTransferID("billingAccountValue", "billingProfileValue", "customerValue", "transferValue")

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

Example Usage: TransfersClient.PartnerTransfersInitiate

ctx := context.TODO()
id := transfers.NewBillingProfileCustomerID("billingAccountValue", "billingProfileValue", "customerValue")

payload := transfers.InitiateTransferRequest{
	// ...
}


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

Example Usage: TransfersClient.PartnerTransfersList

ctx := context.TODO()
id := transfers.NewBillingProfileCustomerID("billingAccountValue", "billingProfileValue", "customerValue")

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

func PossibleValuesForProductTransferStatus() []string

func PossibleValuesForProductType

func PossibleValuesForProductType() []string

func PossibleValuesForTransferStatus

func PossibleValuesForTransferStatus() []string

func ValidateBillingProfileCustomerID

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

ValidateBillingProfileCustomerID checks that 'input' can be parsed as a Billing Profile Customer ID

func ValidateCustomerTransferID

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

ValidateCustomerTransferID checks that 'input' can be parsed as a Customer Transfer ID

func ValidateInvoiceSectionID

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

ValidateInvoiceSectionID checks that 'input' can be parsed as a Invoice Section ID

func ValidateInvoiceSectionTransferID

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

ValidateInvoiceSectionTransferID checks that 'input' can be parsed as a Invoice Section Transfer ID

Types

type BillingProfileCustomerId

type BillingProfileCustomerId struct {
	BillingAccountName string
	BillingProfileName string
	CustomerName       string
}

BillingProfileCustomerId is a struct representing the Resource ID for a Billing Profile Customer

func NewBillingProfileCustomerID

func NewBillingProfileCustomerID(billingAccountName string, billingProfileName string, customerName string) BillingProfileCustomerId

NewBillingProfileCustomerID returns a new BillingProfileCustomerId struct

func ParseBillingProfileCustomerID

func ParseBillingProfileCustomerID(input string) (*BillingProfileCustomerId, error)

ParseBillingProfileCustomerID parses 'input' into a BillingProfileCustomerId

func ParseBillingProfileCustomerIDInsensitively

func ParseBillingProfileCustomerIDInsensitively(input string) (*BillingProfileCustomerId, error)

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

func (*BillingProfileCustomerId) FromParseResult

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

func (BillingProfileCustomerId) ID

ID returns the formatted Billing Profile Customer ID

func (BillingProfileCustomerId) Segments

Segments returns a slice of Resource ID Segments which comprise this Billing Profile Customer ID

func (BillingProfileCustomerId) String

func (id BillingProfileCustomerId) String() string

String returns a human-readable description of this Billing Profile Customer ID

type CancelOperationResponse

type CancelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TransferDetails
}

type CustomerTransferId

type CustomerTransferId struct {
	BillingAccountName string
	BillingProfileName string
	CustomerName       string
	TransferName       string
}

CustomerTransferId is a struct representing the Resource ID for a Customer Transfer

func NewCustomerTransferID

func NewCustomerTransferID(billingAccountName string, billingProfileName string, customerName string, transferName string) CustomerTransferId

NewCustomerTransferID returns a new CustomerTransferId struct

func ParseCustomerTransferID

func ParseCustomerTransferID(input string) (*CustomerTransferId, error)

ParseCustomerTransferID parses 'input' into a CustomerTransferId

func ParseCustomerTransferIDInsensitively

func ParseCustomerTransferIDInsensitively(input string) (*CustomerTransferId, error)

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

func (*CustomerTransferId) FromParseResult

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

func (CustomerTransferId) ID

func (id CustomerTransferId) ID() string

ID returns the formatted Customer Transfer ID

func (CustomerTransferId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Customer Transfer ID

func (CustomerTransferId) String

func (id CustomerTransferId) String() string

String returns a human-readable description of this Customer Transfer ID

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 Error

type Error struct {
	ErrorCode    *string `json:"errorCode,omitempty"`
	ErrorMessage *string `json:"errorMessage,omitempty"`
}

type GetOperationResponse

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

type InitiateOperationResponse

type InitiateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TransferDetails
}

type InitiateTransferProperties

type InitiateTransferProperties struct {
	RecipientEmailId *string `json:"recipientEmailId,omitempty"`
	ResellerId       *string `json:"resellerId,omitempty"`
}

type InitiateTransferRequest

type InitiateTransferRequest struct {
	Properties *InitiateTransferProperties `json:"properties,omitempty"`
}

type InvoiceSectionId

type InvoiceSectionId struct {
	BillingAccountName string
	BillingProfileName string
	InvoiceSectionName string
}

InvoiceSectionId is a struct representing the Resource ID for a Invoice Section

func NewInvoiceSectionID

func NewInvoiceSectionID(billingAccountName string, billingProfileName string, invoiceSectionName string) InvoiceSectionId

NewInvoiceSectionID returns a new InvoiceSectionId struct

func ParseInvoiceSectionID

func ParseInvoiceSectionID(input string) (*InvoiceSectionId, error)

ParseInvoiceSectionID parses 'input' into a InvoiceSectionId

func ParseInvoiceSectionIDInsensitively

func ParseInvoiceSectionIDInsensitively(input string) (*InvoiceSectionId, error)

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

func (*InvoiceSectionId) FromParseResult

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

func (InvoiceSectionId) ID

func (id InvoiceSectionId) ID() string

ID returns the formatted Invoice Section ID

func (InvoiceSectionId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Invoice Section ID

func (InvoiceSectionId) String

func (id InvoiceSectionId) String() string

String returns a human-readable description of this Invoice Section ID

type InvoiceSectionTransferId

type InvoiceSectionTransferId struct {
	BillingAccountName string
	BillingProfileName string
	InvoiceSectionName string
	TransferName       string
}

InvoiceSectionTransferId is a struct representing the Resource ID for a Invoice Section Transfer

func NewInvoiceSectionTransferID

func NewInvoiceSectionTransferID(billingAccountName string, billingProfileName string, invoiceSectionName string, transferName string) InvoiceSectionTransferId

NewInvoiceSectionTransferID returns a new InvoiceSectionTransferId struct

func ParseInvoiceSectionTransferID

func ParseInvoiceSectionTransferID(input string) (*InvoiceSectionTransferId, error)

ParseInvoiceSectionTransferID parses 'input' into a InvoiceSectionTransferId

func ParseInvoiceSectionTransferIDInsensitively

func ParseInvoiceSectionTransferIDInsensitively(input string) (*InvoiceSectionTransferId, error)

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

func (*InvoiceSectionTransferId) FromParseResult

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

func (InvoiceSectionTransferId) ID

ID returns the formatted Invoice Section Transfer ID

func (InvoiceSectionTransferId) Segments

Segments returns a slice of Resource ID Segments which comprise this Invoice Section Transfer ID

func (InvoiceSectionTransferId) String

func (id InvoiceSectionTransferId) String() string

String returns a human-readable description of this Invoice Section Transfer ID

type ListCompleteResult

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

type ListOperationResponse

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

type PartnerTransfersCancelOperationResponse

type PartnerTransfersCancelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TransferDetails
}

type PartnerTransfersGetOperationResponse

type PartnerTransfersGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TransferDetails
}

type PartnerTransfersInitiateOperationResponse

type PartnerTransfersInitiateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TransferDetails
}

type PartnerTransfersListCompleteResult

type PartnerTransfersListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []TransferDetails
}

type PartnerTransfersListOperationResponse

type PartnerTransfersListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]TransferDetails
}

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 TransferDetails

type TransferDetails struct {
	Properties *TransferProperties `json:"properties,omitempty"`
}

type TransferDetailsOperationPredicate

type TransferDetailsOperationPredicate struct {
}

func (TransferDetailsOperationPredicate) Matches

type TransferProperties

type TransferProperties struct {
	BillingAccountId       *string                   `json:"billingAccountId,omitempty"`
	BillingProfileId       *string                   `json:"billingProfileId,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"`
	InvoiceSectionId       *string                   `json:"invoiceSectionId,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 (*TransferProperties) GetCreationTimeAsTime

func (o *TransferProperties) GetCreationTimeAsTime() (*time.Time, error)

func (*TransferProperties) GetExpirationTimeAsTime

func (o *TransferProperties) GetExpirationTimeAsTime() (*time.Time, error)

func (*TransferProperties) GetLastModifiedTimeAsTime

func (o *TransferProperties) GetLastModifiedTimeAsTime() (*time.Time, error)

func (*TransferProperties) SetCreationTimeAsTime

func (o *TransferProperties) SetCreationTimeAsTime(input time.Time)

func (*TransferProperties) SetExpirationTimeAsTime

func (o *TransferProperties) SetExpirationTimeAsTime(input time.Time)

func (*TransferProperties) SetLastModifiedTimeAsTime

func (o *TransferProperties) SetLastModifiedTimeAsTime(input time.Time)

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 TransfersClient

type TransfersClient struct {
	Client *resourcemanager.Client
}

func NewTransfersClientWithBaseURI

func NewTransfersClientWithBaseURI(sdkApi sdkEnv.Api) (*TransfersClient, error)

func (TransfersClient) Cancel

Cancel ...

func (TransfersClient) Get

Get ...

func (TransfersClient) Initiate

Initiate ...

func (TransfersClient) List

List ...

func (TransfersClient) ListComplete

ListComplete retrieves all the results into a single object

func (TransfersClient) ListCompleteMatchingPredicate

func (c TransfersClient) ListCompleteMatchingPredicate(ctx context.Context, id InvoiceSectionId, predicate TransferDetailsOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TransfersClient) PartnerTransfersCancel

func (c TransfersClient) PartnerTransfersCancel(ctx context.Context, id CustomerTransferId) (result PartnerTransfersCancelOperationResponse, err error)

PartnerTransfersCancel ...

func (TransfersClient) PartnerTransfersGet

func (c TransfersClient) PartnerTransfersGet(ctx context.Context, id CustomerTransferId) (result PartnerTransfersGetOperationResponse, err error)

PartnerTransfersGet ...

func (TransfersClient) PartnerTransfersInitiate

PartnerTransfersInitiate ...

func (TransfersClient) PartnerTransfersList

PartnerTransfersList ...

func (TransfersClient) PartnerTransfersListComplete

PartnerTransfersListComplete retrieves all the results into a single object

func (TransfersClient) PartnerTransfersListCompleteMatchingPredicate

func (c TransfersClient) PartnerTransfersListCompleteMatchingPredicate(ctx context.Context, id BillingProfileCustomerId, predicate TransferDetailsOperationPredicate) (result PartnerTransfersListCompleteResult, err error)

PartnerTransfersListCompleteMatchingPredicate 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