v1

package
v0.1.478 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 20

Documentation

Index

Constants

View Source
const AccessProtectionListKind = api_v1.AccessProtectionListKind

AccessProtectionListKind is the name of the type used to represent list of objects of type 'access_protection'.

View Source
const AccessProtectionListLinkKind = api_v1.AccessProtectionListLinkKind

AccessProtectionListLinkKind is the name of the type used to represent links to list of objects of type 'access_protection'.

View Source
const AccessProtectionListNilKind = api_v1.AccessProtectionListNilKind

AccessProtectionNilKind is the name of the type used to nil lists of objects of type 'access_protection'.

View Source
const AccessRequestKind = api_v1.AccessRequestKind

AccessRequestKind is the name of the type used to represent objects of type 'access_request'.

View Source
const AccessRequestLinkKind = api_v1.AccessRequestLinkKind

AccessRequestLinkKind is the name of the type used to represent links to objects of type 'access_request'.

View Source
const AccessRequestListKind = api_v1.AccessRequestListKind

AccessRequestListKind is the name of the type used to represent list of objects of type 'access_request'.

View Source
const AccessRequestListLinkKind = api_v1.AccessRequestListLinkKind

AccessRequestListLinkKind is the name of the type used to represent links to list of objects of type 'access_request'.

View Source
const AccessRequestListNilKind = api_v1.AccessRequestListNilKind

AccessRequestNilKind is the name of the type used to nil lists of objects of type 'access_request'.

View Source
const AccessRequestNilKind = api_v1.AccessRequestNilKind

AccessRequestNilKind is the name of the type used to nil references to objects of type 'access_request'.

View Source
const AccessRequestPostRequestListKind = api_v1.AccessRequestPostRequestListKind

AccessRequestPostRequestListKind is the name of the type used to represent list of objects of type 'access_request_post_request'.

View Source
const AccessRequestPostRequestListLinkKind = api_v1.AccessRequestPostRequestListLinkKind

AccessRequestPostRequestListLinkKind is the name of the type used to represent links to list of objects of type 'access_request_post_request'.

View Source
const AccessRequestPostRequestListNilKind = api_v1.AccessRequestPostRequestListNilKind

AccessRequestPostRequestNilKind is the name of the type used to nil lists of objects of type 'access_request_post_request'.

View Source
const AccessRequestStatusListKind = api_v1.AccessRequestStatusListKind

AccessRequestStatusListKind is the name of the type used to represent list of objects of type 'access_request_status'.

View Source
const AccessRequestStatusListLinkKind = api_v1.AccessRequestStatusListLinkKind

AccessRequestStatusListLinkKind is the name of the type used to represent links to list of objects of type 'access_request_status'.

View Source
const AccessRequestStatusListNilKind = api_v1.AccessRequestStatusListNilKind

AccessRequestStatusNilKind is the name of the type used to nil lists of objects of type 'access_request_status'.

View Source
const DecisionKind = api_v1.DecisionKind

DecisionKind is the name of the type used to represent objects of type 'decision'.

View Source
const DecisionLinkKind = api_v1.DecisionLinkKind

DecisionLinkKind is the name of the type used to represent links to objects of type 'decision'.

View Source
const DecisionListKind = api_v1.DecisionListKind

DecisionListKind is the name of the type used to represent list of objects of type 'decision'.

View Source
const DecisionListLinkKind = api_v1.DecisionListLinkKind

DecisionListLinkKind is the name of the type used to represent links to list of objects of type 'decision'.

View Source
const DecisionListNilKind = api_v1.DecisionListNilKind

DecisionNilKind is the name of the type used to nil lists of objects of type 'decision'.

View Source
const DecisionNilKind = api_v1.DecisionNilKind

DecisionNilKind is the name of the type used to nil references to objects of type 'decision'.

Variables

View Source
var MarshalAccessProtection = api_v1.MarshalAccessProtection

MarshalAccessProtection writes a value of the 'access_protection' type to the given writer.

View Source
var MarshalAccessProtectionList = api_v1.MarshalAccessProtectionList

MarshalAccessProtectionList writes a list of values of the 'access_protection' type to the given writer.

View Source
var MarshalAccessRequest = api_v1.MarshalAccessRequest

MarshalAccessRequest writes a value of the 'access_request' type to the given writer.

View Source
var MarshalAccessRequestList = api_v1.MarshalAccessRequestList

MarshalAccessRequestList writes a list of values of the 'access_request' type to the given writer.

View Source
var MarshalAccessRequestPostRequest = api_v1.MarshalAccessRequestPostRequest

MarshalAccessRequestPostRequest writes a value of the 'access_request_post_request' type to the given writer.

View Source
var MarshalAccessRequestPostRequestList = api_v1.MarshalAccessRequestPostRequestList

MarshalAccessRequestPostRequestList writes a list of values of the 'access_request_post_request' type to the given writer.

View Source
var MarshalAccessRequestStateList = api_v1.MarshalAccessRequestStateList

MarshalAccessRequestStateList writes a list of values of the 'access_request_state' type to the given writer.

View Source
var MarshalAccessRequestStatus = api_v1.MarshalAccessRequestStatus

MarshalAccessRequestStatus writes a value of the 'access_request_status' type to the given writer.

View Source
var MarshalAccessRequestStatusList = api_v1.MarshalAccessRequestStatusList

MarshalAccessRequestStatusList writes a list of values of the 'access_request_status' type to the given writer.

View Source
var MarshalBooleanList = api_v1.MarshalBooleanList

MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.

View Source
var MarshalDateList = api_v1.MarshalDateList

MarshalDateList writes a list of values of the 'date' type to the given writer.

View Source
var MarshalDecision = api_v1.MarshalDecision

MarshalDecision writes a value of the 'decision' type to the given writer.

