Documentation ¶
Index ¶
- Constants
- Variables
- func MarshalAccessProtection(object *AccessProtection, writer io.Writer) error
- func MarshalAccessProtectionList(list []*AccessProtection, writer io.Writer) error
- func MarshalAccessRequest(object *AccessRequest, writer io.Writer) error
- func MarshalAccessRequestList(list []*AccessRequest, writer io.Writer) error
- func MarshalAccessRequestPostRequest(object *AccessRequestPostRequest, writer io.Writer) error
- func MarshalAccessRequestPostRequestList(list []*AccessRequestPostRequest, writer io.Writer) error
- func MarshalAccessRequestStateList(list []AccessRequestState, writer io.Writer) error
- func MarshalAccessRequestStatus(object *AccessRequestStatus, writer io.Writer) error
- func MarshalAccessRequestStatusList(list []*AccessRequestStatus, writer io.Writer) error
- func MarshalBooleanList(list []bool, writer io.Writer) error
- func MarshalDateList(list []time.Time, writer io.Writer) error
- func MarshalDecision(object *Decision, writer io.Writer) error
- func MarshalDecisionDecisionList(list []DecisionDecision, writer io.Writer) error
- func MarshalDecisionList(list []*Decision, writer io.Writer) error
- func MarshalFloatList(list []float64, writer io.Writer) error
- func MarshalIntegerList(list []int, writer io.Writer) error
- func MarshalInterfaceList(list []interface{}, writer io.Writer) error
- func MarshalLongList(list []int64, writer io.Writer) error
- func MarshalMetadata(object *Metadata, writer io.Writer) error
- func MarshalStringList(list []string, writer io.Writer) error
- func UnmarshalBooleanList(source interface{}) (items []bool, err error)
- func UnmarshalDateList(source interface{}) (items []time.Time, err error)
- func UnmarshalFloatList(source interface{}) (items []float64, err error)
- func UnmarshalIntegerList(source interface{}) (items []int, err error)
- func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)
- func UnmarshalLongList(source interface{}) (items []int64, err error)
- func UnmarshalStringList(source interface{}) (items []string, err error)
- type AccessProtection
- type AccessProtectionBuilder
- type AccessProtectionClient
- type AccessProtectionGetRequest
- func (r *AccessProtectionGetRequest) ClusterId(value string) *AccessProtectionGetRequest
- func (r *AccessProtectionGetRequest) Header(name string, value interface{}) *AccessProtectionGetRequest
- func (r *AccessProtectionGetRequest) Impersonate(user string) *AccessProtectionGetRequest
- func (r *AccessProtectionGetRequest) OrganizationId(value string) *AccessProtectionGetRequest
- func (r *AccessProtectionGetRequest) Parameter(name string, value interface{}) *AccessProtectionGetRequest
- func (r *AccessProtectionGetRequest) Send() (result *AccessProtectionGetResponse, err error)
- func (r *AccessProtectionGetRequest) SendContext(ctx context.Context) (result *AccessProtectionGetResponse, err error)
- func (r *AccessProtectionGetRequest) SubscriptionId(value string) *AccessProtectionGetRequest
- type AccessProtectionGetResponse
- func (r *AccessProtectionGetResponse) Body() *AccessProtection
- func (r *AccessProtectionGetResponse) Error() *errors.Error
- func (r *AccessProtectionGetResponse) GetBody() (value *AccessProtection, ok bool)
- func (r *AccessProtectionGetResponse) Header() http.Header
- func (r *AccessProtectionGetResponse) Status() int
- type AccessProtectionList
- func (l *AccessProtectionList) Each(f func(item *AccessProtection) bool)
- func (l *AccessProtectionList) Empty() bool
- func (l *AccessProtectionList) Get(i int) *AccessProtection
- func (l *AccessProtectionList) Len() int
- func (l *AccessProtectionList) Range(f func(index int, item *AccessProtection) bool)
- func (l *AccessProtectionList) Slice() []*AccessProtection
- type AccessProtectionListBuilder
- func (b *AccessProtectionListBuilder) Build() (list *AccessProtectionList, err error)
- func (b *AccessProtectionListBuilder) Copy(list *AccessProtectionList) *AccessProtectionListBuilder
- func (b *AccessProtectionListBuilder) Empty() bool
- func (b *AccessProtectionListBuilder) Items(values ...*AccessProtectionBuilder) *AccessProtectionListBuilder
- type AccessProtectionPollRequest
- func (r *AccessProtectionPollRequest) ClusterId(value string) *AccessProtectionPollRequest
- func (r *AccessProtectionPollRequest) Header(name string, value interface{}) *AccessProtectionPollRequest
- func (r *AccessProtectionPollRequest) Interval(value time.Duration) *AccessProtectionPollRequest
- func (r *AccessProtectionPollRequest) OrganizationId(value string) *AccessProtectionPollRequest
- func (r *AccessProtectionPollRequest) Parameter(name string, value interface{}) *AccessProtectionPollRequest
- func (r *AccessProtectionPollRequest) Predicate(value func(*AccessProtectionGetResponse) bool) *AccessProtectionPollRequest
- func (r *AccessProtectionPollRequest) StartContext(ctx context.Context) (response *AccessProtectionPollResponse, err error)
- func (r *AccessProtectionPollRequest) Status(value int) *AccessProtectionPollRequest
- func (r *AccessProtectionPollRequest) SubscriptionId(value string) *AccessProtectionPollRequest
- type AccessProtectionPollResponse
- func (r *AccessProtectionPollResponse) Body() *AccessProtection
- func (r *AccessProtectionPollResponse) Error() *errors.Error
- func (r *AccessProtectionPollResponse) GetBody() (value *AccessProtection, ok bool)
- func (r *AccessProtectionPollResponse) Header() http.Header
- func (r *AccessProtectionPollResponse) Status() int
- type AccessRequest
- func (o *AccessRequest) ClusterId() string
- func (o *AccessRequest) CreatedAt() time.Time
- func (o *AccessRequest) Deadline() string
- func (o *AccessRequest) DeadlineAt() time.Time
- func (o *AccessRequest) Decisions() []*Decision
- func (o *AccessRequest) Duration() string
- func (o *AccessRequest) Empty() bool
- func (o *AccessRequest) GetClusterId() (value string, ok bool)
- func (o *AccessRequest) GetCreatedAt() (value time.Time, ok bool)
- func (o *AccessRequest) GetDeadline() (value string, ok bool)
- func (o *AccessRequest) GetDeadlineAt() (value time.Time, ok bool)
- func (o *AccessRequest) GetDecisions() (value []*Decision, ok bool)
- func (o *AccessRequest) GetDuration() (value string, ok bool)
- func (o *AccessRequest) GetHREF() (value string, ok bool)
- func (o *AccessRequest) GetID() (value string, ok bool)
- func (o *AccessRequest) GetInternalSupportCaseId() (value string, ok bool)
- func (o *AccessRequest) GetJustification() (value string, ok bool)
- func (o *AccessRequest) GetOrganizationId() (value string, ok bool)
- func (o *AccessRequest) GetRequestedBy() (value string, ok bool)
- func (o *AccessRequest) GetStatus() (value *AccessRequestStatus, ok bool)
- func (o *AccessRequest) GetSubscriptionId() (value string, ok bool)
- func (o *AccessRequest) GetSupportCaseId() (value string, ok bool)
- func (o *AccessRequest) GetUpdatedAt() (value time.Time, ok bool)
- func (o *AccessRequest) HREF() string
- func (o *AccessRequest) ID() string
- func (o *AccessRequest) InternalSupportCaseId() string
- func (o *AccessRequest) Justification() string
- func (o *AccessRequest) Kind() string
- func (o *AccessRequest) Link() bool
- func (o *AccessRequest) OrganizationId() string
- func (o *AccessRequest) RequestedBy() string
- func (o *AccessRequest) Status() *AccessRequestStatus
- func (o *AccessRequest) SubscriptionId() string
- func (o *AccessRequest) SupportCaseId() string
- func (o *AccessRequest) UpdatedAt() time.Time
- type AccessRequestBuilder
- func (b *AccessRequestBuilder) Build() (object *AccessRequest, err error)
- func (b *AccessRequestBuilder) ClusterId(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) Copy(object *AccessRequest) *AccessRequestBuilder
- func (b *AccessRequestBuilder) CreatedAt(value time.Time) *AccessRequestBuilder
- func (b *AccessRequestBuilder) Deadline(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) DeadlineAt(value time.Time) *AccessRequestBuilder
- func (b *AccessRequestBuilder) Decisions(values ...*DecisionBuilder) *AccessRequestBuilder
- func (b *AccessRequestBuilder) Duration(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) Empty() bool
- func (b *AccessRequestBuilder) HREF(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) ID(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) InternalSupportCaseId(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) Justification(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) Link(value bool) *AccessRequestBuilder
- func (b *AccessRequestBuilder) OrganizationId(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) RequestedBy(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) Status(value *AccessRequestStatusBuilder) *AccessRequestBuilder
- func (b *AccessRequestBuilder) SubscriptionId(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) SupportCaseId(value string) *AccessRequestBuilder
- func (b *AccessRequestBuilder) UpdatedAt(value time.Time) *AccessRequestBuilder
- type AccessRequestClient
- type AccessRequestGetRequest
- func (r *AccessRequestGetRequest) Header(name string, value interface{}) *AccessRequestGetRequest
- func (r *AccessRequestGetRequest) Impersonate(user string) *AccessRequestGetRequest
- func (r *AccessRequestGetRequest) Parameter(name string, value interface{}) *AccessRequestGetRequest
- func (r *AccessRequestGetRequest) Send() (result *AccessRequestGetResponse, err error)
- func (r *AccessRequestGetRequest) SendContext(ctx context.Context) (result *AccessRequestGetResponse, err error)
- type AccessRequestGetResponse
- type AccessRequestList
- func (l *AccessRequestList) Each(f func(item *AccessRequest) bool)
- func (l *AccessRequestList) Empty() bool
- func (l *AccessRequestList) Get(i int) *AccessRequest
- func (l *AccessRequestList) GetHREF() (value string, ok bool)
- func (l *AccessRequestList) HREF() string
- func (l *AccessRequestList) Kind() string
- func (l *AccessRequestList) Len() int
- func (l *AccessRequestList) Link() bool
- func (l *AccessRequestList) Range(f func(index int, item *AccessRequest) bool)
- func (l *AccessRequestList) Slice() []*AccessRequest
- type AccessRequestListBuilder
- func (b *AccessRequestListBuilder) Build() (list *AccessRequestList, err error)
- func (b *AccessRequestListBuilder) Copy(list *AccessRequestList) *AccessRequestListBuilder
- func (b *AccessRequestListBuilder) Empty() bool
- func (b *AccessRequestListBuilder) Items(values ...*AccessRequestBuilder) *AccessRequestListBuilder
- type AccessRequestPollRequest
- func (r *AccessRequestPollRequest) Header(name string, value interface{}) *AccessRequestPollRequest
- func (r *AccessRequestPollRequest) Interval(value time.Duration) *AccessRequestPollRequest
- func (r *AccessRequestPollRequest) Parameter(name string, value interface{}) *AccessRequestPollRequest
- func (r *AccessRequestPollRequest) Predicate(value func(*AccessRequestGetResponse) bool) *AccessRequestPollRequest
- func (r *AccessRequestPollRequest) StartContext(ctx context.Context) (response *AccessRequestPollResponse, err error)
- func (r *AccessRequestPollRequest) Status(value int) *AccessRequestPollRequest
- type AccessRequestPollResponse
- type AccessRequestPostRequest
- func (o *AccessRequestPostRequest) ClusterId() string
- func (o *AccessRequestPostRequest) Deadline() string
- func (o *AccessRequestPostRequest) Duration() string
- func (o *AccessRequestPostRequest) Empty() bool
- func (o *AccessRequestPostRequest) GetClusterId() (value string, ok bool)
- func (o *AccessRequestPostRequest) GetDeadline() (value string, ok bool)
- func (o *AccessRequestPostRequest) GetDuration() (value string, ok bool)
- func (o *AccessRequestPostRequest) GetInternalSupportCaseId() (value string, ok bool)
- func (o *AccessRequestPostRequest) GetJustification() (value string, ok bool)
- func (o *AccessRequestPostRequest) GetSubscriptionId() (value string, ok bool)
- func (o *AccessRequestPostRequest) GetSupportCaseId() (value string, ok bool)
- func (o *AccessRequestPostRequest) InternalSupportCaseId() string
- func (o *AccessRequestPostRequest) Justification() string
- func (o *AccessRequestPostRequest) SubscriptionId() string
- func (o *AccessRequestPostRequest) SupportCaseId() string
- type AccessRequestPostRequestBuilder
- func (b *AccessRequestPostRequestBuilder) Build() (object *AccessRequestPostRequest, err error)
- func (b *AccessRequestPostRequestBuilder) ClusterId(value string) *AccessRequestPostRequestBuilder
- func (b *AccessRequestPostRequestBuilder) Copy(object *AccessRequestPostRequest) *AccessRequestPostRequestBuilder
- func (b *AccessRequestPostRequestBuilder) Deadline(value string) *AccessRequestPostRequestBuilder
- func (b *AccessRequestPostRequestBuilder) Duration(value string) *AccessRequestPostRequestBuilder
- func (b *AccessRequestPostRequestBuilder) Empty() bool
- func (b *AccessRequestPostRequestBuilder) InternalSupportCaseId(value string) *AccessRequestPostRequestBuilder
- func (b *AccessRequestPostRequestBuilder) Justification(value string) *AccessRequestPostRequestBuilder
- func (b *AccessRequestPostRequestBuilder) SubscriptionId(value string) *AccessRequestPostRequestBuilder
- func (b *AccessRequestPostRequestBuilder) SupportCaseId(value string) *AccessRequestPostRequestBuilder
- type AccessRequestPostRequestList
- func (l *AccessRequestPostRequestList) Each(f func(item *AccessRequestPostRequest) bool)
- func (l *AccessRequestPostRequestList) Empty() bool
- func (l *AccessRequestPostRequestList) Get(i int) *AccessRequestPostRequest
- func (l *AccessRequestPostRequestList) Len() int
- func (l *AccessRequestPostRequestList) Range(f func(index int, item *AccessRequestPostRequest) bool)
- func (l *AccessRequestPostRequestList) Slice() []*AccessRequestPostRequest
- type AccessRequestPostRequestListBuilder
- func (b *AccessRequestPostRequestListBuilder) Build() (list *AccessRequestPostRequestList, err error)
- func (b *AccessRequestPostRequestListBuilder) Copy(list *AccessRequestPostRequestList) *AccessRequestPostRequestListBuilder
- func (b *AccessRequestPostRequestListBuilder) Empty() bool
- func (b *AccessRequestPostRequestListBuilder) Items(values ...*AccessRequestPostRequestBuilder) *AccessRequestPostRequestListBuilder
- type AccessRequestState
- type AccessRequestStatus
- func (o *AccessRequestStatus) Empty() bool
- func (o *AccessRequestStatus) ExpiresAt() time.Time
- func (o *AccessRequestStatus) GetExpiresAt() (value time.Time, ok bool)
- func (o *AccessRequestStatus) GetState() (value AccessRequestState, ok bool)
- func (o *AccessRequestStatus) State() AccessRequestState
- type AccessRequestStatusBuilder
- func (b *AccessRequestStatusBuilder) Build() (object *AccessRequestStatus, err error)
- func (b *AccessRequestStatusBuilder) Copy(object *AccessRequestStatus) *AccessRequestStatusBuilder
- func (b *AccessRequestStatusBuilder) Empty() bool
- func (b *AccessRequestStatusBuilder) ExpiresAt(value time.Time) *AccessRequestStatusBuilder
- func (b *AccessRequestStatusBuilder) State(value AccessRequestState) *AccessRequestStatusBuilder
- type AccessRequestStatusList
- func (l *AccessRequestStatusList) Each(f func(item *AccessRequestStatus) bool)
- func (l *AccessRequestStatusList) Empty() bool
- func (l *AccessRequestStatusList) Get(i int) *AccessRequestStatus
- func (l *AccessRequestStatusList) Len() int
- func (l *AccessRequestStatusList) Range(f func(index int, item *AccessRequestStatus) bool)
- func (l *AccessRequestStatusList) Slice() []*AccessRequestStatus
- type AccessRequestStatusListBuilder
- func (b *AccessRequestStatusListBuilder) Build() (list *AccessRequestStatusList, err error)
- func (b *AccessRequestStatusListBuilder) Copy(list *AccessRequestStatusList) *AccessRequestStatusListBuilder
- func (b *AccessRequestStatusListBuilder) Empty() bool
- func (b *AccessRequestStatusListBuilder) Items(values ...*AccessRequestStatusBuilder) *AccessRequestStatusListBuilder
- type AccessRequestsClient
- type AccessRequestsListRequest
- func (r *AccessRequestsListRequest) Header(name string, value interface{}) *AccessRequestsListRequest
- func (r *AccessRequestsListRequest) Impersonate(user string) *AccessRequestsListRequest
- func (r *AccessRequestsListRequest) Order(value string) *AccessRequestsListRequest
- func (r *AccessRequestsListRequest) Page(value int) *AccessRequestsListRequest
- func (r *AccessRequestsListRequest) Parameter(name string, value interface{}) *AccessRequestsListRequest
- func (r *AccessRequestsListRequest) Search(value string) *AccessRequestsListRequest
- func (r *AccessRequestsListRequest) Send() (result *AccessRequestsListResponse, err error)
- func (r *AccessRequestsListRequest) SendContext(ctx context.Context) (result *AccessRequestsListResponse, err error)
- func (r *AccessRequestsListRequest) Size(value int) *AccessRequestsListRequest
- type AccessRequestsListResponse
- func (r *AccessRequestsListResponse) Error() *errors.Error
- func (r *AccessRequestsListResponse) GetItems() (value *AccessRequestList, ok bool)
- func (r *AccessRequestsListResponse) GetPage() (value int, ok bool)
- func (r *AccessRequestsListResponse) GetSize() (value int, ok bool)
- func (r *AccessRequestsListResponse) GetTotal() (value int, ok bool)
- func (r *AccessRequestsListResponse) Header() http.Header
- func (r *AccessRequestsListResponse) Items() *AccessRequestList
- func (r *AccessRequestsListResponse) Page() int
- func (r *AccessRequestsListResponse) Size() int
- func (r *AccessRequestsListResponse) Status() int
- func (r *AccessRequestsListResponse) Total() int
- type AccessRequestsPostRequest
- func (r *AccessRequestsPostRequest) Body(value *AccessRequestPostRequest) *AccessRequestsPostRequest
- func (r *AccessRequestsPostRequest) Header(name string, value interface{}) *AccessRequestsPostRequest
- func (r *AccessRequestsPostRequest) Impersonate(user string) *AccessRequestsPostRequest
- func (r *AccessRequestsPostRequest) Parameter(name string, value interface{}) *AccessRequestsPostRequest
- func (r *AccessRequestsPostRequest) Send() (result *AccessRequestsPostResponse, err error)
- func (r *AccessRequestsPostRequest) SendContext(ctx context.Context) (result *AccessRequestsPostResponse, err error)
- type AccessRequestsPostResponse
- func (r *AccessRequestsPostResponse) Body() *AccessRequest
- func (r *AccessRequestsPostResponse) Error() *errors.Error
- func (r *AccessRequestsPostResponse) GetBody() (value *AccessRequest, ok bool)
- func (r *AccessRequestsPostResponse) Header() http.Header
- func (r *AccessRequestsPostResponse) Status() int
- type Client
- type Decision
- func (o *Decision) CreatedAt() time.Time
- func (o *Decision) DecidedBy() string
- func (o *Decision) Decision() DecisionDecision
- func (o *Decision) Empty() bool
- func (o *Decision) GetCreatedAt() (value time.Time, ok bool)
- func (o *Decision) GetDecidedBy() (value string, ok bool)
- func (o *Decision) GetDecision() (value DecisionDecision, ok bool)
- func (o *Decision) GetHREF() (value string, ok bool)
- func (o *Decision) GetID() (value string, ok bool)
- func (o *Decision) GetJustification() (value string, ok bool)
- func (o *Decision) GetUpdatedAt() (value time.Time, ok bool)
- func (o *Decision) HREF() string
- func (o *Decision) ID() string
- func (o *Decision) Justification() string
- func (o *Decision) Kind() string
- func (o *Decision) Link() bool
- func (o *Decision) UpdatedAt() time.Time
- type DecisionBuilder
- func (b *DecisionBuilder) Build() (object *Decision, err error)
- func (b *DecisionBuilder) Copy(object *Decision) *DecisionBuilder
- func (b *DecisionBuilder) CreatedAt(value time.Time) *DecisionBuilder
- func (b *DecisionBuilder) DecidedBy(value string) *DecisionBuilder
- func (b *DecisionBuilder) Decision(value DecisionDecision) *DecisionBuilder
- func (b *DecisionBuilder) Empty() bool
- func (b *DecisionBuilder) HREF(value string) *DecisionBuilder
- func (b *DecisionBuilder) ID(value string) *DecisionBuilder
- func (b *DecisionBuilder) Justification(value string) *DecisionBuilder
- func (b *DecisionBuilder) Link(value bool) *DecisionBuilder
- func (b *DecisionBuilder) UpdatedAt(value time.Time) *DecisionBuilder
- type DecisionClient
- type DecisionDecision
- type DecisionGetRequest
- func (r *DecisionGetRequest) Header(name string, value interface{}) *DecisionGetRequest
- func (r *DecisionGetRequest) Impersonate(user string) *DecisionGetRequest
- func (r *DecisionGetRequest) Parameter(name string, value interface{}) *DecisionGetRequest
- func (r *DecisionGetRequest) Send() (result *DecisionGetResponse, err error)
- func (r *DecisionGetRequest) SendContext(ctx context.Context) (result *DecisionGetResponse, err error)
- type DecisionGetResponse
- type DecisionList
- func (l *DecisionList) Each(f func(item *Decision) bool)
- func (l *DecisionList) Empty() bool
- func (l *DecisionList) Get(i int) *Decision
- func (l *DecisionList) GetHREF() (value string, ok bool)
- func (l *DecisionList) HREF() string
- func (l *DecisionList) Kind() string
- func (l *DecisionList) Len() int
- func (l *DecisionList) Link() bool
- func (l *DecisionList) Range(f func(index int, item *Decision) bool)
- func (l *DecisionList) Slice() []*Decision
- type DecisionListBuilder
- type DecisionPollRequest
- func (r *DecisionPollRequest) Header(name string, value interface{}) *DecisionPollRequest
- func (r *DecisionPollRequest) Interval(value time.Duration) *DecisionPollRequest
- func (r *DecisionPollRequest) Parameter(name string, value interface{}) *DecisionPollRequest
- func (r *DecisionPollRequest) Predicate(value func(*DecisionGetResponse) bool) *DecisionPollRequest
- func (r *DecisionPollRequest) StartContext(ctx context.Context) (response *DecisionPollResponse, err error)
- func (r *DecisionPollRequest) Status(value int) *DecisionPollRequest
- type DecisionPollResponse
- type DecisionsAddRequest
- func (r *DecisionsAddRequest) Body(value *Decision) *DecisionsAddRequest
- func (r *DecisionsAddRequest) Header(name string, value interface{}) *DecisionsAddRequest
- func (r *DecisionsAddRequest) Impersonate(user string) *DecisionsAddRequest
- func (r *DecisionsAddRequest) Parameter(name string, value interface{}) *DecisionsAddRequest
- func (r *DecisionsAddRequest) Send() (result *DecisionsAddResponse, err error)
- func (r *DecisionsAddRequest) SendContext(ctx context.Context) (result *DecisionsAddResponse, err error)
- type DecisionsAddResponse
- type DecisionsClient
- type DecisionsListRequest
- func (r *DecisionsListRequest) Header(name string, value interface{}) *DecisionsListRequest
- func (r *DecisionsListRequest) Impersonate(user string) *DecisionsListRequest
- func (r *DecisionsListRequest) Order(value string) *DecisionsListRequest
- func (r *DecisionsListRequest) Page(value int) *DecisionsListRequest
- func (r *DecisionsListRequest) Parameter(name string, value interface{}) *DecisionsListRequest
- func (r *DecisionsListRequest) Search(value string) *DecisionsListRequest
- func (r *DecisionsListRequest) Send() (result *DecisionsListResponse, err error)
- func (r *DecisionsListRequest) SendContext(ctx context.Context) (result *DecisionsListResponse, err error)
- func (r *DecisionsListRequest) Size(value int) *DecisionsListRequest
- type DecisionsListResponse
- func (r *DecisionsListResponse) Error() *errors.Error
- func (r *DecisionsListResponse) GetItems() (value *DecisionList, ok bool)
- func (r *DecisionsListResponse) GetPage() (value int, ok bool)
- func (r *DecisionsListResponse) GetSize() (value int, ok bool)
- func (r *DecisionsListResponse) GetTotal() (value int, ok bool)
- func (r *DecisionsListResponse) Header() http.Header
- func (r *DecisionsListResponse) Items() *DecisionList
- func (r *DecisionsListResponse) Page() int
- func (r *DecisionsListResponse) Size() int
- func (r *DecisionsListResponse) Status() int
- func (r *DecisionsListResponse) Total() int
- type Metadata
- type MetadataRequest
- func (r *MetadataRequest) Header(name string, value interface{}) *MetadataRequest
- func (r *MetadataRequest) Parameter(name string, value interface{}) *MetadataRequest
- func (r *MetadataRequest) Send() (result *MetadataResponse, err error)
- func (r *MetadataRequest) SendContext(ctx context.Context) (result *MetadataResponse, err error)
- type MetadataResponse
Constants ¶
const AccessProtectionListKind = "AccessProtectionList"
AccessProtectionListKind is the name of the type used to represent list of objects of type 'access_protection'.
const AccessProtectionListLinkKind = "AccessProtectionListLink"
AccessProtectionListLinkKind is the name of the type used to represent links to list of objects of type 'access_protection'.
const AccessProtectionListNilKind = "AccessProtectionListNil"
AccessProtectionNilKind is the name of the type used to nil lists of objects of type 'access_protection'.
const AccessRequestKind = "AccessRequest"
AccessRequestKind is the name of the type used to represent objects of type 'access_request'.
const AccessRequestLinkKind = "AccessRequestLink"
AccessRequestLinkKind is the name of the type used to represent links to objects of type 'access_request'.
const AccessRequestListKind = "AccessRequestList"
AccessRequestListKind is the name of the type used to represent list of objects of type 'access_request'.
const AccessRequestListLinkKind = "AccessRequestListLink"
AccessRequestListLinkKind is the name of the type used to represent links to list of objects of type 'access_request'.
const AccessRequestListNilKind = "AccessRequestListNil"
AccessRequestNilKind is the name of the type used to nil lists of objects of type 'access_request'.
const AccessRequestNilKind = "AccessRequestNil"
AccessRequestNilKind is the name of the type used to nil references to objects of type 'access_request'.
const AccessRequestPostRequestListKind = "AccessRequestPostRequestList"
AccessRequestPostRequestListKind is the name of the type used to represent list of objects of type 'access_request_post_request'.
const AccessRequestPostRequestListLinkKind = "AccessRequestPostRequestListLink"
AccessRequestPostRequestListLinkKind is the name of the type used to represent links to list of objects of type 'access_request_post_request'.
const AccessRequestPostRequestListNilKind = "AccessRequestPostRequestListNil"
AccessRequestPostRequestNilKind is the name of the type used to nil lists of objects of type 'access_request_post_request'.
const AccessRequestStatusListKind = "AccessRequestStatusList"
AccessRequestStatusListKind is the name of the type used to represent list of objects of type 'access_request_status'.
const AccessRequestStatusListLinkKind = "AccessRequestStatusListLink"
AccessRequestStatusListLinkKind is the name of the type used to represent links to list of objects of type 'access_request_status'.
const AccessRequestStatusListNilKind = "AccessRequestStatusListNil"
AccessRequestStatusNilKind is the name of the type used to nil lists of objects of type 'access_request_status'.
const DecisionKind = "Decision"
DecisionKind is the name of the type used to represent objects of type 'decision'.
const DecisionLinkKind = "DecisionLink"
DecisionLinkKind is the name of the type used to represent links to objects of type 'decision'.
const DecisionListKind = "DecisionList"
DecisionListKind is the name of the type used to represent list of objects of type 'decision'.
const DecisionListLinkKind = "DecisionListLink"
DecisionListLinkKind is the name of the type used to represent links to list of objects of type 'decision'.
const DecisionListNilKind = "DecisionListNil"
DecisionNilKind is the name of the type used to nil lists of objects of type 'decision'.
const DecisionNilKind = "DecisionNil"
DecisionNilKind is the name of the type used to nil references to objects of type 'decision'.
Variables ¶
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 ¶
MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.
func MarshalDateList ¶
MarshalDateList writes a list of values of the 'date' type to the given writer.
func MarshalDecision ¶
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 ¶
MarshalDecisionList writes a list of values of the 'decision' type to the given writer.
func MarshalFloatList ¶
MarshalFloatList writes a list of values of the 'float' type to the given writer.
func MarshalIntegerList ¶
MarshalIntegerList writes a list of values of the 'integer' type to the given writer.
func MarshalInterfaceList ¶
MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.
func MarshalLongList ¶
MarshalLongList writes a list of values of the 'long' type to the given writer.
func MarshalMetadata ¶
MarshalMetadata writes a value of the metadata type to the given target, which can be a writer or a JSON encoder.
func MarshalStringList ¶
MarshalStringList writes a list of values of the 'string' type to the given writer.
func UnmarshalBooleanList ¶
UnmarshalBooleanList reads a list of values of the 'boolean' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalDateList ¶
UnmarshalDateList reads a list of values of the 'date' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalFloatList ¶
UnmarshalFloatList reads a list of values of the 'float' type from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalIntegerList ¶
UnmarshalIntegerList reads a list of values of the 'integer' type from the given source, which can be a slice of bytes, a string or a reader.
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 ¶
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 ¶
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 ¶
func (b *AccessProtectionBuilder) Copy(object *AccessProtection) *AccessProtectionBuilder
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 ¶
func (b *AccessProtectionBuilder) Enabled(value bool) *AccessProtectionBuilder
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 ¶
func (c *AccessProtectionClient) Get() *AccessProtectionGetRequest
Get creates a request for the 'get' method.
Retrieves an Access Protection by organization/cluster/subscription query param.
func (*AccessProtectionClient) Poll ¶
func (c *AccessProtectionClient) Poll() *AccessProtectionPollRequest
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 ¶
func (r *AccessProtectionGetRequest) ClusterId(value string) *AccessProtectionGetRequest
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 ¶
func (r *AccessProtectionGetRequest) Impersonate(user string) *AccessProtectionGetRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*AccessProtectionGetRequest) OrganizationId ¶
func (r *AccessProtectionGetRequest) OrganizationId(value string) *AccessProtectionGetRequest
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 ¶
func (r *AccessProtectionGetRequest) Send() (result *AccessProtectionGetResponse, 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 (*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 ¶
func (r *AccessProtectionGetRequest) SubscriptionId(value string) *AccessProtectionGetRequest
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 ¶
func (r *AccessProtectionGetResponse) Body() *AccessProtection
Body returns the value of the 'body' parameter.
AccessProtection status response.
func (*AccessProtectionGetResponse) Error ¶
func (r *AccessProtectionGetResponse) Error() *errors.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 ¶
func (r *AccessProtectionGetResponse) Header() http.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 ¶
func (l *AccessProtectionList) Get(i int) *AccessProtection
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 ¶
func (b *AccessProtectionListBuilder) Copy(list *AccessProtectionList) *AccessProtectionListBuilder
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 ¶
func (b *AccessProtectionListBuilder) Items(values ...*AccessProtectionBuilder) *AccessProtectionListBuilder
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 ¶
func (r *AccessProtectionPollRequest) ClusterId(value string) *AccessProtectionPollRequest
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 ¶
func (r *AccessProtectionPollRequest) Interval(value time.Duration) *AccessProtectionPollRequest
Interval sets the polling interval. This parameter is mandatory and must be greater than zero.
func (*AccessProtectionPollRequest) OrganizationId ¶
func (r *AccessProtectionPollRequest) OrganizationId(value string) *AccessProtectionPollRequest
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 ¶
func (r *AccessProtectionPollRequest) Predicate(value func(*AccessProtectionGetResponse) bool) *AccessProtectionPollRequest
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 ¶
func (r *AccessProtectionPollRequest) Status(value int) *AccessProtectionPollRequest
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 ¶
func (r *AccessProtectionPollRequest) SubscriptionId(value string) *AccessProtectionPollRequest
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 ¶
func (r *AccessProtectionPollResponse) Body() *AccessProtection
Body returns the value of the 'body' parameter.
AccessProtection status response.
func (*AccessProtectionPollResponse) Error ¶
func (r *AccessProtectionPollResponse) Error() *errors.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 ¶
func (r *AccessProtectionPollResponse) Header() http.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 (*AccessRequest) Link ¶
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 ¶
func (b *AccessRequestBuilder) Copy(object *AccessRequest) *AccessRequestBuilder
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 ¶
func (b *AccessRequestBuilder) HREF(value string) *AccessRequestBuilder
HREF sets the link to the object.
func (*AccessRequestBuilder) ID ¶
func (b *AccessRequestBuilder) ID(value string) *AccessRequestBuilder
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.
func (*AccessRequestBuilder) Link ¶
func (b *AccessRequestBuilder) Link(value bool) *AccessRequestBuilder
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 ¶
func (b *AccessRequestBuilder) Status(value *AccessRequestStatusBuilder) *AccessRequestBuilder
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 ¶
func (c *AccessRequestClient) Get() *AccessRequestGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the access request.
func (*AccessRequestClient) Poll ¶
func (c *AccessRequestClient) Poll() *AccessRequestPollRequest
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 ¶
func (r *AccessRequestGetRequest) Impersonate(user string) *AccessRequestGetRequest
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 ¶
func (r *AccessRequestGetResponse) Body() *AccessRequest
Body returns the value of the 'body' parameter.
func (*AccessRequestGetResponse) Error ¶
func (r *AccessRequestGetResponse) Error() *errors.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 (*AccessRequestList) Link ¶
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 ¶
func (b *AccessRequestListBuilder) Copy(list *AccessRequestList) *AccessRequestListBuilder
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 ¶
func (b *AccessRequestListBuilder) Items(values ...*AccessRequestBuilder) *AccessRequestListBuilder
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 ¶
func (r *AccessRequestPollRequest) Interval(value time.Duration) *AccessRequestPollRequest
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 ¶
func (r *AccessRequestPollRequest) Predicate(value func(*AccessRequestGetResponse) bool) *AccessRequestPollRequest
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 ¶
func (r *AccessRequestPollRequest) Status(value int) *AccessRequestPollRequest
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 ¶
func (r *AccessRequestPollResponse) Body() *AccessRequest
Body returns the value of the 'body' parameter.
func (*AccessRequestPollResponse) Error ¶
func (r *AccessRequestPollResponse) Error() *errors.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 ¶
func (r *AccessRequestPollResponse) Header() http.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 ¶
func (b *AccessRequestPostRequestBuilder) Build() (object *AccessRequestPostRequest, err error)
Build creates a 'access_request_post_request' object using the configuration stored in the builder.
func (*AccessRequestPostRequestBuilder) ClusterId ¶
func (b *AccessRequestPostRequestBuilder) ClusterId(value string) *AccessRequestPostRequestBuilder
ClusterId sets the value of the 'cluster_id' attribute to the given value.
func (*AccessRequestPostRequestBuilder) Copy ¶
func (b *AccessRequestPostRequestBuilder) Copy(object *AccessRequestPostRequest) *AccessRequestPostRequestBuilder
Copy copies the attributes of the given object into this builder, discarding any previous values.
func (*AccessRequestPostRequestBuilder) Deadline ¶
func (b *AccessRequestPostRequestBuilder) Deadline(value string) *AccessRequestPostRequestBuilder
Deadline sets the value of the 'deadline' attribute to the given value.
func (*AccessRequestPostRequestBuilder) Duration ¶
func (b *AccessRequestPostRequestBuilder) Duration(value string) *AccessRequestPostRequestBuilder
Duration sets the value of the 'duration' attribute to the given value.
func (*AccessRequestPostRequestBuilder) Empty ¶
func (b *AccessRequestPostRequestBuilder) Empty() bool
Empty returns true if the builder is empty, i.e. no attribute has a value.
func (*AccessRequestPostRequestBuilder) InternalSupportCaseId ¶
func (b *AccessRequestPostRequestBuilder) InternalSupportCaseId(value string) *AccessRequestPostRequestBuilder
InternalSupportCaseId sets the value of the 'internal_support_case_id' attribute to the given value.
func (*AccessRequestPostRequestBuilder) Justification ¶
func (b *AccessRequestPostRequestBuilder) Justification(value string) *AccessRequestPostRequestBuilder
Justification sets the value of the 'justification' attribute to the given value.
func (*AccessRequestPostRequestBuilder) SubscriptionId ¶
func (b *AccessRequestPostRequestBuilder) SubscriptionId(value string) *AccessRequestPostRequestBuilder
SubscriptionId sets the value of the 'subscription_id' attribute to the given value.
func (*AccessRequestPostRequestBuilder) SupportCaseId ¶
func (b *AccessRequestPostRequestBuilder) SupportCaseId(value string) *AccessRequestPostRequestBuilder
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 ¶
func (l *AccessRequestPostRequestList) Each(f func(item *AccessRequestPostRequest) 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 (*AccessRequestPostRequestList) Empty ¶
func (l *AccessRequestPostRequestList) Empty() bool
Empty returns true if the list is empty.
func (*AccessRequestPostRequestList) Get ¶
func (l *AccessRequestPostRequestList) Get(i int) *AccessRequestPostRequest
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 ¶
func (l *AccessRequestPostRequestList) Len() int
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 ¶
func (l *AccessRequestPostRequestList) Slice() []*AccessRequestPostRequest
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 ¶
func (b *AccessRequestPostRequestListBuilder) Build() (list *AccessRequestPostRequestList, err error)
Build creates a list of 'access_request_post_request' objects using the configuration stored in the builder.
func (*AccessRequestPostRequestListBuilder) Copy ¶
func (b *AccessRequestPostRequestListBuilder) Copy(list *AccessRequestPostRequestList) *AccessRequestPostRequestListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*AccessRequestPostRequestListBuilder) Empty ¶
func (b *AccessRequestPostRequestListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*AccessRequestPostRequestListBuilder) Items ¶
func (b *AccessRequestPostRequestListBuilder) Items(values ...*AccessRequestPostRequestBuilder) *AccessRequestPostRequestListBuilder
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 ¶
func (o *AccessRequestStatus) State() AccessRequestState
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 ¶
func (b *AccessRequestStatusBuilder) Copy(object *AccessRequestStatus) *AccessRequestStatusBuilder
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 ¶
func (b *AccessRequestStatusBuilder) ExpiresAt(value time.Time) *AccessRequestStatusBuilder
ExpiresAt sets the value of the 'expires_at' attribute to the given value.
func (*AccessRequestStatusBuilder) State ¶
func (b *AccessRequestStatusBuilder) State(value AccessRequestState) *AccessRequestStatusBuilder
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 ¶
func (l *AccessRequestStatusList) Get(i int) *AccessRequestStatus
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 ¶
func (l *AccessRequestStatusList) Slice() []*AccessRequestStatus
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 ¶
func (b *AccessRequestStatusListBuilder) Build() (list *AccessRequestStatusList, err error)
Build creates a list of 'access_request_status' objects using the configuration stored in the builder.
func (*AccessRequestStatusListBuilder) Copy ¶
func (b *AccessRequestStatusListBuilder) Copy(list *AccessRequestStatusList) *AccessRequestStatusListBuilder
Copy copies the items of the given list into this builder, discarding any previous items.
func (*AccessRequestStatusListBuilder) Empty ¶
func (b *AccessRequestStatusListBuilder) Empty() bool
Empty returns true if the list is empty.
func (*AccessRequestStatusListBuilder) Items ¶
func (b *AccessRequestStatusListBuilder) Items(values ...*AccessRequestStatusBuilder) *AccessRequestStatusListBuilder
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 ¶
func (c *AccessRequestsClient) List() *AccessRequestsListRequest
List creates a request for the 'list' method.
Retrieves the list of access requests.
func (*AccessRequestsClient) Post ¶
func (c *AccessRequestsClient) Post() *AccessRequestsPostRequest
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 ¶
func (r *AccessRequestsListRequest) Impersonate(user string) *AccessRequestsListRequest
Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.
func (*AccessRequestsListRequest) Order ¶
func (r *AccessRequestsListRequest) Order(value string) *AccessRequestsListRequest
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 ¶
func (r *AccessRequestsListRequest) Page(value int) *AccessRequestsListRequest
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 ¶
func (r *AccessRequestsListRequest) Search(value string) *AccessRequestsListRequest
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 ¶
func (r *AccessRequestsListRequest) Send() (result *AccessRequestsListResponse, 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 (*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 ¶
func (r *AccessRequestsListRequest) Size(value int) *AccessRequestsListRequest
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 ¶
func (r *AccessRequestsListResponse) Error() *errors.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 ¶
func (r *AccessRequestsListResponse) Header() http.Header
Header returns header of the response.
func (*AccessRequestsListResponse) Items ¶
func (r *AccessRequestsListResponse) Items() *AccessRequestList
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 ¶
func (r *AccessRequestsPostRequest) Body(value *AccessRequestPostRequest) *AccessRequestsPostRequest
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 ¶
func (r *AccessRequestsPostRequest) Impersonate(user string) *AccessRequestsPostRequest
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 ¶
func (r *AccessRequestsPostRequest) Send() (result *AccessRequestsPostResponse, 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 (*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 ¶
func (r *AccessRequestsPostResponse) Body() *AccessRequest
Body returns the value of the 'body' parameter.
Newly access request.
func (*AccessRequestsPostResponse) Error ¶
func (r *AccessRequestsPostResponse) Error() *errors.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 ¶
func (r *AccessRequestsPostResponse) Header() http.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 ¶
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 ¶
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 ¶
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 ¶
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) GetCreatedAt ¶
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 ¶
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 ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Decision) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Decision) GetJustification ¶
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 ¶
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) Justification ¶
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) UpdatedAt ¶
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 (*DecisionBuilder) Link ¶
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 ¶
func (c *DecisionClient) Get() *DecisionGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the decision.
func (*DecisionClient) Poll ¶
func (c *DecisionClient) Poll() *DecisionPollRequest
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) Kind ¶
func (l *DecisionList) Kind() string
Kind returns the name of the type of the object.
func (*DecisionList) Link ¶
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 ¶
func (b *DecisionListBuilder) Copy(list *DecisionList) *DecisionListBuilder
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 ¶
func (b *DecisionListBuilder) Items(values ...*DecisionBuilder) *DecisionListBuilder
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 ¶
func (r *DecisionPollRequest) Interval(value time.Duration) *DecisionPollRequest
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 ¶
func (r *DecisionPollRequest) Predicate(value func(*DecisionGetResponse) bool) *DecisionPollRequest
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 ¶
func (r *DecisionsAddRequest) Body(value *Decision) *DecisionsAddRequest
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 ¶
func (c *DecisionsClient) Add() *DecisionsAddRequest
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 ¶
func (c *DecisionsClient) List() *DecisionsListRequest
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 ¶
func (r *DecisionsListRequest) Order(value string) *DecisionsListRequest
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 ¶
func (r *DecisionsListRequest) Page(value int) *DecisionsListRequest
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 ¶
func (r *DecisionsListRequest) Search(value string) *DecisionsListRequest
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 ¶
func (r *DecisionsListRequest) Size(value int) *DecisionsListRequest
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 ¶
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 ¶
GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.
func (*Metadata) ServerVersion ¶
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 ¶
- access_protection_builder.go
- access_protection_client.go
- access_protection_list_builder.go
- access_protection_list_type_json.go
- access_protection_resource_json.go
- access_protection_type.go
- access_protection_type_json.go
- access_request_builder.go
- access_request_client.go
- access_request_list_builder.go
- access_request_list_type_json.go
- access_request_post_request_builder.go
- access_request_post_request_list_builder.go
- access_request_post_request_list_type_json.go
- access_request_post_request_type.go
- access_request_post_request_type_json.go
- access_request_resource_json.go
- access_request_state_list_type_json.go
- access_request_state_type.go
- access_request_status_builder.go
- access_request_status_list_builder.go
- access_request_status_list_type_json.go
- access_request_status_type.go
- access_request_status_type_json.go
- access_request_type.go
- access_request_type_json.go
- access_requests_client.go
- access_requests_resource_json.go
- boolean_list_type_json.go
- date_list_type_json.go
- decision_builder.go
- decision_client.go
- decision_decision_list_type_json.go
- decision_decision_type.go
- decision_list_builder.go
- decision_list_type_json.go
- decision_resource_json.go
- decision_type.go
- decision_type_json.go
- decisions_client.go
- decisions_resource_json.go
- errors.go
- float_list_type_json.go
- integer_list_type_json.go
- interface_list_type_json.go
- long_list_type_json.go
- metadata_client.go
- metadata_reader.go
- metadata_type.go
- openapi.go
- root_client.go
- root_resource_json.go
- string_list_type_json.go