v1

package
v0.1.451 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 14

Documentation

Index

Constants

View Source
const AccessProtectionListKind = "AccessProtectionList"

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

View Source
const AccessProtectionListLinkKind = "AccessProtectionListLink"

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

View Source
const AccessProtectionListNilKind = "AccessProtectionListNil"

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

View Source
const AccessRequestKind = "AccessRequest"

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

View Source
const AccessRequestLinkKind = "AccessRequestLink"

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

View Source
const AccessRequestListKind = "AccessRequestList"

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

View Source
const AccessRequestListLinkKind = "AccessRequestListLink"

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

View Source
const AccessRequestListNilKind = "AccessRequestListNil"

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

View Source
const AccessRequestNilKind = "AccessRequestNil"

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

View Source
const AccessRequestPostRequestListKind = "AccessRequestPostRequestList"

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

View Source
const AccessRequestPostRequestListLinkKind = "AccessRequestPostRequestListLink"

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 = "AccessRequestPostRequestListNil"

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

View Source
const AccessRequestStatusListKind = "AccessRequestStatusList"

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

View Source
const AccessRequestStatusListLinkKind = "AccessRequestStatusListLink"

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

View Source
const AccessRequestStatusListNilKind = "AccessRequestStatusListNil"

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

View Source
const DecisionKind = "Decision"

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

View Source
const DecisionLinkKind = "DecisionLink"

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

View Source
const DecisionListKind = "DecisionList"

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

View Source
const DecisionListLinkKind = "DecisionListLink"

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

View Source
const DecisionListNilKind = "DecisionListNil"

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

View Source
const DecisionNilKind = "DecisionNil"

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

Variables

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

OpenAPI contains the OpenAPI specification of the service in JSON.

Functions

func MarshalAccessProtection

func MarshalAccessProtection(object *AccessProtection, writer io.Writer) error

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

func MarshalAccessProtectionList

func MarshalAccessProtectionList(list []*AccessProtection, writer io.Writer) error

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

func MarshalAccessRequest

func MarshalAccessRequest(object *AccessRequest, writer io.Writer) error

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

func MarshalAccessRequestList

func MarshalAccessRequestList(list []*AccessRequest, writer io.Writer) error

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

func MarshalAccessRequestPostRequest

func MarshalAccessRequestPostRequest(object *AccessRequestPostRequest, writer io.Writer) error

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

func MarshalAccessRequestPostRequestList

func MarshalAccessRequestPostRequestList(list []*AccessRequestPostRequest, writer io.Writer) error

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

func MarshalAccessRequestStateList

func MarshalAccessRequestStateList(list []AccessRequestState, writer io.Writer) error

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

func MarshalAccessRequestStatus

func MarshalAccessRequestStatus(object *AccessRequestStatus, writer io.Writer) error

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

func MarshalAccessRequestStatusList

func MarshalAccessRequestStatusList(list []*AccessRequestStatus, writer io.Writer) error

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

func MarshalBooleanList

func MarshalBooleanList(list []bool, writer io.Writer) error

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

func MarshalDateList

func MarshalDateList(list []time.Time, writer io.Writer) error

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

func MarshalDecision

func MarshalDecision(object *Decision, writer io.Writer) error

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

func MarshalDecisionDecisionList

func MarshalDecisionDecisionList(list []DecisionDecision, writer io.Writer) error

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

func MarshalDecisionList

func MarshalDecisionList(list []*Decision, writer io.Writer) error

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

func MarshalFloatList

func MarshalFloatList(list []float64, writer io.Writer) error

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

func MarshalIntegerList

func MarshalIntegerList(list []int, writer io.Writer) error

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

func MarshalInterfaceList

func MarshalInterfaceList(list []interface{}, writer io.Writer) error

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

func MarshalLongList

func MarshalLongList(list []int64, writer io.Writer) error

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

func MarshalMetadata

func MarshalMetadata(object *Metadata, writer io.Writer) error

MarshalMetadata writes a value of the metadata type to the given target, which can be a writer or a JSON encoder.

func MarshalStringList

func MarshalStringList(list []string, writer io.Writer) error

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

func UnmarshalBooleanList

func UnmarshalBooleanList(source interface{}) (items []bool, err error)

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.

func UnmarshalDateList

func UnmarshalDateList(source interface{}) (items []time.Time, err error)

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.

func UnmarshalFloatList

func UnmarshalFloatList(source interface{}) (items []float64, err error)

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.

func UnmarshalIntegerList

func UnmarshalIntegerList(source interface{}) (items []int, err error)

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.

func UnmarshalInterfaceList