View Source
var MarshalDecisionDecisionList = api_v1.MarshalDecisionDecisionList

MarshalDecisionDecisionList writes a list of values of the 'decision_decision' type to the given writer.

View Source
var MarshalDecisionList = api_v1.MarshalDecisionList

MarshalDecisionList writes a list of values of the 'decision' type to the given writer.

View Source
var MarshalFloatList = api_v1.MarshalFloatList

MarshalFloatList writes a list of values of the 'float' type to the given writer.

View Source
var MarshalIntegerList = api_v1.MarshalIntegerList

MarshalIntegerList writes a list of values of the 'integer' type to the given writer.

View Source
var MarshalInterfaceList = api_v1.MarshalInterfaceList

MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.

View Source
var MarshalLongList = api_v1.MarshalLongList

MarshalLongList writes a list of values of the 'long' type to the given writer.

View Source
var MarshalMetadata = api_v1.MarshalMetadata

MarshalMetadata writes a value of the metadata type to the given target, which

View Source
var MarshalStringList = api_v1.MarshalStringList

MarshalStringList writes a list of values of the 'string' type to the given writer.

View Source
var NewAccessProtection = api_v1.NewAccessProtection

NewAccessProtection creates a new builder of 'access_protection' objects.

View Source
var NewAccessProtectionList = api_v1.NewAccessProtectionList

NewAccessProtectionList creates a new builder of 'access_protection' objects.

View Source
var NewAccessRequest = api_v1.NewAccessRequest

NewAccessRequest creates a new builder of 'access_request' objects.

View Source
var NewAccessRequestList = api_v1.NewAccessRequestList

NewAccessRequestList creates a new builder of 'access_request' objects.

View Source
var NewAccessRequestPostRequest = api_v1.NewAccessRequestPostRequest

NewAccessRequestPostRequest creates a new builder of 'access_request_post_request' objects.

View Source
var NewAccessRequestPostRequestList = api_v1.NewAccessRequestPostRequestList

NewAccessRequestPostRequestList creates a new builder of 'access_request_post_request' objects.

View Source
var NewAccessRequestStatus = api_v1.NewAccessRequestStatus

NewAccessRequestStatus creates a new builder of 'access_request_status' objects.

View Source
var NewAccessRequestStatusList = api_v1.NewAccessRequestStatusList

NewAccessRequestStatusList creates a new builder of 'access_request_status' objects.

View Source
var NewDecision = api_v1.NewDecision

NewDecision creates a new builder of 'decision' objects.

View Source
var NewDecisionList = api_v1.NewDecisionList

NewDecisionList creates a new builder of 'decision' objects.

View Source
var OpenAPI = []byte{}/* 23321 elements not displayed */

OpenAPI contains the OpenAPI specification of the service in JSON.

View Source
var ReadAccessProtection = api_v1.ReadAccessProtection

ReadAccessProtection reads a value of the 'access_protection' type from the given iterator.

View Source
var ReadAccessProtectionList = api_v1.ReadAccessProtectionList

ReadAccessProtectionList reads list of values of the ”access_protection' type from the given iterator.

View Source
var ReadAccessRequest = api_v1.ReadAccessRequest

ReadAccessRequest reads a value of the 'access_request' type from the given iterator.

View Source
var ReadAccessRequestList = api_v1.ReadAccessRequestList

ReadAccessRequestList reads list of values of the ”access_request' type from the given iterator.

View Source
var ReadAccessRequestPostRequest = api_v1.ReadAccessRequestPostRequest

ReadAccessRequestPostRequest reads a value of the 'access_request_post_request' type from the given iterator.

View Source
var ReadAccessRequestPostRequestList = api_v1.ReadAccessRequestPostRequestList

ReadAccessRequestPostRequestList reads list of values of the ”access_request_post_request' type from the given iterator.

View Source
var ReadAccessRequestStateList = api_v1.ReadAccessRequestStateList

ReadAccessRequestStateList reads list of values of the ”access_request_state' type from the given iterator.

View Source
var ReadAccessRequestStatus = api_v1.ReadAccessRequestStatus

ReadAccessRequestStatus reads a value of the 'access_request_status' type from the given iterator.

View Source
var ReadAccessRequestStatusList = api_v1.ReadAccessRequestStatusList

ReadAccessRequestStatusList reads list of values of the ”access_request_status' type from the given iterator.

View Source
var ReadBooleanList = api_v1.ReadBooleanList

ReadBooleanList reads list of values of the ”boolean' type from the given iterator.

View Source
var ReadDateList = api_v1.ReadDateList

ReadDateList reads list of values of the ”date' type from the given iterator.

View Source
var ReadDecision = api_v1.ReadDecision

ReadDecision reads a value of the 'decision' type from the given iterator.

View Source
var ReadDecisionDecisionList = api_v1.ReadDecisionDecisionList

ReadDecisionDecisionList reads list of values of the ”decision_decision' type from the given iterator.

View Source
var ReadDecisionList = api_v1.ReadDecisionList

ReadDecisionList reads list of values of the ”decision' type from the given iterator.

View Source
var ReadFloatList = api_v1.ReadFloatList

ReadFloatList reads list of values of the ”float' type from the given iterator.

View Source
var ReadIntegerList = api_v1.ReadIntegerList

ReadIntegerList reads list of values of the ”integer' type from the given iterator.

View Source
var ReadInterfaceList = api_v1.ReadInterfaceList

ReadInterfaceList reads list of values of the ”interface' type from the given iterator.

View Source
var ReadLongList = api_v1.ReadLongList

ReadLongList reads list of values of the ”long' type from the given iterator.

View Source
var ReadStringList = api_v1.ReadStringList

ReadStringList reads list of values of the ”string' type from the given iterator.

