v1

package
v0.0.432 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

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

This section is empty.

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 ReadBooleanList

func ReadBooleanList(iterator *jsoniter.Iterator) []bool

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

func ReadDateList

func ReadDateList(iterator *jsoniter.Iterator) []time.Time

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

func ReadFloatList

func ReadFloatList(iterator *jsoniter.Iterator) []float64

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

func ReadIntegerList

func ReadIntegerList(iterator *jsoniter.Iterator) []int

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

func ReadInterfaceList

func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{}

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

func ReadLongList

func ReadLongList(iterator *jsoniter.Iterator) []int64

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

func ReadStringList

func ReadStringList(iterator *jsoniter.Iterator) []string

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

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.

func WriteAccessProtection

func WriteAccessProtection(object *AccessProtection, stream *jsoniter.Stream)

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

func WriteAccessProtectionList

func WriteAccessProtectionList(list []*AccessProtection, stream *jsoniter.Stream)

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

func WriteAccessRequest

func WriteAccessRequest(object *AccessRequest, stream *jsoniter.Stream)

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

func WriteAccessRequestList

func WriteAccessRequestList(list []*AccessRequest, stream *jsoniter.Stream)

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

func WriteAccessRequestPostRequest

func WriteAccessRequestPostRequest(object *AccessRequestPostRequest, stream *jsoniter.Stream)

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

func WriteAccessRequestPostRequestList

func WriteAccessRequestPostRequestList(list []*AccessRequestPostRequest, stream *jsoniter.Stream)

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

func WriteAccessRequestStateList

func WriteAccessRequestStateList(list []AccessRequestState, stream *jsoniter.Stream)

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

func WriteAccessRequestStatus

func WriteAccessRequestStatus(object *AccessRequestStatus, stream *jsoniter.Stream)

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

func WriteAccessRequestStatusList

func WriteAccessRequestStatusList(list []*AccessRequestStatus, stream *jsoniter.Stream)

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

func WriteBooleanList

func WriteBooleanList(list []bool, stream *jsoniter.Stream)

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

func WriteDateList

func WriteDateList(list []time.Time, stream *jsoniter.Stream)

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

func WriteDecision

func WriteDecision(object *Decision, stream *jsoniter.Stream)

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

func WriteDecisionDecisionList

func WriteDecisionDecisionList(list []DecisionDecision, stream *jsoniter.Stream)

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

func WriteDecisionList

func WriteDecisionList(list []*Decision, stream *jsoniter.Stream)

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

func WriteFloatList

func WriteFloatList(list []float64, stream *jsoniter.Stream)

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

func WriteIntegerList

func WriteIntegerList(list []int, stream *jsoniter.Stream)

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

func WriteInterfaceList

func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream)

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

func WriteLongList

func WriteLongList(list []int64, stream *jsoniter.Stream)

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

func WriteStringList

func WriteStringList(list []string, stream *jsoniter.Stream)

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

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 ReadAccessProtection

func ReadAccessProtection(iterator *jsoniter.Iterator) *AccessProtection

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

func ReadAccessProtectionList

func ReadAccessProtectionList(iterator *jsoniter.Iterator) []*AccessProtection

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

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
}

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 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) Items

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

Items returns the items of the list.

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) SetHREF

func (l *AccessProtectionList) SetHREF(href string)

Items sets the items of the list.

func (*AccessProtectionList) SetItems

func (l *AccessProtectionList) SetItems(items []*AccessProtection)

Items sets the items of the list.

func (l *AccessProtectionList) SetLink(link bool)

Items sets the items of the list.

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 AccessRequest

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

AccessRequest represents the values of the 'access_request' type.

Representation of an access request.

func ReadAccessRequest

func ReadAccessRequest(iterator *jsoniter.Iterator) *AccessRequest

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

func ReadAccessRequestList

func ReadAccessRequestList(iterator *jsoniter.Iterator) []*AccessRequest

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

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 if 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
}

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 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) Items

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

Items returns the items of 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) SetHREF

func (l *AccessRequestList) SetHREF(href string)

Items sets the items of the list.

func (*AccessRequestList) SetItems

func (l *AccessRequestList) SetItems(items []*AccessRequest)

Items sets the items of the list.

func (l *AccessRequestList) SetLink(link bool)

Items sets the items of the list.

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 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 ReadAccessRequestPostRequest

func ReadAccessRequestPostRequest(iterator *jsoniter.Iterator) *AccessRequestPostRequest

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

func ReadAccessRequestPostRequestList

func ReadAccessRequestPostRequestList(iterator *jsoniter.Iterator) []*AccessRequestPostRequest

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

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
}

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) Items

Items returns the items of the list.

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) SetHREF

func (l *AccessRequestPostRequestList) SetHREF(href string)

Items sets the items of the list.

func (*AccessRequestPostRequestList) SetItems

Items sets the items of the list.

func (l *AccessRequestPostRequestList) SetLink(link bool)

Items sets the items of the list.

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 ReadAccessRequestStateList

func ReadAccessRequestStateList(iterator *jsoniter.Iterator) []AccessRequestState

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

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 ReadAccessRequestStatus

func ReadAccessRequestStatus(iterator *jsoniter.Iterator) *AccessRequestStatus

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

func ReadAccessRequestStatusList

func ReadAccessRequestStatusList(iterator *jsoniter.Iterator) []*AccessRequestStatus

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

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
}

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) Items

Items returns the items of the list.

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) SetHREF

func (l *AccessRequestStatusList) SetHREF(href string)

Items sets the items of the list.

func (*AccessRequestStatusList) SetItems

func (l *AccessRequestStatusList) SetItems(items []*AccessRequestStatus)

Items sets the items of the list.

func (l *AccessRequestStatusList) SetLink(link bool)

Items sets the items of the list.

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 Decision

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

Decision represents the values of the 'decision' type.

Representation of an decision.

func ReadDecision

func ReadDecision(iterator *jsoniter.Iterator) *Decision

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

func ReadDecisionList

func ReadDecisionList(iterator *jsoniter.Iterator) []*Decision

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

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 if 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
}

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 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 ReadDecisionDecisionList

func ReadDecisionDecisionList(iterator *jsoniter.Iterator) []DecisionDecision

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

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 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) Items

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

Items returns the items of 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) SetHREF

func (l *DecisionList) SetHREF(href string)

Items sets the items of the list.

func (*DecisionList) SetItems

func (l *DecisionList) SetItems(items []*Decision)

Items sets the items of the list.

func (l *DecisionList) SetLink(link bool)

Items sets the items of the list.

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 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.

Jump to

Keyboard shortcuts

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