v1

package
v0.1.46 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 12 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalAccessReviewRequest

func MarshalAccessReviewRequest(object *AccessReviewRequest, target interface{}) error

MarshalAccessReviewRequest writes a value of the 'access_review_request' to the given target, which can be a writer or a JSON encoder.

func MarshalAccessReviewResponse

func MarshalAccessReviewResponse(object *AccessReviewResponse, target interface{}) error

MarshalAccessReviewResponse writes a value of the 'access_review_response' to the given target, which can be a writer or a JSON encoder.

func MarshalExportControlReviewRequest

func MarshalExportControlReviewRequest(object *ExportControlReviewRequest, target interface{}) error

MarshalExportControlReviewRequest writes a value of the 'export_control_review_request' to the given target, which can be a writer or a JSON encoder.

func MarshalExportControlReviewResponse

func MarshalExportControlReviewResponse(object *ExportControlReviewResponse, target interface{}) error

MarshalExportControlReviewResponse writes a value of the 'export_control_review_response' to the given target, which can be a writer or a JSON encoder.

func MarshalSelfAccessReviewRequest

func MarshalSelfAccessReviewRequest(object *SelfAccessReviewRequest, target interface{}) error

MarshalSelfAccessReviewRequest writes a value of the 'self_access_review_request' to the given target, which can be a writer or a JSON encoder.

func MarshalSelfAccessReviewResponse

func MarshalSelfAccessReviewResponse(object *SelfAccessReviewResponse, target interface{}) error

MarshalSelfAccessReviewResponse writes a value of the 'self_access_review_response' to the given target, which can be a writer or a JSON encoder.

Types

type AccessReviewAdapter added in v0.1.44

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

AccessReviewAdapter represents the structs that adapts Requests and Response to internal structs.

func NewAccessReviewAdapter added in v0.1.44

func NewAccessReviewAdapter(server AccessReviewServer, router *mux.Router) *AccessReviewAdapter

func (*AccessReviewAdapter) ServeHTTP added in v0.1.44

func (a *AccessReviewAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)

type AccessReviewClient

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

AccessReviewClient is the client of the 'access_review' resource.

Manages access review.

func NewAccessReviewClient

func NewAccessReviewClient(transport http.RoundTripper, path string, metric string) *AccessReviewClient

NewAccessReviewClient creates a new client for the 'access_review' resource using the given transport to sned the requests and receive the responses.

func (*AccessReviewClient) Post

Post creates a request for the 'post' method.

Reviews a user's access to a resource

type AccessReviewPostRequest

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

AccessReviewPostRequest is the request for the 'post' method.

func (*AccessReviewPostRequest) Header

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

Header adds a request header.

func (*AccessReviewPostRequest) Parameter

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

Parameter adds a query parameter.

func (*AccessReviewPostRequest) Request

Request sets the value of the 'request' parameter.

func (*AccessReviewPostRequest) Send

func (r *AccessReviewPostRequest) Send() (result *AccessReviewPostResponse, 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 (*AccessReviewPostRequest) SendContext

func (r *AccessReviewPostRequest) SendContext(ctx context.Context) (result *AccessReviewPostResponse, err error)

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

type AccessReviewPostResponse

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

AccessReviewPostResponse is the response for the 'post' method.

func (*AccessReviewPostResponse) Error

Error returns the response error.

func (*AccessReviewPostResponse) GetResponse

func (r *AccessReviewPostResponse) GetResponse() (value *AccessReviewResponse, ok bool)

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*AccessReviewPostResponse) Header

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

Header returns header of the response.

func (*AccessReviewPostResponse) Response

Response returns the value of the 'response' parameter.

func (*AccessReviewPostResponse) Status

func (r *AccessReviewPostResponse) Status() int

Status returns the response status code.

type AccessReviewPostServerRequest

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

AccessReviewPostServerRequest is the request for the 'post' method.

func (*AccessReviewPostServerRequest) GetRequest

func (r *AccessReviewPostServerRequest) GetRequest() (value *AccessReviewRequest, ok bool)

GetRequest returns the value of the 'request' parameter and a flag indicating if the parameter has a value.

func (*AccessReviewPostServerRequest) Request

Request returns the value of the 'request' parameter.

type AccessReviewPostServerResponse

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

AccessReviewPostServerResponse is the response for the 'post' method.

func (*AccessReviewPostServerResponse) Response

Response sets the value of the 'response' parameter.

func (*AccessReviewPostServerResponse) Status

Status sets the status code.

type AccessReviewRequest

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

AccessReviewRequest represents the values of the 'access_review_request' type.

Representation of an access review

func UnmarshalAccessReviewRequest

func UnmarshalAccessReviewRequest(source interface{}) (object *AccessReviewRequest, err error)

UnmarshalAccessReviewRequest reads a value of the 'access_review_request' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.

func (*AccessReviewRequest) AccountUsername

func (o *AccessReviewRequest) AccountUsername() string

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