View Source
var UnmarshalAccessProtection = api_v1.UnmarshalAccessProtection

UnmarshalAccessProtection reads a value of the 'access_protection' type from the given source, which can be an slice of bytes, a string or a reader.

View Source
var UnmarshalAccessProtectionList = api_v1.UnmarshalAccessProtectionList

UnmarshalAccessProtectionList reads a list of values of the 'access_protection' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalAccessRequest = api_v1.UnmarshalAccessRequest

UnmarshalAccessRequest reads a value of the 'access_request' type from the given source, which can be an slice of bytes, a string or a reader.

View Source
var UnmarshalAccessRequestList = api_v1.UnmarshalAccessRequestList

UnmarshalAccessRequestList reads a list of values of the 'access_request' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalAccessRequestPostRequest = api_v1.UnmarshalAccessRequestPostRequest

UnmarshalAccessRequestPostRequest reads a value of the 'access_request_post_request' type from the given source, which can be an slice of bytes, a string or a reader.

View Source
var UnmarshalAccessRequestPostRequestList = api_v1.UnmarshalAccessRequestPostRequestList

UnmarshalAccessRequestPostRequestList reads a list of values of the 'access_request_post_request' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalAccessRequestStateList = api_v1.UnmarshalAccessRequestStateList

UnmarshalAccessRequestStateList reads a list of values of the 'access_request_state' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalAccessRequestStatus = api_v1.UnmarshalAccessRequestStatus

UnmarshalAccessRequestStatus reads a value of the 'access_request_status' type from the given source, which can be an slice of bytes, a string or a reader.

View Source
var UnmarshalAccessRequestStatusList = api_v1.UnmarshalAccessRequestStatusList

UnmarshalAccessRequestStatusList reads a list of values of the 'access_request_status' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalBooleanList = api_v1.UnmarshalBooleanList

UnmarshalBooleanList reads a list of values of the 'boolean' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalDateList = api_v1.UnmarshalDateList

UnmarshalDateList reads a list of values of the 'date' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalDecision = api_v1.UnmarshalDecision

UnmarshalDecision reads a value of the 'decision' type from the given source, which can be an slice of bytes, a string or a reader.

View Source
var UnmarshalDecisionDecisionList = api_v1.UnmarshalDecisionDecisionList

UnmarshalDecisionDecisionList reads a list of values of the 'decision_decision' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalDecisionList = api_v1.UnmarshalDecisionList

UnmarshalDecisionList reads a list of values of the 'decision' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalFloatList = api_v1.UnmarshalFloatList

UnmarshalFloatList reads a list of values of the 'float' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalIntegerList = api_v1.UnmarshalIntegerList

UnmarshalIntegerList reads a list of values of the 'integer' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalInterfaceList = api_v1.UnmarshalInterfaceList

UnmarshalInterfaceList reads a list of values of the 'interface' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalLongList = api_v1.UnmarshalLongList

UnmarshalLongList reads a list of values of the 'long' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var UnmarshalMetadata = api_v1.UnmarshalMetadata

UnmarshalMetadata reads a value of the metadata type from the given source, which which can be a reader, a slice of byte or a string.

View Source
var UnmarshalStringList = api_v1.UnmarshalStringList

UnmarshalStringList reads a list of values of the 'string' type from the given source, which can be a slice of bytes, a string or a reader.

View Source
var WriteAccessProtection = api_v1.WriteAccessProtection

WriteAccessProtection writes a value of the 'access_protection' type to the given stream.

View Source
var WriteAccessProtectionList = api_v1.WriteAccessProtectionList

WriteAccessProtectionList writes a list of value of the 'access_protection' type to the given stream.

View Source
var WriteAccessRequest = api_v1.WriteAccessRequest

WriteAccessRequest writes a value of the 'access_request' type to the given stream.

View Source
var WriteAccessRequestList = api_v1.WriteAccessRequestList

WriteAccessRequestList writes a list of value of the 'access_request' type to the given stream.

View Source
var WriteAccessRequestPostRequest = api_v1.WriteAccessRequestPostRequest

WriteAccessRequestPostRequest writes a value of the 'access_request_post_request' type to the given stream.

View Source
var WriteAccessRequestPostRequestList = api_v1.WriteAccessRequestPostRequestList

WriteAccessRequestPostRequestList writes a list of value of the 'access_request_post_request' type to the given stream.

View Source
var WriteAccessRequestStateList = api_v1.WriteAccessRequestStateList

WriteAccessRequestStateList writes a list of value of the 'access_request_state' type to the given stream.

View Source
var WriteAccessRequestStatus = api_v1.WriteAccessRequestStatus

WriteAccessRequestStatus writes a value of the 'access_request_status' type to the given stream.

View Source
var WriteAccessRequestStatusList = api_v1.WriteAccessRequestStatusList

WriteAccessRequestStatusList writes a list of value of the 'access_request_status' type to the given stream.

View Source
var WriteBooleanList = api_v1.WriteBooleanList

WriteBooleanList writes a list of value of the 'boolean' type to the given stream.

View Source
var WriteDateList = api_v1.WriteDateList

WriteDateList writes a list of value of the 'date' type to the given stream.

View Source
var WriteDecision = api_v1.WriteDecision

WriteDecision writes a value of the 'decision' type to the given stream.

View Source
var WriteDecisionDecisionList = api_v1.WriteDecisionDecisionList

WriteDecisionDecisionList writes a list of value of the 'decision_decision' type to the given stream.

View Source
var WriteDecisionList = api_v1.WriteDecisionList

WriteDecisionList writes a list of value of the 'decision' type to the given stream.

View Source
var WriteFloatList = api_v1.WriteFloatList

WriteFloatList writes a list of value of the 'float' type to the given stream.

View Source
var WriteIntegerList = api_v1.WriteIntegerList