func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)

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.

func UnmarshalLongList

func UnmarshalLongList(source interface{}) (items []int64, err error)

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.

func UnmarshalStringList

func UnmarshalStringList(source interface{}) (items []string, err error)

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.

Types

type AccessProtection

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

AccessProtection represents the values of the 'access_protection' type.

Representation of an access protection.

func UnmarshalAccessProtection

func UnmarshalAccessProtection(source interface{}) (object *AccessProtection, err error)

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.

func UnmarshalAccessProtectionList

func UnmarshalAccessProtectionList(source interface{}) (items []*AccessProtection, err error)

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.

func (*AccessProtection) Empty

func (o *AccessProtection) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AccessProtection) Enabled

func (o *AccessProtection) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*AccessProtection) GetEnabled

func (o *AccessProtection) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

type AccessProtectionBuilder

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

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

Representation of an access protection.

func NewAccessProtection

func NewAccessProtection() *AccessProtectionBuilder

NewAccessProtection creates a new builder of 'access_protection' objects.

func (*AccessProtectionBuilder) Build

func (b *AccessProtectionBuilder) Build() (object *AccessProtection, err error)

Build creates a 'access_protection' object using the configuration stored in the builder.

func (*AccessProtectionBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AccessProtectionBuilder) Empty

func (b *AccessProtectionBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AccessProtectionBuilder) Enabled

Enabled sets the value of the 'enabled' attribute to the given value.

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 struct {
	// contains filtered or unexported fields
}

AccessProtectionList is a list of values of the 'access_protection' type.

func (*AccessProtectionList) Each

func (l *AccessProtectionList) Each(f func(item *AccessProtection) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessProtectionList) Empty

func (l *AccessProtectionList) Empty() bool

Empty returns true if the list is empty.

func (*AccessProtectionList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AccessProtectionList) Len

func (l *AccessProtectionList) Len() int

Len returns the length of the list.

func (*AccessProtectionList) Range

func (l *AccessProtectionList) Range(f func(index int, item *AccessProtection) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessProtectionList) Slice

func (l *AccessProtectionList) Slice() []*AccessProtection

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AccessProtectionListBuilder

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

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

func NewAccessProtectionList

func NewAccessProtectionList() *AccessProtectionListBuilder

NewAccessProtectionList creates a new builder of 'access_protection' objects.

func (*AccessProtectionListBuilder) Build

func (b *AccessProtectionListBuilder) Build() (list *AccessProtectionList, err error)

Build creates a list of 'access_protection' objects using the configuration stored in the builder.

func (*AccessProtectionListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AccessProtectionListBuilder) Empty

func (b *AccessProtectionListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AccessProtectionListBuilder) Items

Items sets the items of the list.

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 struct {
	// contains filtered or unexported fields
}

AccessRequest represents the values of the 'access_request' type.

Representation of an access request.

func UnmarshalAccessRequest

func UnmarshalAccessRequest(source interface{}) (object *AccessRequest, err error)

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.

func UnmarshalAccessRequestList

func UnmarshalAccessRequestList(source interface{}) (items []*AccessRequest, err error)

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.

func (*AccessRequest) ClusterId

func (o *AccessRequest) ClusterId() string

ClusterId returns the value of the 'cluster_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Cluster from which the Access Request belongs to.

func (*AccessRequest) CreatedAt

func (o *AccessRequest) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Date and time when the access request was initially created, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*AccessRequest) Deadline

func (o *AccessRequest) Deadline() string

Deadline returns the value of the 'deadline' attribute, or the zero value of the type if the attribute doesn't have a value.

How long the Access Request can be in pending state waiting for a customer decision.

func (*AccessRequest) DeadlineAt

func (o *AccessRequest) DeadlineAt() time.Time

DeadlineAt returns the value of the 'deadline_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Date and time for the deadline that the Access Request needs to be decided, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*AccessRequest) Decisions

func (o *AccessRequest) Decisions() []*Decision

Decisions returns the value of the 'decisions' attribute, or the zero value of the type if the attribute doesn't have a value.

Decisions attached to the Access Request.

func (*AccessRequest) Duration

func (o *AccessRequest) Duration() string

Duration returns the value of the 'duration' attribute, or the zero value of the type if the attribute doesn't have a value.

How long the access will last after it's been approved.

func (*AccessRequest) Empty

func (o *AccessRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AccessRequest) GetClusterId

func (o *AccessRequest) GetClusterId() (value string, ok bool)

GetClusterId returns the value of the 'cluster_id' attribute and a flag indicating if the attribute has a value.

Cluster from which the Access Request belongs to.