Defines the username of the account of which access is being reviewed

func (*AccessReviewRequest) Action

func (o *AccessReviewRequest) Action() string

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

Indicates the action, one of: [get,list,create,delete,update]

func (*AccessReviewRequest) ClusterID

func (o *AccessReviewRequest) 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.

Indicates which Cluster the resource type belongs to

func (*AccessReviewRequest) Empty

func (o *AccessReviewRequest) Empty() bool

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

func (*AccessReviewRequest) GetAccountUsername

func (o *AccessReviewRequest) GetAccountUsername() (value string, ok bool)

GetAccountUsername returns the value of the 'account_username' attribute and a flag indicating if the attribute has a value.

Defines the username of the account of which access is being reviewed

func (*AccessReviewRequest) GetAction

func (o *AccessReviewRequest) GetAction() (value string, ok bool)

GetAction returns the value of the 'action' attribute and a flag indicating if the attribute has a value.

Indicates the action, one of: [get,list,create,delete,update]

func (*AccessReviewRequest) GetClusterID

func (o *AccessReviewRequest) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Cluster the resource type belongs to

func (*AccessReviewRequest) GetOrganizationID

func (o *AccessReviewRequest) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Organization the resource type belongs to

func (*AccessReviewRequest) GetResourceType

func (o *AccessReviewRequest) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

Indicates the type of the resource an action would be taken on. See uhc-account-manager/openapi/openapi.yaml for a list of possible values

func (*AccessReviewRequest) GetSubscriptionID

func (o *AccessReviewRequest) GetSubscriptionID() (value string, ok bool)

GetSubscriptionID returns the value of the 'subscription_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Subscription the resource type belongs to

func (*AccessReviewRequest) OrganizationID

func (o *AccessReviewRequest) 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.

Indicates which Organization the resource type belongs to

func (*AccessReviewRequest) ResourceType

func (o *AccessReviewRequest) ResourceType() string

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

Indicates the type of the resource an action would be taken on. See uhc-account-manager/openapi/openapi.yaml for a list of possible values

func (*AccessReviewRequest) SubscriptionID

func (o *AccessReviewRequest) 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.

Indicates which Subscription the resource type belongs to

type AccessReviewRequestBuilder

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

AccessReviewRequestBuilder contains the data and logic needed to build 'access_review_request' objects.

Representation of an access review

func NewAccessReviewRequest

func NewAccessReviewRequest() *AccessReviewRequestBuilder

NewAccessReviewRequest creates a new builder of 'access_review_request' objects.

func (*AccessReviewRequestBuilder) AccountUsername

AccountUsername sets the value of the 'account_username' attribute to the given value.

func (*AccessReviewRequestBuilder) Action

Action sets the value of the 'action' attribute to the given value.

func (*AccessReviewRequestBuilder) Build

func (b *AccessReviewRequestBuilder) Build() (object *AccessReviewRequest, err error)

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

func (*AccessReviewRequestBuilder) ClusterID

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*AccessReviewRequestBuilder) Copy

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

func (*AccessReviewRequestBuilder) OrganizationID

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*AccessReviewRequestBuilder) ResourceType

ResourceType sets the value of the 'resource_type' attribute to the given value.

func (*AccessReviewRequestBuilder) SubscriptionID

SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.

type AccessReviewRequestList

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

AccessReviewRequestList is a list of values of the 'access_review_request' type.

func UnmarshalAccessReviewRequestList

func UnmarshalAccessReviewRequestList(source interface{}) (list *AccessReviewRequestList, err error)

UnmarshalAccessReviewRequestList reads a list of values of the 'access_review_request' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.

func (*AccessReviewRequestList) Each

