Versions in this module Expand all Collapse all v0 v0.0.2 Sep 22, 2023 Changes in this version type Client + ResponseEditors []ResponseEditorFn + UserAgent string type ClientOption + func WithResponseEditorFn(fn ResponseEditorFn) ClientOption + type ResponseEditorFn func(ctx context.Context, rsp *http.Response) error v0.0.1 Sep 16, 2023 Changes in this version + func NewGenerateBrandMetricsReportRequestWithApplicationVndInsightsBrandMetricsV1PlusJSONBody(server string, params *GenerateBrandMetricsReportParams, ...) (*http.Request, error) + func NewGenerateBrandMetricsReportRequestWithBody(server string, params *GenerateBrandMetricsReportParams, contentType string, ...) (*http.Request, error) + func NewGetBrandMetricsReportRequest(server string, reportId string, params *GetBrandMetricsReportParams) (*http.Request, error) + type BrandMetricsError struct + Code *string + Details *string + type BrandMetricsGenerateReportRequest struct + BrandName *string + CategoryNodePath *[]string + CategoryNodeTreeName *string + Format *BrandMetricsGenerateReportRequestFormat + LookBackPeriod *BrandMetricsGenerateReportRequestLookBackPeriod + Metrics *[]string + ReportEndDate *openapi_types.Date + ReportStartDate *openapi_types.Date + type BrandMetricsGenerateReportRequestFormat string + const BrandMetricsGenerateReportRequestFormatCSV + const BrandMetricsGenerateReportRequestFormatJSON + type BrandMetricsGenerateReportRequestLookBackPeriod string + const N1cm + const N1m + const N1w + type BrandMetricsGenerateReportResponse struct + Expiration int64 + Format BrandMetricsGenerateReportResponseFormat + Location *string + ReportId string + Status BrandMetricsGenerateReportResponseStatus + StatusDetails string + type BrandMetricsGenerateReportResponseFormat string + const BrandMetricsGenerateReportResponseFormatCSV + const BrandMetricsGenerateReportResponseFormatJSON + type BrandMetricsGenerateReportResponseStatus string + const BrandMetricsGenerateReportResponseStatusFAILURE + const BrandMetricsGenerateReportResponseStatusINPROGRESS + const BrandMetricsGenerateReportResponseStatusSUCCESS + type BrandMetricsGetReportByIdResponse struct + BrandsInfo ... + Expiration int64 + Format BrandMetricsGetReportByIdResponseFormat + Location *string + ReportId string + Status BrandMetricsGetReportByIdResponseStatus + StatusDetails string + type BrandMetricsGetReportByIdResponseFormat string + const CSV + const JSON + type BrandMetricsGetReportByIdResponseStatus string + const BrandMetricsGetReportByIdResponseStatusFAILURE + const BrandMetricsGetReportByIdResponseStatusINPROGRESS + const BrandMetricsGetReportByIdResponseStatusSUCCESS + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) GenerateBrandMetricsReportWithApplicationVndInsightsBrandMetricsV1PlusJSONBody(ctx context.Context, params *GenerateBrandMetricsReportParams, ...) (*http.Response, error) + func (c *Client) GenerateBrandMetricsReportWithBody(ctx context.Context, params *GenerateBrandMetricsReportParams, ...) (*http.Response, error) + func (c *Client) GetBrandMetricsReport(ctx context.Context, reportId string, params *GetBrandMetricsReportParams, ...) (*http.Response, error) + type ClientInterface interface + GenerateBrandMetricsReportWithApplicationVndInsightsBrandMetricsV1PlusJSONBody func(ctx context.Context, params *GenerateBrandMetricsReportParams, ...) (*http.Response, error) + GenerateBrandMetricsReportWithBody func(ctx context.Context, params *GenerateBrandMetricsReportParams, ...) (*http.Response, error) + GetBrandMetricsReport func(ctx context.Context, reportId string, params *GetBrandMetricsReportParams, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) GenerateBrandMetricsReportWithApplicationVndInsightsBrandMetricsV1PlusJSONBodyWithResponse(ctx context.Context, params *GenerateBrandMetricsReportParams, ...) (*GenerateBrandMetricsReportResp, error) + func (c *ClientWithResponses) GenerateBrandMetricsReportWithBodyWithResponse(ctx context.Context, params *GenerateBrandMetricsReportParams, ...) (*GenerateBrandMetricsReportResp, error) + func (c *ClientWithResponses) GetBrandMetricsReportWithResponse(ctx context.Context, reportId string, params *GetBrandMetricsReportParams, ...) (*GetBrandMetricsReportResp, error) + type ClientWithResponsesInterface interface + ... func(ctx context.Context, params *GenerateBrandMetricsReportParams, ...) (*GenerateBrandMetricsReportResp, error) + GenerateBrandMetricsReportWithBodyWithResponse func(ctx context.Context, params *GenerateBrandMetricsReportParams, ...) (*GenerateBrandMetricsReportResp, error) + GetBrandMetricsReportWithResponse func(ctx context.Context, reportId string, params *GetBrandMetricsReportParams, ...) (*GetBrandMetricsReportResp, error) + type GenerateBrandMetricsReportApplicationVndInsightsBrandMetricsV1PlusJSONRequestBody = BrandMetricsGenerateReportRequest + type GenerateBrandMetricsReportParams struct + AmazonAdvertisingAPIClientID string + AmazonAdvertisingAPIScope string + type GenerateBrandMetricsReportResp struct + ApplicationvndInsightsBrandMetricsErrorV1JSON400 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON401 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON403 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON422 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON424 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON429 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON500 *BrandMetricsError + ApplicationvndInsightsBrandMetricsV1JSON200 *BrandMetricsGenerateReportResponse + Body []byte + HTTPResponse *http.Response + func ParseGenerateBrandMetricsReportResp(rsp *http.Response) (*GenerateBrandMetricsReportResp, error) + func (r GenerateBrandMetricsReportResp) Status() string + func (r GenerateBrandMetricsReportResp) StatusCode() int + type GetBrandMetricsReportParams struct + AmazonAdvertisingAPIClientID string + AmazonAdvertisingAPIScope string + type GetBrandMetricsReportResp struct + ApplicationvndInsightsBrandMetricsErrorV1JSON400 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON401 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON403 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON422 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON424 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON429 *BrandMetricsError + ApplicationvndInsightsBrandMetricsErrorV1JSON500 *BrandMetricsError + ApplicationvndInsightsBrandMetricsV1JSON200 *BrandMetricsGetReportByIdResponse + Body []byte + HTTPResponse *http.Response + func ParseGetBrandMetricsReportResp(rsp *http.Response) (*GetBrandMetricsReportResp, error) + func (r GetBrandMetricsReportResp) Status() string + func (r GetBrandMetricsReportResp) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type RequestEditorFn func(ctx context.Context, req *http.Request) error