func (*AccessRequest) GetCreatedAt

func (o *AccessRequest) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Date and time when the access request was initially created, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*AccessRequest) GetDeadline

func (o *AccessRequest) GetDeadline() (value string, ok bool)

GetDeadline returns the value of the 'deadline' attribute and a flag indicating if the attribute has a value.

How long the Access Request can be in pending state waiting for a customer decision.

func (*AccessRequest) GetDeadlineAt

func (o *AccessRequest) GetDeadlineAt() (value time.Time, ok bool)

GetDeadlineAt returns the value of the 'deadline_at' attribute and a flag indicating if the attribute has a value.

Date and time for the deadline that the Access Request needs to be decided, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*AccessRequest) GetDecisions

func (o *AccessRequest) GetDecisions() (value []*Decision, ok bool)

GetDecisions returns the value of the 'decisions' attribute and a flag indicating if the attribute has a value.

Decisions attached to the Access Request.

func (*AccessRequest) GetDuration

func (o *AccessRequest) GetDuration() (value string, ok bool)

GetDuration returns the value of the 'duration' attribute and a flag indicating if the attribute has a value.

How long the access will last after it's been approved.

func (*AccessRequest) GetHREF

func (o *AccessRequest) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*AccessRequest) GetID

func (o *AccessRequest) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*AccessRequest) GetInternalSupportCaseId

func (o *AccessRequest) GetInternalSupportCaseId() (value string, ok bool)

GetInternalSupportCaseId returns the value of the 'internal_support_case_id' attribute and a flag indicating if the attribute has a value.

Internal support case id linking to jira ticket.

func (*AccessRequest) GetJustification

func (o *AccessRequest) GetJustification() (value string, ok bool)

GetJustification returns the value of the 'justification' attribute and a flag indicating if the attribute has a value.

Justification of the Access Request.

func (*AccessRequest) GetOrganizationId

func (o *AccessRequest) GetOrganizationId() (value string, ok bool)

GetOrganizationId returns the value of the 'organization_id' attribute and a flag indicating if the attribute has a value.

Organization from which the Access Request belongs to.

func (*AccessRequest) GetRequestedBy

func (o *AccessRequest) GetRequestedBy() (value string, ok bool)

GetRequestedBy returns the value of the 'requested_by' attribute and a flag indicating if the attribute has a value.

User that requested the Access.

func (*AccessRequest) GetStatus

func (o *AccessRequest) GetStatus() (value *AccessRequestStatus, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

Access Request status.

func (*AccessRequest) GetSubscriptionId

func (o *AccessRequest) GetSubscriptionId() (value string, ok bool)

GetSubscriptionId returns the value of the 'subscription_id' attribute and a flag indicating if the attribute has a value.

Subscription from which the Access Request belongs to.

func (*AccessRequest) GetSupportCaseId

func (o *AccessRequest) GetSupportCaseId() (value string, ok bool)

GetSupportCaseId returns the value of the 'support_case_id' attribute and a flag indicating if the attribute has a value.

Support case ID linking to JIRA ticket.

func (*AccessRequest) GetUpdatedAt

func (o *AccessRequest) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Date and time when the access request was lastly updated, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*AccessRequest) HREF

func (o *AccessRequest) HREF() string

HREF returns the link to the object.

func (*AccessRequest) ID

func (o *AccessRequest) ID() string

ID returns the identifier of the object.

func (*AccessRequest) InternalSupportCaseId

func (o *AccessRequest) InternalSupportCaseId() string

InternalSupportCaseId returns the value of the 'internal_support_case_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Internal support case id linking to jira ticket.

func (*AccessRequest) Justification

func (o *AccessRequest) Justification() string

Justification returns the value of the 'justification' attribute, or the zero value of the type if the attribute doesn't have a value.

Justification of the Access Request.

func (*AccessRequest) Kind

func (o *AccessRequest) Kind() string

Kind returns the name of the type of the object.

func (o *AccessRequest) Link() bool

Link returns true iif this is a link.

func (*AccessRequest) OrganizationId

func (o *AccessRequest) OrganizationId() string

OrganizationId returns the value of the 'organization_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Organization from which the Access Request belongs to.

func (*AccessRequest) RequestedBy

func (o *AccessRequest) RequestedBy() string

RequestedBy returns the value of the 'requested_by' attribute, or the zero value of the type if the attribute doesn't have a value.

User that requested the Access.

func (*AccessRequest) Status

func (o *AccessRequest) Status() *AccessRequestStatus

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

Access Request status.

func (*AccessRequest) SubscriptionId