func (l *AccessReviewRequestList) Each(f func(item *AccessReviewRequest) 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 (*AccessReviewRequestList) Empty

func (l *AccessReviewRequestList) Empty() bool

Empty returns true if the list is empty.

func (*AccessReviewRequestList) Get

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

func (*AccessReviewRequestList) Len

func (l *AccessReviewRequestList) Len() int

Len returns the length of the list.

func (*AccessReviewRequestList) Range

func (l *AccessReviewRequestList) Range(f func(index int, item *AccessReviewRequest) 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 (*AccessReviewRequestList) Slice

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

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

type AccessReviewRequestListBuilder

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

AccessReviewRequestListBuilder contains the data and logic needed to build 'access_review_request' objects.

func NewAccessReviewRequestList

func NewAccessReviewRequestList() *AccessReviewRequestListBuilder

NewAccessReviewRequestList creates a new builder of 'access_review_request' objects.

func (*AccessReviewRequestListBuilder) Build

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

func (*AccessReviewRequestListBuilder) Items

Items sets the items of the list.

type AccessReviewResponse

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

AccessReviewResponse represents the values of the 'access_review_response' type.

Representation of an access review response

func UnmarshalAccessReviewResponse

func UnmarshalAccessReviewResponse(source interface{}) (object *AccessReviewResponse, err error)

UnmarshalAccessReviewResponse reads a value of the 'access_review_response' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.

func (*AccessReviewResponse) AccountUsername

func (o *AccessReviewResponse) AccountUsername() string

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

Defines the username of the account of which access is being reviewed

func (*AccessReviewResponse) Action

func (o *AccessReviewResponse) Action() string

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

Indicates the action, one of: [get,list,create,delete,update]

func (*AccessReviewResponse) Allowed

func (o *AccessReviewResponse) Allowed() bool

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

Defines whether the action on the specified resource type is allowed

func (*AccessReviewResponse) ClusterID

func (o *AccessReviewResponse) 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.

Indicates which Cluster the resource type belongs to

func (*AccessReviewResponse) Empty

func (o *AccessReviewResponse) Empty() bool

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

func (*AccessReviewResponse) GetAccountUsername

func (o *AccessReviewResponse) GetAccountUsername() (value string, ok bool)

GetAccountUsername returns the value of the 'account_username' attribute and a flag indicating if the attribute has a value.

Defines the username of the account of which access is being reviewed

func (*AccessReviewResponse) GetAction

func (o *AccessReviewResponse) GetAction() (value string, ok bool)

GetAction returns the value of the 'action' attribute and a flag indicating if the attribute has a value.

Indicates the action, one of: [get,list,create,delete,update]

func (*AccessReviewResponse) GetAllowed

func (o *AccessReviewResponse) GetAllowed() (value bool, ok bool)

GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.

Defines whether the action on the specified resource type is allowed

func (*AccessReviewResponse) GetClusterID

func (o *AccessReviewResponse) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Cluster the resource type belongs to

func (*AccessReviewResponse) GetOrganizationID

func (o *AccessReviewResponse) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Organization the resource type belongs to

func (*AccessReviewResponse) GetResourceType

func (o *AccessReviewResponse) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

Indicates the type of the resource an action would be taken on. See uhc-account-manager/openapi/openapi.yaml for a list of possible values

func (*AccessReviewResponse) GetSubscriptionID

func (o *AccessReviewResponse) GetSubscriptionID() (value string, ok bool)

GetSubscriptionID returns the value of the 'subscription_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Subscription the resource type belongs to

func (*AccessReviewResponse) OrganizationID

func (o *AccessReviewResponse) 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.

Indicates which Organization the resource type belongs to

func (*AccessReviewResponse) ResourceType

func (o *AccessReviewResponse) ResourceType() string

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

Indicates the type of the resource an action would be taken on. See uhc-account-manager/openapi/openapi.yaml for a list of possible values

func (*AccessReviewResponse) SubscriptionID

func (o *AccessReviewResponse) 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.

Indicates which Subscription the resource type belongs to

type AccessReviewResponseBuilder

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

AccessReviewResponseBuilder contains the data and logic needed to build 'access_review_response' objects.

Representation of an access review response

func NewAccessReviewResponse

func NewAccessReviewResponse() *AccessReviewResponseBuilder

NewAccessReviewResponse creates a new builder of 'access_review_response' objects.

func (*AccessReviewResponseBuilder) AccountUsername

AccountUsername sets the value of the 'account_username' attribute to the given value.

func (*AccessReviewResponseBuilder) Action

Action sets the value of the 'action' attribute to the given value.

func (*AccessReviewResponseBuilder) Allowed

Allowed sets the value of the 'allowed' attribute to the given value.

func (*AccessReviewResponseBuilder) Build

func (b *AccessReviewResponseBuilder) Build() (object *AccessReviewResponse, err error)

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

func (*AccessReviewResponseBuilder) ClusterID

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*AccessReviewResponseBuilder) Copy

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

func (*AccessReviewResponseBuilder) OrganizationID

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*AccessReviewResponseBuilder) ResourceType

ResourceType sets the value of the 'resource_type' attribute to the given value.

func (*AccessReviewResponseBuilder) SubscriptionID

SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.

type AccessReviewResponseList

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

AccessReviewResponseList is a list of values of the 'access_review_response' type.

func UnmarshalAccessReviewResponseList

func UnmarshalAccessReviewResponseList(source interface{}) (list *AccessReviewResponseList, err error)

UnmarshalAccessReviewResponseList reads a list of values of the 'access_review_response' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.

func (*AccessReviewResponseList) Each

