client

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This file is auto-generated, don't edit it. Thanks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeMap

type AttributeMap struct {
	Attributes map[string]interface{} `json:"attributes,omitempty" xml:"attributes,omitempty" require:"true"`
	Key        map[string]*string     `json:"key,omitempty" xml:"key,omitempty" require:"true"`
}

func (AttributeMap) GoString

func (s AttributeMap) GoString() string

func (*AttributeMap) SetAttributes

func (s *AttributeMap) SetAttributes(v map[string]interface{}) *AttributeMap

func (*AttributeMap) SetKey

func (s *AttributeMap) SetKey(v map[string]*string) *AttributeMap

func (AttributeMap) String

func (s AttributeMap) String() string

type Client

type Client struct {
}

func NewClient

func NewClient() (*Client, error)

func (*Client) Init

func (client *Client) Init() (_err error)

func (*Client) ModifyConfiguration

func (client *Client) ModifyConfiguration(context *InterceptorContext, attributeMap *AttributeMap) (_err error)

func (*Client) ModifyRequest

func (client *Client) ModifyRequest(context *InterceptorContext, attributeMap *AttributeMap) (_err error)

func (*Client) ModifyResponse

func (client *Client) ModifyResponse(context *InterceptorContext, attributeMap *AttributeMap) (_err error)

type ClientInterface

type ClientInterface interface {
	ModifyConfiguration(context *InterceptorContext, attributeMap *AttributeMap) error
	ModifyRequest(context *InterceptorContext, attributeMap *AttributeMap) error
	ModifyResponse(context *InterceptorContext, attributeMap *AttributeMap) error
}

type InterceptorContext

type InterceptorContext struct {
	Request       *InterceptorContextRequest       `json:"request,omitempty" xml:"request,omitempty" require:"true" type:"Struct"`
	Configuration *InterceptorContextConfiguration `json:"configuration,omitempty" xml:"configuration,omitempty" require:"true" type:"Struct"`
	Response      *InterceptorContextResponse      `json:"response,omitempty" xml:"response,omitempty" require:"true" type:"Struct"`
}

func (InterceptorContext) GoString

func (s InterceptorContext) GoString() string

func (*InterceptorContext) SetConfiguration

func (*InterceptorContext) SetRequest

func (*InterceptorContext) SetResponse

func (InterceptorContext) String

func (s InterceptorContext) String() string

type InterceptorContextConfiguration

type InterceptorContextConfiguration struct {
	RegionId     *string            `json:"regionId,omitempty" xml:"regionId,omitempty" require:"true"`
	Endpoint     *string            `json:"endpoint,omitempty" xml:"endpoint,omitempty"`
	EndpointRule *string            `json:"endpointRule,omitempty" xml:"endpointRule,omitempty"`
	EndpointMap  map[string]*string `json:"endpointMap,omitempty" xml:"endpointMap,omitempty"`
	EndpointType *string            `json:"endpointType,omitempty" xml:"endpointType,omitempty"`
	Network      *string            `json:"network,omitempty" xml:"network,omitempty"`
	Suffix       *string            `json:"suffix,omitempty" xml:"suffix,omitempty"`
}

func (InterceptorContextConfiguration) GoString

func (*InterceptorContextConfiguration) SetEndpoint

func (*InterceptorContextConfiguration) SetEndpointMap

func (*InterceptorContextConfiguration) SetEndpointRule

func (*InterceptorContextConfiguration) SetEndpointType

func (*InterceptorContextConfiguration) SetNetwork

func (*InterceptorContextConfiguration) SetRegionId

func (*InterceptorContextConfiguration) SetSuffix

func (InterceptorContextConfiguration) String

type InterceptorContextRequest