WriteIntegerList writes a list of value of the 'integer' type to the given stream.

View Source
var WriteInterfaceList = api_v1.WriteInterfaceList

WriteInterfaceList writes a list of value of the 'interface' type to the given stream.

View Source
var WriteLongList = api_v1.WriteLongList

WriteLongList writes a list of value of the 'long' type to the given stream.

View Source
var WriteStringList = api_v1.WriteStringList

WriteStringList writes a list of value of the 'string' type to the given stream.

Functions

This section is empty.

Types

type AccessProtection

type AccessProtection = api_v1.AccessProtection

AccessProtection represents the values of the 'access_protection' type.

Representation of an access protection.

type AccessProtectionBuilder

type AccessProtectionBuilder = api_v1.AccessProtectionBuilder

AccessProtectionBuilder contains the data and logic needed to build 'access_protection' objects.

Representation of an access protection.

type AccessProtectionClient

type AccessProtectionClient struct {
	// contains filtered or unexported fields
}

AccessProtectionClient is the client of the 'access_protection' resource.

Manages the Access Protection resource.

func NewAccessProtectionClient

func NewAccessProtectionClient(transport http.RoundTripper, path string) *AccessProtectionClient

NewAccessProtectionClient creates a new client for the 'access_protection' resource using the given transport to send the requests and receive the responses.

func (*AccessProtectionClient) Get

Get creates a request for the 'get' method.

Retrieves an Access Protection by organization/cluster/subscription query param.

func (*AccessProtectionClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type AccessProtectionGetRequest

type AccessProtectionGetRequest struct {
	// contains filtered or unexported fields
}

AccessProtectionGetRequest is the request for the 'get' method.

func (*AccessProtectionGetRequest) ClusterId

ClusterId sets the value of the 'cluster_id' parameter.

Check status by Cluter.

func (*AccessProtectionGetRequest) Header

func (r *AccessProtectionGetRequest) Header(name string, value interface{}) *AccessProtectionGetRequest

Header adds a request header.

func (*AccessProtectionGetRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccessProtectionGetRequest) OrganizationId

OrganizationId sets the value of the 'organization_id' parameter.

Check status by Organization.

func (*AccessProtectionGetRequest) Parameter

func (r *AccessProtectionGetRequest) Parameter(name string, value interface{}) *AccessProtectionGetRequest

Parameter adds a query parameter.

func (*AccessProtectionGetRequest) Send

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccessProtectionGetRequest) SendContext

func (r *AccessProtectionGetRequest) SendContext(ctx context.Context) (result *AccessProtectionGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*AccessProtectionGetRequest) SubscriptionId

SubscriptionId sets the value of the 'subscription_id' parameter.

Check status by Subscription.

type AccessProtectionGetResponse

type AccessProtectionGetResponse struct {
	// contains filtered or unexported fields
}

AccessProtectionGetResponse is the response for the 'get' method.

func (*AccessProtectionGetResponse) Body

Body returns the value of the 'body' parameter.

AccessProtection status response.

func (*AccessProtectionGetResponse) Error

Error returns the response error.

func (*AccessProtectionGetResponse) GetBody

func (r *AccessProtectionGetResponse) GetBody() (value *AccessProtection, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

AccessProtection status response.

func (*AccessProtectionGetResponse) Header

Header returns header of the response.

func (*AccessProtectionGetResponse) Status

func (r *AccessProtectionGetResponse) Status() int

Status returns the response status code.

type AccessProtectionList

type AccessProtectionList = api_v1.AccessProtectionList

type AccessProtectionListBuilder

type AccessProtectionListBuilder = api_v1.AccessProtectionListBuilder

AccessProtectionListBuilder contains the data and logic needed to build 'access_protection' objects.

type AccessProtectionPollRequest

type AccessProtectionPollRequest struct {
	// contains filtered or unexported fields
}

AccessProtectionPollRequest is the request for the Poll method.

func (*AccessProtectionPollRequest) ClusterId

ClusterId sets the value of the 'cluster_id' parameter for all the requests that will be used to retrieve the object.

Check status by Cluter.

func (*AccessProtectionPollRequest) Header

func (r *AccessProtectionPollRequest) Header(name string, value interface{}) *AccessProtectionPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*AccessProtectionPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*AccessProtectionPollRequest) OrganizationId

OrganizationId sets the value of the 'organization_id' parameter for all the requests that will be used to retrieve the object.

Check status by Organization.

func (*AccessProtectionPollRequest) Parameter

func (r *AccessProtectionPollRequest) Parameter(name string, value interface{}) *AccessProtectionPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*AccessProtectionPollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*AccessProtectionPollRequest) StartContext

func (r *AccessProtectionPollRequest) StartContext(ctx context.Context) (response *AccessProtectionPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*AccessProtectionPollRequest) Status

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

func (*AccessProtectionPollRequest) SubscriptionId

SubscriptionId sets the value of the 'subscription_id' parameter for all the requests that will be used to retrieve the object.

Check status by Subscription.

type AccessProtectionPollResponse

type AccessProtectionPollResponse struct {
	// contains filtered or unexported fields
}

AccessProtectionPollResponse is the response for the Poll method.

func (*AccessProtectionPollResponse) Body

Body returns the value of the 'body' parameter.

AccessProtection status response.

func (*AccessProtectionPollResponse) Error

Error returns the response error.

func (*AccessProtectionPollResponse) GetBody