func (o *AccessRequest) SubscriptionId() string

SubscriptionId returns the value of the 'subscription_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Subscription from which the Access Request belongs to.

func (*AccessRequest) SupportCaseId

func (o *AccessRequest) SupportCaseId() string

SupportCaseId returns the value of the 'support_case_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case ID linking to JIRA ticket.

func (*AccessRequest) UpdatedAt

func (o *AccessRequest) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Date and time when the access request was lastly updated, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

type AccessRequestBuilder

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

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

Representation of an access request.

func NewAccessRequest

func NewAccessRequest() *AccessRequestBuilder

NewAccessRequest creates a new builder of 'access_request' objects.

func (*AccessRequestBuilder) Build

func (b *AccessRequestBuilder) Build() (object *AccessRequest, err error)

Build creates a 'access_request' object using the configuration stored in the builder.

func (*AccessRequestBuilder) ClusterId

func (b *AccessRequestBuilder) ClusterId(value string) *AccessRequestBuilder

ClusterId sets the value of the 'cluster_id' attribute to the given value.

func (*AccessRequestBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AccessRequestBuilder) CreatedAt

func (b *AccessRequestBuilder) CreatedAt(value time.Time) *AccessRequestBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*AccessRequestBuilder) Deadline

func (b *AccessRequestBuilder) Deadline(value string) *AccessRequestBuilder

Deadline sets the value of the 'deadline' attribute to the given value.

func (*AccessRequestBuilder) DeadlineAt

func (b *AccessRequestBuilder) DeadlineAt(value time.Time) *AccessRequestBuilder

DeadlineAt sets the value of the 'deadline_at' attribute to the given value.

func (*AccessRequestBuilder) Decisions

func (b *AccessRequestBuilder) Decisions(values ...*DecisionBuilder) *AccessRequestBuilder

Decisions sets the value of the 'decisions' attribute to the given values.

func (*AccessRequestBuilder) Duration

func (b *AccessRequestBuilder) Duration(value string) *AccessRequestBuilder

Duration sets the value of the 'duration' attribute to the given value.

func (*AccessRequestBuilder) Empty

func (b *AccessRequestBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AccessRequestBuilder) HREF

HREF sets the link to the object.

func (*AccessRequestBuilder) ID

ID sets the identifier of the object.

func (*AccessRequestBuilder) InternalSupportCaseId

func (b *AccessRequestBuilder) InternalSupportCaseId(value string) *AccessRequestBuilder

InternalSupportCaseId sets the value of the 'internal_support_case_id' attribute to the given value.

func (*AccessRequestBuilder) Justification

func (b *AccessRequestBuilder) Justification(value string) *AccessRequestBuilder

Justification sets the value of the 'justification' attribute to the given value.

Link sets the flag that indicates if this is a link.

func (*AccessRequestBuilder) OrganizationId

func (b *AccessRequestBuilder) OrganizationId(value string) *AccessRequestBuilder

OrganizationId sets the value of the 'organization_id' attribute to the given value.

func (*AccessRequestBuilder) RequestedBy

func (b *AccessRequestBuilder) RequestedBy(value string) *AccessRequestBuilder

RequestedBy sets the value of the 'requested_by' attribute to the given value.

func (*AccessRequestBuilder) Status

Status sets the value of the 'status' attribute to the given value.

Representation of an access request status.

func (*AccessRequestBuilder) SubscriptionId

func (b *AccessRequestBuilder) SubscriptionId(value string) *AccessRequestBuilder

SubscriptionId sets the value of the 'subscription_id' attribute to the given value.

func (*AccessRequestBuilder) SupportCaseId

func (b *AccessRequestBuilder) SupportCaseId(value string) *AccessRequestBuilder

SupportCaseId sets the value of the 'support_case_id' attribute to the given value.

func (*AccessRequestBuilder) UpdatedAt

func (b *AccessRequestBuilder) UpdatedAt(value time.Time) *AccessRequestBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

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 struct {
	// contains filtered or unexported fields
}

AccessRequestList is a list of values of the 'access_request' type.

func (*AccessRequestList) Each

func (l *AccessRequestList) Each(f func(item *AccessRequest) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessRequestList) Empty

func (l *AccessRequestList) Empty() bool

Empty returns true if the list is empty.

func (*AccessRequestList) Get

func (l *AccessRequestList) Get(i int) *AccessRequest

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AccessRequestList) GetHREF

func (l *AccessRequestList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*AccessRequestList) HREF

func (l *AccessRequestList) HREF() string

HREF returns the link to the list.

func (*AccessRequestList) Kind

func (l *AccessRequestList) Kind() string

