exports

package
v0.20220621.123833 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MPL-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForExecutionStatus

func PossibleValuesForExecutionStatus() []string

func PossibleValuesForExecutionType

func PossibleValuesForExecutionType() []string

func PossibleValuesForExportType

func PossibleValuesForExportType() []string

func PossibleValuesForFormatType

func PossibleValuesForFormatType() []string

func PossibleValuesForGranularityType

func PossibleValuesForGranularityType() []string

func PossibleValuesForRecurrenceType

func PossibleValuesForRecurrenceType() []string

func PossibleValuesForStatusType

func PossibleValuesForStatusType() []string

func PossibleValuesForTimeframeType

func PossibleValuesForTimeframeType() []string

func ValidateScopedExportID

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

ValidateScopedExportID checks that 'input' can be parsed as a Scoped Export ID

Types

type CommonExportProperties

type CommonExportProperties struct {
	Definition          ExportDefinition           `json:"definition"`
	DeliveryInfo        ExportDeliveryInfo         `json:"deliveryInfo"`
	Format              *FormatType                `json:"format,omitempty"`
	NextRunTimeEstimate *string                    `json:"nextRunTimeEstimate,omitempty"`
	PartitionData       *bool                      `json:"partitionData,omitempty"`
	RunHistory          *ExportExecutionListResult `json:"runHistory,omitempty"`
}

func (*CommonExportProperties) GetNextRunTimeEstimateAsTime

func (o *CommonExportProperties) GetNextRunTimeEstimateAsTime() (*time.Time, error)

func (*CommonExportProperties) SetNextRunTimeEstimateAsTime

func (o *CommonExportProperties) SetNextRunTimeEstimateAsTime(input time.Time)

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Export
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type ErrorDetails

type ErrorDetails struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

type ExecuteOperationResponse

type ExecuteOperationResponse struct {
	HttpResponse *http.Response
}

type ExecutionStatus

type ExecutionStatus string
const (
	ExecutionStatusCompleted           ExecutionStatus = "Completed"
	ExecutionStatusDataNotAvailable    ExecutionStatus = "DataNotAvailable"
	ExecutionStatusFailed              ExecutionStatus = "Failed"
	ExecutionStatusInProgress          ExecutionStatus = "InProgress"
	ExecutionStatusNewDataNotAvailable ExecutionStatus = "NewDataNotAvailable"
	ExecutionStatusQueued              ExecutionStatus = "Queued"
	ExecutionStatusTimeout             ExecutionStatus = "Timeout"
)

type ExecutionType

type ExecutionType string
const (
	ExecutionTypeOnDemand  ExecutionType = "OnDemand"
	ExecutionTypeScheduled ExecutionType = "Scheduled"
)

type Export

type Export struct {
	ETag       *string           `json:"eTag,omitempty"`
	Id         *string           `json:"id,omitempty"`
	Name       *string           `json:"name,omitempty"`
	Properties *ExportProperties `json:"properties,omitempty"`
	Type       *string           `json:"type,omitempty"`
}

type ExportDataset

type ExportDataset struct {
	Configuration *ExportDatasetConfiguration `json:"configuration,omitempty"`
	Granularity   *GranularityType            `json:"granularity,omitempty"`
}

type ExportDatasetConfiguration

type ExportDatasetConfiguration struct {
	Columns *[]string `json:"columns,omitempty"`
}

type ExportDefinition

type ExportDefinition struct {
	DataSet    *ExportDataset    `json:"dataSet,omitempty"`
	TimePeriod *ExportTimePeriod `json:"timePeriod,omitempty"`
	Timeframe  TimeframeType     `json:"timeframe"`
	Type       ExportType        `json:"type"`
}

type ExportDeliveryDestination

type ExportDeliveryDestination struct {
	Container      string  `json:"container"`
	ResourceId     *string `json:"resourceId,omitempty"`
	RootFolderPath *string `json:"rootFolderPath,omitempty"`
	SasToken       *string `json:"sasToken,omitempty"`
	StorageAccount *string `json:"storageAccount,omitempty"`
}

type ExportDeliveryInfo

type ExportDeliveryInfo struct {
	Destination ExportDeliveryDestination `json:"destination"`
}

type ExportExecution