func (r *AccessProtectionPollResponse) GetBody() (value *AccessProtection, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

AccessProtection status response.

func (*AccessProtectionPollResponse) Header

Header returns header of the response.

func (*AccessProtectionPollResponse) Status

func (r *AccessProtectionPollResponse) Status() int

Status returns the response status code.

type AccessRequest

type AccessRequest = api_v1.AccessRequest

AccessRequest represents the values of the 'access_request' type.

Representation of an access request.

type AccessRequestBuilder

type AccessRequestBuilder = api_v1.AccessRequestBuilder

AccessRequestBuilder contains the data and logic needed to build 'access_request' objects.

Representation of an access request.

type AccessRequestClient

type AccessRequestClient struct {
	// contains filtered or unexported fields
}

AccessRequestClient is the client of the 'access_request' resource.

Manages a specific access request.

func NewAccessRequestClient

func NewAccessRequestClient(transport http.RoundTripper, path string) *AccessRequestClient

NewAccessRequestClient creates a new client for the 'access_request' resource using the given transport to send the requests and receive the responses.

func (*AccessRequestClient) Decisions

func (c *AccessRequestClient) Decisions() *DecisionsClient

Decisions returns the target 'decisions' resource.

Reference to the resource that manages the collection of decisions.

func (*AccessRequestClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the access request.

func (*AccessRequestClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type AccessRequestGetRequest

type AccessRequestGetRequest struct {
	// contains filtered or unexported fields
}

AccessRequestGetRequest is the request for the 'get' method.

func (*AccessRequestGetRequest) Header

func (r *AccessRequestGetRequest) Header(name string, value interface{}) *AccessRequestGetRequest

Header adds a request header.

func (*AccessRequestGetRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccessRequestGetRequest) Parameter

func (r *AccessRequestGetRequest) Parameter(name string, value interface{}) *AccessRequestGetRequest

Parameter adds a query parameter.

func (*AccessRequestGetRequest) Send

func (r *AccessRequestGetRequest) Send() (result *AccessRequestGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccessRequestGetRequest) SendContext

func (r *AccessRequestGetRequest) SendContext(ctx context.Context) (result *AccessRequestGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AccessRequestGetResponse

type AccessRequestGetResponse struct {
	// contains filtered or unexported fields
}

AccessRequestGetResponse is the response for the 'get' method.

func (*AccessRequestGetResponse) Body

Body returns the value of the 'body' parameter.

func (*AccessRequestGetResponse) Error

Error returns the response error.

func (*AccessRequestGetResponse) GetBody

func (r *AccessRequestGetResponse) GetBody() (value *AccessRequest, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AccessRequestGetResponse) Header

func (r *AccessRequestGetResponse) Header() http.Header

Header returns header of the response.

func (*AccessRequestGetResponse) Status

func (r *AccessRequestGetResponse) Status() int

Status returns the response status code.

type AccessRequestList

type AccessRequestList = api_v1.AccessRequestList

type AccessRequestListBuilder

type AccessRequestListBuilder = api_v1.AccessRequestListBuilder

AccessRequestListBuilder contains the data and logic needed to build 'access_request' objects.

type AccessRequestPollRequest

type AccessRequestPollRequest struct {
	// contains filtered or unexported fields
}

AccessRequestPollRequest is the request for the Poll method.

func (*AccessRequestPollRequest) Header

func (r *AccessRequestPollRequest) Header(name string, value interface{}) *AccessRequestPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*AccessRequestPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*AccessRequestPollRequest) Parameter

func (r *AccessRequestPollRequest) Parameter(name string, value interface{}) *AccessRequestPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*AccessRequestPollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*AccessRequestPollRequest) StartContext

func (r *AccessRequestPollRequest) StartContext(ctx context.Context) (response *AccessRequestPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*AccessRequestPollRequest) Status

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type AccessRequestPollResponse

type AccessRequestPollResponse struct {
	// contains filtered or unexported fields
}

AccessRequestPollResponse is the response for the Poll method.

func (*AccessRequestPollResponse) Body

Body returns the value of the 'body' parameter.

func (*AccessRequestPollResponse) Error

Error returns the response error.

func (*AccessRequestPollResponse) GetBody

func (r *AccessRequestPollResponse) GetBody() (value *AccessRequest, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AccessRequestPollResponse) Header

Header returns header of the response.

func (*AccessRequestPollResponse) Status

func (r *AccessRequestPollResponse) Status() int

Status returns the response status code.

type AccessRequestPostRequest

type AccessRequestPostRequest = api_v1.AccessRequestPostRequest

AccessRequestPostRequest represents the values of the 'access_request_post_request' type.

Representation of an access request post request.

type AccessRequestPostRequestBuilder

type AccessRequestPostRequestBuilder = api_v1.AccessRequestPostRequestBuilder

AccessRequestPostRequestBuilder contains the data and logic needed to build 'access_request_post_request' objects.

Representation of an access request post request.

type AccessRequestPostRequestList

type AccessRequestPostRequestList = api_v1.AccessRequestPostRequestList

type AccessRequestPostRequestListBuilder

type AccessRequestPostRequestListBuilder = api_v1.AccessRequestPostRequestListBuilder

AccessRequestPostRequestListBuilder contains the data and logic needed to build 'access_request_post_request' objects.

type AccessRequestState

type AccessRequestState = api_v1.AccessRequestState

AccessRequestState represents the values of the 'access_request_state' enumerated type.

const (
	//
	AccessRequestStateApproved AccessRequestState = api_v1.AccessRequestStateApproved
	//
	AccessRequestStateDenied AccessRequestState = api_v1.AccessRequestStateDenied
	//
	AccessRequestStateExpired AccessRequestState = api_v1.AccessRequestStateExpired
	//
	AccessRequestStatePending AccessRequestState = api_v1.AccessRequestStatePending
)

type AccessRequestStatus

type AccessRequestStatus = api_v1.AccessRequestStatus

AccessRequestStatus represents the values of the 'access_request_status' type.

Representation of an access request status.

type AccessRequestStatusBuilder

type AccessRequestStatusBuilder = api_v1.AccessRequestStatusBuilder

AccessRequestStatusBuilder contains the data and logic needed to build 'access_request_status' objects.

Representation of an access request status.

type AccessRequestStatusList

type AccessRequestStatusList = api_v1.AccessRequestStatusList

type AccessRequestStatusListBuilder

type AccessRequestStatusListBuilder = api_v1.AccessRequestStatusListBuilder

AccessRequestStatusListBuilder contains the data and logic needed to build 'access_request_status' objects.

type AccessRequestsClient

type AccessRequestsClient struct {
	// contains filtered or unexported fields
}

AccessRequestsClient is the client of the 'access_requests' resource.

Manages the collection of access requests.

func NewAccessRequestsClient

func NewAccessRequestsClient(transport http.RoundTripper, path string) *AccessRequestsClient

NewAccessRequestsClient creates a new client for the 'access_requests' resource using the given transport to send the requests and receive the responses.

func (*AccessRequestsClient) AccessRequest

func (c *AccessRequestsClient) AccessRequest(id string) *AccessRequestClient

AccessRequest returns the target 'access_request' resource for the given identifier.

Returns a reference to the service that manages a specific access request.

func (*AccessRequestsClient) List

List creates a request for the 'list' method.

Retrieves the list of access requests.

func (*AccessRequestsClient) Post

Post creates a request for the 'post' method.

Create a new access request and add it to the collection of access requests.

type AccessRequestsListRequest

type AccessRequestsListRequest struct {
	// contains filtered or unexported fields
}

AccessRequestsListRequest is the request for the 'list' method.

func (*AccessRequestsListRequest) Header

func (r *AccessRequestsListRequest) Header(name string, value interface{}) *AccessRequestsListRequest

Header adds a request header.

func (*AccessRequestsListRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccessRequestsListRequest) Order

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the access request instead of the names of the columns of a table. For example, in order to sort the access requests descending by created_at the value should be:

```sql created_at desc ```

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*AccessRequestsListRequest) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AccessRequestsListRequest) Parameter

