internal

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package internal provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteConsentsPiiCategoriesPiiCategoryIdRequest

func NewDeleteConsentsPiiCategoriesPiiCategoryIdRequest(server string, piiCategoryId string) (*http.Request, error)

NewDeleteConsentsPiiCategoriesPiiCategoryIdRequest generates requests for DeleteConsentsPiiCategoriesPiiCategoryId

func NewDeleteConsentsPurposeCategoriesPurposeCategoryIdRequest

func NewDeleteConsentsPurposeCategoriesPurposeCategoryIdRequest(server string, purposeCategoryId string) (*http.Request, error)

NewDeleteConsentsPurposeCategoriesPurposeCategoryIdRequest generates requests for DeleteConsentsPurposeCategoriesPurposeCategoryId

func NewDeleteConsentsPurposesPurposeIdRequest

func NewDeleteConsentsPurposesPurposeIdRequest(server string, purposeId string) (*http.Request, error)

NewDeleteConsentsPurposesPurposeIdRequest generates requests for DeleteConsentsPurposesPurposeId

func NewDeleteConsentsReceiptsReceiptIdRequest

func NewDeleteConsentsReceiptsReceiptIdRequest(server string, receiptId string) (*http.Request, error)

NewDeleteConsentsReceiptsReceiptIdRequest generates requests for DeleteConsentsReceiptsReceiptId

func NewGetConsentsPiiCategoriesPiiCategoryIdRequest

func NewGetConsentsPiiCategoriesPiiCategoryIdRequest(server string, piiCategoryId string) (*http.Request, error)

NewGetConsentsPiiCategoriesPiiCategoryIdRequest generates requests for GetConsentsPiiCategoriesPiiCategoryId

func NewGetConsentsPiiCategoriesRequest

func NewGetConsentsPiiCategoriesRequest(server string, params *GetConsentsPiiCategoriesParams) (*http.Request, error)

NewGetConsentsPiiCategoriesRequest generates requests for GetConsentsPiiCategories

func NewGetConsentsPurposeCategoriesPurposeCategoryIdRequest

func NewGetConsentsPurposeCategoriesPurposeCategoryIdRequest(server string, purposeCategoryId string) (*http.Request, error)

NewGetConsentsPurposeCategoriesPurposeCategoryIdRequest generates requests for GetConsentsPurposeCategoriesPurposeCategoryId

func NewGetConsentsPurposeCategoriesRequest

func NewGetConsentsPurposeCategoriesRequest(server string, params *GetConsentsPurposeCategoriesParams) (*http.Request, error)

NewGetConsentsPurposeCategoriesRequest generates requests for GetConsentsPurposeCategories

func NewGetConsentsPurposesPurposeIdRequest

func NewGetConsentsPurposesPurposeIdRequest(server string, purposeId string) (*http.Request, error)

NewGetConsentsPurposesPurposeIdRequest generates requests for GetConsentsPurposesPurposeId

func NewGetConsentsPurposesRequest

func NewGetConsentsPurposesRequest(server string, params *GetConsentsPurposesParams) (*http.Request, error)

NewGetConsentsPurposesRequest generates requests for GetConsentsPurposes

func NewGetConsentsReceiptsReceiptIdRequest

func NewGetConsentsReceiptsReceiptIdRequest(server string, receiptId ReceiptId) (*http.Request, error)

NewGetConsentsReceiptsReceiptIdRequest generates requests for GetConsentsReceiptsReceiptId

func NewGetConsentsRequest

func NewGetConsentsRequest(server string, params *GetConsentsParams) (*http.Request, error)

NewGetConsentsRequest generates requests for GetConsents

func NewPostConsentsPiiCategoriesRequest

func NewPostConsentsPiiCategoriesRequest(server string, body PostConsentsPiiCategoriesJSONRequestBody) (*http.Request, error)

NewPostConsentsPiiCategoriesRequest calls the generic PostConsentsPiiCategories builder with application/json body

func NewPostConsentsPiiCategoriesRequestWithBody

func NewPostConsentsPiiCategoriesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostConsentsPiiCategoriesRequestWithBody generates requests for PostConsentsPiiCategories with any type of body

func NewPostConsentsPurposeCategoriesRequest

func NewPostConsentsPurposeCategoriesRequest(server string, body PostConsentsPurposeCategoriesJSONRequestBody) (*http.Request, error)

NewPostConsentsPurposeCategoriesRequest calls the generic PostConsentsPurposeCategories builder with application/json body

func NewPostConsentsPurposeCategoriesRequestWithBody

func NewPostConsentsPurposeCategoriesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostConsentsPurposeCategoriesRequestWithBody generates requests for PostConsentsPurposeCategories with any type of body

func NewPostConsentsPurposesRequest

func NewPostConsentsPurposesRequest(server string, body PostConsentsPurposesJSONRequestBody) (*http.Request, error)

NewPostConsentsPurposesRequest calls the generic PostConsentsPurposes builder with application/json body

func NewPostConsentsPurposesRequestWithBody

func NewPostConsentsPurposesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostConsentsPurposesRequestWithBody generates requests for PostConsentsPurposes with any type of body

func NewPostConsentsRequest

func NewPostConsentsRequest(server string, body PostConsentsJSONRequestBody) (*http.Request, error)

NewPostConsentsRequest calls the generic PostConsents builder with application/json body

func NewPostConsentsRequestWithBody

func NewPostConsentsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostConsentsRequestWithBody generates requests for PostConsents with any type of body

Types

type Address

type Address struct {
	AddressCountry      *string `json:"addressCountry,omitempty"`
	AddressLocality     *string `json:"addressLocality,omitempty"`
	AddressRegion       *string `json:"addressRegion,omitempty"`
	PostOfficeBoxNumber *string `json:"postOfficeBoxNumber,omitempty"`
	PostalCode          *string `json:"postalCode,omitempty"`
	StreetAddress       *string `json:"streetAddress,omitempty"`
}

Address The physical address of PII controller. Postal address for contacting the PII Controller. This is compliant with the schema https://schema.org/PostalAddress.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) DeleteConsentsPiiCategoriesPiiCategoryId