Kind returns the name of the type of the object.

func (*AccessRequestList) Len

func (l *AccessRequestList) Len() int

Len returns the length of the list.

func (l *AccessRequestList) Link() bool

Link returns true iif this is a link.

func (*AccessRequestList) Range

func (l *AccessRequestList) Range(f func(index int, item *AccessRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessRequestList) Slice

func (l *AccessRequestList) Slice() []*AccessRequest

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AccessRequestListBuilder

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

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

func NewAccessRequestList

func NewAccessRequestList() *AccessRequestListBuilder

NewAccessRequestList creates a new builder of 'access_request' objects.

func (*AccessRequestListBuilder) Build

func (b *AccessRequestListBuilder) Build() (list *AccessRequestList, err error)

Build creates a list of 'access_request' objects using the configuration stored in the builder.

func (*AccessRequestListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AccessRequestListBuilder) Empty

func (b *AccessRequestListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AccessRequestListBuilder) Items

Items sets the items of the list.

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 struct {
	// contains filtered or unexported fields
}

AccessRequestPostRequest represents the values of the 'access_request_post_request' type.

Representation of an access request post request.

func UnmarshalAccessRequestPostRequest

func UnmarshalAccessRequestPostRequest(source interface{}) (object *AccessRequestPostRequest, err error)

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.

func UnmarshalAccessRequestPostRequestList

func UnmarshalAccessRequestPostRequestList(source interface{}) (items []*AccessRequestPostRequest, err error)

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.

func (*AccessRequestPostRequest) ClusterId

func (o *AccessRequestPostRequest) ClusterId() string

ClusterId returns the value of the 'cluster_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Cluster from which the Access Request belongs to.

func (*AccessRequestPostRequest) Deadline

func (o *AccessRequestPostRequest) Deadline() string

Deadline returns the value of the 'deadline' attribute, or the zero value of the type if the attribute doesn't have a value.

How long the Access Request can be in pending state waiting for a customer decision.

func (*AccessRequestPostRequest) Duration

func (o *AccessRequestPostRequest) Duration() string

Duration returns the value of the 'duration' attribute, or the zero value of the type if the attribute doesn't have a value.

How long the access will last after it's been approved.

func (*AccessRequestPostRequest) Empty

func (o *AccessRequestPostRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AccessRequestPostRequest) GetClusterId

func (o *AccessRequestPostRequest) GetClusterId() (value string, ok bool)

GetClusterId returns the value of the 'cluster_id' attribute and a flag indicating if the attribute has a value.

Cluster from which the Access Request belongs to.

func (*AccessRequestPostRequest) GetDeadline

func (o *AccessRequestPostRequest) GetDeadline() (value string, ok bool)

GetDeadline returns the value of the 'deadline' attribute and a flag indicating if the attribute has a value.

How long the Access Request can be in pending state waiting for a customer decision.

func (*AccessRequestPostRequest) GetDuration

func (o *AccessRequestPostRequest) GetDuration() (value string, ok bool)

GetDuration returns the value of the 'duration' attribute and a flag indicating if the attribute has a value.

How long the access will last after it's been approved.

func (*AccessRequestPostRequest) GetInternalSupportCaseId

func (o *AccessRequestPostRequest) GetInternalSupportCaseId() (value string, ok bool)

GetInternalSupportCaseId returns the value of the 'internal_support_case_id' attribute and a flag indicating if the attribute has a value.

Internal support case id linking to jira ticket.

func (*AccessRequestPostRequest) GetJustification

func (o *AccessRequestPostRequest) GetJustification() (value string, ok bool)

GetJustification returns the value of the 'justification' attribute and a flag indicating if the attribute has a value.

Justification of the Access Request.

func (*AccessRequestPostRequest) GetSubscriptionId

func (o *AccessRequestPostRequest) GetSubscriptionId() (value string, ok bool)

GetSubscriptionId returns the value of the 'subscription_id' attribute and a flag indicating if the attribute has a value.

Subscription from which the Access Request belongs to.

func (*AccessRequestPostRequest) GetSupportCaseId

func (o *AccessRequestPostRequest) GetSupportCaseId() (value string, ok bool)

GetSupportCaseId returns the value of the 'support_case_id' attribute and a flag indicating if the attribute has a value.

Support case ID linking to JIRA ticket.

func (*AccessRequestPostRequest) InternalSupportCaseId

func (o *AccessRequestPostRequest) InternalSupportCaseId() string

InternalSupportCaseId returns the value of the 'internal_support_case_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Internal support case id linking to jira ticket.

func (*AccessRequestPostRequest) Justification

func (o *AccessRequestPostRequest) Justification() string

Justification returns the value of the 'justification' attribute, or the zero value of the type if the attribute doesn't have a value.

Justification of the Access Request.

func (*AccessRequestPostRequest) SubscriptionId

func (o *AccessRequestPostRequest) SubscriptionId() string

SubscriptionId returns the value of the 'subscription_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Subscription from which the Access Request belongs to.

func (*AccessRequestPostRequest) SupportCaseId

func (o *AccessRequestPostRequest) SupportCaseId() string

SupportCaseId returns the value of the 'support_case_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case ID linking to JIRA ticket.

type AccessRequestPostRequestBuilder

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

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

Representation of an access request post request.

func NewAccessRequestPostRequest

func NewAccessRequestPostRequest() *AccessRequestPostRequestBuilder

NewAccessRequestPostRequest creates a new builder of 'access_request_post_request' objects.

func (*AccessRequestPostRequestBuilder) Build

Build creates a 'access_request_post_request' object using the configuration stored in the builder.

func (*AccessRequestPostRequestBuilder) ClusterId

ClusterId sets the value of the 'cluster_id' attribute to the given value.

func (*AccessRequestPostRequestBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AccessRequestPostRequestBuilder) Deadline

Deadline sets the value of the 'deadline' attribute to the given value.

func (*AccessRequestPostRequestBuilder) Duration

Duration sets the value of the 'duration' attribute to the given value.

func (*AccessRequestPostRequestBuilder) Empty

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AccessRequestPostRequestBuilder) InternalSupportCaseId