func (l *AccessReviewResponseList) Each(f func(item *AccessReviewResponse) 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 (*AccessReviewResponseList) Empty

func (l *AccessReviewResponseList) Empty() bool

Empty returns true if the list is empty.

func (*AccessReviewResponseList) Get

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

func (*AccessReviewResponseList) Len

func (l *AccessReviewResponseList) Len() int

Len returns the length of the list.

func (*AccessReviewResponseList) Range

func (l *AccessReviewResponseList) Range(f func(index int, item *AccessReviewResponse) 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 (*AccessReviewResponseList) Slice

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

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

type AccessReviewResponseListBuilder

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

AccessReviewResponseListBuilder contains the data and logic needed to build 'access_review_response' objects.

func NewAccessReviewResponseList

func NewAccessReviewResponseList() *AccessReviewResponseListBuilder

NewAccessReviewResponseList creates a new builder of 'access_review_response' objects.

func (*AccessReviewResponseListBuilder) Build

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

func (*AccessReviewResponseListBuilder) Items

Items sets the items of the list.

type AccessReviewServer

type AccessReviewServer interface {

	// Post handles a request for the 'post' method.
	//
	// Reviews a user's access to a resource
	Post(ctx context.Context, request *AccessReviewPostServerRequest, response *AccessReviewPostServerResponse) error
}

AccessReviewServer represents the interface the manages the 'access_review' resource.

type ExportControlReviewAdapter added in v0.1.44

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

ExportControlReviewAdapter represents the structs that adapts Requests and Response to internal structs.

func NewExportControlReviewAdapter added in v0.1.44

func NewExportControlReviewAdapter(server ExportControlReviewServer, router *mux.Router) *ExportControlReviewAdapter

func (*ExportControlReviewAdapter) ServeHTTP added in v0.1.44

type ExportControlReviewClient

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

ExportControlReviewClient is the client of the 'export_control_review' resource.

Manages export control review.

func NewExportControlReviewClient

func NewExportControlReviewClient(transport http.RoundTripper, path string, metric string) *ExportControlReviewClient

NewExportControlReviewClient creates a new client for the 'export_control_review' resource using the given transport to sned the requests and receive the responses.

func (*ExportControlReviewClient) Post

Post creates a request for the 'post' method.

Screens a user by account user name.

type ExportControlReviewPostRequest

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

ExportControlReviewPostRequest is the request for the 'post' method.

func (*ExportControlReviewPostRequest) Header

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

Header adds a request header.

func (*ExportControlReviewPostRequest) Parameter

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

Parameter adds a query parameter.

func (*ExportControlReviewPostRequest) Request

Request sets the value of the 'request' parameter.

func (*ExportControlReviewPostRequest) Send

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

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

func (*ExportControlReviewPostRequest) SendContext

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

type ExportControlReviewPostResponse

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

ExportControlReviewPostResponse is the response for the 'post' method.

func (*ExportControlReviewPostResponse) Error

Error returns the response error.

func (*ExportControlReviewPostResponse) GetResponse

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*ExportControlReviewPostResponse) Header

Header returns header of the response.

func (*ExportControlReviewPostResponse) Response

Response returns the value of the 'response' parameter.

func (*ExportControlReviewPostResponse) Status

Status returns the response status code.

type ExportControlReviewPostServerRequest

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

ExportControlReviewPostServerRequest is the request for the 'post' method.

func (*ExportControlReviewPostServerRequest) GetRequest

GetRequest returns the value of the 'request' parameter and a flag indicating if the parameter has a value.

func (*ExportControlReviewPostServerRequest) Request

Request returns the value of the 'request' parameter.

type ExportControlReviewPostServerResponse

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

ExportControlReviewPostServerResponse is the response for the 'post' method.

func (*ExportControlReviewPostServerResponse) Response

Response sets the value of the 'response' parameter.

func (*ExportControlReviewPostServerResponse) Status

Status sets the status code.

type ExportControlReviewRequest

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

ExportControlReviewRequest represents the values of the 'export_control_review_request' type.

func UnmarshalExportControlReviewRequest

func UnmarshalExportControlReviewRequest(source interface{}) (object *ExportControlReviewRequest, err error)

UnmarshalExportControlReviewRequest reads a value of the 'export_control_review_request' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.

func (*ExportControlReviewRequest) AccountUsername

func (o *ExportControlReviewRequest) AccountUsername() string

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

func (*ExportControlReviewRequest) Empty

func (o *ExportControlReviewRequest) Empty() bool

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

func (*ExportControlReviewRequest) GetAccountUsername

func (o *ExportControlReviewRequest) GetAccountUsername() (value string, ok bool)

GetAccountUsername returns the value of the 'account_username' attribute and a flag indicating if the attribute has a value.

type ExportControlReviewRequestBuilder

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

ExportControlReviewRequestBuilder contains the data and logic needed to build 'export_control_review_request' objects.

func NewExportControlReviewRequest

func NewExportControlReviewRequest() *ExportControlReviewRequestBuilder

NewExportControlReviewRequest creates a new builder of 'export_control_review_request' objects.

func (*ExportControlReviewRequestBuilder) AccountUsername

AccountUsername sets the value of the 'account_username' attribute to the given value.

func (*ExportControlReviewRequestBuilder) Build

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

func (*ExportControlReviewRequestBuilder) Copy

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

type ExportControlReviewRequestList

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

ExportControlReviewRequestList is a list of values of the 'export_control_review_request' type.

func UnmarshalExportControlReviewRequestList

func UnmarshalExportControlReviewRequestList(source interface{}) (list *ExportControlReviewRequestList, err error)

UnmarshalExportControlReviewRequestList reads a list of values of the 'export_control_review_request' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.

func (*ExportControlReviewRequestList) Each

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

func (*ExportControlReviewRequestList) Empty

Empty returns true if the list is empty.

func (*ExportControlReviewRequestList) Get

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

func (*ExportControlReviewRequestList) Len

Len returns the length of the list.

func (*ExportControlReviewRequestList) Range

func (l *ExportControlReviewRequestList) Range(f func(index int, item *ExportControlReviewRequest) 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 (*ExportControlReviewRequestList) Slice

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

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

type ExportControlReviewRequestListBuilder

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

ExportControlReviewRequestListBuilder contains the data and logic needed to build 'export_control_review_request' objects.

func NewExportControlReviewRequestList

func NewExportControlReviewRequestList() *ExportControlReviewRequestListBuilder

NewExportControlReviewRequestList creates a new builder of 'export_control_review_request' objects.

func (*ExportControlReviewRequestListBuilder) Build

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

func (*ExportControlReviewRequestListBuilder) Items

Items sets the items of the list.

type ExportControlReviewResponse

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

ExportControlReviewResponse represents the values of the 'export_control_review_response' type.

func UnmarshalExportControlReviewResponse

func UnmarshalExportControlReviewResponse(source interface{}) (object *ExportControlReviewResponse, err error)

UnmarshalExportControlReviewResponse reads a value of the 'export_control_review_response' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.

func (*ExportControlReviewResponse) Empty

func (o *ExportControlReviewResponse) Empty() bool

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

func (*ExportControlReviewResponse) GetRestricted

func (o *ExportControlReviewResponse) GetRestricted() (value bool, ok bool)

GetRestricted returns the value of the 'restricted' attribute and a flag indicating if the attribute has a value.

func (*ExportControlReviewResponse) Restricted

func (o *ExportControlReviewResponse) Restricted() bool

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

type ExportControlReviewResponseBuilder

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

ExportControlReviewResponseBuilder contains the data and logic needed to build 'export_control_review_response' objects.

func NewExportControlReviewResponse

func NewExportControlReviewResponse() *ExportControlReviewResponseBuilder

NewExportControlReviewResponse creates a new builder of 'export_control_review_response' objects.

func (*ExportControlReviewResponseBuilder) Build

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

func (*ExportControlReviewResponseBuilder) Copy

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

func (*ExportControlReviewResponseBuilder) Restricted

Restricted sets the value of the 'restricted' attribute to the given value.

type ExportControlReviewResponseList

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

ExportControlReviewResponseList is a list of values of the 'export_control_review_response' type.

func UnmarshalExportControlReviewResponseList

func UnmarshalExportControlReviewResponseList(source interface{}) (list *ExportControlReviewResponseList, err error)

UnmarshalExportControlReviewResponseList reads a list of values of the 'export_control_review_response' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.

func (*ExportControlReviewResponseList) Each

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

func (*ExportControlReviewResponseList) Empty

Empty returns true if the list is empty.

func (*ExportControlReviewResponseList) Get

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

func (*ExportControlReviewResponseList) Len

Len returns the length of the list.

func (*ExportControlReviewResponseList) Range

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 (*ExportControlReviewResponseList) Slice

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

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

type ExportControlReviewResponseListBuilder

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

ExportControlReviewResponseListBuilder contains the data and logic needed to build 'export_control_review_response' objects.

func NewExportControlReviewResponseList

func NewExportControlReviewResponseList() *ExportControlReviewResponseListBuilder

NewExportControlReviewResponseList creates a new builder of 'export_control_review_response' objects.

func (*ExportControlReviewResponseListBuilder) Build

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

func (*ExportControlReviewResponseListBuilder) Items

Items sets the items of the list.

type ExportControlReviewServer

type ExportControlReviewServer interface {

	// Post handles a request for the 'post' method.
	//
	// Screens a user by account user name.
	Post(ctx context.Context, request *ExportControlReviewPostServerRequest, response *ExportControlReviewPostServerResponse) error
}

ExportControlReviewServer represents the interface the manages the 'export_control_review' resource.

type RootAdapter added in v0.1.44

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

RootAdapter represents the structs that adapts Requests and Response to internal structs.

func NewRootAdapter added in v0.1.44

func NewRootAdapter(server RootServer, router *mux.Router) *RootAdapter

func (*RootAdapter) ServeHTTP added in v0.1.44

func (a *RootAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RootClient added in v0.1.41

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

RootClient is the client of the 'root' resource.

Root of the tree of resources of the authorization service.

func NewRootClient added in v0.1.41

func NewRootClient(transport http.RoundTripper, path string, metric string) *RootClient

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

func (*RootClient) AccessReview added in v0.1.43

func (c *RootClient) AccessReview() *AccessReviewClient

AccessReview returns the target 'access_review' resource.

Reference to the resource that is used to submit access review requests.

func (*RootClient) ExportControlReview added in v0.1.41

func (c *RootClient) ExportControlReview() *ExportControlReviewClient

ExportControlReview returns the target 'export_control_review' resource.

Reference to the resource that is used to submit export control review requests.

func (*RootClient) SelfAccessReview added in v0.1.43

func (c *RootClient) SelfAccessReview() *SelfAccessReviewClient

SelfAccessReview returns the target 'self_access_review' resource.

Reference to the resource that is used to submit self access review requests.

type RootServer added in v0.1.41

type RootServer interface {

	// AccessReview returns the target 'access_review' resource.
	//
	// Reference to the resource that is used to submit access review requests.
	AccessReview() AccessReviewServer

	// ExportControlReview returns the target 'export_control_review' resource.
	//
	// Reference to the resource that is used to submit export control review requests.
	ExportControlReview() ExportControlReviewServer

	// SelfAccessReview returns the target 'self_access_review' resource.
	//
	// Reference to the resource that is used to submit self access review requests.
	SelfAccessReview() SelfAccessReviewServer
}

RootServer represents the interface the manages the 'root' resource.

type SelfAccessReviewAdapter added in v0.1.44

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

SelfAccessReviewAdapter represents the structs that adapts Requests and Response to internal structs.

func NewSelfAccessReviewAdapter added in v0.1.44

func NewSelfAccessReviewAdapter(server SelfAccessReviewServer, router *mux.Router) *SelfAccessReviewAdapter

func (*SelfAccessReviewAdapter) ServeHTTP added in v0.1.44

type SelfAccessReviewClient

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

SelfAccessReviewClient is the client of the 'self_access_review' resource.

Manages access review.

func NewSelfAccessReviewClient

func NewSelfAccessReviewClient(transport http.RoundTripper, path string, metric string) *SelfAccessReviewClient

NewSelfAccessReviewClient creates a new client for the 'self_access_review' resource using the given transport to sned the requests and receive the responses.

func (*SelfAccessReviewClient) Post

Post creates a request for the 'post' method.

Reviews a user's access to a resource

type SelfAccessReviewPostRequest

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

SelfAccessReviewPostRequest is the request for the 'post' method.

func (*SelfAccessReviewPostRequest) Header

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

Header adds a request header.

func (*SelfAccessReviewPostRequest) Parameter

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

Parameter adds a query parameter.

func (*SelfAccessReviewPostRequest) Request

Request sets the value of the 'request' parameter.

func (*SelfAccessReviewPostRequest) Send

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

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

func (*SelfAccessReviewPostRequest) SendContext

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

type SelfAccessReviewPostResponse

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

SelfAccessReviewPostResponse is the response for the 'post' method.

func (*SelfAccessReviewPostResponse) Error

Error returns the response error.

func (*SelfAccessReviewPostResponse) GetResponse

func (r *SelfAccessReviewPostResponse) GetResponse() (value *SelfAccessReviewResponse, ok bool)

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*SelfAccessReviewPostResponse) Header

Header returns header of the response.

func (*SelfAccessReviewPostResponse) Response

Response returns the value of the 'response' parameter.

func (*SelfAccessReviewPostResponse) Status

func (r *SelfAccessReviewPostResponse) Status() int

Status returns the response status code.

type SelfAccessReviewPostServerRequest

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

SelfAccessReviewPostServerRequest is the request for the 'post' method.

func (*SelfAccessReviewPostServerRequest) GetRequest

func (r *SelfAccessReviewPostServerRequest) GetRequest() (value *SelfAccessReviewRequest, ok bool)

GetRequest returns the value of the 'request' parameter and a flag indicating if the parameter has a value.

func (*SelfAccessReviewPostServerRequest) Request

Request returns the value of the 'request' parameter.

type SelfAccessReviewPostServerResponse

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

SelfAccessReviewPostServerResponse is the response for the 'post' method.

func (*SelfAccessReviewPostServerResponse) Response

Response sets the value of the 'response' parameter.

func (*SelfAccessReviewPostServerResponse) Status

Status sets the status code.

type SelfAccessReviewRequest

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

SelfAccessReviewRequest represents the values of the 'self_access_review_request' type.

Representation of an access review performed against oneself

func UnmarshalSelfAccessReviewRequest

func UnmarshalSelfAccessReviewRequest(source interface{}) (object *SelfAccessReviewRequest, err error)

UnmarshalSelfAccessReviewRequest reads a value of the 'self_access_review_request' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.

func (*SelfAccessReviewRequest) Action

func (o *SelfAccessReviewRequest) Action() string

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

Indicates the action, one of: [get,list,create,delete,update]

func (*SelfAccessReviewRequest) ClusterID

func (o *SelfAccessReviewRequest) 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.

Indicates which Cluster the resource type belongs to

func (*SelfAccessReviewRequest) Empty

func (o *SelfAccessReviewRequest) Empty() bool

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

func (*SelfAccessReviewRequest) GetAction

func (o *SelfAccessReviewRequest) GetAction() (value string, ok bool)

GetAction returns the value of the 'action' attribute and a flag indicating if the attribute has a value.

Indicates the action, one of: [get,list,create,delete,update]

func (*SelfAccessReviewRequest) GetClusterID

func (o *SelfAccessReviewRequest) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Cluster the resource type belongs to

func (*SelfAccessReviewRequest) GetOrganizationID

func (o *SelfAccessReviewRequest) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Organization the resource type belongs to

func (*SelfAccessReviewRequest) GetResourceType

func (o *SelfAccessReviewRequest) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

Indicates the type of the resource an action would be taken on. See uhc-account-manager/openapi/openapi.yaml for a list of possible values

func (*SelfAccessReviewRequest) GetSubscriptionID

func (o *SelfAccessReviewRequest) GetSubscriptionID() (value string, ok bool)

GetSubscriptionID returns the value of the 'subscription_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Subscription the resource type belongs to

func (*SelfAccessReviewRequest) OrganizationID

func (o *SelfAccessReviewRequest) 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.

Indicates which Organization the resource type belongs to

func (*SelfAccessReviewRequest) ResourceType

func (o *SelfAccessReviewRequest) ResourceType() string

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

Indicates the type of the resource an action would be taken on. See uhc-account-manager/openapi/openapi.yaml for a list of possible values

func (*SelfAccessReviewRequest) SubscriptionID

func (o *SelfAccessReviewRequest) 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.

Indicates which Subscription the resource type belongs to

type SelfAccessReviewRequestBuilder

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

SelfAccessReviewRequestBuilder contains the data and logic needed to build 'self_access_review_request' objects.

Representation of an access review performed against oneself

func NewSelfAccessReviewRequest

func NewSelfAccessReviewRequest() *SelfAccessReviewRequestBuilder

NewSelfAccessReviewRequest creates a new builder of 'self_access_review_request' objects.

func (*SelfAccessReviewRequestBuilder) Action

Action sets the value of the 'action' attribute to the given value.

func (*SelfAccessReviewRequestBuilder) Build

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

func (*SelfAccessReviewRequestBuilder) ClusterID

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*SelfAccessReviewRequestBuilder) Copy

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

func (*SelfAccessReviewRequestBuilder) OrganizationID

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*SelfAccessReviewRequestBuilder) ResourceType

