tokens_2021_03_01_models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// RestrictedResourceMethodGET captures enum value "GET"
	RestrictedResourceMethodGET string = "GET"

	// RestrictedResourceMethodPUT captures enum value "PUT"
	RestrictedResourceMethodPUT string = "PUT"

	// RestrictedResourceMethodPOST captures enum value "POST"
	RestrictedResourceMethodPOST string = "POST"

	// RestrictedResourceMethodDELETE captures enum value "DELETE"
	RestrictedResourceMethodDELETE string = "DELETE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRestrictedDataTokenRequest

type CreateRestrictedDataTokenRequest struct {

	// A list of restricted resources.
	// Maximum: 50
	// Required: true
	RestrictedResources []*RestrictedResource `json:"restrictedResources"`

	// The application ID for the target application to which access is being delegated.
	TargetApplication string `json:"targetApplication,omitempty"`
}

CreateRestrictedDataTokenRequest The request schema for the createRestrictedDataToken operation.

swagger:model CreateRestrictedDataTokenRequest

func (*CreateRestrictedDataTokenRequest) ContextValidate

func (m *CreateRestrictedDataTokenRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create restricted data token request based on the context it is used

func (*CreateRestrictedDataTokenRequest) MarshalBinary

func (m *CreateRestrictedDataTokenRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateRestrictedDataTokenRequest) UnmarshalBinary

func (m *CreateRestrictedDataTokenRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateRestrictedDataTokenRequest) Validate

Validate validates this create restricted data token request

type CreateRestrictedDataTokenResponse

type CreateRestrictedDataTokenResponse struct {

	// The lifetime of the Restricted Data Token, in seconds.
	ExpiresIn int64 `json:"expiresIn,omitempty"`

	// A Restricted Data Token (RDT). This is a short-lived access token that authorizes calls to restricted operations. Pass this value with the x-amz-access-token header when making subsequent calls to these restricted resources.
	RestrictedDataToken string `json:"restrictedDataToken,omitempty"`
}

CreateRestrictedDataTokenResponse The response schema for the createRestrictedDataToken operation.

swagger:model CreateRestrictedDataTokenResponse

func (*CreateRestrictedDataTokenResponse) ContextValidate

func (m *CreateRestrictedDataTokenResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create restricted data token response based on context it is used

func (*CreateRestrictedDataTokenResponse) MarshalBinary

func (m *CreateRestrictedDataTokenResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateRestrictedDataTokenResponse) UnmarshalBinary

func (m *CreateRestrictedDataTokenResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateRestrictedDataTokenResponse) Validate

Validate validates this create restricted data token response

type Error

type Error struct {

	// An error code that identifies the type of error that occurred.
	// Required: true
	Code *string `json:"code"`

	// Additional details that can help the caller understand or fix the issue.
	Details string `json:"details,omitempty"`

	// A message that describes the error condition.
	// Required: true
	Message *string `json:"message"`
}

Error An error response returned when the request is unsuccessful.

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ErrorList

type ErrorList struct {

	// errors
	Errors []*Error `json:"errors"`
}

ErrorList A list of error responses returned when a request is unsuccessful.

swagger:model ErrorList

func (*ErrorList) ContextValidate

func (m *ErrorList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error list based on the context it is used

func (*ErrorList) MarshalBinary

func (m *ErrorList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorList) UnmarshalBinary

func (m *ErrorList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorList) Validate

func (m *ErrorList) Validate(formats strfmt.Registry) error

Validate validates this error list

type RestrictedResource

type RestrictedResource struct {

	// Indicates the type of Personally Identifiable Information requested. This parameter is required only when getting an RDT for use with the getOrder, getOrders, or getOrderItems operation of the Orders API. For more information, see the [Tokens API Use Case Guide](doc:tokens-api-use-case-guide). Possible values include:
	// - **buyerInfo**. On the order level this includes general identifying information about the buyer and tax-related information. On the order item level this includes gift wrap information and custom order information, if available.
	// - **shippingAddress**. This includes information for fulfilling orders.
	// - **buyerTaxInformation**. This includes information for issuing tax invoices.
	DataElements []string `json:"dataElements"`

	// The HTTP method in the restricted resource.
	// Required: true
	// Enum: [GET PUT POST DELETE]
	Method *string `json:"method"`

	// The path in the restricted resource. Here are some path examples:
	// - “`/orders/v0/orders“`. For getting an RDT for the getOrders operation of the Orders API. For bulk orders.
	// - “`/orders/v0/orders/123-1234567-1234567“`. For getting an RDT for the getOrder operation of the Orders API. For a specific order.
	// - “`/orders/v0/orders/123-1234567-1234567/orderItems“`. For getting an RDT for the getOrderItems operation of the Orders API. For the order items in a specific order.
	// - “`/mfn/v0/shipments/FBA1234ABC5D“`. For getting an RDT for the getShipment operation of the Shipping API. For a specific shipment.
	// - “`/mfn/v0/shipments/{shipmentId}“`. For getting an RDT for the getShipment operation of the Shipping API. For any of a selling partner's shipments that you specify when you call the getShipment operation.
	// Required: true
	Path *string `json:"path"`
}

RestrictedResource Model of a restricted resource.

swagger:model RestrictedResource

func (*RestrictedResource) ContextValidate

func (m *RestrictedResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this restricted resource based on context it is used

func (*RestrictedResource) MarshalBinary

func (m *RestrictedResource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestrictedResource) UnmarshalBinary

func (m *RestrictedResource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestrictedResource) Validate

func (m *RestrictedResource) Validate(formats strfmt.Registry) error

Validate validates this restricted resource

Jump to

Keyboard shortcuts

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