InternalSupportCaseId sets the value of the 'internal_support_case_id' attribute to the given value.

func (*AccessRequestPostRequestBuilder) Justification

Justification sets the value of the 'justification' attribute to the given value.

func (*AccessRequestPostRequestBuilder) SubscriptionId

SubscriptionId sets the value of the 'subscription_id' attribute to the given value.

func (*AccessRequestPostRequestBuilder) SupportCaseId

SupportCaseId sets the value of the 'support_case_id' attribute to the given value.

type AccessRequestPostRequestList

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

AccessRequestPostRequestList is a list of values of the 'access_request_post_request' type.

func (*AccessRequestPostRequestList) Each

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessRequestPostRequestList) Empty

Empty returns true if the list is empty.

func (*AccessRequestPostRequestList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AccessRequestPostRequestList) Len

Len returns the length of the list.

func (*AccessRequestPostRequestList) Range

func (l *AccessRequestPostRequestList) Range(f func(index int, item *AccessRequestPostRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessRequestPostRequestList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AccessRequestPostRequestListBuilder

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

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

func NewAccessRequestPostRequestList

func NewAccessRequestPostRequestList() *AccessRequestPostRequestListBuilder

NewAccessRequestPostRequestList creates a new builder of 'access_request_post_request' objects.

func (*AccessRequestPostRequestListBuilder) Build

Build creates a list of 'access_request_post_request' objects using the configuration stored in the builder.

func (*AccessRequestPostRequestListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AccessRequestPostRequestListBuilder) Empty

Empty returns true if the list is empty.

func (*AccessRequestPostRequestListBuilder) Items

Items sets the items of the list.

type AccessRequestState

type AccessRequestState string

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

const (
	//
	AccessRequestStateApproved AccessRequestState = "Approved"
	//
	AccessRequestStateDenied AccessRequestState = "Denied"
	//
	AccessRequestStateExpired AccessRequestState = "Expired"
	//
	AccessRequestStatePending AccessRequestState = "Pending"
)

func UnmarshalAccessRequestStateList

func UnmarshalAccessRequestStateList(source interface{}) (items []AccessRequestState, err error)

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.

type AccessRequestStatus

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

AccessRequestStatus represents the values of the 'access_request_status' type.

Representation of an access request status.

func UnmarshalAccessRequestStatus

func UnmarshalAccessRequestStatus(source interface{}) (object *AccessRequestStatus, err error)

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.

func UnmarshalAccessRequestStatusList

func UnmarshalAccessRequestStatusList(source interface{}) (items []*AccessRequestStatus, err error)

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.

func (*AccessRequestStatus) Empty

func (o *AccessRequestStatus) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AccessRequestStatus) ExpiresAt

func (o *AccessRequestStatus) ExpiresAt() time.Time

ExpiresAt returns the value of the 'expires_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Date and time when the access request will expire, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*AccessRequestStatus) GetExpiresAt

func (o *AccessRequestStatus) GetExpiresAt() (value time.Time, ok bool)

GetExpiresAt returns the value of the 'expires_at' attribute and a flag indicating if the attribute has a value.

Date and time when the access request will expire, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*AccessRequestStatus) GetState