type ExportExecution struct {
	ETag       *string                    `json:"eTag,omitempty"`
	Id         *string                    `json:"id,omitempty"`
	Name       *string                    `json:"name,omitempty"`
	Properties *ExportExecutionProperties `json:"properties,omitempty"`
	Type       *string                    `json:"type,omitempty"`
}

type ExportExecutionListResult

type ExportExecutionListResult struct {
	Value *[]ExportExecution `json:"value,omitempty"`
}

type ExportExecutionProperties

type ExportExecutionProperties struct {
	Error               *ErrorDetails           `json:"error,omitempty"`
	ExecutionType       *ExecutionType          `json:"executionType,omitempty"`
	FileName            *string                 `json:"fileName,omitempty"`
	ProcessingEndTime   *string                 `json:"processingEndTime,omitempty"`
	ProcessingStartTime *string                 `json:"processingStartTime,omitempty"`
	RunSettings         *CommonExportProperties `json:"runSettings,omitempty"`
	Status              *ExecutionStatus        `json:"status,omitempty"`
	SubmittedBy         *string                 `json:"submittedBy,omitempty"`
	SubmittedTime       *string                 `json:"submittedTime,omitempty"`
}

func (*ExportExecutionProperties) GetProcessingEndTimeAsTime

func (o *ExportExecutionProperties) GetProcessingEndTimeAsTime() (*time.Time, error)

func (*ExportExecutionProperties) GetProcessingStartTimeAsTime

func (o *ExportExecutionProperties) GetProcessingStartTimeAsTime() (*time.Time, error)

func (*ExportExecutionProperties) GetSubmittedTimeAsTime

func (o *ExportExecutionProperties) GetSubmittedTimeAsTime() (*time.Time, error)

func (*ExportExecutionProperties) SetProcessingEndTimeAsTime

func (o *ExportExecutionProperties) SetProcessingEndTimeAsTime(input time.Time)

func (*ExportExecutionProperties) SetProcessingStartTimeAsTime

func (o *ExportExecutionProperties) SetProcessingStartTimeAsTime(input time.Time)

func (*ExportExecutionProperties) SetSubmittedTimeAsTime

func (o *ExportExecutionProperties) SetSubmittedTimeAsTime(input time.Time)

type ExportListResult

type ExportListResult struct {
	Value *[]Export `json:"value,omitempty"`
}

type ExportProperties

type ExportProperties struct {
	Definition          ExportDefinition           `json:"definition"`
	DeliveryInfo        ExportDeliveryInfo         `json:"deliveryInfo"`
	Format              *FormatType                `json:"format,omitempty"`
	NextRunTimeEstimate *string                    `json:"nextRunTimeEstimate,omitempty"`
	PartitionData       *bool                      `json:"partitionData,omitempty"`
	RunHistory          *ExportExecutionListResult `json:"runHistory,omitempty"`
	Schedule            *ExportSchedule            `json:"schedule,omitempty"`
}

func (*ExportProperties) GetNextRunTimeEstimateAsTime

func (o *ExportProperties) GetNextRunTimeEstimateAsTime() (*time.Time, error)

func (*ExportProperties) SetNextRunTimeEstimateAsTime

func (o *ExportProperties) SetNextRunTimeEstimateAsTime(input time.Time)

type ExportRecurrencePeriod

type ExportRecurrencePeriod struct {
	From string  `json:"from"`
	To   *string `json:"to,omitempty"`
}

func (*ExportRecurrencePeriod) GetFromAsTime

func (o *ExportRecurrencePeriod) GetFromAsTime() (*time.Time, error)

func (*ExportRecurrencePeriod) GetToAsTime

func (o *ExportRecurrencePeriod) GetToAsTime() (*time.Time, error)

func (*ExportRecurrencePeriod) SetFromAsTime

func (o *ExportRecurrencePeriod) SetFromAsTime(input time.Time)

func (*ExportRecurrencePeriod) SetToAsTime

func (o *ExportRecurrencePeriod) SetToAsTime(input time.Time)

type ExportSchedule

type ExportSchedule struct {
	Recurrence       *RecurrenceType         `json:"recurrence,omitempty"`
	RecurrencePeriod *ExportRecurrencePeriod `json:"recurrencePeriod,omitempty"`
	Status           *StatusType             `json:"status,omitempty"`
}

type ExportTimePeriod

type ExportTimePeriod struct {
	From string `json:"from"`
	To   string `json:"to"`
}

