Documentation
¶
Index ¶
- type CancelReportResponse
- type CreateReportRequest
- type CreateReportResponse
- type GetReportDocumentResponse
- type GetReportResponse
- type GetReportsRequest
- type GetReportsResponse
- type ReportOptions
- type ReportsAPI
- func (r *ReportsAPI) CancelReport(ctx context.Context, reportId string) (*CancelReportResponse, error)
- func (r *ReportsAPI) CreateReport(ctx context.Context, request *CreateReportRequest) (*CreateReportResponse, error)
- func (r *ReportsAPI) GetReport(ctx context.Context, reportId string) (*GetReportResponse, error)
- func (r *ReportsAPI) GetReportDocument(ctx context.Context, reportDocumentId string) (*GetReportDocumentResponse, error)
- func (r *ReportsAPI) GetReports(ctx context.Context, request *GetReportsRequest) (*GetReportsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelReportResponse ¶
type CancelReportResponse struct {
ReportId string `json:"reportId"`
}
CancelReportResponse represents the response from canceling a report
type CreateReportRequest ¶
type CreateReportRequest struct {
ReportType string `json:"reportType"`
MarketplaceIds []string `json:"marketplaceIds"`
DataStartTime string `json:"dataStartTime,omitempty"`
DataEndTime string `json:"dataEndTime,omitempty"`
ReportOptions *ReportOptions `json:"reportOptions,omitempty"`
}
CreateReportRequest represents the request for creating a report
type CreateReportResponse ¶
type CreateReportResponse struct {
ReportId string `json:"reportId"`
}
CreateReportResponse represents the response from creating a report
type GetReportDocumentResponse ¶
type GetReportDocumentResponse struct {
ReportDocumentId string `json:"reportDocumentId"`
Url string `json:"url"`
CompressionAlgorithm string `json:"compressionAlgorithm,omitempty"`
}
GetReportDocumentResponse represents the response from getting a report document
type GetReportResponse ¶
type GetReportResponse struct {
ReportId string `json:"reportId"`
ReportType string `json:"reportType"`
MarketplaceIds []string `json:"marketplaceIds"`
DataStartTime time.Time `json:"dataStartTime,omitempty"`
DataEndTime time.Time `json:"dataEndTime,omitempty"`
CreatedTime time.Time `json:"createdTime"`
ProcessingStatus string `json:"processingStatus"`
ProcessingStartTime *time.Time `json:"processingStartTime,omitempty"`
ProcessingEndTime *time.Time `json:"processingEndTime,omitempty"`
ReportDocumentId *string `json:"reportDocumentId,omitempty"`
}
GetReportResponse represents the response from getting a report
type GetReportsRequest ¶
type GetReportsRequest struct {
ReportTypes []string `json:"reportTypes,omitempty"`
MarketplaceIds []string `json:"marketplaceIds,omitempty"`
ProcessingStatuses []string `json:"processingStatuses,omitempty"`
DataStartTime string `json:"dataStartTime,omitempty"`
DataEndTime string `json:"dataEndTime,omitempty"`
CreatedSince string `json:"createdSince,omitempty"`
CreatedUntil string `json:"createdUntil,omitempty"`
NextToken string `json:"nextToken,omitempty"`
PageSize int `json:"pageSize,omitempty"`
}
GetReportsRequest represents the request for getting reports
type GetReportsResponse ¶
type GetReportsResponse struct {
Reports []GetReportResponse `json:"reports"`
NextToken string `json:"nextToken,omitempty"`
}
GetReportsResponse represents the response from getting reports
type ReportsAPI ¶
type ReportsAPI struct {
// contains filtered or unexported fields
}
ReportsAPI represents the Reports API client
func NewReportsAPI ¶
func NewReportsAPI(config *client.Configuration) *ReportsAPI
NewReportsAPI creates a new Reports API client
func (*ReportsAPI) CancelReport ¶
func (r *ReportsAPI) CancelReport(ctx context.Context, reportId string) (*CancelReportResponse, error)
CancelReport cancels a report
func (*ReportsAPI) CreateReport ¶
func (r *ReportsAPI) CreateReport(ctx context.Context, request *CreateReportRequest) (*CreateReportResponse, error)
CreateReport creates a new report
func (*ReportsAPI) GetReport ¶
func (r *ReportsAPI) GetReport(ctx context.Context, reportId string) (*GetReportResponse, error)
GetReport retrieves report information
func (*ReportsAPI) GetReportDocument ¶
func (r *ReportsAPI) GetReportDocument(ctx context.Context, reportDocumentId string) (*GetReportDocumentResponse, error)
GetReportDocument retrieves report document information
func (*ReportsAPI) GetReports ¶
func (r *ReportsAPI) GetReports(ctx context.Context, request *GetReportsRequest) (*GetReportsResponse, error)
GetReports retrieves a list of reports