func (o *AccessRequestStatus) GetState() (value AccessRequestState, ok bool)

GetState returns the value of the 'state' attribute and a flag indicating if the attribute has a value.

Current state of the Access Request.

func (*AccessRequestStatus) State

State returns the value of the 'state' attribute, or the zero value of the type if the attribute doesn't have a value.

Current state of the Access Request.

type AccessRequestStatusBuilder

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

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

Representation of an access request status.

func NewAccessRequestStatus

func NewAccessRequestStatus() *AccessRequestStatusBuilder

NewAccessRequestStatus creates a new builder of 'access_request_status' objects.

func (*AccessRequestStatusBuilder) Build

func (b *AccessRequestStatusBuilder) Build() (object *AccessRequestStatus, err error)

Build creates a 'access_request_status' object using the configuration stored in the builder.

func (*AccessRequestStatusBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AccessRequestStatusBuilder) Empty

func (b *AccessRequestStatusBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AccessRequestStatusBuilder) ExpiresAt

ExpiresAt sets the value of the 'expires_at' attribute to the given value.

func (*AccessRequestStatusBuilder) State

State sets the value of the 'state' attribute to the given value.

Possible states to an access request status.

type AccessRequestStatusList

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

AccessRequestStatusList is a list of values of the 'access_request_status' type.

func (*AccessRequestStatusList) Each

func (l *AccessRequestStatusList) Each(f func(item *AccessRequestStatus) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessRequestStatusList) Empty

func (l *AccessRequestStatusList) Empty() bool

Empty returns true if the list is empty.

func (*AccessRequestStatusList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AccessRequestStatusList) Len

func (l *AccessRequestStatusList) Len() int

Len returns the length of the list.

func (*AccessRequestStatusList) Range

func (l *AccessRequestStatusList) Range(f func(index int, item *AccessRequestStatus) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessRequestStatusList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AccessRequestStatusListBuilder

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

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

func NewAccessRequestStatusList

func NewAccessRequestStatusList() *AccessRequestStatusListBuilder

NewAccessRequestStatusList creates a new builder of 'access_request_status' objects.

func (*AccessRequestStatusListBuilder) Build

Build creates a list of 'access_request_status' objects using the configuration stored in the builder.

func (*AccessRequestStatusListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AccessRequestStatusListBuilder) Empty

Empty returns true if the list is empty.

func (*AccessRequestStatusListBuilder) Items

Items sets the items of the list.

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 struct {
	// contains filtered or unexported fields
}

Decision represents the values of the 'decision' type.

Representation of an decision.

func UnmarshalDecision

func UnmarshalDecision(source interface{}) (object *Decision, err error)

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

func UnmarshalDecisionList

func UnmarshalDecisionList(source interface{}) (items []*Decision, err error)

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.

func (*Decision) CreatedAt

func (o *Decision) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Date and time when the decision was initially created, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*Decision) DecidedBy

func (o *Decision) DecidedBy() string

DecidedBy returns the value of the 'decided_by' attribute, or the zero value of the type if the attribute doesn't have a value.

User that decided.

func (*Decision) Decision

func (o *Decision) Decision() DecisionDecision

Decision returns the value of the 'decision' attribute, or the zero value of the type if the attribute doesn't have a value.

State of the decision.

func (*Decision) Empty

func (o *Decision) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Decision) GetCreatedAt

func (o *Decision) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

Date and time when the decision was initially created, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*Decision) GetDecidedBy

func (o *Decision) GetDecidedBy() (value string, ok bool)

GetDecidedBy returns the value of the 'decided_by' attribute and a flag indicating if the attribute has a value.

User that decided.

func (*Decision) GetDecision

func (o *Decision) GetDecision() (value DecisionDecision, ok bool)

GetDecision returns the value of the 'decision' attribute and a flag indicating if the attribute has a value.

State of the decision.

func (*Decision) GetHREF

func (o *Decision) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Decision) GetID

func (o *Decision) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Decision) GetJustification

func (o *Decision) GetJustification() (value string, ok bool)

GetJustification returns the value of the 'justification' attribute and a flag indicating if the attribute has a value.

Justification of the decision.

func (*Decision) GetUpdatedAt

func (o *Decision) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

Date and time when the decision was lastly updated, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

func (*Decision) HREF

func (o *Decision) HREF() string

HREF returns the link to the object.

func (*Decision) ID

func (o *Decision) ID() string

ID returns the identifier of the object.

