Documentation ¶
Index ¶
- Constants
- func DeleteJSON[T any](c *RestClient, ctx context.Context, pathSegments []string, ...) (*T, *http.Response, error)
- func GetJSON[T any](c *RestClient, ctx context.Context, pathSegments []string, ...) (*T, *http.Response, error)
- func PatchJSON[T any](c *RestClient, ctx context.Context, pathSegments []string, ...) (*T, *http.Response, error)
- func PatchJSONSpecialContentType[T any](c *RestClient, ctx context.Context, pathSegments []string, ...) (*T, *http.Response, error)
- func PostJSON[T any](c *RestClient, ctx context.Context, pathSegments []string, ...) (*T, *http.Response, error)
- func PutJSON[T any](c *RestClient, ctx context.Context, pathSegments []string, ...) (*T, *http.Response, error)
- type ImproperError
- type NoJSON
- type RestClient
- type WrappedError
- type WrappedImproperError
Constants ¶
View Source
const ( HeaderKeyContinuationToken = "X-MS-ContinuationToken" ApiVersion70 = "7.0" ApiVersion70Preview1 = "7.0-preview.1" ApiVersion71Preview1 = "7.1-preview.1" )
Variables ¶
This section is empty.
Functions ¶
func DeleteJSON ¶ added in v0.4.0
func PatchJSONSpecialContentType ¶ added in v0.4.0
Types ¶
type ImproperError ¶
type ImproperError struct {
Message *string `json:"Message,omitempty"`
}
type RestClient ¶
type RestClient struct {
// contains filtered or unexported fields
}
func NewRestClient ¶
func NewRestClient(baseUrl string, authorization string, providerVersion string) *RestClient
type WrappedError ¶
type WrappedError struct { ExceptionId *string `json:"$id,omitempty"` InnerError *WrappedError `json:"innerException,omitempty"` Message *string `json:"message,omitempty"` TypeName *string `json:"typeName,omitempty"` TypeKey *string `json:"typeKey,omitempty"` ErrorCode *int `json:"errorCode,omitempty"` EventId *int `json:"eventId,omitempty"` CustomProperties *map[string]interface{} `json:"customProperties,omitempty"` StatusCode *int }
func (WrappedError) Error ¶
func (e WrappedError) Error() string
type WrappedImproperError ¶
type WrappedImproperError struct { Count *int `json:"count,omitempty"` Value *ImproperError `json:"value,omitempty"` }
Click to show internal directories.
Click to hide internal directories.