func (c *Client) DeleteConsentsPiiCategoriesPiiCategoryId(ctx context.Context, piiCategoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteConsentsPurposeCategoriesPurposeCategoryId

func (c *Client) DeleteConsentsPurposeCategoriesPurposeCategoryId(ctx context.Context, purposeCategoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteConsentsPurposesPurposeId

func (c *Client) DeleteConsentsPurposesPurposeId(ctx context.Context, purposeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteConsentsReceiptsReceiptId

func (c *Client) DeleteConsentsReceiptsReceiptId(ctx context.Context, receiptId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsents

func (c *Client) GetConsents(ctx context.Context, params *GetConsentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsentsPiiCategories

func (c *Client) GetConsentsPiiCategories(ctx context.Context, params *GetConsentsPiiCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsentsPiiCategoriesPiiCategoryId

func (c *Client) GetConsentsPiiCategoriesPiiCategoryId(ctx context.Context, piiCategoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsentsPurposeCategories

func (c *Client) GetConsentsPurposeCategories(ctx context.Context, params *GetConsentsPurposeCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsentsPurposeCategoriesPurposeCategoryId

func (c *Client) GetConsentsPurposeCategoriesPurposeCategoryId(ctx context.Context, purposeCategoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsentsPurposes

func (c *Client) GetConsentsPurposes(ctx context.Context, params *GetConsentsPurposesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsentsPurposesPurposeId

func (c *Client) GetConsentsPurposesPurposeId(ctx context.Context, purposeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsentsReceiptsReceiptId

func (c *Client) GetConsentsReceiptsReceiptId(ctx context.Context, receiptId ReceiptId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostConsents

func (c *Client) PostConsents(ctx context.Context, body PostConsentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostConsentsPiiCategories

func (c *Client) PostConsentsPiiCategories(ctx context.Context, body PostConsentsPiiCategoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostConsentsPiiCategoriesWithBody

func (c *Client) PostConsentsPiiCategoriesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostConsentsPurposeCategories

func (c *Client) PostConsentsPurposeCategories(ctx context.Context, body PostConsentsPurposeCategoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostConsentsPurposeCategoriesWithBody

func (c *Client) PostConsentsPurposeCategoriesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostConsentsPurposes

func (c *Client) PostConsentsPurposes(ctx context.Context, body PostConsentsPurposesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostConsentsPurposesWithBody

func (c *Client) PostConsentsPurposesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostConsentsWithBody

func (c *Client) PostConsentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetConsents request
	GetConsents(ctx context.Context, params *GetConsentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostConsentsWithBody request with any body
	PostConsentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostConsents(ctx context.Context, body PostConsentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConsentsPiiCategories request
	GetConsentsPiiCategories(ctx context.Context, params *GetConsentsPiiCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostConsentsPiiCategoriesWithBody request with any body
	PostConsentsPiiCategoriesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostConsentsPiiCategories(ctx context.Context, body PostConsentsPiiCategoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteConsentsPiiCategoriesPiiCategoryId request
	DeleteConsentsPiiCategoriesPiiCategoryId(ctx context.Context, piiCategoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConsentsPiiCategoriesPiiCategoryId request
	GetConsentsPiiCategoriesPiiCategoryId(ctx context.Context, piiCategoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConsentsPurposeCategories request
	GetConsentsPurposeCategories(ctx context.Context, params *GetConsentsPurposeCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostConsentsPurposeCategoriesWithBody request with any body
	PostConsentsPurposeCategoriesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostConsentsPurposeCategories(ctx context.Context, body PostConsentsPurposeCategoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteConsentsPurposeCategoriesPurposeCategoryId request
	DeleteConsentsPurposeCategoriesPurposeCategoryId(ctx context.Context, purposeCategoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConsentsPurposeCategoriesPurposeCategoryId request
	GetConsentsPurposeCategoriesPurposeCategoryId(ctx context.Context, purposeCategoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConsentsPurposes request
	GetConsentsPurposes(ctx context.Context, params *GetConsentsPurposesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostConsentsPurposesWithBody request with any body
	PostConsentsPurposesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostConsentsPurposes(ctx context.Context, body PostConsentsPurposesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteConsentsPurposesPurposeId request
	DeleteConsentsPurposesPurposeId(ctx context.Context, purposeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConsentsPurposesPurposeId request
	GetConsentsPurposesPurposeId(ctx context.Context, purposeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteConsentsReceiptsReceiptId request
	DeleteConsentsReceiptsReceiptId(ctx context.Context, receiptId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConsentsReceiptsReceiptId request
	GetConsentsReceiptsReceiptId(ctx context.Context, receiptId ReceiptId, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) DeleteConsentsPiiCategoriesPiiCategoryIdWithResponse

func (c *ClientWithResponses) DeleteConsentsPiiCategoriesPiiCategoryIdWithResponse(ctx context.Context, piiCategoryId string, reqEditors ...RequestEditorFn) (*DeleteConsentsPiiCategoriesPiiCategoryIdResponse, error)

DeleteConsentsPiiCategoriesPiiCategoryIdWithResponse request returning *DeleteConsentsPiiCategoriesPiiCategoryIdResponse

func (*ClientWithResponses) DeleteConsentsPurposeCategoriesPurposeCategoryIdWithResponse

func (c *ClientWithResponses) DeleteConsentsPurposeCategoriesPurposeCategoryIdWithResponse(ctx context.Context, purposeCategoryId string, reqEditors ...RequestEditorFn) (*DeleteConsentsPurposeCategoriesPurposeCategoryIdResponse, error)

DeleteConsentsPurposeCategoriesPurposeCategoryIdWithResponse request returning *DeleteConsentsPurposeCategoriesPurposeCategoryIdResponse

func (*ClientWithResponses) DeleteConsentsPurposesPurposeIdWithResponse

func (c *ClientWithResponses) DeleteConsentsPurposesPurposeIdWithResponse(ctx context.Context, purposeId string, reqEditors ...RequestEditorFn) (*DeleteConsentsPurposesPurposeIdResponse, error)

DeleteConsentsPurposesPurposeIdWithResponse request returning *DeleteConsentsPurposesPurposeIdResponse

func (*ClientWithResponses) DeleteConsentsReceiptsReceiptIdWithResponse

func (c *ClientWithResponses) DeleteConsentsReceiptsReceiptIdWithResponse(ctx context.Context, receiptId string, reqEditors ...RequestEditorFn) (*DeleteConsentsReceiptsReceiptIdResponse, error)

DeleteConsentsReceiptsReceiptIdWithResponse request returning *DeleteConsentsReceiptsReceiptIdResponse

func (*ClientWithResponses) GetConsentsPiiCategoriesPiiCategoryIdWithResponse

func (c *ClientWithResponses) GetConsentsPiiCategoriesPiiCategoryIdWithResponse(ctx context.Context, piiCategoryId string, reqEditors ...RequestEditorFn) (*GetConsentsPiiCategoriesPiiCategoryIdResponse, error)

GetConsentsPiiCategoriesPiiCategoryIdWithResponse request returning *GetConsentsPiiCategoriesPiiCategoryIdResponse

func (*ClientWithResponses) GetConsentsPiiCategoriesWithResponse

func (c *ClientWithResponses) GetConsentsPiiCategoriesWithResponse(ctx context.Context, params *GetConsentsPiiCategoriesParams, reqEditors ...RequestEditorFn) (*GetConsentsPiiCategoriesResponse, error)

GetConsentsPiiCategoriesWithResponse request returning *GetConsentsPiiCategoriesResponse

func (*ClientWithResponses) GetConsentsPurposeCategoriesPurposeCategoryIdWithResponse

func (c *ClientWithResponses) GetConsentsPurposeCategoriesPurposeCategoryIdWithResponse(ctx context.Context, purposeCategoryId string, reqEditors ...RequestEditorFn) (*GetConsentsPurposeCategoriesPurposeCategoryIdResponse, error)

GetConsentsPurposeCategoriesPurposeCategoryIdWithResponse request returning *GetConsentsPurposeCategoriesPurposeCategoryIdResponse

func (*ClientWithResponses) GetConsentsPurposeCategoriesWithResponse

func (c *ClientWithResponses) GetConsentsPurposeCategoriesWithResponse(ctx context.Context, params *GetConsentsPurposeCategoriesParams, reqEditors ...RequestEditorFn) (*GetConsentsPurposeCategoriesResponse, error)

GetConsentsPurposeCategoriesWithResponse request returning *GetConsentsPurposeCategoriesResponse

func (*ClientWithResponses) GetConsentsPurposesPurposeIdWithResponse

func (c *ClientWithResponses) GetConsentsPurposesPurposeIdWithResponse(ctx context.Context, purposeId string, reqEditors ...RequestEditorFn) (*GetConsentsPurposesPurposeIdResponse, error)

GetConsentsPurposesPurposeIdWithResponse request returning *GetConsentsPurposesPurposeIdResponse

func (*ClientWithResponses) GetConsentsPurposesWithResponse

func (c *ClientWithResponses) GetConsentsPurposesWithResponse(ctx context.Context, params *GetConsentsPurposesParams, reqEditors ...RequestEditorFn) (*GetConsentsPurposesResponse, error)

GetConsentsPurposesWithResponse request returning *GetConsentsPurposesResponse

func (*ClientWithResponses) GetConsentsReceiptsReceiptIdWithResponse

func (c *ClientWithResponses) GetConsentsReceiptsReceiptIdWithResponse(ctx context.Context, receiptId ReceiptId, reqEditors ...RequestEditorFn) (*GetConsentsReceiptsReceiptIdResponse, error)

GetConsentsReceiptsReceiptIdWithResponse request returning *GetConsentsReceiptsReceiptIdResponse

func (*ClientWithResponses) GetConsentsWithResponse

func (c *ClientWithResponses) GetConsentsWithResponse(ctx context.Context, params *GetConsentsParams, reqEditors ...RequestEditorFn) (*GetConsentsResponse, error)

GetConsentsWithResponse request returning *GetConsentsResponse

func (*ClientWithResponses) PostConsentsPiiCategoriesWithBodyWithResponse

func (c *ClientWithResponses) PostConsentsPiiCategoriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConsentsPiiCategoriesResponse, error)

PostConsentsPiiCategoriesWithBodyWithResponse request with arbitrary body returning *PostConsentsPiiCategoriesResponse

func (*ClientWithResponses) PostConsentsPiiCategoriesWithResponse

func (c *ClientWithResponses) PostConsentsPiiCategoriesWithResponse(ctx context.Context, body PostConsentsPiiCategoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConsentsPiiCategoriesResponse, error)

func (*ClientWithResponses) PostConsentsPurposeCategoriesWithBodyWithResponse

func (c *ClientWithResponses) PostConsentsPurposeCategoriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConsentsPurposeCategoriesResponse, error)

PostConsentsPurposeCategoriesWithBodyWithResponse request with arbitrary body returning *PostConsentsPurposeCategoriesResponse

func (*ClientWithResponses) PostConsentsPurposeCategoriesWithResponse

func (c *ClientWithResponses) PostConsentsPurposeCategoriesWithResponse(ctx context.Context, body PostConsentsPurposeCategoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConsentsPurposeCategoriesResponse, error)

func (*ClientWithResponses) PostConsentsPurposesWithBodyWithResponse

func (c *ClientWithResponses) PostConsentsPurposesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConsentsPurposesResponse, error)

PostConsentsPurposesWithBodyWithResponse request with arbitrary body returning *PostConsentsPurposesResponse

func (*ClientWithResponses) PostConsentsPurposesWithResponse

func (c *ClientWithResponses) PostConsentsPurposesWithResponse(ctx context.Context, body PostConsentsPurposesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConsentsPurposesResponse, error)

func (*ClientWithResponses) PostConsentsWithBodyWithResponse

func (c *ClientWithResponses) PostConsentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConsentsResponse, error)

PostConsentsWithBodyWithResponse request with arbitrary body returning *PostConsentsResponse

func (*ClientWithResponses) PostConsentsWithResponse

func (c *ClientWithResponses) PostConsentsWithResponse(ctx context.Context, body PostConsentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConsentsResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetConsentsWithResponse request
	GetConsentsWithResponse(ctx context.Context, params *GetConsentsParams, reqEditors ...RequestEditorFn) (*GetConsentsResponse, error)

	// PostConsentsWithBodyWithResponse request with any body
	PostConsentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConsentsResponse, error)

	PostConsentsWithResponse(ctx context.Context, body PostConsentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConsentsResponse, error)

	// GetConsentsPiiCategoriesWithResponse request
	GetConsentsPiiCategoriesWithResponse(ctx context.Context, params *GetConsentsPiiCategoriesParams, reqEditors ...RequestEditorFn) (*GetConsentsPiiCategoriesResponse, error)

	// PostConsentsPiiCategoriesWithBodyWithResponse request with any body
	PostConsentsPiiCategoriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConsentsPiiCategoriesResponse, error)

	PostConsentsPiiCategoriesWithResponse(ctx context.Context, body PostConsentsPiiCategoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConsentsPiiCategoriesResponse, error)

	// DeleteConsentsPiiCategoriesPiiCategoryIdWithResponse request
	DeleteConsentsPiiCategoriesPiiCategoryIdWithResponse(ctx context.Context, piiCategoryId string, reqEditors ...RequestEditorFn) (*DeleteConsentsPiiCategoriesPiiCategoryIdResponse, error)

	// GetConsentsPiiCategoriesPiiCategoryIdWithResponse request
	GetConsentsPiiCategoriesPiiCategoryIdWithResponse(ctx context.Context, piiCategoryId string, reqEditors ...RequestEditorFn) (*GetConsentsPiiCategoriesPiiCategoryIdResponse, error)

	// GetConsentsPurposeCategoriesWithResponse request
	GetConsentsPurposeCategoriesWithResponse(ctx context.Context, params *GetConsentsPurposeCategoriesParams, reqEditors ...RequestEditorFn) (*GetConsentsPurposeCategoriesResponse, error)

	// PostConsentsPurposeCategoriesWithBodyWithResponse request with any body
	PostConsentsPurposeCategoriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConsentsPurposeCategoriesResponse, error)

	PostConsentsPurposeCategoriesWithResponse(ctx context.Context, body PostConsentsPurposeCategoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConsentsPurposeCategoriesResponse, error)

	// DeleteConsentsPurposeCategoriesPurposeCategoryIdWithResponse request
	DeleteConsentsPurposeCategoriesPurposeCategoryIdWithResponse(ctx context.Context, purposeCategoryId string, reqEditors ...RequestEditorFn) (*DeleteConsentsPurposeCategoriesPurposeCategoryIdResponse, error)

	// GetConsentsPurposeCategoriesPurposeCategoryIdWithResponse request
	GetConsentsPurposeCategoriesPurposeCategoryIdWithResponse(ctx context.Context, purposeCategoryId string, reqEditors ...RequestEditorFn) (*GetConsentsPurposeCategoriesPurposeCategoryIdResponse, error)

	// GetConsentsPurposesWithResponse request
	GetConsentsPurposesWithResponse(ctx context.Context, params *GetConsentsPurposesParams, reqEditors ...RequestEditorFn) (*GetConsentsPurposesResponse, error)

	// PostConsentsPurposesWithBodyWithResponse request with any body
	PostConsentsPurposesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostConsentsPurposesResponse, error)

	PostConsentsPurposesWithResponse(ctx context.Context, body PostConsentsPurposesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostConsentsPurposesResponse, error)

	// DeleteConsentsPurposesPurposeIdWithResponse request
	DeleteConsentsPurposesPurposeIdWithResponse(ctx context.Context, purposeId string, reqEditors ...RequestEditorFn) (*DeleteConsentsPurposesPurposeIdResponse, error)

	// GetConsentsPurposesPurposeIdWithResponse request
	GetConsentsPurposesPurposeIdWithResponse(ctx context.Context, purposeId string, reqEditors ...RequestEditorFn) (*GetConsentsPurposesPurposeIdResponse, error)

	// DeleteConsentsReceiptsReceiptIdWithResponse request
	DeleteConsentsReceiptsReceiptIdWithResponse(ctx context.Context, receiptId string, reqEditors ...RequestEditorFn) (*DeleteConsentsReceiptsReceiptIdResponse, error)

	// GetConsentsReceiptsReceiptIdWithResponse request
	GetConsentsReceiptsReceiptIdWithResponse(ctx context.Context, receiptId ReceiptId, reqEditors ...RequestEditorFn) (*GetConsentsReceiptsReceiptIdResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type ConsentAddResponse

type ConsentAddResponse struct {
	ConsentReceiptID string  `json:"consentReceiptID"`
	Language         *string `json:"language,omitempty"`
	PiiPrincipalId   string  `json:"piiPrincipalId"`
	TenantDomain     string  `json:"tenantDomain"`
}

ConsentAddResponse defines model for ConsentAddResponse.

type ConsentReceipt

type ConsentReceipt struct {
	// CollectionMethod A description of the method by which consent was obtained.
	CollectionMethod string `json:"collectionMethod"`

	// ConsentReceiptID A unique number for each Consent Receipt.
	ConsentReceiptID string `json:"consentReceiptID"`

	// ConsentTimestamp Date and time of the consent transaction. The JSON value is expressed as the number of seconds since 1970-01-01 00:00:00 GMT
	ConsentTimestamp int64 `json:"consentTimestamp"`

	// Jurisdiction The jurisdiction(s) applicable to this transaction.
	Jurisdiction string `json:"jurisdiction"`

	// Language Language in which the consent was obtained as for ISO 639-1:2002 [ISO 639].
	Language *string `json:"language,omitempty"`

	// PiiControllers An array that contains one or more items where each item represents one PII Controller.
	PiiControllers []PiiController `json:"piiControllers"`

	// PiiPrincipalId PII Principal-provided identifier. E.g., email address.
	PiiPrincipalId string `json:"piiPrincipalId"`

	// PolicyUrl A link to the PII Controller’s privacy statement/policy and applicable terms of use in effect when the consent was obtained, and the receipt was issued.
	PolicyUrl string `json:"policyUrl"`

	// PublicKey The PII Controller’s public key.
	PublicKey *string `json:"publicKey,omitempty"`

	// Sensitive Indicates whether the consent interaction contains PII that is designated sensitive or not sensitive.
	Sensitive bool `json:"sensitive"`

	// Services An array that contains one or more items where each item represents one Service.
	Services []ServiceResponse `json:"services"`

	// SpiCat A listing of categories where PII data collected is sensitive.
	SpiCat []string `json:"spiCat"`

	// State Current state of the receipt.
	State *string `json:"state,omitempty"`

	// TenantDomain Tenant domain of the service (SP).
	TenantDomain *string `json:"tenantDomain,omitempty"`

	// Version The version of this specification to which a receipt conforms. The value MUST be “KI-CR-v1.1.0” for this version of the specification.
	Version string `json:"version"`
}

ConsentReceipt defines model for ConsentReceipt.

type ConsentRequest

type ConsentRequest struct {
	CollectionMethod *string     `json:"collectionMethod,omitempty"`
	Jurisdiction     *string     `json:"jurisdiction,omitempty"`
	Language         *string     `json:"language,omitempty"`
	PolicyURL        *string     `json:"policyURL,omitempty"`
	Properties       *[]Property `json:"properties,omitempty"`
	Services         *[]Service  `json:"services,omitempty"`
}

ConsentRequest defines model for ConsentRequest.

type ConsentResponse

type ConsentResponse struct {
	ConsentReceiptID string  `json:"consentReceiptID"`
	Language         *string `json:"language,omitempty"`
	PiiPrincipalId   string  `json:"piiPrincipalId"`
	SpDescription    *string `json:"spDescription,omitempty"`
	SpDisplayName    *string `json:"spDisplayName,omitempty"`
	State            *string `json:"state,omitempty"`
	TenantDomain     string  `json:"tenantDomain"`
}

ConsentResponse defines model for ConsentResponse.

type DeleteConsentsPiiCategoriesPiiCategoryIdResponse

type DeleteConsentsPiiCategoriesPiiCategoryIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteConsentsPiiCategoriesPiiCategoryIdResponse

func ParseDeleteConsentsPiiCategoriesPiiCategoryIdResponse(rsp *http.Response) (*DeleteConsentsPiiCategoriesPiiCategoryIdResponse, error)

ParseDeleteConsentsPiiCategoriesPiiCategoryIdResponse parses an HTTP response from a DeleteConsentsPiiCategoriesPiiCategoryIdWithResponse call

func (DeleteConsentsPiiCategoriesPiiCategoryIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteConsentsPiiCategoriesPiiCategoryIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteConsentsPurposeCategoriesPurposeCategoryIdResponse

type DeleteConsentsPurposeCategoriesPurposeCategoryIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteConsentsPurposeCategoriesPurposeCategoryIdResponse

func ParseDeleteConsentsPurposeCategoriesPurposeCategoryIdResponse(rsp *http.Response) (*DeleteConsentsPurposeCategoriesPurposeCategoryIdResponse, error)

ParseDeleteConsentsPurposeCategoriesPurposeCategoryIdResponse parses an HTTP response from a DeleteConsentsPurposeCategoriesPurposeCategoryIdWithResponse call

func (DeleteConsentsPurposeCategoriesPurposeCategoryIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteConsentsPurposeCategoriesPurposeCategoryIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteConsentsPurposesPurposeIdResponse

type DeleteConsentsPurposesPurposeIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteConsentsPurposesPurposeIdResponse

func ParseDeleteConsentsPurposesPurposeIdResponse(rsp *http.Response) (*DeleteConsentsPurposesPurposeIdResponse, error)

ParseDeleteConsentsPurposesPurposeIdResponse parses an HTTP response from a DeleteConsentsPurposesPurposeIdWithResponse call

func (DeleteConsentsPurposesPurposeIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteConsentsPurposesPurposeIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteConsentsReceiptsReceiptIdResponse

type DeleteConsentsReceiptsReceiptIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteConsentsReceiptsReceiptIdResponse

func ParseDeleteConsentsReceiptsReceiptIdResponse(rsp *http.Response) (*DeleteConsentsReceiptsReceiptIdResponse, error)

ParseDeleteConsentsReceiptsReceiptIdResponse parses an HTTP response from a DeleteConsentsReceiptsReceiptIdWithResponse call

func (DeleteConsentsReceiptsReceiptIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteConsentsReceiptsReceiptIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Error

type Error struct {
	Code        *string `json:"code,omitempty"`
	Description *string `json:"description,omitempty"`
	Message     *string `json:"message,omitempty"`
	TraceId     *string `json:"traceId,omitempty"`
}

Error defines model for Error.

type GetConsentsParams

type GetConsentsParams struct {
	// Limit Number of search results
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset Start index of the search
	Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`

	// PiiPrincipalId Subject identifier
	PiiPrincipalId *PiiPrincipalId `form:"piiPrincipalId,omitempty" json:"piiPrincipalId,omitempty"`

	// SpTenantDomain Service provider tenant domain
	SpTenantDomain *SpTenantDomain `form:"spTenantDomain,omitempty" json:"spTenantDomain,omitempty"`

	// ServiceQueryParam Service name
	ServiceQueryParam *ServiceQueryParam `form:"service,omitempty" json:"service,omitempty"`

	// State State (ACTIVE/REVOKED)
	State *State `form:"state,omitempty" json:"state,omitempty"`
}

GetConsentsParams defines parameters for GetConsents.

type GetConsentsPiiCategoriesParams

type GetConsentsPiiCategoriesParams struct {
	// Limit Number of search results
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset Start index of the search
	Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}

GetConsentsPiiCategoriesParams defines parameters for GetConsentsPiiCategories.

type GetConsentsPiiCategoriesPiiCategoryIdResponse

type GetConsentsPiiCategoriesPiiCategoryIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PiiCategoryListResponse
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseGetConsentsPiiCategoriesPiiCategoryIdResponse

func ParseGetConsentsPiiCategoriesPiiCategoryIdResponse(rsp *http.Response) (*GetConsentsPiiCategoriesPiiCategoryIdResponse, error)

ParseGetConsentsPiiCategoriesPiiCategoryIdResponse parses an HTTP response from a GetConsentsPiiCategoriesPiiCategoryIdWithResponse call

func (GetConsentsPiiCategoriesPiiCategoryIdResponse) Status

Status returns HTTPResponse.Status

func (GetConsentsPiiCategoriesPiiCategoryIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetConsentsPiiCategoriesResponse

type GetConsentsPiiCategoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PiiCategories
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseGetConsentsPiiCategoriesResponse

func ParseGetConsentsPiiCategoriesResponse(rsp *http.Response) (*GetConsentsPiiCategoriesResponse, error)

ParseGetConsentsPiiCategoriesResponse parses an HTTP response from a GetConsentsPiiCategoriesWithResponse call

func (GetConsentsPiiCategoriesResponse) Status

Status returns HTTPResponse.Status

func (GetConsentsPiiCategoriesResponse) StatusCode

func (r GetConsentsPiiCategoriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetConsentsPurposeCategoriesParams

type GetConsentsPurposeCategoriesParams struct {
	// Limit Number of search results
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset Start index of the search
	Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}

GetConsentsPurposeCategoriesParams defines parameters for GetConsentsPurposeCategories.

type GetConsentsPurposeCategoriesPurposeCategoryIdResponse

type GetConsentsPurposeCategoriesPurposeCategoryIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PurposeCategoryListResponse
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseGetConsentsPurposeCategoriesPurposeCategoryIdResponse

func ParseGetConsentsPurposeCategoriesPurposeCategoryIdResponse(rsp *http.Response) (*GetConsentsPurposeCategoriesPurposeCategoryIdResponse, error)

ParseGetConsentsPurposeCategoriesPurposeCategoryIdResponse parses an HTTP response from a GetConsentsPurposeCategoriesPurposeCategoryIdWithResponse call

func (GetConsentsPurposeCategoriesPurposeCategoryIdResponse) Status

Status returns HTTPResponse.Status

func (GetConsentsPurposeCategoriesPurposeCategoryIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetConsentsPurposeCategoriesResponse

type GetConsentsPurposeCategoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PurpseCategories
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseGetConsentsPurposeCategoriesResponse

func ParseGetConsentsPurposeCategoriesResponse(rsp *http.Response) (*GetConsentsPurposeCategoriesResponse, error)

ParseGetConsentsPurposeCategoriesResponse parses an HTTP response from a GetConsentsPurposeCategoriesWithResponse call

func (GetConsentsPurposeCategoriesResponse) Status

Status returns HTTPResponse.Status

func (GetConsentsPurposeCategoriesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetConsentsPurposesParams

type GetConsentsPurposesParams struct {
	// Group Purpose group
	Group *Group `form:"group,omitempty" json:"group,omitempty"`

	// GroupType Type of the purpose group
	GroupType *GroupType `form:"groupType,omitempty" json:"groupType,omitempty"`

	// Limit Number of search results
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset Start index of the search
	Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}

GetConsentsPurposesParams defines parameters for GetConsentsPurposes.

type GetConsentsPurposesPurposeIdResponse

type GetConsentsPurposesPurposeIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PurposeGetResponse
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseGetConsentsPurposesPurposeIdResponse

func ParseGetConsentsPurposesPurposeIdResponse(rsp *http.Response) (*GetConsentsPurposesPurposeIdResponse, error)

ParseGetConsentsPurposesPurposeIdResponse parses an HTTP response from a GetConsentsPurposesPurposeIdWithResponse call

func (GetConsentsPurposesPurposeIdResponse) Status

Status returns HTTPResponse.Status

func (GetConsentsPurposesPurposeIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetConsentsPurposesResponse

type GetConsentsPurposesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Purposes
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseGetConsentsPurposesResponse

func ParseGetConsentsPurposesResponse(rsp *http.Response) (*GetConsentsPurposesResponse, error)

ParseGetConsentsPurposesResponse parses an HTTP response from a GetConsentsPurposesWithResponse call

func (GetConsentsPurposesResponse) Status

Status returns HTTPResponse.Status

func (GetConsentsPurposesResponse) StatusCode

func (r GetConsentsPurposesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetConsentsReceiptsReceiptIdResponse

type GetConsentsReceiptsReceiptIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ConsentReceipt
	JSON400      *Error
	JSON401      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseGetConsentsReceiptsReceiptIdResponse

func ParseGetConsentsReceiptsReceiptIdResponse(rsp *http.Response) (*GetConsentsReceiptsReceiptIdResponse, error)

ParseGetConsentsReceiptsReceiptIdResponse parses an HTTP response from a GetConsentsReceiptsReceiptIdWithResponse call

func (GetConsentsReceiptsReceiptIdResponse) Status

Status returns HTTPResponse.Status

func (GetConsentsReceiptsReceiptIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetConsentsResponse

type GetConsentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ConsentResponse
	JSON400      *Error
	JSON401      *Error
	JSON500      *Error
}

func ParseGetConsentsResponse

func ParseGetConsentsResponse(rsp *http.Response) (*GetConsentsResponse, error)

ParseGetConsentsResponse parses an HTTP response from a GetConsentsWithResponse call

func (GetConsentsResponse) Status

func (r GetConsentsResponse) Status() string

Status returns HTTPResponse.Status

func (GetConsentsResponse) StatusCode

func (r GetConsentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Group

type Group = string

Group defines model for group.

type GroupType

type GroupType = string

GroupType defines model for groupType.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Limit

type Limit = int

Limit defines model for limit.

type Offset

type Offset = int

Offset defines model for offset.

type PIIcategoryRequest

type PIIcategoryRequest struct {
	Description *string `json:"description,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`
	PiiCategory string  `json:"piiCategory"`
	Sensitive   *bool   `json:"sensitive,omitempty"`
}

PIIcategoryRequest defines model for PIIcategoryRequest.

type PiiCategories

type PiiCategories = []PiiCategoryListResponse

PiiCategories defines model for piiCategories.

type PiiCategoryList

type PiiCategoryList struct {
	PiiCategoryId *int    `json:"piiCategoryId,omitempty"`
	Validity      *string `json:"validity,omitempty"`
}

PiiCategoryList defines model for piiCategoryList.

type PiiCategoryListResponse

type PiiCategoryListResponse struct {
	Description   *string `json:"description,omitempty"`
	DisplayName   *string `json:"displayName,omitempty"`
	PiiCategory   *string `json:"piiCategory,omitempty"`
	PiiCategoryId *int    `json:"piiCategoryId,omitempty"`
	Sensitive     *bool   `json:"sensitive,omitempty"`
}

PiiCategoryListResponse defines model for piiCategoryListResponse.

type PiiCategoryNameList

type PiiCategoryNameList struct {
	PiiCategoryDisplayName *string `json:"piiCategoryDisplayName,omitempty"`
	PiiCategoryId          *int    `json:"piiCategoryId,omitempty"`
	PiiCategoryName        *string `json:"piiCategoryName,omitempty"`
	Validity               *string `json:"validity,omitempty"`
}

PiiCategoryNameList defines model for piiCategoryNameList.

type PiiController

type PiiController struct {
	// Address The physical address of PII controller. Postal address for contacting the PII Controller. This is compliant with the schema https://schema.org/PostalAddress.
	Address Address `json:"address"`

	// Contact Contact name of the PII Controller. This field MUST contain a non-empty string.
	Contact string `json:"contact"`

	// Email Contact email address of the PII Controller. The direct email to contact the PII Controller regarding the consent or privacy contract.
	Email string `json:"email"`

	// OnBehalf A PII Processor acting on behalf of a PII Controller or PII Processor. For example, a third-party analytics service would be a PII Processor on behalf of the PII Controller, or a site operator acting on behalf of the PII Controller.
	OnBehalf *bool `json:"onBehalf,omitempty"`

	// Phone Contact phone number of the PII Controller. The business phone number to contact the PII Controller regarding the consent.
	Phone string `json:"phone"`

	// PiiController Name of the first PII Controller who collects the data. This entity is accountable for compliance with the management of PII. The PII Controller determines the purpose(s) and type(s) of PII processing.
	PiiController string `json:"piiController"`

	// PiiControllerUrl A URL for contacting the PII Controller.
	PiiControllerUrl *string `json:"piiControllerUrl,omitempty"`
}

PiiController defines model for piiController.

type PiiPrincipalId

type PiiPrincipalId = string

PiiPrincipalId defines model for piiPrincipalId.

type PostConsentsJSONRequestBody

type PostConsentsJSONRequestBody = ConsentRequest

PostConsentsJSONRequestBody defines body for PostConsents for application/json ContentType.

type PostConsentsPiiCategoriesJSONRequestBody

type PostConsentsPiiCategoriesJSONRequestBody = PIIcategoryRequest

PostConsentsPiiCategoriesJSONRequestBody defines body for PostConsentsPiiCategories for application/json ContentType.

type PostConsentsPiiCategoriesResponse

type PostConsentsPiiCategoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *PiiCategoryListResponse
	JSON400      *Error
	JSON401      *Error
	JSON409      *Error
	JSON500      *Error
}

func ParsePostConsentsPiiCategoriesResponse

func ParsePostConsentsPiiCategoriesResponse(rsp *http.Response) (*PostConsentsPiiCategoriesResponse, error)

ParsePostConsentsPiiCategoriesResponse parses an HTTP response from a PostConsentsPiiCategoriesWithResponse call

func (PostConsentsPiiCategoriesResponse) Status

Status returns HTTPResponse.Status

func (PostConsentsPiiCategoriesResponse) StatusCode

func (r PostConsentsPiiCategoriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostConsentsPurposeCategoriesJSONRequestBody

type PostConsentsPurposeCategoriesJSONRequestBody = PurposeCategoryRequest

PostConsentsPurposeCategoriesJSONRequestBody defines body for PostConsentsPurposeCategories for application/json ContentType.

type PostConsentsPurposeCategoriesResponse

type PostConsentsPurposeCategoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *PurposeCategoryListResponse
	JSON400      *Error
	JSON401      *Error
	JSON409      *Error
	JSON500      *Error
}

func ParsePostConsentsPurposeCategoriesResponse

func ParsePostConsentsPurposeCategoriesResponse(rsp *http.Response) (*PostConsentsPurposeCategoriesResponse, error)

ParsePostConsentsPurposeCategoriesResponse parses an HTTP response from a PostConsentsPurposeCategoriesWithResponse call

func (PostConsentsPurposeCategoriesResponse) Status

Status returns HTTPResponse.Status

func (PostConsentsPurposeCategoriesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostConsentsPurposesJSONRequestBody

type PostConsentsPurposesJSONRequestBody = PurposeRequest

PostConsentsPurposesJSONRequestBody defines body for PostConsentsPurposes for application/json ContentType.

type PostConsentsPurposesResponse

type PostConsentsPurposesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *PurposeGetResponse
	JSON400      *Error
	JSON401      *Error
	JSON409      *Error
	JSON500      *Error
}

func ParsePostConsentsPurposesResponse

func ParsePostConsentsPurposesResponse(rsp *http.Response) (*PostConsentsPurposesResponse, error)

ParsePostConsentsPurposesResponse parses an HTTP response from a PostConsentsPurposesWithResponse call

func (PostConsentsPurposesResponse) Status

Status returns HTTPResponse.Status

func (PostConsentsPurposesResponse) StatusCode

func (r PostConsentsPurposesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostConsentsResponse

type PostConsentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ConsentAddResponse
	JSON400      *Error
	JSON401      *Error
	JSON409      *Error
	JSON500      *Error
}

func ParsePostConsentsResponse

func ParsePostConsentsResponse(rsp *http.Response) (*PostConsentsResponse, error)

ParsePostConsentsResponse parses an HTTP response from a PostConsentsWithResponse call

func (PostConsentsResponse) Status

func (r PostConsentsResponse) Status() string

Status returns HTTPResponse.Status

func (PostConsentsResponse) StatusCode

func (r PostConsentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Property

type Property struct {
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
}

Property defines model for Property.

type Purpose

type Purpose struct {
	// ConsentType The type of the consent used by the PII Controller as their authority to collect, use or disclose PII.
	ConsentType *string `json:"consentType,omitempty"`

	// PiiCategory A list of defined PII categories Ids.
	PiiCategory *[]PiiCategoryList `json:"piiCategory,omitempty"`

	// PrimaryPurpose Indicates if a purpose is part of the core service of the PII Controller. Possible values are TRUE or FALSE.
	PrimaryPurpose *bool `json:"primaryPurpose,omitempty"`

	// PurposeCategoryId The reason the PII Controller is collecting the PII.
	PurposeCategoryId []int `json:"purposeCategoryId"`

	// PurposeId A unique Id of purpose
	PurposeId *int `json:"purposeId,omitempty"`

	// Termination Conditions for the termination of consent. Link to policy defining how consent or purpose is terminated.
	Termination string `json:"termination"`

	// ThirdPartyDisclosure Indicates if the PII Controller is disclosing PII to a third party.  Possible values are TRUE or FALSE.
	ThirdPartyDisclosure bool `json:"thirdPartyDisclosure"`

	// ThirdPartyName The name or names of the third party to which the PII Processor may disclose the PII.
	ThirdPartyName string `json:"thirdPartyName"`
}

Purpose defines model for purpose.

type PurposeCategoryListResponse

type PurposeCategoryListResponse struct {
	Description       *string `json:"description,omitempty"`
	PurposeCategory   *string `json:"purposeCategory,omitempty"`
	PurposeCategoryId *int    `json:"purposeCategoryId,omitempty"`
}

PurposeCategoryListResponse defines model for purposeCategoryListResponse.

type PurposeCategoryRequest

type PurposeCategoryRequest struct {
	Description     *string `json:"description,omitempty"`
	PurposeCategory string  `json:"purposeCategory"`
}

PurposeCategoryRequest defines model for PurposeCategoryRequest.

type PurposeGetResponse

type PurposeGetResponse struct {
	Description   *string                           `json:"description,omitempty"`
	Group         *string                           `json:"group,omitempty"`
	GroupType     *string                           `json:"groupType,omitempty"`
	PiiCategories *[]PurposePiiCategoryListResponse `json:"piiCategories,omitempty"`
	Purpose       *string                           `json:"purpose,omitempty"`
	PurposeId     *int                              `json:"purposeId,omitempty"`
}

PurposeGetResponse defines model for purposeGetResponse.

type PurposeListResponse

type PurposeListResponse struct {
	Description *string `json:"description,omitempty"`
	Group       *string `json:"group,omitempty"`
	GroupType   *string `json:"groupType,omitempty"`
	Purpose     *string `json:"purpose,omitempty"`
	PurposeId   *int    `json:"purposeId,omitempty"`
}

PurposeListResponse defines model for purposeListResponse.

type PurposePiiCategoryListResponse

type PurposePiiCategoryListResponse struct {
	Description   *string `json:"description,omitempty"`
	DisplayName   *string `json:"displayName,omitempty"`
	Mandatory     *bool   `json:"mandatory,omitempty"`
	PiiCategory   *string `json:"piiCategory,omitempty"`
	PiiCategoryId *int    `json:"piiCategoryId,omitempty"`
	Sensitive     *bool   `json:"sensitive,omitempty"`
}

PurposePiiCategoryListResponse defines model for purposePiiCategoryListResponse.

type PurposePiiCategoryRequest

type PurposePiiCategoryRequest struct {
	Mandatory     *bool `json:"mandatory,omitempty"`
	PiiCategoryId *int  `json:"piiCategoryId,omitempty"`
}

PurposePiiCategoryRequest defines model for purposePiiCategoryRequest.

type PurposeRequest

type PurposeRequest struct {
	Description   *string                      `json:"description,omitempty"`
	Group         *string                      `json:"group,omitempty"`
	GroupType     *string                      `json:"groupType,omitempty"`
	PiiCategories *[]PurposePiiCategoryRequest `json:"piiCategories,omitempty"`
	Purpose       string                       `json:"purpose"`
}

PurposeRequest defines model for PurposeRequest.

type PurposeResponse

type PurposeResponse struct {
	// ConsentType The type of the consent used by the PII Controller as their authority to collect, use or disclose PII.
	ConsentType *string `json:"consentType,omitempty"`

	// PiiCategory A list of defined PII categories Ids.  PII Category should reflect the category that will be shared as understood by the PII Principal.
	PiiCategory []PiiCategoryNameList `json:"piiCategory"`

	// PrimaryPurpose Indicates if a purpose is part of the core service of the PII Controller. Possible values are TRUE or FALSE.
	PrimaryPurpose *bool `json:"primaryPurpose,omitempty"`

	// Purpose A short, clear explanation of why the PII item is required.
	Purpose *string `json:"purpose,omitempty"`

	// PurposeCategory The reason the PII Controller is collecting the PII.
	PurposeCategory []string `json:"purposeCategory"`

	// PurposeId Id of the purpose.
	PurposeId *int `json:"purposeId,omitempty"`

	// Termination Conditions for the termination of consent. Link to policy defining how consent or purpose is terminated.
	Termination string `json:"termination"`

	// ThirdPartyDisclosure Indicates if the PII Controller is disclosing PII to a third party.  Possible values are TRUE or FALSE.
	ThirdPartyDisclosure bool `json:"thirdPartyDisclosure"`

	// ThirdPartyName The name or names of the third party to which the PII Processor may disclose the PII.
	ThirdPartyName string `json:"thirdPartyName"`
}

PurposeResponse defines model for purposeResponse.

type Purposes

type Purposes = []PurposeListResponse

Purposes defines model for purposes.

type PurpseCategories

type PurpseCategories = []PurposeCategoryListResponse

PurpseCategories defines model for purpseCategories.

type ReceiptId

type ReceiptId = string

ReceiptId defines model for receiptId.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Service

type Service struct {
	Purposes *[]Purpose `json:"purposes,omitempty"`

	// Service The service or group of services being provided for which PII is collected. The name of the service for which consent for the collection, use, and disclosure of PII is being provided.
	Service *string `json:"service,omitempty"`

	// ServiceDescription Description about the service
	ServiceDescription *string `json:"serviceDescription,omitempty"`

	// ServiceDisplayName display name of the service
	ServiceDisplayName *string `json:"serviceDisplayName,omitempty"`

	// TenantDomain Tenant domain of the SP
	TenantDomain *string `json:"tenantDomain,omitempty"`
}

Service defines model for service.

type ServiceQueryParam

type ServiceQueryParam = string

ServiceQueryParam defines model for service.

type ServiceResponse

type ServiceResponse struct {
	Purposes *[]PurposeResponse `json:"purposes,omitempty"`

	// Service The service or group of services being provided for which PII is collected. The name of the service for which consent for the collection, use, and disclosure of PII is being provided.
	Service *string `json:"service,omitempty"`

	// ServiceDescription Description about the service
	ServiceDescription *string `json:"serviceDescription,omitempty"`

	// ServiceDisplayName display name of the service
	ServiceDisplayName *string `json:"serviceDisplayName,omitempty"`

	// TenantDomain Tenant domain of the SP
	TenantDomain *string `json:"tenantDomain,omitempty"`
}

ServiceResponse defines model for serviceResponse.

type SpTenantDomain

type SpTenantDomain = string

SpTenantDomain defines model for spTenantDomain.

type State

type State = string

State defines model for state.

Jump to

Keyboard shortcuts

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