func (*Decision) Justification

func (o *Decision) Justification() string

Justification returns the value of the 'justification' attribute, or the zero value of the type if the attribute doesn't have a value.

Justification of the decision.

func (*Decision) Kind

func (o *Decision) Kind() string

Kind returns the name of the type of the object.

func (o *Decision) Link() bool

Link returns true iif this is a link.

func (*Decision) UpdatedAt

func (o *Decision) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Date and time when the decision was lastly updated, using the format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).

type DecisionBuilder

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

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

Representation of an decision.

func NewDecision

func NewDecision() *DecisionBuilder

NewDecision creates a new builder of 'decision' objects.

func (*DecisionBuilder) Build

func (b *DecisionBuilder) Build() (object *Decision, err error)

Build creates a 'decision' object using the configuration stored in the builder.

func (*DecisionBuilder) Copy

func (b *DecisionBuilder) Copy(object *Decision) *DecisionBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*DecisionBuilder) CreatedAt

func (b *DecisionBuilder) CreatedAt(value time.Time) *DecisionBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*DecisionBuilder) DecidedBy

func (b *DecisionBuilder) DecidedBy(value string) *DecisionBuilder

DecidedBy sets the value of the 'decided_by' attribute to the given value.

func (*DecisionBuilder) Decision

func (b *DecisionBuilder) Decision(value DecisionDecision) *DecisionBuilder

Decision sets the value of the 'decision' attribute to the given value.

Possible decisions to a decision status.

func (*DecisionBuilder) Empty

func (b *DecisionBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*DecisionBuilder) HREF

func (b *DecisionBuilder) HREF(value string) *DecisionBuilder

HREF sets the link to the object.

func (*DecisionBuilder) ID

func (b *DecisionBuilder) ID(value string) *DecisionBuilder

ID sets the identifier of the object.

func (*DecisionBuilder) Justification

func (b *DecisionBuilder) Justification(value string) *DecisionBuilder

Justification sets the value of the 'justification' attribute to the given value.

func (b *DecisionBuilder) Link(value bool) *DecisionBuilder

Link sets the flag that indicates if this is a link.

func (*DecisionBuilder) UpdatedAt

func (b *DecisionBuilder) UpdatedAt(value time.Time) *DecisionBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

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 string

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

const (
	//
	DecisionDecisionApproved DecisionDecision = "Approved"
	//
	DecisionDecisionDenied DecisionDecision = "Denied"
	//
	DecisionDecisionExpired DecisionDecision = "Expired"
)

func UnmarshalDecisionDecisionList

func UnmarshalDecisionDecisionList(source interface{}) (items []DecisionDecision, err error)

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.

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 struct {
	// contains filtered or unexported fields
}

DecisionList is a list of values of the 'decision' type.

func (*DecisionList) Each

func (l *DecisionList) Each(f func(item *Decision) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*DecisionList) Empty

func (l *DecisionList) Empty() bool

Empty returns true if the list is empty.

func (*DecisionList) Get

func (l *DecisionList) Get(i int) *Decision

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*DecisionList) GetHREF

func (l *DecisionList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*DecisionList) HREF

func (l *DecisionList) HREF() string

HREF returns the link to the list.

func (*DecisionList) Kind

func (l *DecisionList) Kind() string

Kind returns the name of the type of the object.

func (*DecisionList) Len

func (l *DecisionList) Len() int

Len returns the length of the list.

func (l *DecisionList) Link() bool

Link returns true iif this is a link.

func (*DecisionList) Range

func (l *DecisionList) Range(f func(index int, item *Decision) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*DecisionList) Slice

func (l *DecisionList) Slice() []*Decision

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type DecisionListBuilder

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

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

func NewDecisionList

func NewDecisionList() *DecisionListBuilder

NewDecisionList creates a new builder of 'decision' objects.

func (*DecisionListBuilder) Build

func (b *DecisionListBuilder) Build() (list *DecisionList, err error)

Build creates a list of 'decision' objects using the configuration stored in the builder.

func (*DecisionListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*DecisionListBuilder) Empty

func (b *DecisionListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*DecisionListBuilder) Items

Items sets the items of the list.

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 struct {
	// contains filtered or unexported fields
}

Metadata contains the version metadata.

func UnmarshalMetadata

func UnmarshalMetadata(source interface{}) (object *Metadata, err error)

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.

func (*Metadata) GetServerVersion

func (m *Metadata) GetServerVersion() (value string, ok bool)

GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.

func (*Metadata) ServerVersion

func (m *Metadata) ServerVersion() string

ServerVersion returns the version of the server.

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