func (r *AccessRequestsListRequest) Parameter(name string, value interface{}) *AccessRequestsListRequest

Parameter adds a query parameter.

func (*AccessRequestsListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the access request instead of the names of the columns of a table. For example, in order to retrieve all the access requests with a requested_by starting with `my` the value should be:

```sql requested_by like 'my%' ```

If the parameter isn't provided, or if the value is empty, then all the access requests that the user has permission to see will be returned.

func (*AccessRequestsListRequest) Send

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccessRequestsListRequest) SendContext

func (r *AccessRequestsListRequest) SendContext(ctx context.Context) (result *AccessRequestsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*AccessRequestsListRequest) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type AccessRequestsListResponse

type AccessRequestsListResponse struct {
	// contains filtered or unexported fields
}

AccessRequestsListResponse is the response for the 'list' method.

func (*AccessRequestsListResponse) Error

Error returns the response error.

func (*AccessRequestsListResponse) GetItems

func (r *AccessRequestsListResponse) GetItems() (value *AccessRequestList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of access requests.

func (*AccessRequestsListResponse) GetPage

func (r *AccessRequestsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*AccessRequestsListResponse) GetSize

func (r *AccessRequestsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*AccessRequestsListResponse) GetTotal

func (r *AccessRequestsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*AccessRequestsListResponse) Header

Header returns header of the response.

func (*AccessRequestsListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of access requests.

func (*AccessRequestsListResponse) Page

func (r *AccessRequestsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AccessRequestsListResponse) Size

func (r *AccessRequestsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*AccessRequestsListResponse) Status

func (r *AccessRequestsListResponse) Status() int

Status returns the response status code.

func (*AccessRequestsListResponse) Total

func (r *AccessRequestsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type AccessRequestsPostRequest

type AccessRequestsPostRequest struct {
	// contains filtered or unexported fields
}

AccessRequestsPostRequest is the request for the 'post' method.

func (*AccessRequestsPostRequest) Body

Body sets the value of the 'body' parameter.

Input to include new access request.

func (*AccessRequestsPostRequest) Header

func (r *AccessRequestsPostRequest) Header(name string, value interface{}) *AccessRequestsPostRequest

Header adds a request header.

func (*AccessRequestsPostRequest) Impersonate

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccessRequestsPostRequest) Parameter

func (r *AccessRequestsPostRequest) Parameter(name string, value interface{}) *AccessRequestsPostRequest

Parameter adds a query parameter.

func (*AccessRequestsPostRequest) Send

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccessRequestsPostRequest) SendContext

func (r *AccessRequestsPostRequest) SendContext(ctx context.Context) (result *AccessRequestsPostResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AccessRequestsPostResponse

type AccessRequestsPostResponse struct {
	// contains filtered or unexported fields
}

AccessRequestsPostResponse is the response for the 'post' method.

func (*AccessRequestsPostResponse) Body

Body returns the value of the 'body' parameter.

Newly access request.

func (*AccessRequestsPostResponse) Error

Error returns the response error.

func (*AccessRequestsPostResponse) GetBody

func (r *AccessRequestsPostResponse) GetBody() (value *AccessRequest, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Newly access request.

func (*AccessRequestsPostResponse) Header

Header returns header of the response.

func (*AccessRequestsPostResponse) Status

func (r *AccessRequestsPostResponse) Status() int

Status returns the response status code.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the client of the 'root' resource.

Root of the tree of resources of the Access Transparency Management.

func NewClient

func NewClient(transport http.RoundTripper, path string) *Client

NewClient creates a new client for the 'root' resource using the given transport to send the requests and receive the responses.

func (*Client) AccessProtection

func (c *Client) AccessProtection() *AccessProtectionClient

AccessProtection returns the target 'access_protection' resource.

Reference to the resource that manages the Access Protection resource.

func (*Client) AccessRequests

func (c *Client) AccessRequests() *AccessRequestsClient

AccessRequests returns the target 'access_requests' resource.

Reference to the resource that manages the collection of Access Requests.

func (*Client) Get

func (c *Client) Get() *MetadataRequest

Creates a new request for the method that retrieves the metadata.

type Decision

type Decision = api_v1.Decision

Decision represents the values of the 'decision' type.

Representation of an decision.

type DecisionBuilder

type DecisionBuilder = api_v1.DecisionBuilder

DecisionBuilder contains the data and logic needed to build 'decision' objects.

Representation of an decision.

type DecisionClient

type DecisionClient struct {
	// contains filtered or unexported fields
}

DecisionClient is the client of the 'decision' resource.

Manages a specific decision.

func NewDecisionClient

func NewDecisionClient(transport http.RoundTripper, path string) *DecisionClient

NewDecisionClient creates a new client for the 'decision' resource using the given transport to send the requests and receive the responses.

func (*DecisionClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the decision.

func (*DecisionClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type DecisionDecision

type DecisionDecision = api_v1.DecisionDecision

DecisionDecision represents the values of the 'decision_decision' enumerated type.

const (
	//
	DecisionDecisionApproved DecisionDecision = api_v1.DecisionDecisionApproved
	//
	DecisionDecisionDenied DecisionDecision = api_v1.DecisionDecisionDenied
	//
	DecisionDecisionExpired DecisionDecision = api_v1.DecisionDecisionExpired
)

type DecisionGetRequest

type DecisionGetRequest struct {
	// contains filtered or unexported fields
}

DecisionGetRequest is the request for the 'get' method.

func (*DecisionGetRequest) Header

func (r *DecisionGetRequest) Header(name string, value interface{}) *DecisionGetRequest

Header adds a request header.

func (*DecisionGetRequest) Impersonate

func (r *DecisionGetRequest) Impersonate(user string) *DecisionGetRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*DecisionGetRequest) Parameter

func (r *DecisionGetRequest) Parameter(name string, value interface{}) *DecisionGetRequest

Parameter adds a query parameter.

func (*DecisionGetRequest) Send

func (r *DecisionGetRequest) Send() (result *DecisionGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*DecisionGetRequest) SendContext

func (r *DecisionGetRequest) SendContext(ctx context.Context) (result *DecisionGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type DecisionGetResponse

type DecisionGetResponse struct {
	// contains filtered or unexported fields
}

DecisionGetResponse is the response for the 'get' method.

func (*DecisionGetResponse) Body

func (r *DecisionGetResponse) Body() *Decision

Body returns the value of the 'body' parameter.

func (*DecisionGetResponse) Error

func (r *DecisionGetResponse) Error() *errors.Error

Error returns the response error.

func (*DecisionGetResponse) GetBody

func (r *DecisionGetResponse) GetBody() (value *Decision, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*DecisionGetResponse) Header

func (r *DecisionGetResponse) Header() http.Header

Header returns header of the response.

func (*DecisionGetResponse) Status

func (r *DecisionGetResponse) Status() int

Status returns the response status code.

type DecisionList

type DecisionList = api_v1.DecisionList

type DecisionListBuilder

type DecisionListBuilder = api_v1.DecisionListBuilder

DecisionListBuilder contains the data and logic needed to build 'decision' objects.

type DecisionPollRequest

type DecisionPollRequest struct {
	// contains filtered or unexported fields
}

DecisionPollRequest is the request for the Poll method.

func (*DecisionPollRequest) Header

func (r *DecisionPollRequest) Header(name string, value interface{}) *DecisionPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*DecisionPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*DecisionPollRequest) Parameter

func (r *DecisionPollRequest) Parameter(name string, value interface{}) *DecisionPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*DecisionPollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*DecisionPollRequest) StartContext

func (r *DecisionPollRequest) StartContext(ctx context.Context) (response *DecisionPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*DecisionPollRequest) Status

func (r *DecisionPollRequest) Status(value int) *DecisionPollRequest

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type DecisionPollResponse

type DecisionPollResponse struct {
	// contains filtered or unexported fields
}

DecisionPollResponse is the response for the Poll method.

func (*DecisionPollResponse) Body

func (r *DecisionPollResponse) Body() *Decision

Body returns the value of the 'body' parameter.

func (*DecisionPollResponse) Error

func (r *DecisionPollResponse) Error() *errors.Error

Error returns the response error.

func (*DecisionPollResponse) GetBody

func (r *DecisionPollResponse) GetBody() (value *Decision, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*DecisionPollResponse) Header

func (r *DecisionPollResponse) Header() http.Header

Header returns header of the response.

func (*DecisionPollResponse) Status

func (r *DecisionPollResponse) Status() int

Status returns the response status code.

type DecisionsAddRequest

type DecisionsAddRequest struct {
	// contains filtered or unexported fields
}

DecisionsAddRequest is the request for the 'add' method.

func (*DecisionsAddRequest) Body

Body sets the value of the 'body' parameter.

Description of the decision addition.

func (*DecisionsAddRequest) Header

func (r *DecisionsAddRequest) Header(name string, value interface{}) *DecisionsAddRequest

Header adds a request header.

func (*DecisionsAddRequest) Impersonate

func (r *DecisionsAddRequest) Impersonate(user string) *DecisionsAddRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*DecisionsAddRequest) Parameter

func (r *DecisionsAddRequest) Parameter(name string, value interface{}) *DecisionsAddRequest

Parameter adds a query parameter.

func (*DecisionsAddRequest) Send

func (r *DecisionsAddRequest) Send() (result *DecisionsAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*DecisionsAddRequest) SendContext

func (r *DecisionsAddRequest) SendContext(ctx context.Context) (result *DecisionsAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type DecisionsAddResponse

type DecisionsAddResponse struct {
	// contains filtered or unexported fields
}

DecisionsAddResponse is the response for the 'add' method.

func (*DecisionsAddResponse) Body

func (r *DecisionsAddResponse) Body() *Decision

Body returns the value of the 'body' parameter.

Description of the decision addition.

func (*DecisionsAddResponse) Error

func (r *DecisionsAddResponse) Error() *errors.Error

Error returns the response error.

func (*DecisionsAddResponse) GetBody

func (r *DecisionsAddResponse) GetBody() (value *Decision, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Description of the decision addition.

func (*DecisionsAddResponse) Header

func (r *DecisionsAddResponse) Header() http.Header

Header returns header of the response.

func (*DecisionsAddResponse) Status

func (r *DecisionsAddResponse) Status() int

Status returns the response status code.

type DecisionsClient

type DecisionsClient struct {
	// contains filtered or unexported fields
}

DecisionsClient is the client of the 'decisions' resource.

Manages a collection of decisions attached to an access request.

func NewDecisionsClient

func NewDecisionsClient(transport http.RoundTripper, path string) *DecisionsClient

NewDecisionsClient creates a new client for the 'decisions' resource using the given transport to send the requests and receive the responses.

func (*DecisionsClient) Add

Add creates a request for the 'add' method.

Create a new decision and add it to the collection of decisions of an access request.

func (*DecisionsClient) Decision

func (c *DecisionsClient) Decision(id string) *DecisionClient

Decision returns the target 'decision' resource for the given identifier.

Returns a reference to the service that manages a specific decision.

func (*DecisionsClient) List

List creates a request for the 'list' method.

Retrieves the list of decisions.

type DecisionsListRequest

type DecisionsListRequest struct {
	// contains filtered or unexported fields
}

DecisionsListRequest is the request for the 'list' method.

func (*DecisionsListRequest) Header

func (r *DecisionsListRequest) Header(name string, value interface{}) *DecisionsListRequest

Header adds a request header.

func (*DecisionsListRequest) Impersonate

func (r *DecisionsListRequest) Impersonate(user string) *DecisionsListRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*DecisionsListRequest) Order

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the decision instead of the names of the columns of a table. For example, in order to sort the decisions descending by created_at the value should be:

```sql created_at desc ```

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*DecisionsListRequest) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*DecisionsListRequest) Parameter

func (r *DecisionsListRequest) Parameter(name string, value interface{}) *DecisionsListRequest

Parameter adds a query parameter.

func (*DecisionsListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the decision instead of the names of the columns of a table. For example, in order to retrieve all the decisions with a decided_by starting with `my` the value should be:

```sql decided_by like 'my%' ```

If the parameter isn't provided, or if the value is empty, then all the decisions that the user has permission to see will be returned.

func (*DecisionsListRequest) Send

func (r *DecisionsListRequest) Send() (result *DecisionsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*DecisionsListRequest) SendContext

func (r *DecisionsListRequest) SendContext(ctx context.Context) (result *DecisionsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*DecisionsListRequest) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type DecisionsListResponse

type DecisionsListResponse struct {
	// contains filtered or unexported fields
}

DecisionsListResponse is the response for the 'list' method.

func (*DecisionsListResponse) Error

func (r *DecisionsListResponse) Error() *errors.Error

Error returns the response error.

func (*DecisionsListResponse) GetItems

func (r *DecisionsListResponse) GetItems() (value *DecisionList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of decisions.

func (*DecisionsListResponse) GetPage

func (r *DecisionsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*DecisionsListResponse) GetSize

func (r *DecisionsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*DecisionsListResponse) GetTotal

func (r *DecisionsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*DecisionsListResponse) Header

func (r *DecisionsListResponse) Header() http.Header

Header returns header of the response.

func (*DecisionsListResponse) Items

func (r *DecisionsListResponse) Items() *DecisionList

Items returns the value of the 'items' parameter.

Retrieved list of decisions.

func (*DecisionsListResponse) Page

func (r *DecisionsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*DecisionsListResponse) Size

func (r *DecisionsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*DecisionsListResponse) Status

func (r *DecisionsListResponse) Status() int

Status returns the response status code.

func (*DecisionsListResponse) Total

func (r *DecisionsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Metadata

type Metadata = api_v1.Metadata

type MetadataRequest

type MetadataRequest struct {
	// contains filtered or unexported fields
}

MetadataRequest is the request to retrieve the metadata.

func (*MetadataRequest) Header

func (r *MetadataRequest) Header(name string, value interface{}) *MetadataRequest

Header adds a request header.

func (*MetadataRequest) Parameter

func (r *MetadataRequest) Parameter(name string, value interface{}) *MetadataRequest

Parameter adds a query parameter.

func (*MetadataRequest) Send

func (r *MetadataRequest) Send() (result *MetadataResponse, err error)

Send sends the metadata request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*MetadataRequest) SendContext

func (r *MetadataRequest) SendContext(ctx context.Context) (result *MetadataResponse, err error)

SendContext sends the metadata request, waits for the response, and returns it.

type MetadataResponse

type MetadataResponse struct {
	// contains filtered or unexported fields
}

MetadataResponse is the response for the metadata request.

func (*MetadataResponse) Body

func (r *MetadataResponse) Body() *Metadata

Body returns the response body.

func (*MetadataResponse) Error

func (r *MetadataResponse) Error() *errors.Error

Error returns the response error.

func (*MetadataResponse) Header

func (r *MetadataResponse) Header() http.Header

Header returns header of the response.

func (*MetadataResponse) Status

func (r *MetadataResponse) Status() int

Status returns the response status code.

Source Files

Jump to

Keyboard shortcuts

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