ResourceType sets the value of the 'resource_type' attribute to the given value.

func (*SelfAccessReviewRequestBuilder) SubscriptionID

SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.

type SelfAccessReviewRequestList

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

SelfAccessReviewRequestList is a list of values of the 'self_access_review_request' type.

func UnmarshalSelfAccessReviewRequestList

func UnmarshalSelfAccessReviewRequestList(source interface{}) (list *SelfAccessReviewRequestList, err error)

UnmarshalSelfAccessReviewRequestList reads a list of values of the 'self_access_review_request' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.

func (*SelfAccessReviewRequestList) Each

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

func (*SelfAccessReviewRequestList) Empty

func (l *SelfAccessReviewRequestList) Empty() bool

Empty returns true if the list is empty.

func (*SelfAccessReviewRequestList) Get

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

func (*SelfAccessReviewRequestList) Len

Len returns the length of the list.

func (*SelfAccessReviewRequestList) Range

func (l *SelfAccessReviewRequestList) Range(f func(index int, item *SelfAccessReviewRequest) 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 (*SelfAccessReviewRequestList) Slice

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

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

type SelfAccessReviewRequestListBuilder

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

SelfAccessReviewRequestListBuilder contains the data and logic needed to build 'self_access_review_request' objects.

func NewSelfAccessReviewRequestList

func NewSelfAccessReviewRequestList() *SelfAccessReviewRequestListBuilder

NewSelfAccessReviewRequestList creates a new builder of 'self_access_review_request' objects.

func (*SelfAccessReviewRequestListBuilder) Build

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

func (*SelfAccessReviewRequestListBuilder) Items

Items sets the items of the list.

type SelfAccessReviewResponse

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

SelfAccessReviewResponse represents the values of the 'self_access_review_response' type.

Representation of an access review response, performed against oneself

func UnmarshalSelfAccessReviewResponse

func UnmarshalSelfAccessReviewResponse(source interface{}) (object *SelfAccessReviewResponse, err error)

UnmarshalSelfAccessReviewResponse reads a value of the 'self_access_review_response' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.

func (*SelfAccessReviewResponse) Action

func (o *SelfAccessReviewResponse) Action() string

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

Indicates the action, one of: [get,list,create,delete,update]

func (*SelfAccessReviewResponse) Allowed

func (o *SelfAccessReviewResponse) Allowed() bool

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

Defines whether the action on the specified resource type is allowed

func (*SelfAccessReviewResponse) ClusterID

func (o *SelfAccessReviewResponse) 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.

Indicates which Cluster the resource type belongs to

func (*SelfAccessReviewResponse) Empty

func (o *SelfAccessReviewResponse) Empty() bool

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

func (*SelfAccessReviewResponse) GetAction

func (o *SelfAccessReviewResponse) GetAction() (value string, ok bool)

GetAction returns the value of the 'action' attribute and a flag indicating if the attribute has a value.

Indicates the action, one of: [get,list,create,delete,update]

func (*SelfAccessReviewResponse) GetAllowed

func (o *SelfAccessReviewResponse) GetAllowed() (value bool, ok bool)

GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.

Defines whether the action on the specified resource type is allowed

func (*SelfAccessReviewResponse) GetClusterID

func (o *SelfAccessReviewResponse) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Cluster the resource type belongs to

func (*SelfAccessReviewResponse) GetOrganizationID

func (o *SelfAccessReviewResponse) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Organization the resource type belongs to

func (*SelfAccessReviewResponse) GetResourceType

func (o *SelfAccessReviewResponse) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

Indicates the type of the resource an action would be taken on. See uhc-account-manager/openapi/openapi.yaml for a list of possible values

func (*SelfAccessReviewResponse) GetSubscriptionID

func (o *SelfAccessReviewResponse) GetSubscriptionID() (value string, ok bool)

GetSubscriptionID returns the value of the 'subscription_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Subscription the resource type belongs to

func (*SelfAccessReviewResponse) OrganizationID

func (o *SelfAccessReviewResponse) 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.

Indicates which Organization the resource type belongs to

func (*SelfAccessReviewResponse) ResourceType

func (o *SelfAccessReviewResponse) ResourceType() string

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

Indicates the type of the resource an action would be taken on. See uhc-account-manager/openapi/openapi.yaml for a list of possible values

func (*SelfAccessReviewResponse) SubscriptionID

func (o *SelfAccessReviewResponse) 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.

Indicates which Subscription the resource type belongs to

type SelfAccessReviewResponseBuilder

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

SelfAccessReviewResponseBuilder contains the data and logic needed to build 'self_access_review_response' objects.

Representation of an access review response, performed against oneself

func NewSelfAccessReviewResponse

func NewSelfAccessReviewResponse() *SelfAccessReviewResponseBuilder

NewSelfAccessReviewResponse creates a new builder of 'self_access_review_response' objects.

func (*SelfAccessReviewResponseBuilder) Action

Action sets the value of the 'action' attribute to the given value.

func (*SelfAccessReviewResponseBuilder) Allowed

Allowed sets the value of the 'allowed' attribute to the given value.

func (*SelfAccessReviewResponseBuilder) Build

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

func (*SelfAccessReviewResponseBuilder) ClusterID

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*SelfAccessReviewResponseBuilder) Copy

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