type InterceptorContextRequest struct {
	Headers            map[string]*string    `json:"headers,omitempty" xml:"headers,omitempty"`
	Query              map[string]*string    `json:"query,omitempty" xml:"query,omitempty"`
	Body               interface{}           `json:"body,omitempty" xml:"body,omitempty"`
	Stream             io.Reader             `json:"stream,omitempty" xml:"stream,omitempty"`
	HostMap            map[string]*string    `json:"hostMap,omitempty" xml:"hostMap,omitempty"`
	Pathname           *string               `json:"pathname,omitempty" xml:"pathname,omitempty" require:"true"`
	ProductId          *string               `json:"productId,omitempty" xml:"productId,omitempty" require:"true"`
	Action             *string               `json:"action,omitempty" xml:"action,omitempty" require:"true"`
	Version            *string               `json:"version,omitempty" xml:"version,omitempty" require:"true"`
	Protocol           *string               `json:"protocol,omitempty" xml:"protocol,omitempty" require:"true"`
	Method             *string               `json:"method,omitempty" xml:"method,omitempty" require:"true"`
	AuthType           *string               `json:"authType,omitempty" xml:"authType,omitempty" require:"true"`
	BodyType           *string               `json:"bodyType,omitempty" xml:"bodyType,omitempty" require:"true"`
	ReqBodyType        *string               `json:"reqBodyType,omitempty" xml:"reqBodyType,omitempty" require:"true"`
	Style              *string               `json:"style,omitempty" xml:"style,omitempty"`
	Credential         credential.Credential `json:"credential,omitempty" xml:"credential,omitempty" require:"true"`
	SignatureVersion   *string               `json:"signatureVersion,omitempty" xml:"signatureVersion,omitempty"`
	SignatureAlgorithm *string               `json:"signatureAlgorithm,omitempty" xml:"signatureAlgorithm,omitempty"`
	UserAgent          *string               `json:"userAgent,omitempty" xml:"userAgent,omitempty" require:"true"`
}

func (InterceptorContextRequest) GoString

func (s InterceptorContextRequest) GoString() string

func (*InterceptorContextRequest) SetAction

func (*InterceptorContextRequest) SetAuthType

func (*InterceptorContextRequest) SetBody

func (s *InterceptorContextRequest) SetBody(v interface{}) *InterceptorContextRequest

func (*InterceptorContextRequest) SetBodyType

func (*InterceptorContextRequest) SetCredential

func (*InterceptorContextRequest) SetHeaders

func (*InterceptorContextRequest) SetHostMap

func (*InterceptorContextRequest) SetMethod

func (*InterceptorContextRequest) SetPathname

func (*InterceptorContextRequest) SetProductId

func (*InterceptorContextRequest) SetProtocol

func (*InterceptorContextRequest) SetQuery

func (*InterceptorContextRequest) SetReqBodyType

func (*InterceptorContextRequest) SetSignatureAlgorithm

func (s *InterceptorContextRequest) SetSignatureAlgorithm(v string) *InterceptorContextRequest

func (*InterceptorContextRequest) SetSignatureVersion

func (s *InterceptorContextRequest) SetSignatureVersion(v string) *InterceptorContextRequest

func (*InterceptorContextRequest) SetStream

func (*InterceptorContextRequest) SetStyle

func (*InterceptorContextRequest) SetUserAgent

func (*InterceptorContextRequest) SetVersion

func (InterceptorContextRequest) String

func (s InterceptorContextRequest) String() string

type InterceptorContextResponse

type InterceptorContextResponse struct {
	StatusCode       *int               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Headers          map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
	Body             io.Reader          `json:"body,omitempty" xml:"body,omitempty"`
	DeserializedBody interface{}        `json:"deserializedBody,omitempty" xml:"deserializedBody,omitempty"`
}

func (InterceptorContextResponse) GoString

func (s InterceptorContextResponse) GoString() string

func (*InterceptorContextResponse) SetBody

func (*InterceptorContextResponse) SetDeserializedBody

func (s *InterceptorContextResponse) SetDeserializedBody(v interface{}) *InterceptorContextResponse

func (*InterceptorContextResponse) SetHeaders

func (*InterceptorContextResponse) SetStatusCode

func (InterceptorContextResponse) String

Jump to

Keyboard shortcuts

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