func (*ExportTimePeriod) GetFromAsTime

func (o *ExportTimePeriod) GetFromAsTime() (*time.Time, error)

func (*ExportTimePeriod) GetToAsTime

func (o *ExportTimePeriod) GetToAsTime() (*time.Time, error)

func (*ExportTimePeriod) SetFromAsTime

func (o *ExportTimePeriod) SetFromAsTime(input time.Time)

func (*ExportTimePeriod) SetToAsTime

func (o *ExportTimePeriod) SetToAsTime(input time.Time)

type ExportType

type ExportType string
const (
	ExportTypeActualCost    ExportType = "ActualCost"
	ExportTypeAmortizedCost ExportType = "AmortizedCost"
	ExportTypeUsage         ExportType = "Usage"
)

type ExportsClient

type ExportsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewExportsClientWithBaseURI

func NewExportsClientWithBaseURI(endpoint string) ExportsClient

func (ExportsClient) CreateOrUpdate

func (c ExportsClient) CreateOrUpdate(ctx context.Context, id ScopedExportId, input Export) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (ExportsClient) Delete

func (c ExportsClient) Delete(ctx context.Context, id ScopedExportId) (result DeleteOperationResponse, err error)

Delete ...

func (ExportsClient) Execute

func (c ExportsClient) Execute(ctx context.Context, id ScopedExportId) (result ExecuteOperationResponse, err error)

Execute ...

func (ExportsClient) Get

Get ...

func (ExportsClient) GetExecutionHistory

func (c ExportsClient) GetExecutionHistory(ctx context.Context, id ScopedExportId) (result GetExecutionHistoryOperationResponse, err error)

GetExecutionHistory ...

func (ExportsClient) List

List ...

type FormatType

type FormatType string
const (
	FormatTypeCsv FormatType = "Csv"
)

type GetExecutionHistoryOperationResponse

type GetExecutionHistoryOperationResponse struct {
	HttpResponse *http.Response
	Model        *ExportExecutionListResult
}

type GetOperationOptions

type GetOperationOptions struct {
	Expand *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *Export
}

type GranularityType

type GranularityType string
const (
	GranularityTypeDaily GranularityType = "Daily"
)

type ListOperationOptions

type ListOperationOptions struct {
	Expand *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *ExportListResult
}

type RecurrenceType

type RecurrenceType string
const (
	RecurrenceTypeAnnually RecurrenceType = "Annually"
	RecurrenceTypeDaily    RecurrenceType = "Daily"
	RecurrenceTypeMonthly  RecurrenceType = "Monthly"
	RecurrenceTypeWeekly   RecurrenceType = "Weekly"
)

type ScopedExportId

type ScopedExportId struct {
	Scope      string
	ExportName string
}

ScopedExportId is a struct representing the Resource ID for a Scoped Export

func NewScopedExportID

func NewScopedExportID(scope string, exportName string) ScopedExportId

NewScopedExportID returns a new ScopedExportId struct

func ParseScopedExportID

func ParseScopedExportID(input string) (*ScopedExportId, error)

ParseScopedExportID parses 'input' into a ScopedExportId

func ParseScopedExportIDInsensitively

func ParseScopedExportIDInsensitively(input string) (*ScopedExportId, error)

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

func (ScopedExportId) ID

func (id ScopedExportId) ID() string

ID returns the formatted Scoped Export ID

func (ScopedExportId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Scoped Export ID

func (ScopedExportId) String

func (id ScopedExportId) String() string

String returns a human-readable description of this Scoped Export ID

type StatusType

type StatusType string
const (
	StatusTypeActive   StatusType = "Active"
	StatusTypeInactive StatusType = "Inactive"
)

type TimeframeType

type TimeframeType string
const (
	TimeframeTypeBillingMonthToDate  TimeframeType = "BillingMonthToDate"
	TimeframeTypeCustom              TimeframeType = "Custom"
	TimeframeTypeMonthToDate         TimeframeType = "MonthToDate"
	TimeframeTypeTheLastBillingMonth TimeframeType = "TheLastBillingMonth"
	TimeframeTypeTheLastMonth        TimeframeType = "TheLastMonth"
	TimeframeTypeWeekToDate          TimeframeType = "WeekToDate"
)

Jump to

Keyboard shortcuts

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