func (*SelfAccessReviewResponseBuilder) OrganizationID

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*SelfAccessReviewResponseBuilder) ResourceType

ResourceType sets the value of the 'resource_type' attribute to the given value.

func (*SelfAccessReviewResponseBuilder) SubscriptionID

SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.

type SelfAccessReviewResponseList

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

SelfAccessReviewResponseList is a list of values of the 'self_access_review_response' type.

func UnmarshalSelfAccessReviewResponseList

func UnmarshalSelfAccessReviewResponseList(source interface{}) (list *SelfAccessReviewResponseList, err error)

UnmarshalSelfAccessReviewResponseList reads a list of values of the 'self_access_review_response' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.

func (*SelfAccessReviewResponseList) Each

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

func (*SelfAccessReviewResponseList) Empty

Empty returns true if the list is empty.

func (*SelfAccessReviewResponseList) Get

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

func (*SelfAccessReviewResponseList) Len

Len returns the length of the list.

func (*SelfAccessReviewResponseList) Range

func (l *SelfAccessReviewResponseList) Range(f func(index int, item *SelfAccessReviewResponse) 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 (*SelfAccessReviewResponseList) Slice

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

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

type SelfAccessReviewResponseListBuilder

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

SelfAccessReviewResponseListBuilder contains the data and logic needed to build 'self_access_review_response' objects.

func NewSelfAccessReviewResponseList

func NewSelfAccessReviewResponseList() *SelfAccessReviewResponseListBuilder

NewSelfAccessReviewResponseList creates a new builder of 'self_access_review_response' objects.

func (*SelfAccessReviewResponseListBuilder) Build

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

func (*SelfAccessReviewResponseListBuilder) Items

Items sets the items of the list.

type SelfAccessReviewServer

type SelfAccessReviewServer interface {

	// Post handles a request for the 'post' method.
	//
	// Reviews a user's access to a resource
	Post(ctx context.Context, request *SelfAccessReviewPostServerRequest, response *SelfAccessReviewPostServerResponse) error
}

SelfAccessReviewServer represents the interface the manages the 'self_access_review' resource.

Jump to

Keyboard shortcuts

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