v1

package
v0.1.81 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 13 Imported by: 74

Documentation

Index

Constants

View Source
const AccessTokenAuthListKind = "AccessTokenAuthList"

AccessTokenAuthListKind is the name of the type used to represent list of objects of type 'access_token_auth'.

View Source
const AccessTokenAuthListLinkKind = "AccessTokenAuthListLink"

AccessTokenAuthListLinkKind is the name of the type used to represent links to list of objects of type 'access_token_auth'.

View Source
const AccessTokenAuthListNilKind = "AccessTokenAuthListNil"

AccessTokenAuthNilKind is the name of the type used to nil lists of objects of type 'access_token_auth'.

View Source
const AccessTokenListKind = "AccessTokenList"

AccessTokenListKind is the name of the type used to represent list of objects of type 'access_token'.

View Source
const AccessTokenListLinkKind = "AccessTokenListLink"

AccessTokenListLinkKind is the name of the type used to represent links to list of objects of type 'access_token'.

View Source
const AccessTokenListNilKind = "AccessTokenListNil"

AccessTokenNilKind is the name of the type used to nil lists of objects of type 'access_token'.

View Source
const AccountKind = "Account"

AccountKind is the name of the type used to represent objects of type 'account'.

View Source
const AccountLinkKind = "AccountLink"

AccountLinkKind is the name of the type used to represent links to objects of type 'account'.

View Source
const AccountListKind = "AccountList"

AccountListKind is the name of the type used to represent list of objects of type 'account'.

View Source
const AccountListLinkKind = "AccountListLink"

AccountListLinkKind is the name of the type used to represent links to list of objects of type 'account'.

View Source
const AccountListNilKind = "AccountListNil"

AccountNilKind is the name of the type used to nil lists of objects of type 'account'.

View Source
const AccountNilKind = "AccountNil"

AccountNilKind is the name of the type used to nil references to objects of type 'account'.

View Source
const ClusterAuthorizationRequestListKind = "ClusterAuthorizationRequestList"

ClusterAuthorizationRequestListKind is the name of the type used to represent list of objects of type 'cluster_authorization_request'.

View Source
const ClusterAuthorizationRequestListLinkKind = "ClusterAuthorizationRequestListLink"

ClusterAuthorizationRequestListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_authorization_request'.

View Source
const ClusterAuthorizationRequestListNilKind = "ClusterAuthorizationRequestListNil"

ClusterAuthorizationRequestNilKind is the name of the type used to nil lists of objects of type 'cluster_authorization_request'.

View Source
const ClusterAuthorizationResponseListKind = "ClusterAuthorizationResponseList"

ClusterAuthorizationResponseListKind is the name of the type used to represent list of objects of type 'cluster_authorization_response'.

View Source
const ClusterAuthorizationResponseListLinkKind = "ClusterAuthorizationResponseListLink"

ClusterAuthorizationResponseListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_authorization_response'.

View Source
const ClusterAuthorizationResponseListNilKind = "ClusterAuthorizationResponseListNil"

ClusterAuthorizationResponseNilKind is the name of the type used to nil lists of objects of type 'cluster_authorization_response'.

View Source
const ClusterRegistrationRequestListKind = "ClusterRegistrationRequestList"

ClusterRegistrationRequestListKind is the name of the type used to represent list of objects of type 'cluster_registration_request'.

View Source
const ClusterRegistrationRequestListLinkKind = "ClusterRegistrationRequestListLink"

ClusterRegistrationRequestListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_registration_request'.

View Source
const ClusterRegistrationRequestListNilKind = "ClusterRegistrationRequestListNil"

ClusterRegistrationRequestNilKind is the name of the type used to nil lists of objects of type 'cluster_registration_request'.

View Source
const ClusterRegistrationResponseListKind = "ClusterRegistrationResponseList"

ClusterRegistrationResponseListKind is the name of the type used to represent list of objects of type 'cluster_registration_response'.

View Source
const ClusterRegistrationResponseListLinkKind = "ClusterRegistrationResponseListLink"

ClusterRegistrationResponseListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_registration_response'.

View Source
const ClusterRegistrationResponseListNilKind = "ClusterRegistrationResponseListNil"

ClusterRegistrationResponseNilKind is the name of the type used to nil lists of objects of type 'cluster_registration_response'.

View Source
const OrganizationKind = "Organization"

OrganizationKind is the name of the type used to represent objects of type 'organization'.

View Source
const OrganizationLinkKind = "OrganizationLink"

OrganizationLinkKind is the name of the type used to represent links to objects of type 'organization'.

View Source
const OrganizationListKind = "OrganizationList"

OrganizationListKind is the name of the type used to represent list of objects of type 'organization'.

View Source
const OrganizationListLinkKind = "OrganizationListLink"

OrganizationListLinkKind is the name of the type used to represent links to list of objects of type 'organization'.

View Source
const OrganizationListNilKind = "OrganizationListNil"

OrganizationNilKind is the name of the type used to nil lists of objects of type 'organization'.

View Source
const OrganizationNilKind = "OrganizationNil"

OrganizationNilKind is the name of the type used to nil references to objects of type 'organization'.

View Source
const PermissionKind = "Permission"

PermissionKind is the name of the type used to represent objects of type 'permission'.

View Source
const PermissionLinkKind = "PermissionLink"

PermissionLinkKind is the name of the type used to represent links to objects of type 'permission'.

View Source
const PermissionListKind = "PermissionList"

PermissionListKind is the name of the type used to represent list of objects of type 'permission'.

View Source
const PermissionListLinkKind = "PermissionListLink"

PermissionListLinkKind is the name of the type used to represent links to list of objects of type 'permission'.

View Source
const PermissionListNilKind = "PermissionListNil"

PermissionNilKind is the name of the type used to nil lists of objects of type 'permission'.

View Source
const PermissionNilKind = "PermissionNil"

PermissionNilKind is the name of the type used to nil references to objects of type 'permission'.

View Source
const PlanKind = "Plan"

PlanKind is the name of the type used to represent objects of type 'plan'.

View Source
const PlanLinkKind = "PlanLink"

PlanLinkKind is the name of the type used to represent links to objects of type 'plan'.

View Source
const PlanListKind = "PlanList"

PlanListKind is the name of the type used to represent list of objects of type 'plan'.

View Source
const PlanListLinkKind = "PlanListLink"

PlanListLinkKind is the name of the type used to represent links to list of objects of type 'plan'.

View Source
const PlanListNilKind = "PlanListNil"

PlanNilKind is the name of the type used to nil lists of objects of type 'plan'.

View Source
const PlanNilKind = "PlanNil"

PlanNilKind is the name of the type used to nil references to objects of type 'plan'.

View Source
const QuotaSummaryListKind = "QuotaSummaryList"

QuotaSummaryListKind is the name of the type used to represent list of objects of type 'quota_summary'.

View Source
const QuotaSummaryListLinkKind = "QuotaSummaryListLink"

QuotaSummaryListLinkKind is the name of the type used to represent links to list of objects of type 'quota_summary'.

View Source
const QuotaSummaryListNilKind = "QuotaSummaryListNil"

QuotaSummaryNilKind is the name of the type used to nil lists of objects of type 'quota_summary'.

View Source
const RegistryCredentialKind = "RegistryCredential"

RegistryCredentialKind is the name of the type used to represent objects of type 'registry_credential'.

View Source
const RegistryCredentialLinkKind = "RegistryCredentialLink"

RegistryCredentialLinkKind is the name of the type used to represent links to objects of type 'registry_credential'.

View Source
const RegistryCredentialListKind = "RegistryCredentialList"

RegistryCredentialListKind is the name of the type used to represent list of objects of type 'registry_credential'.

View Source
const RegistryCredentialListLinkKind = "RegistryCredentialListLink"

RegistryCredentialListLinkKind is the name of the type used to represent links to list of objects of type 'registry_credential'.

View Source
const RegistryCredentialListNilKind = "RegistryCredentialListNil"

RegistryCredentialNilKind is the name of the type used to nil lists of objects of type 'registry_credential'.

View Source
const RegistryCredentialNilKind = "RegistryCredentialNil"

RegistryCredentialNilKind is the name of the type used to nil references to objects of type 'registry_credential'.

View Source
const RegistryKind = "Registry"

RegistryKind is the name of the type used to represent objects of type 'registry'.

View Source
const RegistryLinkKind = "RegistryLink"

RegistryLinkKind is the name of the type used to represent links to objects of type 'registry'.

View Source
const RegistryListKind = "RegistryList"

RegistryListKind is the name of the type used to represent list of objects of type 'registry'.

View Source
const RegistryListLinkKind = "RegistryListLink"

RegistryListLinkKind is the name of the type used to represent links to list of objects of type 'registry'.

View Source
const RegistryListNilKind = "RegistryListNil"

RegistryNilKind is the name of the type used to nil lists of objects of type 'registry'.

View Source
const RegistryNilKind = "RegistryNil"

RegistryNilKind is the name of the type used to nil references to objects of type 'registry'.

View Source
const ReservedResourceListKind = "ReservedResourceList"

ReservedResourceListKind is the name of the type used to represent list of objects of type 'reserved_resource'.

View Source
const ReservedResourceListLinkKind = "ReservedResourceListLink"

ReservedResourceListLinkKind is the name of the type used to represent links to list of objects of type 'reserved_resource'.

View Source
const ReservedResourceListNilKind = "ReservedResourceListNil"

ReservedResourceNilKind is the name of the type used to nil lists of objects of type 'reserved_resource'.

View Source
const ResourceKind = "Resource"

ResourceKind is the name of the type used to represent objects of type 'resource'.

View Source
const ResourceLinkKind = "ResourceLink"

ResourceLinkKind is the name of the type used to represent links to objects of type 'resource'.

View Source
const ResourceListKind = "ResourceList"

ResourceListKind is the name of the type used to represent list of objects of type 'resource'.

View Source
const ResourceListLinkKind = "ResourceListLink"

ResourceListLinkKind is the name of the type used to represent links to list of objects of type 'resource'.

View Source
const ResourceListNilKind = "ResourceListNil"

ResourceNilKind is the name of the type used to nil lists of objects of type 'resource'.

View Source
const ResourceNilKind = "ResourceNil"

ResourceNilKind is the name of the type used to nil references to objects of type 'resource'.

View Source
const ResourceQuotaKind = "ResourceQuota"

ResourceQuotaKind is the name of the type used to represent objects of type 'resource_quota'.

View Source
const ResourceQuotaLinkKind = "ResourceQuotaLink"

ResourceQuotaLinkKind is the name of the type used to represent links to objects of type 'resource_quota'.

View Source
const ResourceQuotaListKind = "ResourceQuotaList"

ResourceQuotaListKind is the name of the type used to represent list of objects of type 'resource_quota'.

View Source
const ResourceQuotaListLinkKind = "ResourceQuotaListLink"

ResourceQuotaListLinkKind is the name of the type used to represent links to list of objects of type 'resource_quota'.

View Source
const ResourceQuotaListNilKind = "ResourceQuotaListNil"

ResourceQuotaNilKind is the name of the type used to nil lists of objects of type 'resource_quota'.

View Source
const ResourceQuotaNilKind = "ResourceQuotaNil"

ResourceQuotaNilKind is the name of the type used to nil references to objects of type 'resource_quota'.

View Source
const RoleBindingKind = "RoleBinding"

RoleBindingKind is the name of the type used to represent objects of type 'role_binding'.

View Source
const RoleBindingLinkKind = "RoleBindingLink"

RoleBindingLinkKind is the name of the type used to represent links to objects of type 'role_binding'.

View Source
const RoleBindingListKind = "RoleBindingList"

RoleBindingListKind is the name of the type used to represent list of objects of type 'role_binding'.

View Source
const RoleBindingListLinkKind = "RoleBindingListLink"

RoleBindingListLinkKind is the name of the type used to represent links to list of objects of type 'role_binding'.

View Source
const RoleBindingListNilKind = "RoleBindingListNil"

RoleBindingNilKind is the name of the type used to nil lists of objects of type 'role_binding'.

View Source
const RoleBindingNilKind = "RoleBindingNil"

RoleBindingNilKind is the name of the type used to nil references to objects of type 'role_binding'.

View Source
const RoleKind = "Role"

RoleKind is the name of the type used to represent objects of type 'role'.

View Source
const RoleLinkKind = "RoleLink"

RoleLinkKind is the name of the type used to represent links to objects of type 'role'.

View Source
const RoleListKind = "RoleList"

RoleListKind is the name of the type used to represent list of objects of type 'role'.

View Source
const RoleListLinkKind = "RoleListLink"

RoleListLinkKind is the name of the type used to represent links to list of objects of type 'role'.

View Source
const RoleListNilKind = "RoleListNil"

RoleNilKind is the name of the type used to nil lists of objects of type 'role'.

View Source
const RoleNilKind = "RoleNil"

RoleNilKind is the name of the type used to nil references to objects of type 'role'.

View Source
const SKUKind = "SKU"

SKUKind is the name of the type used to represent objects of type 'SKU'.

View Source
const SKULinkKind = "SKULink"

SKULinkKind is the name of the type used to represent links to objects of type 'SKU'.

View Source
const SKUListKind = "SKUList"

SKUListKind is the name of the type used to represent list of objects of type 'SKU'.

View Source
const SKUListLinkKind = "SKUListLink"

SKUListLinkKind is the name of the type used to represent links to list of objects of type 'SKU'.

View Source
const SKUListNilKind = "SKUListNil"

SKUNilKind is the name of the type used to nil lists of objects of type 'SKU'.

View Source
const SKUNilKind = "SKUNil"

SKUNilKind is the name of the type used to nil references to objects of type 'SKU'.

View Source
const SubscriptionKind = "Subscription"

SubscriptionKind is the name of the type used to represent objects of type 'subscription'.

View Source
const SubscriptionLinkKind = "SubscriptionLink"

SubscriptionLinkKind is the name of the type used to represent links to objects of type 'subscription'.

View Source
const SubscriptionListKind = "SubscriptionList"

SubscriptionListKind is the name of the type used to represent list of objects of type 'subscription'.

View Source
const SubscriptionListLinkKind = "SubscriptionListLink"

SubscriptionListLinkKind is the name of the type used to represent links to list of objects of type 'subscription'.

View Source
const SubscriptionListNilKind = "SubscriptionListNil"

SubscriptionNilKind is the name of the type used to nil lists of objects of type 'subscription'.

View Source
const SubscriptionNilKind = "SubscriptionNil"

SubscriptionNilKind is the name of the type used to nil references to objects of type 'subscription'.

Variables

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

OpenAPI contains the OpenAPI specification of the service in JSON.

Functions

func Dispatch

func Dispatch(w http.ResponseWriter, r *http.Request, server Server, segments []string)

Dispatch navigates the servers tree rooted at the given server till it finds one that matches the given set of path segments, and then invokes the corresponding server.

func MarshalAccessToken

func MarshalAccessToken(object *AccessToken, writer io.Writer) error

MarshalAccessToken writes a value of the 'access_token' type to the given writer.

func MarshalAccessTokenAuth

func MarshalAccessTokenAuth(object *AccessTokenAuth, writer io.Writer) error

MarshalAccessTokenAuth writes a value of the 'access_token_auth' type to the given writer.

func MarshalAccessTokenAuthList

func MarshalAccessTokenAuthList(list []*AccessTokenAuth, writer io.Writer) error

MarshalAccessTokenAuthList writes a list of values of the 'access_token_auth' type to the given writer.

func MarshalAccessTokenList

func MarshalAccessTokenList(list []*AccessToken, writer io.Writer) error

MarshalAccessTokenList writes a list of values of the 'access_token' type to the given writer.

func MarshalAccount

func MarshalAccount(object *Account, writer io.Writer) error

MarshalAccount writes a value of the 'account' type to the given writer.

func MarshalAccountList

func MarshalAccountList(list []*Account, writer io.Writer) error

MarshalAccountList writes a list of values of the 'account' type to the given writer.

func MarshalActionList

func MarshalActionList(list []Action, writer io.Writer) error

MarshalActionList writes a list of values of the 'action' type to the given writer.

func MarshalBooleanList

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

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

func MarshalClusterAuthorizationRequest

func MarshalClusterAuthorizationRequest(object *ClusterAuthorizationRequest, writer io.Writer) error

MarshalClusterAuthorizationRequest writes a value of the 'cluster_authorization_request' type to the given writer.

func MarshalClusterAuthorizationRequestList

func MarshalClusterAuthorizationRequestList(list []*ClusterAuthorizationRequest, writer io.Writer) error

MarshalClusterAuthorizationRequestList writes a list of values of the 'cluster_authorization_request' type to the given writer.

func MarshalClusterAuthorizationResponse

func MarshalClusterAuthorizationResponse(object *ClusterAuthorizationResponse, writer io.Writer) error

MarshalClusterAuthorizationResponse writes a value of the 'cluster_authorization_response' type to the given writer.

func MarshalClusterAuthorizationResponseList

func MarshalClusterAuthorizationResponseList(list []*ClusterAuthorizationResponse, writer io.Writer) error

MarshalClusterAuthorizationResponseList writes a list of values of the 'cluster_authorization_response' type to the given writer.

func MarshalClusterRegistrationRequest

func MarshalClusterRegistrationRequest(object *ClusterRegistrationRequest, writer io.Writer) error

MarshalClusterRegistrationRequest writes a value of the 'cluster_registration_request' type to the given writer.

func MarshalClusterRegistrationRequestList

func MarshalClusterRegistrationRequestList(list []*ClusterRegistrationRequest, writer io.Writer) error

MarshalClusterRegistrationRequestList writes a list of values of the 'cluster_registration_request' type to the given writer.

func MarshalClusterRegistrationResponse

func MarshalClusterRegistrationResponse(object *ClusterRegistrationResponse, writer io.Writer) error

MarshalClusterRegistrationResponse writes a value of the 'cluster_registration_response' type to the given writer.

func MarshalClusterRegistrationResponseList

func MarshalClusterRegistrationResponseList(list []*ClusterRegistrationResponse, writer io.Writer) error

MarshalClusterRegistrationResponseList writes a list of values of the 'cluster_registration_response' type to the given writer.

func MarshalDateList

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

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

func MarshalFloatList

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

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

func MarshalIntegerList

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

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

func MarshalLongList

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

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

func MarshalMetadata

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

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

func MarshalOrganization

func MarshalOrganization(object *Organization, writer io.Writer) error

MarshalOrganization writes a value of the 'organization' type to the given writer.

func MarshalOrganizationList

func MarshalOrganizationList(list []*Organization, writer io.Writer) error

MarshalOrganizationList writes a list of values of the 'organization' type to the given writer.

func MarshalPermission

func MarshalPermission(object *Permission, writer io.Writer) error

MarshalPermission writes a value of the 'permission' type to the given writer.

func MarshalPermissionList

func MarshalPermissionList(list []*Permission, writer io.Writer) error

MarshalPermissionList writes a list of values of the 'permission' type to the given writer.

func MarshalPlan

func MarshalPlan(object *Plan, writer io.Writer) error

MarshalPlan writes a value of the 'plan' type to the given writer.

func MarshalPlanList

func MarshalPlanList(list []*Plan, writer io.Writer) error

MarshalPlanList writes a list of values of the 'plan' type to the given writer.

func MarshalQuotaSummary

func MarshalQuotaSummary(object *QuotaSummary, writer io.Writer) error

MarshalQuotaSummary writes a value of the 'quota_summary' type to the given writer.

func MarshalQuotaSummaryList

func MarshalQuotaSummaryList(list []*QuotaSummary, writer io.Writer) error

MarshalQuotaSummaryList writes a list of values of the 'quota_summary' type to the given writer.

func MarshalRegistry

func MarshalRegistry(object *Registry, writer io.Writer) error

MarshalRegistry writes a value of the 'registry' type to the given writer.

func MarshalRegistryCredential

func MarshalRegistryCredential(object *RegistryCredential, writer io.Writer) error

MarshalRegistryCredential writes a value of the 'registry_credential' type to the given writer.

func MarshalRegistryCredentialList

func MarshalRegistryCredentialList(list []*RegistryCredential, writer io.Writer) error

MarshalRegistryCredentialList writes a list of values of the 'registry_credential' type to the given writer.

func MarshalRegistryList

func MarshalRegistryList(list []*Registry, writer io.Writer) error

MarshalRegistryList writes a list of values of the 'registry' type to the given writer.

func MarshalReservedResource

func MarshalReservedResource(object *ReservedResource, writer io.Writer) error

MarshalReservedResource writes a value of the 'reserved_resource' type to the given writer.

func MarshalReservedResourceList

func MarshalReservedResourceList(list []*ReservedResource, writer io.Writer) error

MarshalReservedResourceList writes a list of values of the 'reserved_resource' type to the given writer.

func MarshalResource

func MarshalResource(object *Resource, writer io.Writer) error

MarshalResource writes a value of the 'resource' type to the given writer.

func MarshalResourceList

func MarshalResourceList(list []*Resource, writer io.Writer) error

MarshalResourceList writes a list of values of the 'resource' type to the given writer.

func MarshalResourceQuota

func MarshalResourceQuota(object *ResourceQuota, writer io.Writer) error

MarshalResourceQuota writes a value of the 'resource_quota' type to the given writer.

func MarshalResourceQuotaList

func MarshalResourceQuotaList(list []*ResourceQuota, writer io.Writer) error

MarshalResourceQuotaList writes a list of values of the 'resource_quota' type to the given writer.

func MarshalRole

func MarshalRole(object *Role, writer io.Writer) error

MarshalRole writes a value of the 'role' type to the given writer.

func MarshalRoleBinding

func MarshalRoleBinding(object *RoleBinding, writer io.Writer) error

MarshalRoleBinding writes a value of the 'role_binding' type to the given writer.

func MarshalRoleBindingList

func MarshalRoleBindingList(list []*RoleBinding, writer io.Writer) error

MarshalRoleBindingList writes a list of values of the 'role_binding' type to the given writer.

func MarshalRoleList

func MarshalRoleList(list []*Role, writer io.Writer) error

MarshalRoleList writes a list of values of the 'role' type to the given writer.

func MarshalSKU

func MarshalSKU(object *SKU, writer io.Writer) error

MarshalSKU writes a value of the 'SKU' type to the given writer.

func MarshalSKUList

func MarshalSKUList(list []*SKU, writer io.Writer) error

MarshalSKUList writes a list of values of the 'SKU' type to the given writer.

func MarshalStringList

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

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

func MarshalSubscription

func MarshalSubscription(object *Subscription, writer io.Writer) error

MarshalSubscription writes a value of the 'subscription' type to the given writer.

func MarshalSubscriptionList

func MarshalSubscriptionList(list []*Subscription, writer io.Writer) error

MarshalSubscriptionList writes a list of values of the 'subscription' type to the given writer.

func UnmarshalBooleanList

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

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

func UnmarshalDateList

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

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

func UnmarshalFloatList

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

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

func UnmarshalIntegerList

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

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

func UnmarshalLongList

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

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

func UnmarshalStringList

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

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

Types

type AccessToken

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

AccessToken represents the values of the 'access_token' type.

func UnmarshalAccessToken

func UnmarshalAccessToken(source interface{}) (object *AccessToken, err error)

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

func UnmarshalAccessTokenList

func UnmarshalAccessTokenList(source interface{}) (items []*AccessToken, err error)

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

func (*AccessToken) Auths

func (o *AccessToken) Auths() map[string]*AccessTokenAuth

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

func (*AccessToken) Empty

func (o *AccessToken) Empty() bool

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

func (*AccessToken) GetAuths

func (o *AccessToken) GetAuths() (value map[string]*AccessTokenAuth, ok bool)

GetAuths returns the value of the 'auths' attribute and a flag indicating if the attribute has a value.

type AccessTokenAuth

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

AccessTokenAuth represents the values of the 'access_token_auth' type.

func UnmarshalAccessTokenAuth

func UnmarshalAccessTokenAuth(source interface{}) (object *AccessTokenAuth, err error)

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

func UnmarshalAccessTokenAuthList

func UnmarshalAccessTokenAuthList(source interface{}) (items []*AccessTokenAuth, err error)

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

func (*AccessTokenAuth) Auth

func (o *AccessTokenAuth) Auth() string

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

func (*AccessTokenAuth) Email

func (o *AccessTokenAuth) Email() string

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

func (*AccessTokenAuth) Empty

func (o *AccessTokenAuth) Empty() bool

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

func (*AccessTokenAuth) GetAuth

func (o *AccessTokenAuth) GetAuth() (value string, ok bool)

GetAuth returns the value of the 'auth' attribute and a flag indicating if the attribute has a value.

func (*AccessTokenAuth) GetEmail

func (o *AccessTokenAuth) GetEmail() (value string, ok bool)

GetEmail returns the value of the 'email' attribute and a flag indicating if the attribute has a value.

type AccessTokenAuthBuilder

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

AccessTokenAuthBuilder contains the data and logic needed to build 'access_token_auth' objects.

func NewAccessTokenAuth

func NewAccessTokenAuth() *AccessTokenAuthBuilder

NewAccessTokenAuth creates a new builder of 'access_token_auth' objects.

func (*AccessTokenAuthBuilder) Auth

Auth sets the value of the 'auth' attribute to the given value.

func (*AccessTokenAuthBuilder) Build

func (b *AccessTokenAuthBuilder) Build() (object *AccessTokenAuth, err error)

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

func (*AccessTokenAuthBuilder) Copy

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

func (*AccessTokenAuthBuilder) Email

Email sets the value of the 'email' attribute to the given value.

type AccessTokenAuthList

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

AccessTokenAuthList is a list of values of the 'access_token_auth' type.

func (*AccessTokenAuthList) Each

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

func (l *AccessTokenAuthList) Empty() bool

Empty returns true if the list is empty.

func (*AccessTokenAuthList) Get

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

func (*AccessTokenAuthList) Len

func (l *AccessTokenAuthList) Len() int

Len returns the length of the list.

func (*AccessTokenAuthList) Range

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

func (l *AccessTokenAuthList) Slice() []*AccessTokenAuth

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 AccessTokenAuthListBuilder

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

AccessTokenAuthListBuilder contains the data and logic needed to build 'access_token_auth' objects.

func NewAccessTokenAuthList

func NewAccessTokenAuthList() *AccessTokenAuthListBuilder

NewAccessTokenAuthList creates a new builder of 'access_token_auth' objects.

func (*AccessTokenAuthListBuilder) Build

func (b *AccessTokenAuthListBuilder) Build() (list *AccessTokenAuthList, err error)

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

func (*AccessTokenAuthListBuilder) Copy

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

func (*AccessTokenAuthListBuilder) Items

Items sets the items of the list.

type AccessTokenBuilder

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

AccessTokenBuilder contains the data and logic needed to build 'access_token' objects.

func NewAccessToken

func NewAccessToken() *AccessTokenBuilder

NewAccessToken creates a new builder of 'access_token' objects.

func (*AccessTokenBuilder) Auths

Auths sets the value of the 'auths' attribute to the given value.

func (*AccessTokenBuilder) Build

func (b *AccessTokenBuilder) Build() (object *AccessToken, err error)

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

func (*AccessTokenBuilder) Copy

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

type AccessTokenClient

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

AccessTokenClient is the client of the 'access_token' resource.

Manages access tokens.

func NewAccessTokenClient

func NewAccessTokenClient(transport http.RoundTripper, path string, metric string) *AccessTokenClient

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

func (*AccessTokenClient) Post

Post creates a request for the 'post' method.

Returns access token generated from registries in docker format.

type AccessTokenList

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

AccessTokenList is a list of values of the 'access_token' type.

func (*AccessTokenList) Each

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

func (l *AccessTokenList) Empty() bool

Empty returns true if the list is empty.

func (*AccessTokenList) Get

func (l *AccessTokenList) Get(i int) *AccessToken

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

func (*AccessTokenList) Len

func (l *AccessTokenList) Len() int

Len returns the length of the list.

func (*AccessTokenList) Range

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

func (l *AccessTokenList) Slice() []*AccessToken

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 AccessTokenListBuilder

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

AccessTokenListBuilder contains the data and logic needed to build 'access_token' objects.

func NewAccessTokenList

func NewAccessTokenList() *AccessTokenListBuilder

NewAccessTokenList creates a new builder of 'access_token' objects.

func (*AccessTokenListBuilder) Build

func (b *AccessTokenListBuilder) Build() (list *AccessTokenList, err error)

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

func (*AccessTokenListBuilder) Copy

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

func (*AccessTokenListBuilder) Items

Items sets the items of the list.

type AccessTokenPostRequest

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

AccessTokenPostRequest is the request for the 'post' method.

func (*AccessTokenPostRequest) Header

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

Header adds a request header.

func (*AccessTokenPostRequest) Parameter

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

Parameter adds a query parameter.

func (*AccessTokenPostRequest) Send

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

func (r *AccessTokenPostRequest) SendContext(ctx context.Context) (result *AccessTokenPostResponse, err error)

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

type AccessTokenPostResponse

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

AccessTokenPostResponse is the response for the 'post' method.

func (*AccessTokenPostResponse) Body

Body returns the value of the 'body' parameter.

func (*AccessTokenPostResponse) Error

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

Error returns the response error.

func (*AccessTokenPostResponse) GetBody

func (r *AccessTokenPostResponse) GetBody() (value *AccessToken, ok bool)

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

func (*AccessTokenPostResponse) Header

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

Header returns header of the response.

func (*AccessTokenPostResponse) Status

func (r *AccessTokenPostResponse) Status() int

Status returns the response status code.

type AccessTokenPostServerRequest

type AccessTokenPostServerRequest struct {
}

AccessTokenPostServerRequest is the request for the 'post' method.

type AccessTokenPostServerResponse

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

AccessTokenPostServerResponse is the response for the 'post' method.

func (*AccessTokenPostServerResponse) Body

Body sets the value of the 'body' parameter.

func (*AccessTokenPostServerResponse) Status

Status sets the status code.

type AccessTokenServer

type AccessTokenServer interface {

	// Post handles a request for the 'post' method.
	//
	// Returns access token generated from registries in docker format.
	Post(ctx context.Context, request *AccessTokenPostServerRequest, response *AccessTokenPostServerResponse) error
}

AccessTokenServer represents the interface the manages the 'access_token' resource.

type Account

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

Account represents the values of the 'account' type.

func UnmarshalAccount

func UnmarshalAccount(source interface{}) (object *Account, err error)

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

func UnmarshalAccountList

func UnmarshalAccountList(source interface{}) (items []*Account, err error)

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

func (*Account) BanCode

func (o *Account) BanCode() string

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

func (*Account) BanDescription

func (o *Account) BanDescription() string

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

func (*Account) Banned

func (o *Account) Banned() bool

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

func (*Account) Email

func (o *Account) Email() string

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

func (*Account) Empty

func (o *Account) Empty() bool

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

func (*Account) FirstName

func (o *Account) FirstName() string

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

func (*Account) GetBanCode

func (o *Account) GetBanCode() (value string, ok bool)

GetBanCode returns the value of the 'ban_code' attribute and a flag indicating if the attribute has a value.

func (*Account) GetBanDescription

func (o *Account) GetBanDescription() (value string, ok bool)

GetBanDescription returns the value of the 'ban_description' attribute and a flag indicating if the attribute has a value.

func (*Account) GetBanned

func (o *Account) GetBanned() (value bool, ok bool)

GetBanned returns the value of the 'banned' attribute and a flag indicating if the attribute has a value.

func (*Account) GetEmail

func (o *Account) GetEmail() (value string, ok bool)

GetEmail returns the value of the 'email' attribute and a flag indicating if the attribute has a value.

func (*Account) GetFirstName

func (o *Account) GetFirstName() (value string, ok bool)

GetFirstName returns the value of the 'first_name' attribute and a flag indicating if the attribute has a value.

func (*Account) GetHREF

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

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

func (*Account) GetID

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

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

func (*Account) GetLastName

func (o *Account) GetLastName() (value string, ok bool)

GetLastName returns the value of the 'last_name' attribute and a flag indicating if the attribute has a value.

func (*Account) GetName added in v0.1.30

func (o *Account) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Account) GetOrganization

func (o *Account) GetOrganization() (value *Organization, ok bool)

GetOrganization returns the value of the 'organization' attribute and a flag indicating if the attribute has a value.

func (*Account) GetUsername

func (o *Account) GetUsername() (value string, ok bool)

GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.

func (*Account) HREF

func (o *Account) HREF() string

HREF returns the link to the object.

func (*Account) ID

func (o *Account) ID() string

ID returns the identifier of the object.

func (*Account) Kind

func (o *Account) Kind() string

Kind returns the name of the type of the object.

func (*Account) LastName

func (o *Account) LastName() string

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

func (o *Account) Link() bool

Link returns true iif this is a link.

func (*Account) Name added in v0.1.30

func (o *Account) Name() string

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

func (*Account) Organization

func (o *Account) Organization() *Organization

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

func (*Account) Username

func (o *Account) Username() string

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

type AccountBuilder

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

AccountBuilder contains the data and logic needed to build 'account' objects.

func NewAccount

func NewAccount() *AccountBuilder

NewAccount creates a new builder of 'account' objects.

func (*AccountBuilder) BanCode

func (b *AccountBuilder) BanCode(value string) *AccountBuilder

BanCode sets the value of the 'ban_code' attribute to the given value.

func (*AccountBuilder) BanDescription

func (b *AccountBuilder) BanDescription(value string) *AccountBuilder

BanDescription sets the value of the 'ban_description' attribute to the given value.

func (*AccountBuilder) Banned

func (b *AccountBuilder) Banned(value bool) *AccountBuilder

Banned sets the value of the 'banned' attribute to the given value.

func (*AccountBuilder) Build

func (b *AccountBuilder) Build() (object *Account, err error)

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

func (*AccountBuilder) Copy

func (b *AccountBuilder) Copy(object *Account) *AccountBuilder

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

func (*AccountBuilder) Email

func (b *AccountBuilder) Email(value string) *AccountBuilder

Email sets the value of the 'email' attribute to the given value.

func (*AccountBuilder) FirstName

func (b *AccountBuilder) FirstName(value string) *AccountBuilder

FirstName sets the value of the 'first_name' attribute to the given value.

func (*AccountBuilder) HREF

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

HREF sets the link to the object.

func (*AccountBuilder) ID

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

ID sets the identifier of the object.

func (*AccountBuilder) LastName

func (b *AccountBuilder) LastName(value string) *AccountBuilder

LastName sets the value of the 'last_name' attribute to the given value.

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

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

func (*AccountBuilder) Name added in v0.1.30

func (b *AccountBuilder) Name(value string) *AccountBuilder

Name sets the value of the 'name' attribute to the given value.

func (*AccountBuilder) Organization

func (b *AccountBuilder) Organization(value *OrganizationBuilder) *AccountBuilder

Organization sets the value of the 'organization' attribute to the given value.

func (*AccountBuilder) Username

func (b *AccountBuilder) Username(value string) *AccountBuilder

Username sets the value of the 'username' attribute to the given value.

type AccountClient

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

AccountClient is the client of the 'account' resource.

Manages a specific account.

func NewAccountClient

func NewAccountClient(transport http.RoundTripper, path string, metric string) *AccountClient

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

func (*AccountClient) Get

func (c *AccountClient) Get() *AccountGetRequest

Get creates a request for the 'get' method.

Retrieves the details of the account.

func (*AccountClient) Poll

func (c *AccountClient) Poll() *AccountPollRequest

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.

func (*AccountClient) Update

func (c *AccountClient) Update() *AccountUpdateRequest

Update creates a request for the 'update' method.

Updates the account.

type AccountGetRequest

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

AccountGetRequest is the request for the 'get' method.

func (*AccountGetRequest) Header

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

Header adds a request header.

func (*AccountGetRequest) Parameter

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

Parameter adds a query parameter.

func (*AccountGetRequest) Send

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

func (r *AccountGetRequest) SendContext(ctx context.Context) (result *AccountGetResponse, err error)

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

type AccountGetResponse

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

AccountGetResponse is the response for the 'get' method.

func (*AccountGetResponse) Body

func (r *AccountGetResponse) Body() *Account

Body returns the value of the 'body' parameter.

func (*AccountGetResponse) Error

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

Error returns the response error.

func (*AccountGetResponse) GetBody

func (r *AccountGetResponse) GetBody() (value *Account, ok bool)

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

func (*AccountGetResponse) Header

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

Header returns header of the response.

func (*AccountGetResponse) Status

func (r *AccountGetResponse) Status() int

Status returns the response status code.

type AccountGetServerRequest

type AccountGetServerRequest struct {
}

AccountGetServerRequest is the request for the 'get' method.

type AccountGetServerResponse

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

AccountGetServerResponse is the response for the 'get' method.

func (*AccountGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*AccountGetServerResponse) Status

Status sets the status code.

type AccountList

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

AccountList is a list of values of the 'account' type.

func (*AccountList) Each

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

func (l *AccountList) Empty() bool

Empty returns true if the list is empty.

func (*AccountList) Get

func (l *AccountList) Get(i int) *Account

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

func (*AccountList) GetHREF

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

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

func (*AccountList) HREF

func (l *AccountList) HREF() string

HREF returns the link to the list.

func (*AccountList) Kind

func (l *AccountList) Kind() string

Kind returns the name of the type of the object.

func (*AccountList) Len

func (l *AccountList) Len() int

Len returns the length of the list.

func (l *AccountList) Link() bool

Link returns true iif this is a link.

func (*AccountList) Range

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

func (l *AccountList) Slice() []*Account

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 AccountListBuilder

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

AccountListBuilder contains the data and logic needed to build 'account' objects.

func NewAccountList

func NewAccountList() *AccountListBuilder

NewAccountList creates a new builder of 'account' objects.

func (*AccountListBuilder) Build

func (b *AccountListBuilder) Build() (list *AccountList, err error)

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

func (*AccountListBuilder) Copy

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

func (*AccountListBuilder) Items

Items sets the items of the list.

type AccountPollRequest

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

AccountPollRequest is the request for the Poll method.

func (*AccountPollRequest) Header

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

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

func (*AccountPollRequest) Interval

func (r *AccountPollRequest) Interval(value time.Duration) *AccountPollRequest

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

func (*AccountPollRequest) Parameter

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

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

func (*AccountPollRequest) Predicate

func (r *AccountPollRequest) Predicate(value func(*AccountGetResponse) bool) *AccountPollRequest

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 (*AccountPollRequest) StartContext

func (r *AccountPollRequest) StartContext(ctx context.Context) (response *AccountPollResponse, 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 (*AccountPollRequest) Status

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

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 AccountPollResponse

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

AccountPollResponse is the response for the Poll method.

func (*AccountPollResponse) Body

func (r *AccountPollResponse) Body() *Account

Body returns the value of the 'body' parameter.

func (*AccountPollResponse) Error

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

Error returns the response error.

func (*AccountPollResponse) GetBody

func (r *AccountPollResponse) GetBody() (value *Account, ok bool)

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

func (*AccountPollResponse) Header

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

Header returns header of the response.

func (*AccountPollResponse) Status

func (r *AccountPollResponse) Status() int

Status returns the response status code.

type AccountServer

type AccountServer interface {

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the account.
	Get(ctx context.Context, request *AccountGetServerRequest, response *AccountGetServerResponse) error

	// Update handles a request for the 'update' method.
	//
	// Updates the account.
	Update(ctx context.Context, request *AccountUpdateServerRequest, response *AccountUpdateServerResponse) error
}

AccountServer represents the interface the manages the 'account' resource.

type AccountUpdateRequest

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

AccountUpdateRequest is the request for the 'update' method.

func (*AccountUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*AccountUpdateRequest) Header

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

Header adds a request header.

func (*AccountUpdateRequest) Parameter

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

Parameter adds a query parameter.

func (*AccountUpdateRequest) Send

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

func (r *AccountUpdateRequest) SendContext(ctx context.Context) (result *AccountUpdateResponse, err error)

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

type AccountUpdateResponse

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

AccountUpdateResponse is the response for the 'update' method.

func (*AccountUpdateResponse) Body

func (r *AccountUpdateResponse) Body() *Account

Body returns the value of the 'body' parameter.

func (*AccountUpdateResponse) Error

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

Error returns the response error.

func (*AccountUpdateResponse) GetBody

func (r *AccountUpdateResponse) GetBody() (value *Account, ok bool)

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

func (*AccountUpdateResponse) Header

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

Header returns header of the response.

func (*AccountUpdateResponse) Status

func (r *AccountUpdateResponse) Status() int

Status returns the response status code.

type AccountUpdateServerRequest

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

AccountUpdateServerRequest is the request for the 'update' method.

func (*AccountUpdateServerRequest) Body

Body returns the value of the 'body' parameter.

func (*AccountUpdateServerRequest) GetBody

func (r *AccountUpdateServerRequest) GetBody() (value *Account, ok bool)

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

type AccountUpdateServerResponse

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

AccountUpdateServerResponse is the response for the 'update' method.

func (*AccountUpdateServerResponse) Body

Body sets the value of the 'body' parameter.

func (*AccountUpdateServerResponse) Status

Status sets the status code.

type AccountsAddRequest

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

AccountsAddRequest is the request for the 'add' method.

func (*AccountsAddRequest) Body

Body sets the value of the 'body' parameter.

Account data.

func (*AccountsAddRequest) Header

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

Header adds a request header.

func (*AccountsAddRequest) Parameter

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

Parameter adds a query parameter.

func (*AccountsAddRequest) Send

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

func (r *AccountsAddRequest) SendContext(ctx context.Context) (result *AccountsAddResponse, err error)

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

type AccountsAddResponse

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

AccountsAddResponse is the response for the 'add' method.

func (*AccountsAddResponse) Body

func (r *AccountsAddResponse) Body() *Account

Body returns the value of the 'body' parameter.

Account data.

func (*AccountsAddResponse) Error

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

Error returns the response error.

func (*AccountsAddResponse) GetBody

func (r *AccountsAddResponse) GetBody() (value *Account, ok bool)

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

Account data.

func (*AccountsAddResponse) Header

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

Header returns header of the response.

func (*AccountsAddResponse) Status

func (r *AccountsAddResponse) Status() int

Status returns the response status code.

type AccountsAddServerRequest

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

AccountsAddServerRequest is the request for the 'add' method.

func (*AccountsAddServerRequest) Body

func (r *AccountsAddServerRequest) Body() *Account

Body returns the value of the 'body' parameter.

Account data.

func (*AccountsAddServerRequest) GetBody

func (r *AccountsAddServerRequest) GetBody() (value *Account, ok bool)

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

Account data.

type AccountsAddServerResponse

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

AccountsAddServerResponse is the response for the 'add' method.

func (*AccountsAddServerResponse) Body

Body sets the value of the 'body' parameter.

Account data.

func (*AccountsAddServerResponse) Status

Status sets the status code.

type AccountsClient

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

AccountsClient is the client of the 'accounts' resource.

Manages the collection of accounts.

func NewAccountsClient

func NewAccountsClient(transport http.RoundTripper, path string, metric string) *AccountsClient

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

func (*AccountsClient) Account

func (c *AccountsClient) Account(id string) *AccountClient

Account returns the target 'account' resource for the given identifier.

Reference to the service that manages an specific account.

func (*AccountsClient) Add

Add creates a request for the 'add' method.

Creates a new account.

func (*AccountsClient) List

List creates a request for the 'list' method.

Retrieves the list of accounts.

type AccountsListRequest

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

AccountsListRequest is the request for the 'list' method.

func (*AccountsListRequest) Header

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

Header adds a request header.

func (*AccountsListRequest) Order

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the accounts descending by name identifier the value should be:

[source,sql] ---- name desc ----

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

func (*AccountsListRequest) Page

Page sets the value of the 'page' parameter.

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

func (*AccountsListRequest) Parameter

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

Parameter adds a query parameter.

func (*AccountsListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the account instead of the names of the columns of a table. For example, in order to retrieve accounts with username starting with my:

[source,sql] ---- username like 'my%' ----

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

func (*AccountsListRequest) Send

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

func (r *AccountsListRequest) SendContext(ctx context.Context) (result *AccountsListResponse, err error)

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

func (*AccountsListRequest) Size

Size sets the value of the 'size' parameter.

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

type AccountsListResponse

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

AccountsListResponse is the response for the 'list' method.

func (*AccountsListResponse) Error

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

Error returns the response error.

func (*AccountsListResponse) GetItems

func (r *AccountsListResponse) GetItems() (value *AccountList, ok bool)

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

Retrieved list of accounts.

func (*AccountsListResponse) GetPage

func (r *AccountsListResponse) 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 (*AccountsListResponse) GetSize

func (r *AccountsListResponse) 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 (*AccountsListResponse) GetTotal

func (r *AccountsListResponse) 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 (*AccountsListResponse) Header

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

Header returns header of the response.

func (*AccountsListResponse) Items

func (r *AccountsListResponse) Items() *AccountList

Items returns the value of the 'items' parameter.

Retrieved list of accounts.

func (*AccountsListResponse) Page

func (r *AccountsListResponse) Page() int

Page returns the value of the 'page' parameter.

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

func (*AccountsListResponse) Size

func (r *AccountsListResponse) Size() int

Size returns the value of the 'size' parameter.

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

func (*AccountsListResponse) Status

func (r *AccountsListResponse) Status() int

Status returns the response status code.

func (*AccountsListResponse) Total

func (r *AccountsListResponse) 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 AccountsListServerRequest

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

AccountsListServerRequest is the request for the 'list' method.

func (*AccountsListServerRequest) GetOrder

func (r *AccountsListServerRequest) GetOrder() (value string, ok bool)

GetOrder returns the value of the 'order' parameter and a flag indicating if the parameter has a value.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the accounts descending by name identifier the value should be:

[source,sql] ---- name desc ----

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

func (*AccountsListServerRequest) GetPage

func (r *AccountsListServerRequest) 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 (*AccountsListServerRequest) GetSearch

func (r *AccountsListServerRequest) GetSearch() (value string, ok bool)

GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.

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 account instead of the names of the columns of a table. For example, in order to retrieve accounts with username starting with my:

[source,sql] ---- username like 'my%' ----

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

func (*AccountsListServerRequest) GetSize

func (r *AccountsListServerRequest) 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 (*AccountsListServerRequest) Order

func (r *AccountsListServerRequest) Order() string

Order returns 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. For example, in order to sort the accounts descending by name identifier the value should be:

[source,sql] ---- name desc ----

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

func (*AccountsListServerRequest) Page

func (r *AccountsListServerRequest) Page() int

Page returns the value of the 'page' parameter.

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

func (*AccountsListServerRequest) Search

func (r *AccountsListServerRequest) Search() string

Search returns 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 account instead of the names of the columns of a table. For example, in order to retrieve accounts with username starting with my:

[source,sql] ---- username like 'my%' ----

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

func (*AccountsListServerRequest) Size

func (r *AccountsListServerRequest) Size() int

Size returns the value of the 'size' parameter.

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

type AccountsListServerResponse

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

AccountsListServerResponse is the response for the 'list' method.

func (*AccountsListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of accounts.

func (*AccountsListServerResponse) Page

Page sets the value of the 'page' parameter.

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

func (*AccountsListServerResponse) Size

Size sets the value of the 'size' parameter.

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

func (*AccountsListServerResponse) Status

Status sets the status code.

func (*AccountsListServerResponse) Total

Total sets 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 AccountsServer

type AccountsServer interface {

	// Add handles a request for the 'add' method.
	//
	// Creates a new account.
	Add(ctx context.Context, request *AccountsAddServerRequest, response *AccountsAddServerResponse) error

	// List handles a request for the 'list' method.
	//
	// Retrieves the list of accounts.
	List(ctx context.Context, request *AccountsListServerRequest, response *AccountsListServerResponse) error

	// Account returns the target 'account' server for the given identifier.
	//
	// Reference to the service that manages an specific account.
	Account(id string) AccountServer
}

AccountsServer represents the interface the manages the 'accounts' resource.

type Action

type Action string

Action represents the values of the 'action' enumerated type.

const (
	//
	ActionCreate Action = "create"
	//
	ActionDelete Action = "delete"
	//
	ActionGet Action = "get"
	//
	ActionList Action = "list"
	//
	ActionUpdate Action = "update"
)

func UnmarshalActionList

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

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

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 clusters management service.

func NewClient

func NewClient(transport http.RoundTripper, path string, metric 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) AccessToken

func (c *Client) AccessToken() *AccessTokenClient

AccessToken returns the target 'access_token' resource.

Reference to the resource that manages generates access tokens.

func (*Client) Accounts

func (c *Client) Accounts() *AccountsClient

Accounts returns the target 'accounts' resource.

Reference to the resource that manages the collection of accounts.

func (*Client) ClusterAuthorizations

func (c *Client) ClusterAuthorizations() *ClusterAuthorizationsClient

ClusterAuthorizations returns the target 'cluster_authorizations' resource.

Reference to the resource that manages cluster authorizations.

func (*Client) ClusterRegistrations

func (c *Client) ClusterRegistrations() *ClusterRegistrationsClient

ClusterRegistrations returns the target 'cluster_registrations' resource.

Reference to the resource that manages cluster registrations.

func (*Client) CurrentAccess

func (c *Client) CurrentAccess() *RolesClient

CurrentAccess returns the target 'roles' resource.

Reference to the resource that manages the current authenticated account.

func (*Client) CurrentAccount

func (c *Client) CurrentAccount() *CurrentAccountClient

CurrentAccount returns the target 'current_account' resource.

Reference to the resource that manages the current authenticated account.

func (*Client) Get

func (c *Client) Get() *MetadataRequest

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

func (*Client) Organizations

func (c *Client) Organizations() *OrganizationsClient

Organizations returns the target 'organizations' resource.

Reference to the resource that manages the collection of organizations.

func (*Client) Permissions

func (c *Client) Permissions() *PermissionsClient

Permissions returns the target 'permissions' resource.

Reference to the resource that manages the collection of permissions.

func (*Client) Registries

func (c *Client) Registries() *RegistriesClient

Registries returns the target 'registries' resource.

Reference to the resource that manages the collection of registries.

func (*Client) RegistryCredentials

func (c *Client) RegistryCredentials() *RegistryCredentialsClient

RegistryCredentials returns the target 'registry_credentials' resource.

Reference to the resource that manages the collection of registry credentials.

func (*Client) ResourceQuota

func (c *Client) ResourceQuota() *ResourceQuotasClient

ResourceQuota returns the target 'resource_quotas' resource.

Reference to the resource that manages the collection of resource quota.

func (*Client) RoleBindings

func (c *Client) RoleBindings() *RoleBindingsClient

RoleBindings returns the target 'role_bindings' resource.

Reference to the resource that manages the collection of role bindings.

func (*Client) Roles

func (c *Client) Roles() *RolesClient

Roles returns the target 'roles' resource.

Reference to the resource that manages the collection of roles.

func (*Client) SKUS

func (c *Client) SKUS() *SKUSClient

SKUS returns the target 'SKUS' resource.

Reference to the resource that manages the collection of SKUS

func (*Client) Subscriptions

func (c *Client) Subscriptions() *SubscriptionsClient

Subscriptions returns the target 'subscriptions' resource.

Reference to the resource that manages the collection of subscriptions.

type ClusterAuthorizationRequest

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

ClusterAuthorizationRequest represents the values of the 'cluster_authorization_request' type.

func UnmarshalClusterAuthorizationRequest

func UnmarshalClusterAuthorizationRequest(source interface{}) (object *ClusterAuthorizationRequest, err error)

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

func UnmarshalClusterAuthorizationRequestList

func UnmarshalClusterAuthorizationRequestList(source interface{}) (items []*ClusterAuthorizationRequest, err error)

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

func (*ClusterAuthorizationRequest) AccountUsername

func (o *ClusterAuthorizationRequest) 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 (*ClusterAuthorizationRequest) AvailabilityZone

func (o *ClusterAuthorizationRequest) AvailabilityZone() string

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

func (*ClusterAuthorizationRequest) BYOC

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

func (*ClusterAuthorizationRequest) ClusterID

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

func (*ClusterAuthorizationRequest) Disconnected

func (o *ClusterAuthorizationRequest) Disconnected() bool

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

func (*ClusterAuthorizationRequest) DisplayName

func (o *ClusterAuthorizationRequest) DisplayName() string

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

func (*ClusterAuthorizationRequest) Empty

func (o *ClusterAuthorizationRequest) Empty() bool

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

func (*ClusterAuthorizationRequest) ExternalClusterID

func (o *ClusterAuthorizationRequest) ExternalClusterID() string

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

func (*ClusterAuthorizationRequest) GetAccountUsername

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

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

func (*ClusterAuthorizationRequest) GetAvailabilityZone

func (o *ClusterAuthorizationRequest) GetAvailabilityZone() (value string, ok bool)

GetAvailabilityZone returns the value of the 'availability_zone' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetBYOC

func (o *ClusterAuthorizationRequest) GetBYOC() (value bool, ok bool)

GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetClusterID

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

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

func (*ClusterAuthorizationRequest) GetDisconnected

func (o *ClusterAuthorizationRequest) GetDisconnected() (value bool, ok bool)

GetDisconnected returns the value of the 'disconnected' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetDisplayName

func (o *ClusterAuthorizationRequest) GetDisplayName() (value string, ok bool)

GetDisplayName returns the value of the 'display_name' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetExternalClusterID

func (o *ClusterAuthorizationRequest) GetExternalClusterID() (value string, ok bool)

GetExternalClusterID returns the value of the 'external_cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetManaged

func (o *ClusterAuthorizationRequest) GetManaged() (value bool, ok bool)

GetManaged returns the value of the 'managed' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetReserve

func (o *ClusterAuthorizationRequest) GetReserve() (value bool, ok bool)

GetReserve returns the value of the 'reserve' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetResources

func (o *ClusterAuthorizationRequest) GetResources() (value []*ReservedResource, ok bool)

GetResources returns the value of the 'resources' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) Managed

func (o *ClusterAuthorizationRequest) Managed() bool

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

func (*ClusterAuthorizationRequest) Reserve

func (o *ClusterAuthorizationRequest) Reserve() bool

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

func (*ClusterAuthorizationRequest) Resources

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

type ClusterAuthorizationRequestBuilder

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

ClusterAuthorizationRequestBuilder contains the data and logic needed to build 'cluster_authorization_request' objects.

func NewClusterAuthorizationRequest

func NewClusterAuthorizationRequest() *ClusterAuthorizationRequestBuilder

NewClusterAuthorizationRequest creates a new builder of 'cluster_authorization_request' objects.

func (*ClusterAuthorizationRequestBuilder) AccountUsername

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

func (*ClusterAuthorizationRequestBuilder) AvailabilityZone

AvailabilityZone sets the value of the 'availability_zone' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) BYOC

BYOC sets the value of the 'BYOC' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Build

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

func (*ClusterAuthorizationRequestBuilder) ClusterID

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

func (*ClusterAuthorizationRequestBuilder) Copy

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

func (*ClusterAuthorizationRequestBuilder) Disconnected

Disconnected sets the value of the 'disconnected' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) DisplayName

DisplayName sets the value of the 'display_name' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) ExternalClusterID

ExternalClusterID sets the value of the 'external_cluster_ID' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Managed

Managed sets the value of the 'managed' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Reserve

Reserve sets the value of the 'reserve' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Resources

Resources sets the value of the 'resources' attribute to the given values.

type ClusterAuthorizationRequestList

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

ClusterAuthorizationRequestList is a list of values of the 'cluster_authorization_request' type.

func (*ClusterAuthorizationRequestList) 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 (*ClusterAuthorizationRequestList) Empty

Empty returns true if the list is empty.

func (*ClusterAuthorizationRequestList) Get

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

func (*ClusterAuthorizationRequestList) Len

Len returns the length of the list.

func (*ClusterAuthorizationRequestList) 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 (*ClusterAuthorizationRequestList) 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 ClusterAuthorizationRequestListBuilder

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

ClusterAuthorizationRequestListBuilder contains the data and logic needed to build 'cluster_authorization_request' objects.

func NewClusterAuthorizationRequestList

func NewClusterAuthorizationRequestList() *ClusterAuthorizationRequestListBuilder

NewClusterAuthorizationRequestList creates a new builder of 'cluster_authorization_request' objects.

func (*ClusterAuthorizationRequestListBuilder) Build

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

func (*ClusterAuthorizationRequestListBuilder) Copy

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

func (*ClusterAuthorizationRequestListBuilder) Items

Items sets the items of the list.

type ClusterAuthorizationResponse

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

ClusterAuthorizationResponse represents the values of the 'cluster_authorization_response' type.

func UnmarshalClusterAuthorizationResponse

func UnmarshalClusterAuthorizationResponse(source interface{}) (object *ClusterAuthorizationResponse, err error)

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

func UnmarshalClusterAuthorizationResponseList

func UnmarshalClusterAuthorizationResponseList(source interface{}) (items []*ClusterAuthorizationResponse, err error)

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

func (*ClusterAuthorizationResponse) Allowed

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

func (*ClusterAuthorizationResponse) Empty

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

func (*ClusterAuthorizationResponse) ExcessResources

func (o *ClusterAuthorizationResponse) ExcessResources() []*ReservedResource

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

func (*ClusterAuthorizationResponse) GetAllowed

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

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

func (*ClusterAuthorizationResponse) GetExcessResources

func (o *ClusterAuthorizationResponse) GetExcessResources() (value []*ReservedResource, ok bool)

GetExcessResources returns the value of the 'excess_resources' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationResponse) GetSubscription

func (o *ClusterAuthorizationResponse) GetSubscription() (value *Subscription, ok bool)

GetSubscription returns the value of the 'subscription' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationResponse) Subscription

func (o *ClusterAuthorizationResponse) Subscription() *Subscription

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

type ClusterAuthorizationResponseBuilder

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

ClusterAuthorizationResponseBuilder contains the data and logic needed to build 'cluster_authorization_response' objects.

func NewClusterAuthorizationResponse

func NewClusterAuthorizationResponse() *ClusterAuthorizationResponseBuilder

NewClusterAuthorizationResponse creates a new builder of 'cluster_authorization_response' objects.

func (*ClusterAuthorizationResponseBuilder) Allowed

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

func (*ClusterAuthorizationResponseBuilder) Build

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

func (*ClusterAuthorizationResponseBuilder) Copy

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

func (*ClusterAuthorizationResponseBuilder) ExcessResources

ExcessResources sets the value of the 'excess_resources' attribute to the given values.

func (*ClusterAuthorizationResponseBuilder) Subscription

Subscription sets the value of the 'subscription' attribute to the given value.

type ClusterAuthorizationResponseList

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

ClusterAuthorizationResponseList is a list of values of the 'cluster_authorization_response' type.

func (*ClusterAuthorizationResponseList) 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 (*ClusterAuthorizationResponseList) Empty

Empty returns true if the list is empty.

func (*ClusterAuthorizationResponseList) Get

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

func (*ClusterAuthorizationResponseList) Len

Len returns the length of the list.

func (*ClusterAuthorizationResponseList) 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 (*ClusterAuthorizationResponseList) 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 ClusterAuthorizationResponseListBuilder

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

ClusterAuthorizationResponseListBuilder contains the data and logic needed to build 'cluster_authorization_response' objects.

func NewClusterAuthorizationResponseList

func NewClusterAuthorizationResponseList() *ClusterAuthorizationResponseListBuilder

NewClusterAuthorizationResponseList creates a new builder of 'cluster_authorization_response' objects.

func (*ClusterAuthorizationResponseListBuilder) Build

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

func (*ClusterAuthorizationResponseListBuilder) Copy

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

func (*ClusterAuthorizationResponseListBuilder) Items

Items sets the items of the list.

type ClusterAuthorizationsClient

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

ClusterAuthorizationsClient is the client of the 'cluster_authorizations' resource.

Manages cluster authorizations.

func NewClusterAuthorizationsClient

func NewClusterAuthorizationsClient(transport http.RoundTripper, path string, metric string) *ClusterAuthorizationsClient

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

func (*ClusterAuthorizationsClient) Post

Post creates a request for the 'post' method.

Authorizes new cluster creation against an existing subscription.

type ClusterAuthorizationsPostRequest

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

ClusterAuthorizationsPostRequest is the request for the 'post' method.

func (*ClusterAuthorizationsPostRequest) Header

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

Header adds a request header.

func (*ClusterAuthorizationsPostRequest) Parameter

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

Parameter adds a query parameter.

func (*ClusterAuthorizationsPostRequest) Request

Request sets the value of the 'request' parameter.

func (*ClusterAuthorizationsPostRequest) 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 (*ClusterAuthorizationsPostRequest) SendContext

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

type ClusterAuthorizationsPostResponse

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

ClusterAuthorizationsPostResponse is the response for the 'post' method.

func (*ClusterAuthorizationsPostResponse) Error

Error returns the response error.

func (*ClusterAuthorizationsPostResponse) GetResponse

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

func (*ClusterAuthorizationsPostResponse) Header

Header returns header of the response.

func (*ClusterAuthorizationsPostResponse) Response

Response returns the value of the 'response' parameter.

func (*ClusterAuthorizationsPostResponse) Status

Status returns the response status code.

type ClusterAuthorizationsPostServerRequest

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

ClusterAuthorizationsPostServerRequest is the request for the 'post' method.

func (*ClusterAuthorizationsPostServerRequest) GetRequest

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

func (*ClusterAuthorizationsPostServerRequest) Request

Request returns the value of the 'request' parameter.

type ClusterAuthorizationsPostServerResponse

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

ClusterAuthorizationsPostServerResponse is the response for the 'post' method.

func (*ClusterAuthorizationsPostServerResponse) Response

Response sets the value of the 'response' parameter.

func (*ClusterAuthorizationsPostServerResponse) Status

Status sets the status code.

type ClusterAuthorizationsServer

type ClusterAuthorizationsServer interface {

	// Post handles a request for the 'post' method.
	//
	// Authorizes new cluster creation against an existing subscription.
	Post(ctx context.Context, request *ClusterAuthorizationsPostServerRequest, response *ClusterAuthorizationsPostServerResponse) error
}

ClusterAuthorizationsServer represents the interface the manages the 'cluster_authorizations' resource.

type ClusterRegistrationRequest

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

ClusterRegistrationRequest represents the values of the 'cluster_registration_request' type.

func UnmarshalClusterRegistrationRequest

func UnmarshalClusterRegistrationRequest(source interface{}) (object *ClusterRegistrationRequest, err error)

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

func UnmarshalClusterRegistrationRequestList

func UnmarshalClusterRegistrationRequestList(source interface{}) (items []*ClusterRegistrationRequest, err error)

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

func (*ClusterRegistrationRequest) AuthorizationToken

func (o *ClusterRegistrationRequest) AuthorizationToken() string

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

func (*ClusterRegistrationRequest) ClusterID

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

func (*ClusterRegistrationRequest) Empty

func (o *ClusterRegistrationRequest) Empty() bool

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

func (*ClusterRegistrationRequest) GetAuthorizationToken

func (o *ClusterRegistrationRequest) GetAuthorizationToken() (value string, ok bool)

GetAuthorizationToken returns the value of the 'authorization_token' attribute and a flag indicating if the attribute has a value.

func (*ClusterRegistrationRequest) GetClusterID

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

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

type ClusterRegistrationRequestBuilder

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

ClusterRegistrationRequestBuilder contains the data and logic needed to build 'cluster_registration_request' objects.

func NewClusterRegistrationRequest

func NewClusterRegistrationRequest() *ClusterRegistrationRequestBuilder

NewClusterRegistrationRequest creates a new builder of 'cluster_registration_request' objects.

func (*ClusterRegistrationRequestBuilder) AuthorizationToken

AuthorizationToken sets the value of the 'authorization_token' attribute to the given value.

func (*ClusterRegistrationRequestBuilder) Build

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

func (*ClusterRegistrationRequestBuilder) ClusterID

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

func (*ClusterRegistrationRequestBuilder) Copy

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

type ClusterRegistrationRequestList

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

ClusterRegistrationRequestList is a list of values of the 'cluster_registration_request' type.

func (*ClusterRegistrationRequestList) 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 (*ClusterRegistrationRequestList) Empty

Empty returns true if the list is empty.

func (*ClusterRegistrationRequestList) Get

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

func (*ClusterRegistrationRequestList) Len

Len returns the length of the list.

func (*ClusterRegistrationRequestList) Range

func (l *ClusterRegistrationRequestList) Range(f func(index int, item *ClusterRegistrationRequest) 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 (*ClusterRegistrationRequestList) 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 ClusterRegistrationRequestListBuilder

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

ClusterRegistrationRequestListBuilder contains the data and logic needed to build 'cluster_registration_request' objects.

func NewClusterRegistrationRequestList

func NewClusterRegistrationRequestList() *ClusterRegistrationRequestListBuilder

NewClusterRegistrationRequestList creates a new builder of 'cluster_registration_request' objects.

func (*ClusterRegistrationRequestListBuilder) Build

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

func (*ClusterRegistrationRequestListBuilder) Copy

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

func (*ClusterRegistrationRequestListBuilder) Items

Items sets the items of the list.

type ClusterRegistrationResponse

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

ClusterRegistrationResponse represents the values of the 'cluster_registration_response' type.

func UnmarshalClusterRegistrationResponse

func UnmarshalClusterRegistrationResponse(source interface{}) (object *ClusterRegistrationResponse, err error)

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

func UnmarshalClusterRegistrationResponseList

func UnmarshalClusterRegistrationResponseList(source interface{}) (items []*ClusterRegistrationResponse, err error)

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

func (*ClusterRegistrationResponse) AccountID

func (o *ClusterRegistrationResponse) AccountID() string

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

func (*ClusterRegistrationResponse) AuthorizationToken

func (o *ClusterRegistrationResponse) AuthorizationToken() string

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

func (*ClusterRegistrationResponse) ClusterID

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

func (*ClusterRegistrationResponse) Empty

func (o *ClusterRegistrationResponse) Empty() bool

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

func (*ClusterRegistrationResponse) ExpiresAt

func (o *ClusterRegistrationResponse) ExpiresAt() string

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

Cluster registration expiration.

func (*ClusterRegistrationResponse) GetAccountID

func (o *ClusterRegistrationResponse) GetAccountID() (value string, ok bool)

GetAccountID returns the value of the 'account_ID' attribute and a flag indicating if the attribute has a value.

func (*ClusterRegistrationResponse) GetAuthorizationToken

func (o *ClusterRegistrationResponse) GetAuthorizationToken() (value string, ok bool)

GetAuthorizationToken returns the value of the 'authorization_token' attribute and a flag indicating if the attribute has a value.

func (*ClusterRegistrationResponse) GetClusterID

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

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

func (*ClusterRegistrationResponse) GetExpiresAt

func (o *ClusterRegistrationResponse) GetExpiresAt() (value string, ok bool)

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

Cluster registration expiration.

type ClusterRegistrationResponseBuilder

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

ClusterRegistrationResponseBuilder contains the data and logic needed to build 'cluster_registration_response' objects.

func NewClusterRegistrationResponse

func NewClusterRegistrationResponse() *ClusterRegistrationResponseBuilder

NewClusterRegistrationResponse creates a new builder of 'cluster_registration_response' objects.

func (*ClusterRegistrationResponseBuilder) AccountID

AccountID sets the value of the 'account_ID' attribute to the given value.

func (*ClusterRegistrationResponseBuilder) AuthorizationToken

AuthorizationToken sets the value of the 'authorization_token' attribute to the given value.

func (*ClusterRegistrationResponseBuilder) Build

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

func (*ClusterRegistrationResponseBuilder) ClusterID

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

func (*ClusterRegistrationResponseBuilder) Copy

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

func (*ClusterRegistrationResponseBuilder) ExpiresAt

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

type ClusterRegistrationResponseList

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

ClusterRegistrationResponseList is a list of values of the 'cluster_registration_response' type.

func (*ClusterRegistrationResponseList) 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 (*ClusterRegistrationResponseList) Empty

Empty returns true if the list is empty.

func (*ClusterRegistrationResponseList) Get

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

func (*ClusterRegistrationResponseList) Len

Len returns the length of the list.

func (*ClusterRegistrationResponseList) 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 (*ClusterRegistrationResponseList) 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 ClusterRegistrationResponseListBuilder

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

ClusterRegistrationResponseListBuilder contains the data and logic needed to build 'cluster_registration_response' objects.

func NewClusterRegistrationResponseList

func NewClusterRegistrationResponseList() *ClusterRegistrationResponseListBuilder

NewClusterRegistrationResponseList creates a new builder of 'cluster_registration_response' objects.

func (*ClusterRegistrationResponseListBuilder) Build

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

func (*ClusterRegistrationResponseListBuilder) Copy

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

func (*ClusterRegistrationResponseListBuilder) Items

Items sets the items of the list.

type ClusterRegistrationsClient

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

ClusterRegistrationsClient is the client of the 'cluster_registrations' resource.

Manages cluster registrations.

func NewClusterRegistrationsClient

func NewClusterRegistrationsClient(transport http.RoundTripper, path string, metric string) *ClusterRegistrationsClient

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

func (*ClusterRegistrationsClient) Post

Post creates a request for the 'post' method.

Finds or creates a cluster registration with a registry credential token and cluster identifier.

type ClusterRegistrationsPostRequest

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

ClusterRegistrationsPostRequest is the request for the 'post' method.

func (*ClusterRegistrationsPostRequest) Header

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

Header adds a request header.

func (*ClusterRegistrationsPostRequest) Parameter

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

Parameter adds a query parameter.

func (*ClusterRegistrationsPostRequest) Request

Request sets the value of the 'request' parameter.

func (*ClusterRegistrationsPostRequest) 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 (*ClusterRegistrationsPostRequest) SendContext

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

type ClusterRegistrationsPostResponse

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

ClusterRegistrationsPostResponse is the response for the 'post' method.

func (*ClusterRegistrationsPostResponse) Error

Error returns the response error.

func (*ClusterRegistrationsPostResponse) GetResponse

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

func (*ClusterRegistrationsPostResponse) Header

Header returns header of the response.

func (*ClusterRegistrationsPostResponse) Response

Response returns the value of the 'response' parameter.

func (*ClusterRegistrationsPostResponse) Status

Status returns the response status code.

type ClusterRegistrationsPostServerRequest

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

ClusterRegistrationsPostServerRequest is the request for the 'post' method.

func (*ClusterRegistrationsPostServerRequest) GetRequest

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

func (*ClusterRegistrationsPostServerRequest) Request

Request returns the value of the 'request' parameter.

type ClusterRegistrationsPostServerResponse

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

ClusterRegistrationsPostServerResponse is the response for the 'post' method.

func (*ClusterRegistrationsPostServerResponse) Response

Response sets the value of the 'response' parameter.

func (*ClusterRegistrationsPostServerResponse) Status

Status sets the status code.

type ClusterRegistrationsServer

type ClusterRegistrationsServer interface {

	// Post handles a request for the 'post' method.
	//
	// Finds or creates a cluster registration with a registry credential
	// token and cluster identifier.
	Post(ctx context.Context, request *ClusterRegistrationsPostServerRequest, response *ClusterRegistrationsPostServerResponse) error
}

ClusterRegistrationsServer represents the interface the manages the 'cluster_registrations' resource.

type CurrentAccessClient

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

CurrentAccessClient is the client of the 'current_access' resource.

Manages roles/permissions of the current authenticated account.

func NewCurrentAccessClient

func NewCurrentAccessClient(transport http.RoundTripper, path string, metric string) *CurrentAccessClient

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

func (*CurrentAccessClient) List

List creates a request for the 'list' method.

Retrieves the details of the account.

type CurrentAccessListRequest

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

CurrentAccessListRequest is the request for the 'list' method.

func (*CurrentAccessListRequest) Header

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

Header adds a request header.

func (*CurrentAccessListRequest) Page

Page sets the value of the 'page' parameter.

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

func (*CurrentAccessListRequest) Parameter

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

Parameter adds a query parameter.

func (*CurrentAccessListRequest) Send

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

func (r *CurrentAccessListRequest) SendContext(ctx context.Context) (result *CurrentAccessListResponse, err error)

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

func (*CurrentAccessListRequest) Size

Size sets the value of the 'size' parameter.

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

type CurrentAccessListResponse

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

CurrentAccessListResponse is the response for the 'list' method.

func (*CurrentAccessListResponse) Error

Error returns the response error.

func (*CurrentAccessListResponse) GetItems

func (r *CurrentAccessListResponse) GetItems() (value *RoleList, ok bool)

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

func (*CurrentAccessListResponse) GetPage

func (r *CurrentAccessListResponse) 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 (*CurrentAccessListResponse) GetSize

func (r *CurrentAccessListResponse) 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 (*CurrentAccessListResponse) GetTotal

func (r *CurrentAccessListResponse) 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 (*CurrentAccessListResponse) Header

Header returns header of the response.

func (*CurrentAccessListResponse) Items

func (r *CurrentAccessListResponse) Items() *RoleList

Items returns the value of the 'items' parameter.

func (*CurrentAccessListResponse) Page

func (r *CurrentAccessListResponse) Page() int

Page returns the value of the 'page' parameter.

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

func (*CurrentAccessListResponse) Size

func (r *CurrentAccessListResponse) Size() int

Size returns the value of the 'size' parameter.

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

func (*CurrentAccessListResponse) Status

func (r *CurrentAccessListResponse) Status() int

Status returns the response status code.

func (*CurrentAccessListResponse) Total

func (r *CurrentAccessListResponse) 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 CurrentAccessListServerRequest

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

CurrentAccessListServerRequest is the request for the 'list' method.

func (*CurrentAccessListServerRequest) GetPage

func (r *CurrentAccessListServerRequest) 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 (*CurrentAccessListServerRequest) GetSize

func (r *CurrentAccessListServerRequest) 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 (*CurrentAccessListServerRequest) Page

Page returns the value of the 'page' parameter.

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

func (*CurrentAccessListServerRequest) Size

Size returns the value of the 'size' parameter.

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

type CurrentAccessListServerResponse

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

CurrentAccessListServerResponse is the response for the 'list' method.

func (*CurrentAccessListServerResponse) Items

Items sets the value of the 'items' parameter.

func (*CurrentAccessListServerResponse) Page

Page sets the value of the 'page' parameter.

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

func (*CurrentAccessListServerResponse) Size

Size sets the value of the 'size' parameter.

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

func (*CurrentAccessListServerResponse) Status

Status sets the status code.

func (*CurrentAccessListServerResponse) Total

Total sets 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 CurrentAccessServer

type CurrentAccessServer interface {

	// List handles a request for the 'list' method.
	//
	// Retrieves the details of the account.
	List(ctx context.Context, request *CurrentAccessListServerRequest, response *CurrentAccessListServerResponse) error
}

CurrentAccessServer represents the interface the manages the 'current_access' resource.

type CurrentAccountClient

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

CurrentAccountClient is the client of the 'current_account' resource.

Manages the current authenticated account.

func NewCurrentAccountClient

func NewCurrentAccountClient(transport http.RoundTripper, path string, metric string) *CurrentAccountClient

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

func (*CurrentAccountClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the account.

func (*CurrentAccountClient) Poll

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

type CurrentAccountGetRequest

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

CurrentAccountGetRequest is the request for the 'get' method.

func (*CurrentAccountGetRequest) Header

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

Header adds a request header.

func (*CurrentAccountGetRequest) Parameter

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

Parameter adds a query parameter.

func (*CurrentAccountGetRequest) Send

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

func (r *CurrentAccountGetRequest) SendContext(ctx context.Context) (result *CurrentAccountGetResponse, err error)

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

type CurrentAccountGetResponse

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

CurrentAccountGetResponse is the response for the 'get' method.

func (*CurrentAccountGetResponse) Body

Body returns the value of the 'body' parameter.

func (*CurrentAccountGetResponse) Error

Error returns the response error.

func (*CurrentAccountGetResponse) GetBody

func (r *CurrentAccountGetResponse) GetBody() (value *Account, ok bool)

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

func (*CurrentAccountGetResponse) Header

Header returns header of the response.

func (*CurrentAccountGetResponse) Status

func (r *CurrentAccountGetResponse) Status() int

Status returns the response status code.

type CurrentAccountGetServerRequest

type CurrentAccountGetServerRequest struct {
}

CurrentAccountGetServerRequest is the request for the 'get' method.

type CurrentAccountGetServerResponse

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

CurrentAccountGetServerResponse is the response for the 'get' method.

func (*CurrentAccountGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*CurrentAccountGetServerResponse) Status

Status sets the status code.

type CurrentAccountPollRequest

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

CurrentAccountPollRequest is the request for the Poll method.

func (*CurrentAccountPollRequest) Header

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

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

func (*CurrentAccountPollRequest) Interval

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

func (*CurrentAccountPollRequest) Parameter

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

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

func (*CurrentAccountPollRequest) Predicate

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

func (*CurrentAccountPollRequest) StartContext

func (r *CurrentAccountPollRequest) StartContext(ctx context.Context) (response *CurrentAccountPollResponse, 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 (*CurrentAccountPollRequest) Status

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

type CurrentAccountPollResponse

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

CurrentAccountPollResponse is the response for the Poll method.

func (*CurrentAccountPollResponse) Body

Body returns the value of the 'body' parameter.

func (*CurrentAccountPollResponse) Error

Error returns the response error.

func (*CurrentAccountPollResponse) GetBody

func (r *CurrentAccountPollResponse) GetBody() (value *Account, ok bool)

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

func (*CurrentAccountPollResponse) Header

Header returns header of the response.

func (*CurrentAccountPollResponse) Status

func (r *CurrentAccountPollResponse) Status() int

Status returns the response status code.

type CurrentAccountServer

type CurrentAccountServer interface {

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the account.
	Get(ctx context.Context, request *CurrentAccountGetServerRequest, response *CurrentAccountGetServerResponse) error
}

CurrentAccountServer represents the interface the manages the 'current_account' resource.

type Metadata

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

Metadata contains the version metadata.

func UnmarshalMetadata

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

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

func (*Metadata) GetServerVersion

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

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

func (*Metadata) ServerVersion

func (m *Metadata) ServerVersion() string

ServerVersion returns the version of the server.

type MetadataRequest

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

MetadataRequest is the request to retrieve the metadata.

func (*MetadataRequest) Header

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

Header adds a request header.

func (*MetadataRequest) Parameter

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

Parameter adds a query parameter.

func (*MetadataRequest) Send

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

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

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

func (*MetadataRequest) SendContext

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

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

type MetadataResponse

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

MetadataResponse is the response for the metadata request.

func (*MetadataResponse) Body

func (r *MetadataResponse) Body() *Metadata

Body returns the response body.

func (*MetadataResponse) Error

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

Error returns the response error.

func (*MetadataResponse) Header

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

Header returns header of the response.

func (*MetadataResponse) Status

func (r *MetadataResponse) Status() int

Status returns the response status code.

type Organization

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

Organization represents the values of the 'organization' type.

func UnmarshalOrganization

func UnmarshalOrganization(source interface{}) (object *Organization, err error)

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

func UnmarshalOrganizationList

func UnmarshalOrganizationList(source interface{}) (items []*Organization, err error)

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

func (*Organization) Empty

func (o *Organization) Empty() bool

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

func (*Organization) ExternalID

func (o *Organization) ExternalID() string

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

func (*Organization) GetExternalID

func (o *Organization) GetExternalID() (value string, ok bool)

GetExternalID returns the value of the 'external_ID' attribute and a flag indicating if the attribute has a value.

func (*Organization) GetHREF

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

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

func (*Organization) GetID

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

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

func (*Organization) GetName

func (o *Organization) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Organization) HREF

func (o *Organization) HREF() string

HREF returns the link to the object.

func (*Organization) ID

func (o *Organization) ID() string

ID returns the identifier of the object.

func (*Organization) Kind

func (o *Organization) Kind() string

Kind returns the name of the type of the object.

func (o *Organization) Link() bool

Link returns true iif this is a link.

func (*Organization) Name

func (o *Organization) Name() string

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

type OrganizationBuilder

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

OrganizationBuilder contains the data and logic needed to build 'organization' objects.

func NewOrganization

func NewOrganization() *OrganizationBuilder

NewOrganization creates a new builder of 'organization' objects.

func (*OrganizationBuilder) Build

func (b *OrganizationBuilder) Build() (object *Organization, err error)

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

func (*OrganizationBuilder) Copy

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

func (*OrganizationBuilder) ExternalID

func (b *OrganizationBuilder) ExternalID(value string) *OrganizationBuilder

ExternalID sets the value of the 'external_ID' attribute to the given value.

func (*OrganizationBuilder) HREF

HREF sets the link to the object.

func (*OrganizationBuilder) ID

ID sets the identifier of the object.

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

func (*OrganizationBuilder) Name

Name sets the value of the 'name' attribute to the given value.

type OrganizationClient

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

OrganizationClient is the client of the 'organization' resource.

Manages a specific organization.

func NewOrganizationClient

func NewOrganizationClient(transport http.RoundTripper, path string, metric string) *OrganizationClient

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

func (*OrganizationClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the organization.

func (*OrganizationClient) Poll

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

func (*OrganizationClient) QuotaSummary

func (c *OrganizationClient) QuotaSummary() *QuotaSummaryClient

QuotaSummary returns the target 'quota_summary' resource.

Reference to the service that returns the summary of the resource quota for this organization.

func (*OrganizationClient) ResourceQuota

func (c *OrganizationClient) ResourceQuota() *ResourceQuotasClient

ResourceQuota returns the target 'resource_quotas' resource.

Reference to the service that manages the resource quotas for this organization.

func (*OrganizationClient) Update

Update creates a request for the 'update' method.

Updates the organization.

type OrganizationGetRequest

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

OrganizationGetRequest is the request for the 'get' method.

func (*OrganizationGetRequest) Header

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

Header adds a request header.

func (*OrganizationGetRequest) Parameter

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

Parameter adds a query parameter.

func (*OrganizationGetRequest) Send

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

func (r *OrganizationGetRequest) SendContext(ctx context.Context) (result *OrganizationGetResponse, err error)

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

type OrganizationGetResponse

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

OrganizationGetResponse is the response for the 'get' method.

func (*OrganizationGetResponse) Body

Body returns the value of the 'body' parameter.

func (*OrganizationGetResponse) Error

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

Error returns the response error.

func (*OrganizationGetResponse) GetBody

func (r *OrganizationGetResponse) GetBody() (value *Organization, ok bool)

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

func (*OrganizationGetResponse) Header

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

Header returns header of the response.

func (*OrganizationGetResponse) Status

func (r *OrganizationGetResponse) Status() int

Status returns the response status code.

type OrganizationGetServerRequest

type OrganizationGetServerRequest struct {
}

OrganizationGetServerRequest is the request for the 'get' method.

type OrganizationGetServerResponse

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

OrganizationGetServerResponse is the response for the 'get' method.

func (*OrganizationGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*OrganizationGetServerResponse) Status

Status sets the status code.

type OrganizationList

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

OrganizationList is a list of values of the 'organization' type.

func (*OrganizationList) Each

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

func (l *OrganizationList) Empty() bool

Empty returns true if the list is empty.

func (*OrganizationList) Get

func (l *OrganizationList) Get(i int) *Organization

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

func (*OrganizationList) GetHREF

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

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

func (*OrganizationList) HREF

func (l *OrganizationList) HREF() string

HREF returns the link to the list.

func (*OrganizationList) Kind

func (l *OrganizationList) Kind() string

Kind returns the name of the type of the object.

func (*OrganizationList) Len

func (l *OrganizationList) Len() int

Len returns the length of the list.

func (l *OrganizationList) Link() bool

Link returns true iif this is a link.

func (*OrganizationList) Range

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

func (l *OrganizationList) Slice() []*Organization

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 OrganizationListBuilder

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

OrganizationListBuilder contains the data and logic needed to build 'organization' objects.

func NewOrganizationList

func NewOrganizationList() *OrganizationListBuilder

NewOrganizationList creates a new builder of 'organization' objects.

func (*OrganizationListBuilder) Build

func (b *OrganizationListBuilder) Build() (list *OrganizationList, err error)

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

func (*OrganizationListBuilder) Copy

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

func (*OrganizationListBuilder) Items

Items sets the items of the list.

type OrganizationPollRequest

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

OrganizationPollRequest is the request for the Poll method.

func (*OrganizationPollRequest) Header

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

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

func (*OrganizationPollRequest) Interval

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

func (*OrganizationPollRequest) Parameter

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

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

func (*OrganizationPollRequest) Predicate

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

func (*OrganizationPollRequest) StartContext

func (r *OrganizationPollRequest) StartContext(ctx context.Context) (response *OrganizationPollResponse, 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 (*OrganizationPollRequest) Status

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

type OrganizationPollResponse

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

OrganizationPollResponse is the response for the Poll method.

func (*OrganizationPollResponse) Body

Body returns the value of the 'body' parameter.

func (*OrganizationPollResponse) Error

Error returns the response error.

func (*OrganizationPollResponse) GetBody

func (r *OrganizationPollResponse) GetBody() (value *Organization, ok bool)

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

func (*OrganizationPollResponse) Header

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

Header returns header of the response.

func (*OrganizationPollResponse) Status

func (r *OrganizationPollResponse) Status() int

Status returns the response status code.

type OrganizationServer

type OrganizationServer interface {

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the organization.
	Get(ctx context.Context, request *OrganizationGetServerRequest, response *OrganizationGetServerResponse) error

	// Update handles a request for the 'update' method.
	//
	// Updates the organization.
	Update(ctx context.Context, request *OrganizationUpdateServerRequest, response *OrganizationUpdateServerResponse) error

	// QuotaSummary returns the target 'quota_summary' resource.
	//
	// Reference to the service that returns the summary of the resource quota for this
	// organization.
	QuotaSummary() QuotaSummaryServer

	// ResourceQuota returns the target 'resource_quotas' resource.
	//
	// Reference to the service that manages the resource quotas for this
	// organization.
	ResourceQuota() ResourceQuotasServer
}

OrganizationServer represents the interface the manages the 'organization' resource.

type OrganizationUpdateRequest

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

OrganizationUpdateRequest is the request for the 'update' method.

func (*OrganizationUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*OrganizationUpdateRequest) Header

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

Header adds a request header.

func (*OrganizationUpdateRequest) Parameter

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

Parameter adds a query parameter.

func (*OrganizationUpdateRequest) 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 (*OrganizationUpdateRequest) SendContext

func (r *OrganizationUpdateRequest) SendContext(ctx context.Context) (result *OrganizationUpdateResponse, err error)

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

type OrganizationUpdateResponse

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

OrganizationUpdateResponse is the response for the 'update' method.

func (*OrganizationUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*OrganizationUpdateResponse) Error

Error returns the response error.

func (*OrganizationUpdateResponse) GetBody

func (r *OrganizationUpdateResponse) GetBody() (value *Organization, ok bool)

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

func (*OrganizationUpdateResponse) Header

Header returns header of the response.

func (*OrganizationUpdateResponse) Status

func (r *OrganizationUpdateResponse) Status() int

Status returns the response status code.

type OrganizationUpdateServerRequest

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

OrganizationUpdateServerRequest is the request for the 'update' method.

func (*OrganizationUpdateServerRequest) Body

Body returns the value of the 'body' parameter.

func (*OrganizationUpdateServerRequest) GetBody

func (r *OrganizationUpdateServerRequest) GetBody() (value *Organization, ok bool)

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

type OrganizationUpdateServerResponse

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

OrganizationUpdateServerResponse is the response for the 'update' method.

func (*OrganizationUpdateServerResponse) Body

Body sets the value of the 'body' parameter.

func (*OrganizationUpdateServerResponse) Status

Status sets the status code.

type OrganizationsAddRequest

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

OrganizationsAddRequest is the request for the 'add' method.

func (*OrganizationsAddRequest) Body

Body sets the value of the 'body' parameter.

Organization data.

func (*OrganizationsAddRequest) Header

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

Header adds a request header.

func (*OrganizationsAddRequest) Parameter

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

Parameter adds a query parameter.

func (*OrganizationsAddRequest) Send

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

func (r *OrganizationsAddRequest) SendContext(ctx context.Context) (result *OrganizationsAddResponse, err error)

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

type OrganizationsAddResponse

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

OrganizationsAddResponse is the response for the 'add' method.

func (*OrganizationsAddResponse) Body

Body returns the value of the 'body' parameter.

Organization data.

func (*OrganizationsAddResponse) Error

Error returns the response error.

func (*OrganizationsAddResponse) GetBody

func (r *OrganizationsAddResponse) GetBody() (value *Organization, ok bool)

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

Organization data.

func (*OrganizationsAddResponse) Header

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

Header returns header of the response.

func (*OrganizationsAddResponse) Status

func (r *OrganizationsAddResponse) Status() int

Status returns the response status code.

type OrganizationsAddServerRequest

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

OrganizationsAddServerRequest is the request for the 'add' method.

func (*OrganizationsAddServerRequest) Body

Body returns the value of the 'body' parameter.

Organization data.

func (*OrganizationsAddServerRequest) GetBody

func (r *OrganizationsAddServerRequest) GetBody() (value *Organization, ok bool)

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

Organization data.

type OrganizationsAddServerResponse

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

OrganizationsAddServerResponse is the response for the 'add' method.

func (*OrganizationsAddServerResponse) Body

Body sets the value of the 'body' parameter.

Organization data.

func (*OrganizationsAddServerResponse) Status

Status sets the status code.

type OrganizationsClient

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

OrganizationsClient is the client of the 'organizations' resource.

Manages the collection of organizations.

func NewOrganizationsClient

func NewOrganizationsClient(transport http.RoundTripper, path string, metric string) *OrganizationsClient

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

func (*OrganizationsClient) Add

Add creates a request for the 'add' method.

Creates a new organization.

func (*OrganizationsClient) List

List creates a request for the 'list' method.

Retrieves a list of organizations.

func (*OrganizationsClient) Organization

func (c *OrganizationsClient) Organization(id string) *OrganizationClient

Organization returns the target 'organization' resource for the given identifier.

Reference to the service that manages a specific organization.

type OrganizationsListRequest

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

OrganizationsListRequest is the request for the 'list' method.

func (*OrganizationsListRequest) Header

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

Header adds a request header.

func (*OrganizationsListRequest) Page

Page sets the value of the 'page' parameter.

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

func (*OrganizationsListRequest) Parameter

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

Parameter adds a query parameter.

func (*OrganizationsListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the organization instead of the names of the columns of a table. For example, in order to retrieve organizations with name starting with my:

[source,sql] ---- name like 'my%' ----

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

func (*OrganizationsListRequest) Send

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

func (r *OrganizationsListRequest) SendContext(ctx context.Context) (result *OrganizationsListResponse, err error)

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

func (*OrganizationsListRequest) Size

Size sets the value of the 'size' parameter.

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

type OrganizationsListResponse

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

OrganizationsListResponse is the response for the 'list' method.

func (*OrganizationsListResponse) Error

Error returns the response error.

func (*OrganizationsListResponse) GetItems

func (r *OrganizationsListResponse) GetItems() (value *OrganizationList, ok bool)

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

Retrieved list of organizations.

func (*OrganizationsListResponse) GetPage

func (r *OrganizationsListResponse) 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 (*OrganizationsListResponse) GetSize

func (r *OrganizationsListResponse) 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 (*OrganizationsListResponse) GetTotal

func (r *OrganizationsListResponse) 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 (*OrganizationsListResponse) Header

Header returns header of the response.

func (*OrganizationsListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of organizations.

func (*OrganizationsListResponse) Page

func (r *OrganizationsListResponse) Page() int

Page returns the value of the 'page' parameter.

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

func (*OrganizationsListResponse) Size

func (r *OrganizationsListResponse) Size() int

Size returns the value of the 'size' parameter.

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

func (*OrganizationsListResponse) Status

func (r *OrganizationsListResponse) Status() int

Status returns the response status code.

func (*OrganizationsListResponse) Total

func (r *OrganizationsListResponse) 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 OrganizationsListServerRequest

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

OrganizationsListServerRequest is the request for the 'list' method.

func (*OrganizationsListServerRequest) GetPage

func (r *OrganizationsListServerRequest) 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 (*OrganizationsListServerRequest) GetSearch

func (r *OrganizationsListServerRequest) GetSearch() (value string, ok bool)

GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.

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 organization instead of the names of the columns of a table. For example, in order to retrieve organizations with name starting with my:

[source,sql] ---- name like 'my%' ----

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

func (*OrganizationsListServerRequest) GetSize

func (r *OrganizationsListServerRequest) 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 (*OrganizationsListServerRequest) Page

Page returns the value of the 'page' parameter.

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

func (*OrganizationsListServerRequest) Search

Search returns 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 organization instead of the names of the columns of a table. For example, in order to retrieve organizations with name starting with my:

[source,sql] ---- name like 'my%' ----

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

func (*OrganizationsListServerRequest) Size

Size returns the value of the 'size' parameter.

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

type OrganizationsListServerResponse

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

OrganizationsListServerResponse is the response for the 'list' method.

func (*OrganizationsListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of organizations.

func (*OrganizationsListServerResponse) Page

Page sets the value of the 'page' parameter.

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

func (*OrganizationsListServerResponse) Size

Size sets the value of the 'size' parameter.

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

func (*OrganizationsListServerResponse) Status

Status sets the status code.

func (*OrganizationsListServerResponse) Total

Total sets 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 OrganizationsServer

type OrganizationsServer interface {

	// Add handles a request for the 'add' method.
	//
	// Creates a new organization.
	Add(ctx context.Context, request *OrganizationsAddServerRequest, response *OrganizationsAddServerResponse) error

	// List handles a request for the 'list' method.
	//
	// Retrieves a list of organizations.
	List(ctx context.Context, request *OrganizationsListServerRequest, response *OrganizationsListServerResponse) error

	// Organization returns the target 'organization' server for the given identifier.
	//
	// Reference to the service that manages a specific organization.
	Organization(id string) OrganizationServer
}

OrganizationsServer represents the interface the manages the 'organizations' resource.

type Permission

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

Permission represents the values of the 'permission' type.

func UnmarshalPermission

func UnmarshalPermission(source interface{}) (object *Permission, err error)

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

func UnmarshalPermissionList

func UnmarshalPermissionList(source interface{}) (items []*Permission, err error)

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

func (*Permission) Action

func (o *Permission) Action() Action

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

func (*Permission) Empty

func (o *Permission) Empty() bool

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

func (*Permission) GetAction

func (o *Permission) GetAction() (value Action, ok bool)

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

func (*Permission) GetHREF

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

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

func (*Permission) GetID

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

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

func (*Permission) GetResourceType

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

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

func (*Permission) GetRoleID added in v0.1.30

func (o *Permission) GetRoleID() (value string, ok bool)

GetRoleID returns the value of the 'role_ID' attribute and a flag indicating if the attribute has a value.

func (*Permission) HREF

func (o *Permission) HREF() string

HREF returns the link to the object.

func (*Permission) ID

func (o *Permission) ID() string

ID returns the identifier of the object.

func (*Permission) Kind

func (o *Permission) Kind() string

Kind returns the name of the type of the object.

func (o *Permission) Link() bool

Link returns true iif this is a link.

func (*Permission) ResourceType

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

func (*Permission) RoleID added in v0.1.30

func (o *Permission) RoleID() string

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

type PermissionBuilder

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

PermissionBuilder contains the data and logic needed to build 'permission' objects.

func NewPermission

func NewPermission() *PermissionBuilder

NewPermission creates a new builder of 'permission' objects.

func (*PermissionBuilder) Action

func (b *PermissionBuilder) Action(value Action) *PermissionBuilder

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

Possible actions for a permission.

func (*PermissionBuilder) Build

func (b *PermissionBuilder) Build() (object *Permission, err error)

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

func (*PermissionBuilder) Copy

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

func (*PermissionBuilder) HREF

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

HREF sets the link to the object.

func (*PermissionBuilder) ID

ID sets the identifier of the object.

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

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

func (*PermissionBuilder) ResourceType

func (b *PermissionBuilder) ResourceType(value string) *PermissionBuilder

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

func (*PermissionBuilder) RoleID added in v0.1.30

func (b *PermissionBuilder) RoleID(value string) *PermissionBuilder

RoleID sets the value of the 'role_ID' attribute to the given value.

type PermissionClient

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

PermissionClient is the client of the 'permission' resource.

Manages a specific permission.

func NewPermissionClient

func NewPermissionClient(transport http.RoundTripper, path string, metric string) *PermissionClient

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

func (*PermissionClient) Delete

Delete creates a request for the 'delete' method.

Deletes the permission.

func (*PermissionClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the permission.

func (*PermissionClient) Poll

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

type PermissionDeleteRequest

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

PermissionDeleteRequest is the request for the 'delete' method.

func (*PermissionDeleteRequest) Header

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

Header adds a request header.

func (*PermissionDeleteRequest) Parameter

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

Parameter adds a query parameter.

func (*PermissionDeleteRequest) Send

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

func (r *PermissionDeleteRequest) SendContext(ctx context.Context) (result *PermissionDeleteResponse, err error)

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

type PermissionDeleteResponse

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

PermissionDeleteResponse is the response for the 'delete' method.

func (*PermissionDeleteResponse) Error

Error returns the response error.

func (*PermissionDeleteResponse) Header

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

Header returns header of the response.

func (*PermissionDeleteResponse) Status

func (r *PermissionDeleteResponse) Status() int

Status returns the response status code.

type PermissionDeleteServerRequest

type PermissionDeleteServerRequest struct {
}

PermissionDeleteServerRequest is the request for the 'delete' method.

type PermissionDeleteServerResponse

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

PermissionDeleteServerResponse is the response for the 'delete' method.

func (*PermissionDeleteServerResponse) Status

Status sets the status code.

type PermissionGetRequest

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

PermissionGetRequest is the request for the 'get' method.

func (*PermissionGetRequest) Header

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

Header adds a request header.

func (*PermissionGetRequest) Parameter

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

Parameter adds a query parameter.

func (*PermissionGetRequest) Send

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

func (r *PermissionGetRequest) SendContext(ctx context.Context) (result *PermissionGetResponse, err error)

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

type PermissionGetResponse

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

PermissionGetResponse is the response for the 'get' method.

func (*PermissionGetResponse) Body

func (r *PermissionGetResponse) Body() *Permission

Body returns the value of the 'body' parameter.

func (*PermissionGetResponse) Error

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

Error returns the response error.

func (*PermissionGetResponse) GetBody

func (r *PermissionGetResponse) GetBody() (value *Permission, ok bool)

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

func (*PermissionGetResponse) Header

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

Header returns header of the response.

func (*PermissionGetResponse) Status

func (r *PermissionGetResponse) Status() int

Status returns the response status code.

type PermissionGetServerRequest

type PermissionGetServerRequest struct {
}

PermissionGetServerRequest is the request for the 'get' method.

type PermissionGetServerResponse

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

PermissionGetServerResponse is the response for the 'get' method.

func (*PermissionGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*PermissionGetServerResponse) Status

Status sets the status code.

type PermissionList

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

PermissionList is a list of values of the 'permission' type.

func (*PermissionList) Each

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

func (l *PermissionList) Empty() bool

Empty returns true if the list is empty.

func (*PermissionList) Get

func (l *PermissionList) Get(i int) *Permission

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

func (*PermissionList) GetHREF

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

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

func (*PermissionList) HREF

func (l *PermissionList) HREF() string

HREF returns the link to the list.

func (*PermissionList) Kind

func (l *PermissionList) Kind() string

Kind returns the name of the type of the object.

func (*PermissionList) Len

func (l *PermissionList) Len() int

Len returns the length of the list.

func (l *PermissionList) Link() bool

Link returns true iif this is a link.

func (*PermissionList) Range

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

func (l *PermissionList) Slice() []*Permission

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 PermissionListBuilder

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

PermissionListBuilder contains the data and logic needed to build 'permission' objects.

func NewPermissionList

func NewPermissionList() *PermissionListBuilder

NewPermissionList creates a new builder of 'permission' objects.

func (*PermissionListBuilder) Build

func (b *PermissionListBuilder) Build() (list *PermissionList, err error)

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

func (*PermissionListBuilder) Copy

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

func (*PermissionListBuilder) Items

Items sets the items of the list.

type PermissionPollRequest

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

PermissionPollRequest is the request for the Poll method.

func (*PermissionPollRequest) Header

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

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

func (*PermissionPollRequest) Interval

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

func (*PermissionPollRequest) Parameter

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

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

func (*PermissionPollRequest) Predicate

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

func (*PermissionPollRequest) StartContext

func (r *PermissionPollRequest) StartContext(ctx context.Context) (response *PermissionPollResponse, 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 (*PermissionPollRequest) Status

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

type PermissionPollResponse

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

PermissionPollResponse is the response for the Poll method.

func (*PermissionPollResponse) Body

Body returns the value of the 'body' parameter.

func (*PermissionPollResponse) Error

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

Error returns the response error.

func (*PermissionPollResponse) GetBody

func (r *PermissionPollResponse) GetBody() (value *Permission, ok bool)

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

func (*PermissionPollResponse) Header

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

Header returns header of the response.

func (*PermissionPollResponse) Status

func (r *PermissionPollResponse) Status() int

Status returns the response status code.

type PermissionServer

type PermissionServer interface {

	// Delete handles a request for the 'delete' method.
	//
	// Deletes the permission.
	Delete(ctx context.Context, request *PermissionDeleteServerRequest, response *PermissionDeleteServerResponse) error

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the permission.
	Get(ctx context.Context, request *PermissionGetServerRequest, response *PermissionGetServerResponse) error
}

PermissionServer represents the interface the manages the 'permission' resource.

type PermissionsAddRequest

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

PermissionsAddRequest is the request for the 'add' method.

func (*PermissionsAddRequest) Body

Body sets the value of the 'body' parameter.

Permission data.

func (*PermissionsAddRequest) Header

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

Header adds a request header.

func (*PermissionsAddRequest) Parameter

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

Parameter adds a query parameter.

func (*PermissionsAddRequest) Send

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

func (r *PermissionsAddRequest) SendContext(ctx context.Context) (result *PermissionsAddResponse, err error)

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

type PermissionsAddResponse

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

PermissionsAddResponse is the response for the 'add' method.

func (*PermissionsAddResponse) Body

Body returns the value of the 'body' parameter.

Permission data.

func (*PermissionsAddResponse) Error

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

Error returns the response error.

func (*PermissionsAddResponse) GetBody

func (r *PermissionsAddResponse) GetBody() (value *Permission, ok bool)

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

Permission data.

func (*PermissionsAddResponse) Header

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

Header returns header of the response.

func (*PermissionsAddResponse) Status

func (r *PermissionsAddResponse) Status() int

Status returns the response status code.

type PermissionsAddServerRequest

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

PermissionsAddServerRequest is the request for the 'add' method.

func (*PermissionsAddServerRequest) Body

Body returns the value of the 'body' parameter.

Permission data.

func (*PermissionsAddServerRequest) GetBody

func (r *PermissionsAddServerRequest) GetBody() (value *Permission, ok bool)

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

Permission data.

type PermissionsAddServerResponse

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

PermissionsAddServerResponse is the response for the 'add' method.

func (*PermissionsAddServerResponse) Body

Body sets the value of the 'body' parameter.

Permission data.

func (*PermissionsAddServerResponse) Status

Status sets the status code.

type PermissionsClient

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

PermissionsClient is the client of the 'permissions' resource.

Manages the collection of permissions.

func NewPermissionsClient

func NewPermissionsClient(transport http.RoundTripper, path string, metric string) *PermissionsClient

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

func (*PermissionsClient) Add

Add creates a request for the 'add' method.

Creates a new permission.

func (*PermissionsClient) List

List creates a request for the 'list' method.

Retrieves a list of permissions.

func (*PermissionsClient) Permission

func (c *PermissionsClient) Permission(id string) *PermissionClient

Permission returns the target 'permission' resource for the given identifier.

Reference to the service that manages an specific permission.

type PermissionsListRequest

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

PermissionsListRequest is the request for the 'list' method.

func (*PermissionsListRequest) Header

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

Header adds a request header.

func (*PermissionsListRequest) Page

Page sets the value of the 'page' parameter.

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

func (*PermissionsListRequest) Parameter

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

Parameter adds a query parameter.

func (*PermissionsListRequest) Send

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

func (r *PermissionsListRequest) SendContext(ctx context.Context) (result *PermissionsListResponse, err error)

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

func (*PermissionsListRequest) Size

Size sets the value of the 'size' parameter.

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

type PermissionsListResponse

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

PermissionsListResponse is the response for the 'list' method.

func (*PermissionsListResponse) Error

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

Error returns the response error.

func (*PermissionsListResponse) GetItems

func (r *PermissionsListResponse) GetItems() (value *PermissionList, ok bool)

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

Retrieved list of permissions.

func (*PermissionsListResponse) GetPage

func (r *PermissionsListResponse) 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 (*PermissionsListResponse) GetSize

func (r *PermissionsListResponse) 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 (*PermissionsListResponse) GetTotal

func (r *PermissionsListResponse) 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 (*PermissionsListResponse) Header

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

Header returns header of the response.

func (*PermissionsListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of permissions.

func (*PermissionsListResponse) Page

func (r *PermissionsListResponse) Page() int

Page returns the value of the 'page' parameter.

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

func (*PermissionsListResponse) Size

func (r *PermissionsListResponse) Size() int

Size returns the value of the 'size' parameter.

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

func (*PermissionsListResponse) Status

func (r *PermissionsListResponse) Status() int

Status returns the response status code.

func (*PermissionsListResponse) Total

func (r *PermissionsListResponse) 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 PermissionsListServerRequest

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

PermissionsListServerRequest is the request for the 'list' method.

func (*PermissionsListServerRequest) GetPage

func (r *PermissionsListServerRequest) 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 (*PermissionsListServerRequest) GetSize

func (r *PermissionsListServerRequest) 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 (*PermissionsListServerRequest) Page

Page returns the value of the 'page' parameter.

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

func (*PermissionsListServerRequest) Size

Size returns the value of the 'size' parameter.

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

type PermissionsListServerResponse

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

PermissionsListServerResponse is the response for the 'list' method.

func (*PermissionsListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of permissions.

func (*PermissionsListServerResponse) Page

Page sets the value of the 'page' parameter.

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

func (*PermissionsListServerResponse) Size

Size sets the value of the 'size' parameter.

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

func (*PermissionsListServerResponse) Status

Status sets the status code.

func (*PermissionsListServerResponse) Total

Total sets 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 PermissionsServer

type PermissionsServer interface {

	// Add handles a request for the 'add' method.
	//
	// Creates a new permission.
	Add(ctx context.Context, request *PermissionsAddServerRequest, response *PermissionsAddServerResponse) error

	// List handles a request for the 'list' method.
	//
	// Retrieves a list of permissions.
	List(ctx context.Context, request *PermissionsListServerRequest, response *PermissionsListServerResponse) error

	// Permission returns the target 'permission' server for the given identifier.
	//
	// Reference to the service that manages an specific permission.
	Permission(id string) PermissionServer
}

PermissionsServer represents the interface the manages the 'permissions' resource.

type Plan

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

Plan represents the values of the 'plan' type.

func UnmarshalPlan

func UnmarshalPlan(source interface{}) (object *Plan, err error)

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

func UnmarshalPlanList

func UnmarshalPlanList(source interface{}) (items []*Plan, err error)

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

func (*Plan) Empty

func (o *Plan) Empty() bool

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

func (*Plan) GetHREF

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

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

func (*Plan) GetID

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

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

func (*Plan) HREF

func (o *Plan) HREF() string

HREF returns the link to the object.

func (*Plan) ID

func (o *Plan) ID() string

ID returns the identifier of the object.

func (*Plan) Kind

func (o *Plan) Kind() string

Kind returns the name of the type of the object.

func (o *Plan) Link() bool

Link returns true iif this is a link.

type PlanBuilder

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

PlanBuilder contains the data and logic needed to build 'plan' objects.

func NewPlan

func NewPlan() *PlanBuilder

NewPlan creates a new builder of 'plan' objects.

func (*PlanBuilder) Build

func (b *PlanBuilder) Build() (object *Plan, err error)

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

func (*PlanBuilder) Copy

func (b *PlanBuilder) Copy(object *Plan) *PlanBuilder

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

func (*PlanBuilder) HREF

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

HREF sets the link to the object.

func (*PlanBuilder) ID

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

ID sets the identifier of the object.

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

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

type PlanList

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

PlanList is a list of values of the 'plan' type.

func (*PlanList) Each

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

func (l *PlanList) Empty() bool

Empty returns true if the list is empty.

func (*PlanList) Get

func (l *PlanList) Get(i int) *Plan

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

func (*PlanList) GetHREF

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

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

func (*PlanList) HREF

func (l *PlanList) HREF() string

HREF returns the link to the list.

func (*PlanList) Kind

func (l *PlanList) Kind() string

Kind returns the name of the type of the object.

func (*PlanList) Len

func (l *PlanList) Len() int

Len returns the length of the list.

func (l *PlanList) Link() bool

Link returns true iif this is a link.

func (*PlanList) Range

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

func (l *PlanList) Slice() []*Plan

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 PlanListBuilder

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

PlanListBuilder contains the data and logic needed to build 'plan' objects.

func NewPlanList

func NewPlanList() *PlanListBuilder

NewPlanList creates a new builder of 'plan' objects.

func (*PlanListBuilder) Build

func (b *PlanListBuilder) Build() (list *PlanList, err error)

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

func (*PlanListBuilder) Copy

func (b *PlanListBuilder) Copy(list *PlanList) *PlanListBuilder

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

func (*PlanListBuilder) Items

func (b *PlanListBuilder) Items(values ...*PlanBuilder) *PlanListBuilder

Items sets the items of the list.

type QuotaSummary

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

QuotaSummary represents the values of the 'quota_summary' type.

func UnmarshalQuotaSummary

func UnmarshalQuotaSummary(source interface{}) (object *QuotaSummary, err error)

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

func UnmarshalQuotaSummaryList

func UnmarshalQuotaSummaryList(source interface{}) (items []*QuotaSummary, err error)

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

func (*QuotaSummary) Allowed

func (o *QuotaSummary) Allowed() int

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

func (*QuotaSummary) AvailabilityZoneType

func (o *QuotaSummary) AvailabilityZoneType() string

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

func (*QuotaSummary) BYOC

func (o *QuotaSummary) BYOC() bool

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

func (*QuotaSummary) Empty

func (o *QuotaSummary) Empty() bool

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

func (*QuotaSummary) GetAllowed

func (o *QuotaSummary) GetAllowed() (value int, ok bool)

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

func (*QuotaSummary) GetAvailabilityZoneType

func (o *QuotaSummary) GetAvailabilityZoneType() (value string, ok bool)

GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.

func (*QuotaSummary) GetBYOC

func (o *QuotaSummary) GetBYOC() (value bool, ok bool)

GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.

func (*QuotaSummary) GetOrganizationID

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

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

func (*QuotaSummary) GetReserved

func (o *QuotaSummary) GetReserved() (value int, ok bool)

GetReserved returns the value of the 'reserved' attribute and a flag indicating if the attribute has a value.

func (*QuotaSummary) GetResourceName

func (o *QuotaSummary) GetResourceName() (value string, ok bool)

GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.

func (*QuotaSummary) GetResourceType

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

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

func (*QuotaSummary) OrganizationID

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

func (*QuotaSummary) Reserved

func (o *QuotaSummary) Reserved() int

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

func (*QuotaSummary) ResourceName

func (o *QuotaSummary) ResourceName() string

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

func (*QuotaSummary) ResourceType

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

type QuotaSummaryBuilder

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

QuotaSummaryBuilder contains the data and logic needed to build 'quota_summary' objects.

func NewQuotaSummary

func NewQuotaSummary() *QuotaSummaryBuilder

NewQuotaSummary creates a new builder of 'quota_summary' objects.

func (*QuotaSummaryBuilder) Allowed

func (b *QuotaSummaryBuilder) Allowed(value int) *QuotaSummaryBuilder

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

func (*QuotaSummaryBuilder) AvailabilityZoneType

func (b *QuotaSummaryBuilder) AvailabilityZoneType(value string) *QuotaSummaryBuilder

AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.

func (*QuotaSummaryBuilder) BYOC

BYOC sets the value of the 'BYOC' attribute to the given value.

func (*QuotaSummaryBuilder) Build

func (b *QuotaSummaryBuilder) Build() (object *QuotaSummary, err error)

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

func (*QuotaSummaryBuilder) Copy

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

func (*QuotaSummaryBuilder) OrganizationID

func (b *QuotaSummaryBuilder) OrganizationID(value string) *QuotaSummaryBuilder

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

func (*QuotaSummaryBuilder) Reserved

func (b *QuotaSummaryBuilder) Reserved(value int) *QuotaSummaryBuilder

Reserved sets the value of the 'reserved' attribute to the given value.

func (*QuotaSummaryBuilder) ResourceName

func (b *QuotaSummaryBuilder) ResourceName(value string) *QuotaSummaryBuilder

ResourceName sets the value of the 'resource_name' attribute to the given value.

func (*QuotaSummaryBuilder) ResourceType

func (b *QuotaSummaryBuilder) ResourceType(value string) *QuotaSummaryBuilder

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

type QuotaSummaryClient

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

QuotaSummaryClient is the client of the 'quota_summary' resource.

Manages the quota summary for an organization.

func NewQuotaSummaryClient

func NewQuotaSummaryClient(transport http.RoundTripper, path string, metric string) *QuotaSummaryClient

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

func (*QuotaSummaryClient) List

List creates a request for the 'list' method.

Retrieves the Quota summary.

type QuotaSummaryList

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

QuotaSummaryList is a list of values of the 'quota_summary' type.

func (*QuotaSummaryList) Each

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

func (l *QuotaSummaryList) Empty() bool

Empty returns true if the list is empty.

func (*QuotaSummaryList) Get

func (l *QuotaSummaryList) Get(i int) *QuotaSummary

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

func (*QuotaSummaryList) Len

func (l *QuotaSummaryList) Len() int

Len returns the length of the list.

func (*QuotaSummaryList) Range

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

func (l *QuotaSummaryList) Slice() []*QuotaSummary

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 QuotaSummaryListBuilder

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

QuotaSummaryListBuilder contains the data and logic needed to build 'quota_summary' objects.

func NewQuotaSummaryList

func NewQuotaSummaryList() *QuotaSummaryListBuilder

NewQuotaSummaryList creates a new builder of 'quota_summary' objects.

func (*QuotaSummaryListBuilder) Build

func (b *QuotaSummaryListBuilder) Build() (list *QuotaSummaryList, err error)

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

func (*QuotaSummaryListBuilder) Copy

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

func (*QuotaSummaryListBuilder) Items

Items sets the items of the list.

type QuotaSummaryListRequest

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

QuotaSummaryListRequest is the request for the 'list' method.

func (*QuotaSummaryListRequest) Header

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

Header adds a request header.

func (*QuotaSummaryListRequest) Page

Page sets the value of the 'page' parameter.

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

func (*QuotaSummaryListRequest) Parameter

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

Parameter adds a query parameter.

func (*QuotaSummaryListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the quota summary instead of the names of the columns of a table. For example, in order to retrieve the quota summary for clusters that run in multiple availability zones:

[source,sql] ---- availability_zone_type = 'multi' ----

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

func (*QuotaSummaryListRequest) Send

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

func (r *QuotaSummaryListRequest) SendContext(ctx context.Context) (result *QuotaSummaryListResponse, err error)

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

func (*QuotaSummaryListRequest) Size

Size sets the value of the 'size' parameter.

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

type QuotaSummaryListResponse

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

QuotaSummaryListResponse is the response for the 'list' method.

func (*QuotaSummaryListResponse) Error

Error returns the response error.

func (*QuotaSummaryListResponse) GetItems

func (r *QuotaSummaryListResponse) GetItems() (value *QuotaSummaryList, ok bool)

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

Retrieved quota summary items.

func (*QuotaSummaryListResponse) GetPage

func (r *QuotaSummaryListResponse) 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 (*QuotaSummaryListResponse) GetSize

func (r *QuotaSummaryListResponse) 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 (*QuotaSummaryListResponse) GetTotal

func (r *QuotaSummaryListResponse) 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 (*QuotaSummaryListResponse) Header

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

Header returns header of the response.

func (*QuotaSummaryListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved quota summary items.

func (*QuotaSummaryListResponse) Page

func (r *QuotaSummaryListResponse) Page() int

Page returns the value of the 'page' parameter.

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

func (*QuotaSummaryListResponse) Size

func (r *QuotaSummaryListResponse) Size() int

Size returns the value of the 'size' parameter.

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

func (*QuotaSummaryListResponse) Status

func (r *QuotaSummaryListResponse) Status() int

Status returns the response status code.

func (*QuotaSummaryListResponse) Total

func (r *QuotaSummaryListResponse) 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 QuotaSummaryListServerRequest

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

QuotaSummaryListServerRequest is the request for the 'list' method.

func (*QuotaSummaryListServerRequest) GetPage

func (r *QuotaSummaryListServerRequest) 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 (*QuotaSummaryListServerRequest) GetSearch

func (r *QuotaSummaryListServerRequest) GetSearch() (value string, ok bool)

GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.

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 quota summary instead of the names of the columns of a table. For example, in order to retrieve the quota summary for clusters that run in multiple availability zones:

[source,sql] ---- availability_zone_type = 'multi' ----

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

func (*QuotaSummaryListServerRequest) GetSize

func (r *QuotaSummaryListServerRequest) 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 (*QuotaSummaryListServerRequest) Page

Page returns the value of the 'page' parameter.

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

func (*QuotaSummaryListServerRequest) Search

Search returns 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 quota summary instead of the names of the columns of a table. For example, in order to retrieve the quota summary for clusters that run in multiple availability zones:

[source,sql] ---- availability_zone_type = 'multi' ----

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

func (*QuotaSummaryListServerRequest) Size

Size returns the value of the 'size' parameter.

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

type QuotaSummaryListServerResponse

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

QuotaSummaryListServerResponse is the response for the 'list' method.

func (*QuotaSummaryListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved quota summary items.

func (*QuotaSummaryListServerResponse) Page

Page sets the value of the 'page' parameter.

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

func (*QuotaSummaryListServerResponse) Size

Size sets the value of the 'size' parameter.

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

func (*QuotaSummaryListServerResponse) Status

Status sets the status code.

func (*QuotaSummaryListServerResponse) Total

Total sets 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 QuotaSummaryServer

type QuotaSummaryServer interface {

	// List handles a request for the 'list' method.
	//
	// Retrieves the Quota summary.
	List(ctx context.Context, request *QuotaSummaryListServerRequest, response *QuotaSummaryListServerResponse) error
}

QuotaSummaryServer represents the interface the manages the 'quota_summary' resource.

type RegistriesClient

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

RegistriesClient is the client of the 'registries' resource.

Manages the collection of registries.

func NewRegistriesClient

func NewRegistriesClient(transport http.RoundTripper, path string, metric string) *RegistriesClient

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

func (*RegistriesClient) List

List creates a request for the 'list' method.

Retrieves a list of registries.

func (*RegistriesClient) Registry

func (c *RegistriesClient) Registry(id string) *RegistryClient

Registry returns the target 'registry' resource for the given identifier.

Reference to the service that manages a specific registry.

type RegistriesListRequest

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

RegistriesListRequest is the request for the 'list' method.

func (*RegistriesListRequest) Header

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

Header adds a request header.

func (*RegistriesListRequest) Page

Page sets the value of the 'page' parameter.

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

func (*RegistriesListRequest) Parameter

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

Parameter adds a query parameter.

func (*RegistriesListRequest) Send

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

func (r *RegistriesListRequest) SendContext(ctx context.Context) (result *RegistriesListResponse, err error)

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

func (*RegistriesListRequest) Size

Size sets the value of the 'size' parameter.

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

type RegistriesListResponse

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

RegistriesListResponse is the response for the 'list' method.

func (*RegistriesListResponse) Error

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

Error returns the response error.

func (*RegistriesListResponse) GetItems

func (r *RegistriesListResponse) GetItems() (value *RegistryList, ok bool)

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

Retrieved list of registries.

func (*RegistriesListResponse) GetPage

func (r *RegistriesListResponse) 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 (*RegistriesListResponse) GetSize

func (r *RegistriesListResponse) 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 (*RegistriesListResponse) GetTotal

func (r *RegistriesListResponse) 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 (*RegistriesListResponse) Header

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

Header returns header of the response.

func (*RegistriesListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of registries.

func (*RegistriesListResponse) Page

func (r *RegistriesListResponse) Page() int

Page returns the value of the 'page' parameter.

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

func (*RegistriesListResponse) Size

func (r *RegistriesListResponse) Size() int

Size returns the value of the 'size' parameter.

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

func (*RegistriesListResponse) Status

func (r *RegistriesListResponse) Status() int

Status returns the response status code.

func (*RegistriesListResponse) Total

func (r *RegistriesListResponse) 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 RegistriesListServerRequest

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

RegistriesListServerRequest is the request for the 'list' method.

func (*RegistriesListServerRequest) GetPage

func (r *RegistriesListServerRequest) 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 (*RegistriesListServerRequest) GetSize

func (r *RegistriesListServerRequest) 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 (*RegistriesListServerRequest) Page

func (r *RegistriesListServerRequest) Page() int

Page returns the value of the 'page' parameter.

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

func (*RegistriesListServerRequest) Size

func (r *RegistriesListServerRequest) Size() int

Size returns the value of the 'size' parameter.

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

type RegistriesListServerResponse

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

RegistriesListServerResponse is the response for the 'list' method.

func (*RegistriesListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of registries.

func (*RegistriesListServerResponse) Page

Page sets the value of the 'page' parameter.

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

func (*RegistriesListServerResponse) Size

Size sets the value of the 'size' parameter.

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

func (*RegistriesListServerResponse) Status

Status sets the status code.

func (*RegistriesListServerResponse) Total

Total sets 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 RegistriesServer

type RegistriesServer interface {

	// List handles a request for the 'list' method.
	//
	// Retrieves a list of registries.
	List(ctx context.Context, request *RegistriesListServerRequest, response *RegistriesListServerResponse) error

	// Registry returns the target 'registry' server for the given identifier.
	//
	// Reference to the service that manages a specific registry.
	Registry(id string) RegistryServer
}

RegistriesServer represents the interface the manages the 'registries' resource.

type Registry

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

Registry represents the values of the 'registry' type.

func UnmarshalRegistry

func UnmarshalRegistry(source interface{}) (object *Registry, err error)

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

func UnmarshalRegistryList

func UnmarshalRegistryList(source interface{}) (items []*Registry, err error)

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

func (*Registry) CloudAlias

func (o *Registry) CloudAlias() bool

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

func (*Registry) Empty

func (o *Registry) Empty() bool

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

func (*Registry) GetCloudAlias

func (o *Registry) GetCloudAlias() (value bool, ok bool)

GetCloudAlias returns the value of the 'cloud_alias' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetHREF

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

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

func (*Registry) GetID

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

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

func (*Registry) GetName

func (o *Registry) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetOrgName

func (o *Registry) GetOrgName() (value string, ok bool)

GetOrgName returns the value of the 'org_name' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetTeamName

func (o *Registry) GetTeamName() (value string, ok bool)

GetTeamName returns the value of the 'team_name' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetType

func (o *Registry) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetURL

func (o *Registry) GetURL() (value string, ok bool)

GetURL returns the value of the 'URL' attribute and a flag indicating if the attribute has a value.

func (*Registry) HREF

func (o *Registry) HREF() string

HREF returns the link to the object.

func (*Registry) ID

func (o *Registry) ID() string

ID returns the identifier of the object.

func (*Registry) Kind

func (o *Registry) Kind() string

Kind returns the name of the type of the object.

func (o *Registry) Link() bool

Link returns true iif this is a link.

func (*Registry) Name

func (o *Registry) Name() string

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

func (*Registry) OrgName

func (o *Registry) OrgName() string

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

func (*Registry) TeamName

func (o *Registry) TeamName() string

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

func (*Registry) Type

func (o *Registry) Type() string

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

func (*Registry) URL

func (o *Registry) URL() string

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

type RegistryBuilder

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

RegistryBuilder contains the data and logic needed to build 'registry' objects.

func NewRegistry

func NewRegistry() *RegistryBuilder

NewRegistry creates a new builder of 'registry' objects.

func (*RegistryBuilder) Build

func (b *RegistryBuilder) Build() (object *Registry, err error)

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

func (*RegistryBuilder) CloudAlias

func (b *RegistryBuilder) CloudAlias(value bool) *RegistryBuilder

CloudAlias sets the value of the 'cloud_alias' attribute to the given value.

func (*RegistryBuilder) Copy

func (b *RegistryBuilder) Copy(object *Registry) *RegistryBuilder

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

func (*RegistryBuilder) HREF

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

HREF sets the link to the object.

func (*RegistryBuilder) ID

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

ID sets the identifier of the object.

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

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

func (*RegistryBuilder) Name

func (b *RegistryBuilder) Name(value string) *RegistryBuilder

Name sets the value of the 'name' attribute to the given value.

func (*RegistryBuilder) OrgName

func (b *RegistryBuilder) OrgName(value string) *RegistryBuilder

OrgName sets the value of the 'org_name' attribute to the given value.

func (*RegistryBuilder) TeamName

func (b *RegistryBuilder) TeamName(value string) *RegistryBuilder

TeamName sets the value of the 'team_name' attribute to the given value.

func (*RegistryBuilder) Type

func (b *RegistryBuilder) Type(value string) *RegistryBuilder

Type sets the value of the 'type' attribute to the given value.

func (*RegistryBuilder) URL

func (b *RegistryBuilder) URL(value string) *RegistryBuilder

URL sets the value of the 'URL' attribute to the given value.

type RegistryClient

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

RegistryClient is the client of the 'registry' resource.

Manages a specific registry.

func NewRegistryClient

func NewRegistryClient(transport http.RoundTripper, path string, metric string) *RegistryClient

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

func (*RegistryClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the registry.

func (*RegistryClient) Poll

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

type RegistryCredential

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

RegistryCredential represents the values of the 'registry_credential' type.

func UnmarshalRegistryCredential

func UnmarshalRegistryCredential(source interface{}) (object *RegistryCredential, err error)

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

func UnmarshalRegistryCredentialList

func UnmarshalRegistryCredentialList(source interface{}) (items []*RegistryCredential, err error)

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

func (*RegistryCredential) Account

func (o *RegistryCredential) Account() *Account

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

func (*RegistryCredential) Empty

func (o *RegistryCredential) Empty() bool

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

func (*RegistryCredential) GetAccount

func (o *RegistryCredential) GetAccount() (value *Account, ok bool)

GetAccount returns the value of the 'account' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) GetHREF

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

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

func (*RegistryCredential) GetID

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

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

func (*RegistryCredential) GetRegistry

func (o *RegistryCredential) GetRegistry() (value *Registry, ok bool)

GetRegistry returns the value of the 'registry' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) GetToken

func (o *RegistryCredential) GetToken() (value string, ok bool)

GetToken returns the value of the 'token' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) GetUsername

func (o *RegistryCredential) GetUsername() (value string, ok bool)

GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) HREF

func (o *RegistryCredential) HREF() string

HREF returns the link to the object.

func (*RegistryCredential) ID

func (o *RegistryCredential) ID() string

ID returns the identifier of the object.

func (*RegistryCredential) Kind

func (o *RegistryCredential) Kind() string

Kind returns the name of the type of the object.

func (o *RegistryCredential) Link() bool

Link returns true iif this is a link.

func (*RegistryCredential) Registry

func (o *RegistryCredential) Registry() *Registry

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

func (*RegistryCredential) Token

func (o *RegistryCredential) Token() string

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

func (*RegistryCredential) Username

func (o *RegistryCredential) Username() string

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

type RegistryCredentialBuilder

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

RegistryCredentialBuilder contains the data and logic needed to build 'registry_credential' objects.

func NewRegistryCredential

func NewRegistryCredential() *RegistryCredentialBuilder

NewRegistryCredential creates a new builder of 'registry_credential' objects.

func (*RegistryCredentialBuilder) Account

Account sets the value of the 'account' attribute to the given value.

func (*RegistryCredentialBuilder) Build

func (b *RegistryCredentialBuilder) Build() (object *RegistryCredential, err error)

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

func (*RegistryCredentialBuilder) Copy

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

func (*RegistryCredentialBuilder) HREF

HREF sets the link to the object.

func (*RegistryCredentialBuilder) ID

ID sets the identifier of the object.

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

func (*RegistryCredentialBuilder) Registry

Registry sets the value of the 'registry' attribute to the given value.

func (*RegistryCredentialBuilder) Token

Token sets the value of the 'token' attribute to the given value.

func (*RegistryCredentialBuilder) Username

Username sets the value of the 'username' attribute to the given value.

type RegistryCredentialClient

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

RegistryCredentialClient is the client of the 'registry_credential' resource.

Manages a specific registry credential.

func NewRegistryCredentialClient

func NewRegistryCredentialClient(transport http.RoundTripper, path string, metric string) *RegistryCredentialClient

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

func (*RegistryCredentialClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the registry credential.

func (*RegistryCredentialClient) Poll

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

type RegistryCredentialGetRequest

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

RegistryCredentialGetRequest is the request for the 'get' method.

func (*RegistryCredentialGetRequest) Header

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

Header adds a request header.

func (*RegistryCredentialGetRequest) Parameter

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

Parameter adds a query parameter.

func (*RegistryCredentialGetRequest) 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 (*RegistryCredentialGetRequest) SendContext

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

type RegistryCredentialGetResponse

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

RegistryCredentialGetResponse is the response for the 'get' method.

func (*RegistryCredentialGetResponse) Body

Body returns the value of the 'body' parameter.

func (*RegistryCredentialGetResponse) Error

Error returns the response error.

func (*RegistryCredentialGetResponse) GetBody

func (r *RegistryCredentialGetResponse) GetBody() (value *RegistryCredential, ok bool)

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

func (*RegistryCredentialGetResponse) Header

Header returns header of the response.

func (*RegistryCredentialGetResponse) Status

func (r *RegistryCredentialGetResponse) Status() int

Status returns the response status code.

type RegistryCredentialGetServerRequest

type RegistryCredentialGetServerRequest struct {
}

RegistryCredentialGetServerRequest is the request for the 'get' method.

type RegistryCredentialGetServerResponse

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

RegistryCredentialGetServerResponse is the response for the 'get' method.

func (*RegistryCredentialGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*RegistryCredentialGetServerResponse) Status

Status sets the status code.

type RegistryCredentialList

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

RegistryCredentialList is a list of values of the 'registry_credential' type.

func (*RegistryCredentialList) Each

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

func (l *RegistryCredentialList) Empty() bool

Empty returns true if the list is empty.

func (*RegistryCredentialList) Get

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

func (*RegistryCredentialList) GetHREF

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

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

func (*RegistryCredentialList) HREF

func (l *RegistryCredentialList) HREF() string

HREF returns the link to the list.

func (*RegistryCredentialList) Kind

func (l *RegistryCredentialList) Kind() string

Kind returns the name of the type of the object.

func (*RegistryCredentialList) Len

func (l *RegistryCredentialList) Len() int

Len returns the length of the list.

func (l *RegistryCredentialList) Link() bool

Link returns true iif this is a link.

func (*RegistryCredentialList) Range

func (l *RegistryCredentialList) Range(f func(index int, item *RegistryCredential) 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 (*RegistryCredentialList) 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 RegistryCredentialListBuilder

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

RegistryCredentialListBuilder contains the data and logic needed to build 'registry_credential' objects.

func NewRegistryCredentialList

func NewRegistryCredentialList() *RegistryCredentialListBuilder

NewRegistryCredentialList creates a new builder of 'registry_credential' objects.

func (*RegistryCredentialListBuilder) Build

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

func (*RegistryCredentialListBuilder) Copy

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

func (*RegistryCredentialListBuilder) Items

Items sets the items of the list.

type RegistryCredentialPollRequest

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

RegistryCredentialPollRequest is the request for the Poll method.

func (*RegistryCredentialPollRequest) Header

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

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

func (*RegistryCredentialPollRequest) Interval

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

func (*RegistryCredentialPollRequest) Parameter

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

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

func (*RegistryCredentialPollRequest) Predicate

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

func (*RegistryCredentialPollRequest) StartContext

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 (*RegistryCredentialPollRequest) Status

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

type RegistryCredentialPollResponse

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

RegistryCredentialPollResponse is the response for the Poll method.

func (*RegistryCredentialPollResponse) Body

Body returns the value of the 'body' parameter.

func (*RegistryCredentialPollResponse) Error

Error returns the response error.

func (*RegistryCredentialPollResponse) GetBody

func (r *RegistryCredentialPollResponse) GetBody() (value *RegistryCredential, ok bool)

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

func (*RegistryCredentialPollResponse) Header

Header returns header of the response.

func (*RegistryCredentialPollResponse) Status

func (r *RegistryCredentialPollResponse) Status() int

Status returns the response status code.

type RegistryCredentialServer

type RegistryCredentialServer interface {

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the registry credential.
	Get(ctx context.Context, request *RegistryCredentialGetServerRequest, response *RegistryCredentialGetServerResponse) error
}

RegistryCredentialServer represents the interface the manages the 'registry_credential' resource.

type RegistryCredentialsAddRequest

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

RegistryCredentialsAddRequest is the request for the 'add' method.

func (*RegistryCredentialsAddRequest) Body

Body sets the value of the 'body' parameter.

Registry credential data.

func (*RegistryCredentialsAddRequest) Header

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

Header adds a request header.

func (*RegistryCredentialsAddRequest) Parameter

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

Parameter adds a query parameter.

func (*RegistryCredentialsAddRequest) 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 (*RegistryCredentialsAddRequest) SendContext

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

type RegistryCredentialsAddResponse

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

RegistryCredentialsAddResponse is the response for the 'add' method.

func (*RegistryCredentialsAddResponse) Body

Body returns the value of the 'body' parameter.

Registry credential data.

func (*RegistryCredentialsAddResponse) Error

Error returns the response error.

func (*RegistryCredentialsAddResponse) GetBody

func (r *RegistryCredentialsAddResponse) GetBody() (value *RegistryCredential, ok bool)

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

Registry credential data.

func (*RegistryCredentialsAddResponse) Header

Header returns header of the response.

func (*RegistryCredentialsAddResponse) Status

func (r *RegistryCredentialsAddResponse) Status() int

Status returns the response status code.

type RegistryCredentialsAddServerRequest

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

RegistryCredentialsAddServerRequest is the request for the 'add' method.

func (*RegistryCredentialsAddServerRequest) Body

Body returns the value of the 'body' parameter.

Registry credential data.

func (*RegistryCredentialsAddServerRequest) GetBody

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

Registry credential data.

type RegistryCredentialsAddServerResponse

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

RegistryCredentialsAddServerResponse is the response for the 'add' method.

func (*RegistryCredentialsAddServerResponse) Body

Body sets the value of the 'body' parameter.

Registry credential data.

func (*RegistryCredentialsAddServerResponse) Status

Status sets the status code.

type RegistryCredentialsClient

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

RegistryCredentialsClient is the client of the 'registry_credentials' resource.

Manages the collection of registry credentials.

func NewRegistryCredentialsClient

func NewRegistryCredentialsClient(transport http.RoundTripper, path string, metric string) *RegistryCredentialsClient

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

func (*RegistryCredentialsClient) Add

Add creates a request for the 'add' method.

Creates a new registry credential.

func (*RegistryCredentialsClient) List

List creates a request for the 'list' method.

Retrieves the list of accounts.

func (*RegistryCredentialsClient) RegistryCredential

func (c *RegistryCredentialsClient) RegistryCredential(id string) *RegistryCredentialClient

RegistryCredential returns the target 'registry_credential' resource for the given identifier.

Reference to the service that manages an specific registry credential.

type RegistryCredentialsListRequest

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

RegistryCredentialsListRequest is the request for the 'list' method.

func (*RegistryCredentialsListRequest) Header

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

Header adds a request header.

func (*RegistryCredentialsListRequest) Page

Page sets the value of the 'page' parameter.

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

func (*RegistryCredentialsListRequest) Parameter

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

Parameter adds a query parameter.

func (*RegistryCredentialsListRequest) 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 (*RegistryCredentialsListRequest) SendContext

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

func (*RegistryCredentialsListRequest) Size

Size sets the value of the 'size' parameter.

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

type RegistryCredentialsListResponse

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

RegistryCredentialsListResponse is the response for the 'list' method.

func (*RegistryCredentialsListResponse) Error

Error returns the response error.

func (*RegistryCredentialsListResponse) GetItems

func (r *RegistryCredentialsListResponse) GetItems() (value *RegistryCredentialList, ok bool)

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

Retrieved list of registry credentials.

func (*RegistryCredentialsListResponse) GetPage

func (r *RegistryCredentialsListResponse) 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 (*RegistryCredentialsListResponse) GetSize

func (r *RegistryCredentialsListResponse) 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 (*RegistryCredentialsListResponse) GetTotal

func (r *RegistryCredentialsListResponse) 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 (*RegistryCredentialsListResponse) Header

Header returns header of the response.

func (*RegistryCredentialsListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of registry credentials.

func (*RegistryCredentialsListResponse) Page

Page returns the value of the 'page' parameter.

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

func (*RegistryCredentialsListResponse) Size

Size returns the value of the 'size' parameter.

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

func (*RegistryCredentialsListResponse) Status

Status returns the response status code.

func (*RegistryCredentialsListResponse) Total

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 RegistryCredentialsListServerRequest

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

RegistryCredentialsListServerRequest is the request for the 'list' method.

func (*RegistryCredentialsListServerRequest) GetPage

func (r *RegistryCredentialsListServerRequest) 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 (*RegistryCredentialsListServerRequest) GetSize

func (r *RegistryCredentialsListServerRequest) 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 (*RegistryCredentialsListServerRequest) Page

Page returns the value of the 'page' parameter.

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

func (*RegistryCredentialsListServerRequest) Size

Size returns the value of the 'size' parameter.

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

type RegistryCredentialsListServerResponse

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

RegistryCredentialsListServerResponse is the response for the 'list' method.

func (*RegistryCredentialsListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of registry credentials.

func (*RegistryCredentialsListServerResponse) Page

Page sets the value of the 'page' parameter.

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

func (*RegistryCredentialsListServerResponse) Size

Size sets the value of the 'size' parameter.

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

func (*RegistryCredentialsListServerResponse) Status

Status sets the status code.

func (*RegistryCredentialsListServerResponse) Total

Total sets 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 RegistryCredentialsServer

type RegistryCredentialsServer interface {

	// Add handles a request for the 'add' method.
	//
	// Creates a new registry credential.
	Add(ctx context.Context, request *RegistryCredentialsAddServerRequest, response *RegistryCredentialsAddServerResponse) error

	// List handles a request for the 'list' method.
	//
	// Retrieves the list of accounts.
	List(ctx context.Context, request *RegistryCredentialsListServerRequest, response *RegistryCredentialsListServerResponse) error

	// RegistryCredential returns the target 'registry_credential' server for the given identifier.
	//
	// Reference to the service that manages an specific registry credential.
	RegistryCredential(id string) RegistryCredentialServer
}

RegistryCredentialsServer represents the interface the manages the 'registry_credentials' resource.

type RegistryGetRequest

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

RegistryGetRequest is the request for the 'get' method.

func (*RegistryGetRequest) Header

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

Header adds a request header.

func (*RegistryGetRequest) Parameter

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

Parameter adds a query parameter.

func (*RegistryGetRequest) Send

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

func (r *RegistryGetRequest) SendContext(ctx context.Context) (result *RegistryGetResponse, err error)

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

type RegistryGetResponse

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

RegistryGetResponse is the response for the 'get' method.

func (*RegistryGetResponse) Body

func (r *RegistryGetResponse) Body() *Registry

Body returns the value of the 'body' parameter.

func (*RegistryGetResponse) Error

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

Error returns the response error.

func (*RegistryGetResponse) GetBody

func (r *RegistryGetResponse) GetBody() (value *Registry, ok bool)

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

func (*RegistryGetResponse) Header

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

Header returns header of the response.

func (*RegistryGetResponse) Status

func (r *RegistryGetResponse) Status() int

Status returns the response status code.

type RegistryGetServerRequest

type RegistryGetServerRequest struct {
}

RegistryGetServerRequest is the request for the 'get' method.

type RegistryGetServerResponse

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

RegistryGetServerResponse is the response for the 'get' method.

func (*RegistryGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*RegistryGetServerResponse) Status

Status sets the status code.

type RegistryList

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

RegistryList is a list of values of the 'registry' type.

func (*RegistryList) Each

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

func (l *RegistryList) Empty() bool

Empty returns true if the list is empty.

func (*RegistryList) Get

func (l *RegistryList) Get(i int) *Registry

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

func (*RegistryList) GetHREF

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

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

func (*RegistryList) HREF

func (l *RegistryList) HREF() string

HREF returns the link to the list.

func (*RegistryList) Kind

func (l *RegistryList) Kind() string

Kind returns the name of the type of the object.

func (*RegistryList) Len

func (l *RegistryList) Len() int

Len returns the length of the list.

func (l *RegistryList) Link() bool

Link returns true iif this is a link.

func (*RegistryList) Range

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

func (l *RegistryList) Slice() []*Registry

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 RegistryListBuilder

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

RegistryListBuilder contains the data and logic needed to build 'registry' objects.

func NewRegistryList

func NewRegistryList() *RegistryListBuilder

NewRegistryList creates a new builder of 'registry' objects.

func (*RegistryListBuilder) Build

func (b *RegistryListBuilder) Build() (list *RegistryList, err error)

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

func (*RegistryListBuilder) Copy

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

func (*RegistryListBuilder) Items

Items sets the items of the list.

type RegistryPollRequest

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

RegistryPollRequest is the request for the Poll method.

func (*RegistryPollRequest) Header

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

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

func (*RegistryPollRequest) Interval

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

func (*RegistryPollRequest) Parameter

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

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

func (*RegistryPollRequest) Predicate

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

func (*RegistryPollRequest) StartContext

func (r *RegistryPollRequest) StartContext(ctx context.Context) (response *RegistryPollResponse, 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 (*RegistryPollRequest) Status

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

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 RegistryPollResponse

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

RegistryPollResponse is the response for the Poll method.

func (*RegistryPollResponse) Body

func (r *RegistryPollResponse) Body() *Registry

Body returns the value of the 'body' parameter.

func (*RegistryPollResponse) Error

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

Error returns the response error.

func (*RegistryPollResponse) GetBody

func (r *RegistryPollResponse) GetBody() (value *Registry, ok bool)

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

func (*RegistryPollResponse) Header

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

Header returns header of the response.

func (*RegistryPollResponse) Status

func (r *RegistryPollResponse) Status() int

Status returns the response status code.

type RegistryServer

type RegistryServer interface {

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the registry.
	Get(ctx context.Context, request *RegistryGetServerRequest, response *RegistryGetServerResponse) error
}

RegistryServer represents the interface the manages the 'registry' resource.

type ReservedResource

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

ReservedResource represents the values of the 'reserved_resource' type.

func UnmarshalReservedResource

func UnmarshalReservedResource(source interface{}) (object *ReservedResource, err error)

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

func UnmarshalReservedResourceList

func UnmarshalReservedResourceList(source interface{}) (items []*ReservedResource, err error)

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

func (*ReservedResource) AvailabilityZoneType

func (o *ReservedResource) AvailabilityZoneType() string

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

func (*ReservedResource) BYOC

func (o *ReservedResource) BYOC() bool

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

func (*ReservedResource) Count

func (o *ReservedResource) Count() int

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

func (*ReservedResource) CreatedAt

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

func (*ReservedResource) Empty

func (o *ReservedResource) Empty() bool

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

func (*ReservedResource) GetAvailabilityZoneType

func (o *ReservedResource) GetAvailabilityZoneType() (value string, ok bool)

GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetBYOC

func (o *ReservedResource) GetBYOC() (value bool, ok bool)

GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetCount

func (o *ReservedResource) GetCount() (value int, ok bool)

GetCount returns the value of the 'count' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetCreatedAt

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

func (*ReservedResource) GetResourceName

func (o *ReservedResource) GetResourceName() (value string, ok bool)

GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetResourceType

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

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

func (*ReservedResource) GetUpdatedAt

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

func (*ReservedResource) ResourceName

func (o *ReservedResource) ResourceName() string

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

func (*ReservedResource) ResourceType

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

func (*ReservedResource) UpdatedAt

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

type ReservedResourceBuilder

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

ReservedResourceBuilder contains the data and logic needed to build 'reserved_resource' objects.

func NewReservedResource

func NewReservedResource() *ReservedResourceBuilder

NewReservedResource creates a new builder of 'reserved_resource' objects.

func (*ReservedResourceBuilder) AvailabilityZoneType

func (b *ReservedResourceBuilder) AvailabilityZoneType(value string) *ReservedResourceBuilder

AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.

func (*ReservedResourceBuilder) BYOC

BYOC sets the value of the 'BYOC' attribute to the given value.

func (*ReservedResourceBuilder) Build

func (b *ReservedResourceBuilder) Build() (object *ReservedResource, err error)

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

func (*ReservedResourceBuilder) Copy

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

func (*ReservedResourceBuilder) Count

Count sets the value of the 'count' attribute to the given value.

func (*ReservedResourceBuilder) CreatedAt

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

func (*ReservedResourceBuilder) ResourceName

func (b *ReservedResourceBuilder) ResourceName(value string) *ReservedResourceBuilder

ResourceName sets the value of the 'resource_name' attribute to the given value.

func (*ReservedResourceBuilder) ResourceType

func (b *ReservedResourceBuilder) ResourceType(value string) *ReservedResourceBuilder

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

func (*ReservedResourceBuilder) UpdatedAt

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

type ReservedResourceList

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

ReservedResourceList is a list of values of the 'reserved_resource' type.

func (*ReservedResourceList) Each

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

func (l *ReservedResourceList) Empty() bool

Empty returns true if the list is empty.

func (*ReservedResourceList) Get

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

func (*ReservedResourceList) Len

func (l *ReservedResourceList) Len() int

Len returns the length of the list.

func (*ReservedResourceList) Range

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

func (l *ReservedResourceList) Slice() []*ReservedResource

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 ReservedResourceListBuilder

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

ReservedResourceListBuilder contains the data and logic needed to build 'reserved_resource' objects.

func NewReservedResourceList

func NewReservedResourceList() *ReservedResourceListBuilder

NewReservedResourceList creates a new builder of 'reserved_resource' objects.

func (*ReservedResourceListBuilder) Build

func (b *ReservedResourceListBuilder) Build() (list *ReservedResourceList, err error)

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

func (*ReservedResourceListBuilder) Copy

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

func (*ReservedResourceListBuilder) Items

Items sets the items of the list.

type Resource

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

Resource represents the values of the 'resource' type.

Identifies computing resources

func UnmarshalResource

func UnmarshalResource(source interface{}) (object *Resource, err error)

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

func UnmarshalResourceList

func UnmarshalResourceList(source interface{}) (items []*Resource, err error)

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

func (*Resource) Allowed

func (o *Resource) Allowed() int

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

Number of allowed nodes

func (*Resource) Empty

func (o *Resource) Empty() bool

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

func (*Resource) GetAllowed

func (o *Resource) GetAllowed() (value int, ok bool)

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

Number of allowed nodes

func (*Resource) GetHREF

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

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

func (*Resource) GetID

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

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

func (*Resource) GetResourceName

func (o *Resource) GetResourceName() (value string, ok bool)

GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.

platform-specific name, such as "M5.2Xlarge" for a type of EC2 node

func (*Resource) GetResourceType

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

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

func (*Resource) HREF

func (o *Resource) HREF() string

HREF returns the link to the object.

func (*Resource) ID

func (o *Resource) ID() string

ID returns the identifier of the object.

func (*Resource) Kind

func (o *Resource) Kind() string

Kind returns the name of the type of the object.

func (o *Resource) Link() bool

Link returns true iif this is a link.

func (*Resource) ResourceName

func (o *Resource) ResourceName() string

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

platform-specific name, such as "M5.2Xlarge" for a type of EC2 node

func (*Resource) ResourceType

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

type ResourceBuilder

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

ResourceBuilder contains the data and logic needed to build 'resource' objects.

Identifies computing resources

func NewResource

func NewResource() *ResourceBuilder

NewResource creates a new builder of 'resource' objects.

func (*ResourceBuilder) Allowed

func (b *ResourceBuilder) Allowed(value int) *ResourceBuilder

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

func (*ResourceBuilder) Build

func (b *ResourceBuilder) Build() (object *Resource, err error)

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

func (*ResourceBuilder) Copy

func (b *ResourceBuilder) Copy(object *Resource) *ResourceBuilder

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

func (*ResourceBuilder) HREF

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

HREF sets the link to the object.

func (*ResourceBuilder) ID

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

ID sets the identifier of the object.

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

Link sets the flag that indicates if this is a link.

func (*ResourceBuilder) ResourceName

func (b *ResourceBuilder) ResourceName(value string) *ResourceBuilder

ResourceName sets the value of the 'resource_name' attribute to the given value.

func (*ResourceBuilder) ResourceType

func (b *ResourceBuilder) ResourceType(value string) *ResourceBuilder

ResourceType sets the value of the 'resource_type' attribute to the given value.

type ResourceList

type ResourceList struct {
	// contains filtered or unexported fields
}

ResourceList is a list of values of the 'resource' type.

func (*ResourceList) Each

func (l *ResourceList) Each(f func(item *Resource) 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 (*ResourceList) Empty

func (l *ResourceList) Empty() bool

Empty returns true if the list is empty.

func (*ResourceList) Get

func (l *ResourceList) Get(i int) *Resource

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ResourceList) GetHREF

func (l *ResourceList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*ResourceList) HREF

func (l *ResourceList) HREF() string

HREF returns the link to the list.

func (*ResourceList) Kind

func (l *ResourceList) Kind() string

Kind returns the name of the type of the object.

func (*ResourceList) Len

func (l *ResourceList) Len() int

Len returns the length of the list.

func (l *ResourceList) Link() bool

Link returns true iif this is a link.

func (*ResourceList) Range

func (l *ResourceList) Range(f func(index int, item *Resource) 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 (*ResourceList) Slice

func (l *ResourceList) Slice() []*Resource

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 ResourceListBuilder

type ResourceListBuilder struct {
	// contains filtered or unexported fields
}

ResourceListBuilder contains the data and logic needed to build 'resource' objects.

func NewResourceList

func NewResourceList() *ResourceListBuilder

NewResourceList creates a new builder of 'resource' objects.

func (*ResourceListBuilder) Build

func (b *ResourceListBuilder) Build() (list *ResourceList, err error)

Build creates a list of 'resource' objects using the configuration stored in the builder.

func (*ResourceListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ResourceListBuilder) Items

Items sets the items of the list.

type ResourceQuota

type ResourceQuota struct {
	// contains filtered or unexported fields
}

ResourceQuota represents the values of the 'resource_quota' type.

func UnmarshalResourceQuota

func UnmarshalResourceQuota(source interface{}) (object *ResourceQuota, err error)

UnmarshalResourceQuota reads a value of the 'resource_quota' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalResourceQuotaList

func UnmarshalResourceQuotaList(source interface{}) (items []*ResourceQuota, err error)

UnmarshalResourceQuotaList reads a list of values of the 'resource_quota' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ResourceQuota) Allowed

func (o *ResourceQuota) Allowed() int

Allowed returns the value of the 'allowed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) AvailabilityZoneType

func (o *ResourceQuota) AvailabilityZoneType() string

AvailabilityZoneType returns the value of the 'availability_zone_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) BYOC

func (o *ResourceQuota) BYOC() bool

BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) Empty

func (o *ResourceQuota) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ResourceQuota) GetAllowed

func (o *ResourceQuota) GetAllowed() (value int, ok bool)

GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetAvailabilityZoneType

func (o *ResourceQuota) GetAvailabilityZoneType() (value string, ok bool)

GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetBYOC

func (o *ResourceQuota) GetBYOC() (value bool, ok bool)

GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetHREF

func (o *ResourceQuota) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*ResourceQuota) GetID

func (o *ResourceQuota) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*ResourceQuota) GetOrganizationID

func (o *ResourceQuota) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetReserved added in v0.1.30

func (o *ResourceQuota) GetReserved() (value int, ok bool)

GetReserved returns the value of the 'reserved' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetResourceName

func (o *ResourceQuota) GetResourceName() (value string, ok bool)

GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetResourceType

func (o *ResourceQuota) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetSKU

func (o *ResourceQuota) GetSKU() (value string, ok bool)

GetSKU returns the value of the 'SKU' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetType

func (o *ResourceQuota) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) HREF

func (o *ResourceQuota) HREF() string

HREF returns the link to the object.

func (*ResourceQuota) ID

func (o *ResourceQuota) ID() string

ID returns the identifier of the object.

func (*ResourceQuota) Kind

func (o *ResourceQuota) Kind() string

Kind returns the name of the type of the object.

func (o *ResourceQuota) Link() bool

Link returns true iif this is a link.

func (*ResourceQuota) OrganizationID

func (o *ResourceQuota) 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.

func (*ResourceQuota) Reserved added in v0.1.30

func (o *ResourceQuota) Reserved() int

Reserved returns the value of the 'reserved' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) ResourceName

func (o *ResourceQuota) ResourceName() string

ResourceName returns the value of the 'resource_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) ResourceType

func (o *ResourceQuota) 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.

func (*ResourceQuota) SKU

func (o *ResourceQuota) SKU() string

SKU returns the value of the 'SKU' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) Type

func (o *ResourceQuota) Type() string

Type returns the value of the 'type' attribute, or the zero value of the type if the attribute doesn't have a value.

type ResourceQuotaBuilder

type ResourceQuotaBuilder struct {
	// contains filtered or unexported fields
}

ResourceQuotaBuilder contains the data and logic needed to build 'resource_quota' objects.

func NewResourceQuota

func NewResourceQuota() *ResourceQuotaBuilder

NewResourceQuota creates a new builder of 'resource_quota' objects.

func (*ResourceQuotaBuilder) Allowed

func (b *ResourceQuotaBuilder) Allowed(value int) *ResourceQuotaBuilder

Allowed sets the value of the 'allowed' attribute to the given value.

func (*ResourceQuotaBuilder) AvailabilityZoneType

func (b *ResourceQuotaBuilder) AvailabilityZoneType(value string) *ResourceQuotaBuilder

AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.

func (*ResourceQuotaBuilder) BYOC

BYOC sets the value of the 'BYOC' attribute to the given value.

func (*ResourceQuotaBuilder) Build

func (b *ResourceQuotaBuilder) Build() (object *ResourceQuota, err error)

Build creates a 'resource_quota' object using the configuration stored in the builder.

func (*ResourceQuotaBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ResourceQuotaBuilder) HREF

HREF sets the link to the object.

func (*ResourceQuotaBuilder) ID

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*ResourceQuotaBuilder) OrganizationID

func (b *ResourceQuotaBuilder) OrganizationID(value string) *ResourceQuotaBuilder

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*ResourceQuotaBuilder) Reserved added in v0.1.30

func (b *ResourceQuotaBuilder) Reserved(value int) *ResourceQuotaBuilder

Reserved sets the value of the 'reserved' attribute to the given value.

func (*ResourceQuotaBuilder) ResourceName

func (b *ResourceQuotaBuilder) ResourceName(value string) *ResourceQuotaBuilder

ResourceName sets the value of the 'resource_name' attribute to the given value.

func (*ResourceQuotaBuilder) ResourceType

func (b *ResourceQuotaBuilder) ResourceType(value string) *ResourceQuotaBuilder

ResourceType sets the value of the 'resource_type' attribute to the given value.

func (*ResourceQuotaBuilder) SKU

SKU sets the value of the 'SKU' attribute to the given value.

func (*ResourceQuotaBuilder) Type

Type sets the value of the 'type' attribute to the given value.

type ResourceQuotaClient

type ResourceQuotaClient struct {
	// contains filtered or unexported fields
}

ResourceQuotaClient is the client of the 'resource_quota' resource.

Manages a specific resource quota.

func NewResourceQuotaClient

func NewResourceQuotaClient(transport http.RoundTripper, path string, metric string) *ResourceQuotaClient

NewResourceQuotaClient creates a new client for the 'resource_quota' resource using the given transport to send the requests and receive the responses.

func (*ResourceQuotaClient) Delete

Delete creates a request for the 'delete' method.

Deletes the resource quota.

func (*ResourceQuotaClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the resource quota.

func (*ResourceQuotaClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*ResourceQuotaClient) Update

Update creates a request for the 'update' method.

Updates the resource quota.

type ResourceQuotaDeleteRequest

type ResourceQuotaDeleteRequest struct {
	// contains filtered or unexported fields
}

ResourceQuotaDeleteRequest is the request for the 'delete' method.

func (*ResourceQuotaDeleteRequest) Header

func (r *ResourceQuotaDeleteRequest) Header(name string, value interface{}) *ResourceQuotaDeleteRequest

Header adds a request header.

func (*ResourceQuotaDeleteRequest) Parameter

func (r *ResourceQuotaDeleteRequest) Parameter(name string, value interface{}) *ResourceQuotaDeleteRequest

Parameter adds a query parameter.

func (*ResourceQuotaDeleteRequest) 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 (*ResourceQuotaDeleteRequest) SendContext

func (r *ResourceQuotaDeleteRequest) SendContext(ctx context.Context) (result *ResourceQuotaDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type ResourceQuotaDeleteResponse

type ResourceQuotaDeleteResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotaDeleteResponse is the response for the 'delete' method.

func (*ResourceQuotaDeleteResponse) Error

Error returns the response error.

func (*ResourceQuotaDeleteResponse) Header

Header returns header of the response.

func (*ResourceQuotaDeleteResponse) Status

func (r *ResourceQuotaDeleteResponse) Status() int

Status returns the response status code.

type ResourceQuotaDeleteServerRequest

type ResourceQuotaDeleteServerRequest struct {
}

ResourceQuotaDeleteServerRequest is the request for the 'delete' method.

type ResourceQuotaDeleteServerResponse

type ResourceQuotaDeleteServerResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotaDeleteServerResponse is the response for the 'delete' method.

func (*ResourceQuotaDeleteServerResponse) Status

Status sets the status code.

type ResourceQuotaGetRequest

type ResourceQuotaGetRequest struct {
	// contains filtered or unexported fields
}

ResourceQuotaGetRequest is the request for the 'get' method.

func (*ResourceQuotaGetRequest) Header

func (r *ResourceQuotaGetRequest) Header(name string, value interface{}) *ResourceQuotaGetRequest

Header adds a request header.

func (*ResourceQuotaGetRequest) Parameter

func (r *ResourceQuotaGetRequest) Parameter(name string, value interface{}) *ResourceQuotaGetRequest

Parameter adds a query parameter.

func (*ResourceQuotaGetRequest) Send

func (r *ResourceQuotaGetRequest) Send() (result *ResourceQuotaGetResponse, 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 (*ResourceQuotaGetRequest) SendContext

func (r *ResourceQuotaGetRequest) SendContext(ctx context.Context) (result *ResourceQuotaGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type ResourceQuotaGetResponse

type ResourceQuotaGetResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotaGetResponse is the response for the 'get' method.

func (*ResourceQuotaGetResponse) Body

Body returns the value of the 'body' parameter.

func (*ResourceQuotaGetResponse) Error

Error returns the response error.

func (*ResourceQuotaGetResponse) GetBody

func (r *ResourceQuotaGetResponse) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ResourceQuotaGetResponse) Header

func (r *ResourceQuotaGetResponse) Header() http.Header

Header returns header of the response.

func (*ResourceQuotaGetResponse) Status

func (r *ResourceQuotaGetResponse) Status() int

Status returns the response status code.

type ResourceQuotaGetServerRequest

type ResourceQuotaGetServerRequest struct {
}

ResourceQuotaGetServerRequest is the request for the 'get' method.

type ResourceQuotaGetServerResponse

type ResourceQuotaGetServerResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotaGetServerResponse is the response for the 'get' method.

func (*ResourceQuotaGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*ResourceQuotaGetServerResponse) Status

Status sets the status code.

type ResourceQuotaList

type ResourceQuotaList struct {
	// contains filtered or unexported fields
}

ResourceQuotaList is a list of values of the 'resource_quota' type.

func (*ResourceQuotaList) Each

func (l *ResourceQuotaList) Each(f func(item *ResourceQuota) 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 (*ResourceQuotaList) Empty

func (l *ResourceQuotaList) Empty() bool

Empty returns true if the list is empty.

func (*ResourceQuotaList) Get

func (l *ResourceQuotaList) Get(i int) *ResourceQuota

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ResourceQuotaList) GetHREF

func (l *ResourceQuotaList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*ResourceQuotaList) HREF

func (l *ResourceQuotaList) HREF() string

HREF returns the link to the list.

func (*ResourceQuotaList) Kind

func (l *ResourceQuotaList) Kind() string

Kind returns the name of the type of the object.

func (*ResourceQuotaList) Len

func (l *ResourceQuotaList) Len() int

Len returns the length of the list.

func (l *ResourceQuotaList) Link() bool

Link returns true iif this is a link.

func (*ResourceQuotaList) Range

func (l *ResourceQuotaList) Range(f func(index int, item *ResourceQuota) 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 (*ResourceQuotaList) Slice

func (l *ResourceQuotaList) Slice() []*ResourceQuota

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 ResourceQuotaListBuilder

type ResourceQuotaListBuilder struct {
	// contains filtered or unexported fields
}

ResourceQuotaListBuilder contains the data and logic needed to build 'resource_quota' objects.

func NewResourceQuotaList

func NewResourceQuotaList() *ResourceQuotaListBuilder

NewResourceQuotaList creates a new builder of 'resource_quota' objects.

func (*ResourceQuotaListBuilder) Build

func (b *ResourceQuotaListBuilder) Build() (list *ResourceQuotaList, err error)

Build creates a list of 'resource_quota' objects using the configuration stored in the builder.

func (*ResourceQuotaListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ResourceQuotaListBuilder) Items

Items sets the items of the list.

type ResourceQuotaPollRequest

type ResourceQuotaPollRequest struct {
	// contains filtered or unexported fields
}

ResourceQuotaPollRequest is the request for the Poll method.

func (*ResourceQuotaPollRequest) Header

func (r *ResourceQuotaPollRequest) Header(name string, value interface{}) *ResourceQuotaPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*ResourceQuotaPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*ResourceQuotaPollRequest) Parameter

func (r *ResourceQuotaPollRequest) Parameter(name string, value interface{}) *ResourceQuotaPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*ResourceQuotaPollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*ResourceQuotaPollRequest) StartContext

func (r *ResourceQuotaPollRequest) StartContext(ctx context.Context) (response *ResourceQuotaPollResponse, 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 (*ResourceQuotaPollRequest) Status

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type ResourceQuotaPollResponse

type ResourceQuotaPollResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotaPollResponse is the response for the Poll method.

func (*ResourceQuotaPollResponse) Body

Body returns the value of the 'body' parameter.

func (*ResourceQuotaPollResponse) Error

Error returns the response error.

func (*ResourceQuotaPollResponse) GetBody

func (r *ResourceQuotaPollResponse) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ResourceQuotaPollResponse) Header

Header returns header of the response.

func (*ResourceQuotaPollResponse) Status

func (r *ResourceQuotaPollResponse) Status() int

Status returns the response status code.

type ResourceQuotaServer

type ResourceQuotaServer interface {

	// Delete handles a request for the 'delete' method.
	//
	// Deletes the resource quota.
	Delete(ctx context.Context, request *ResourceQuotaDeleteServerRequest, response *ResourceQuotaDeleteServerResponse) error

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the resource quota.
	Get(ctx context.Context, request *ResourceQuotaGetServerRequest, response *ResourceQuotaGetServerResponse) error

	// Update handles a request for the 'update' method.
	//
	// Updates the resource quota.
	Update(ctx context.Context, request *ResourceQuotaUpdateServerRequest, response *ResourceQuotaUpdateServerResponse) error
}

ResourceQuotaServer represents the interface the manages the 'resource_quota' resource.

type ResourceQuotaUpdateRequest

type ResourceQuotaUpdateRequest struct {
	// contains filtered or unexported fields
}

ResourceQuotaUpdateRequest is the request for the 'update' method.

func (*ResourceQuotaUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*ResourceQuotaUpdateRequest) Header

func (r *ResourceQuotaUpdateRequest) Header(name string, value interface{}) *ResourceQuotaUpdateRequest

Header adds a request header.

func (*ResourceQuotaUpdateRequest) Parameter

func (r *ResourceQuotaUpdateRequest) Parameter(name string, value interface{}) *ResourceQuotaUpdateRequest

Parameter adds a query parameter.

func (*ResourceQuotaUpdateRequest) 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 (*ResourceQuotaUpdateRequest) SendContext

func (r *ResourceQuotaUpdateRequest) SendContext(ctx context.Context) (result *ResourceQuotaUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type ResourceQuotaUpdateResponse

type ResourceQuotaUpdateResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotaUpdateResponse is the response for the 'update' method.

func (*ResourceQuotaUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*ResourceQuotaUpdateResponse) Error

Error returns the response error.

func (*ResourceQuotaUpdateResponse) GetBody

func (r *ResourceQuotaUpdateResponse) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ResourceQuotaUpdateResponse) Header

Header returns header of the response.

func (*ResourceQuotaUpdateResponse) Status

func (r *ResourceQuotaUpdateResponse) Status() int

Status returns the response status code.

type ResourceQuotaUpdateServerRequest

type ResourceQuotaUpdateServerRequest struct {
	// contains filtered or unexported fields
}

ResourceQuotaUpdateServerRequest is the request for the 'update' method.

func (*ResourceQuotaUpdateServerRequest) Body

Body returns the value of the 'body' parameter.

func (*ResourceQuotaUpdateServerRequest) GetBody

func (r *ResourceQuotaUpdateServerRequest) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

type ResourceQuotaUpdateServerResponse

type ResourceQuotaUpdateServerResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotaUpdateServerResponse is the response for the 'update' method.

func (*ResourceQuotaUpdateServerResponse) Body

Body sets the value of the 'body' parameter.

func (*ResourceQuotaUpdateServerResponse) Status

Status sets the status code.

type ResourceQuotasAddRequest

type ResourceQuotasAddRequest struct {
	// contains filtered or unexported fields
}

ResourceQuotasAddRequest is the request for the 'add' method.

func (*ResourceQuotasAddRequest) Body

Body sets the value of the 'body' parameter.

Resource quota data.

func (*ResourceQuotasAddRequest) Header

func (r *ResourceQuotasAddRequest) Header(name string, value interface{}) *ResourceQuotasAddRequest

Header adds a request header.

func (*ResourceQuotasAddRequest) Parameter

func (r *ResourceQuotasAddRequest) Parameter(name string, value interface{}) *ResourceQuotasAddRequest

Parameter adds a query parameter.

func (*ResourceQuotasAddRequest) Send

func (r *ResourceQuotasAddRequest) Send() (result *ResourceQuotasAddResponse, 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 (*ResourceQuotasAddRequest) SendContext

func (r *ResourceQuotasAddRequest) SendContext(ctx context.Context) (result *ResourceQuotasAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type ResourceQuotasAddResponse

type ResourceQuotasAddResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotasAddResponse is the response for the 'add' method.

func (*ResourceQuotasAddResponse) Body

Body returns the value of the 'body' parameter.

Resource quota data.

func (*ResourceQuotasAddResponse) Error

Error returns the response error.

func (*ResourceQuotasAddResponse) GetBody

func (r *ResourceQuotasAddResponse) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Resource quota data.

func (*ResourceQuotasAddResponse) Header

Header returns header of the response.

func (*ResourceQuotasAddResponse) Status

func (r *ResourceQuotasAddResponse) Status() int

Status returns the response status code.

type ResourceQuotasAddServerRequest

type ResourceQuotasAddServerRequest struct {
	// contains filtered or unexported fields
}

ResourceQuotasAddServerRequest is the request for the 'add' method.

func (*ResourceQuotasAddServerRequest) Body

Body returns the value of the 'body' parameter.

Resource quota data.

func (*ResourceQuotasAddServerRequest) GetBody

func (r *ResourceQuotasAddServerRequest) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Resource quota data.

type ResourceQuotasAddServerResponse

type ResourceQuotasAddServerResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotasAddServerResponse is the response for the 'add' method.

func (*ResourceQuotasAddServerResponse) Body

Body sets the value of the 'body' parameter.

Resource quota data.

func (*ResourceQuotasAddServerResponse) Status

Status sets the status code.

type ResourceQuotasClient

type ResourceQuotasClient struct {
	// contains filtered or unexported fields
}

ResourceQuotasClient is the client of the 'resource_quotas' resource.

Manages the collection of resource quotas for an organization.

func NewResourceQuotasClient

func NewResourceQuotasClient(transport http.RoundTripper, path string, metric string) *ResourceQuotasClient

NewResourceQuotasClient creates a new client for the 'resource_quotas' resource using the given transport to send the requests and receive the responses.

func (*ResourceQuotasClient) Add

Add creates a request for the 'add' method.

Creates a new resource quota.

func (*ResourceQuotasClient) List

List creates a request for the 'list' method.

Retrieves the list of resource quotas.

func (*ResourceQuotasClient) ResourceQuota

func (c *ResourceQuotasClient) ResourceQuota(id string) *ResourceQuotaClient

ResourceQuota returns the target 'resource_quota' resource for the given identifier.

Reference to the service that manages an specific resource quota.

type ResourceQuotasListRequest

type ResourceQuotasListRequest struct {
	// contains filtered or unexported fields
}

ResourceQuotasListRequest is the request for the 'list' method.

func (*ResourceQuotasListRequest) Header

func (r *ResourceQuotasListRequest) Header(name string, value interface{}) *ResourceQuotasListRequest

Header adds a request header.

func (*ResourceQuotasListRequest) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*ResourceQuotasListRequest) Parameter

func (r *ResourceQuotasListRequest) Parameter(name string, value interface{}) *ResourceQuotasListRequest

Parameter adds a query parameter.

func (*ResourceQuotasListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the account instead of the names of the columns of a table. For example, in order to retrieve resource quota with resource_type cluster.aws:

[source,sql] ---- resource_type = 'cluster.aws' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*ResourceQuotasListRequest) 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 (*ResourceQuotasListRequest) SendContext

func (r *ResourceQuotasListRequest) SendContext(ctx context.Context) (result *ResourceQuotasListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*ResourceQuotasListRequest) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type ResourceQuotasListResponse

type ResourceQuotasListResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotasListResponse is the response for the 'list' method.

func (*ResourceQuotasListResponse) Error

Error returns the response error.

func (*ResourceQuotasListResponse) GetItems

func (r *ResourceQuotasListResponse) GetItems() (value *ResourceQuotaList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of resource quotas.

func (*ResourceQuotasListResponse) GetPage

func (r *ResourceQuotasListResponse) 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 (*ResourceQuotasListResponse) GetSize

func (r *ResourceQuotasListResponse) 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 (*ResourceQuotasListResponse) GetTotal

func (r *ResourceQuotasListResponse) 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 (*ResourceQuotasListResponse) Header

Header returns header of the response.

func (*ResourceQuotasListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of resource quotas.

func (*ResourceQuotasListResponse) Page

func (r *ResourceQuotasListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*ResourceQuotasListResponse) Size

func (r *ResourceQuotasListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*ResourceQuotasListResponse) Status

func (r *ResourceQuotasListResponse) Status() int

Status returns the response status code.

func (*ResourceQuotasListResponse) Total

func (r *ResourceQuotasListResponse) 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 ResourceQuotasListServerRequest

type ResourceQuotasListServerRequest struct {
	// contains filtered or unexported fields
}

ResourceQuotasListServerRequest is the request for the 'list' method.

func (*ResourceQuotasListServerRequest) GetPage

func (r *ResourceQuotasListServerRequest) 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 (*ResourceQuotasListServerRequest) GetSearch

func (r *ResourceQuotasListServerRequest) GetSearch() (value string, ok bool)

GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.

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 account instead of the names of the columns of a table. For example, in order to retrieve resource quota with resource_type cluster.aws:

[source,sql] ---- resource_type = 'cluster.aws' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*ResourceQuotasListServerRequest) GetSize

func (r *ResourceQuotasListServerRequest) 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 (*ResourceQuotasListServerRequest) Page

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*ResourceQuotasListServerRequest) Search

Search returns 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 account instead of the names of the columns of a table. For example, in order to retrieve resource quota with resource_type cluster.aws:

[source,sql] ---- resource_type = 'cluster.aws' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*ResourceQuotasListServerRequest) Size

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type ResourceQuotasListServerResponse

type ResourceQuotasListServerResponse struct {
	// contains filtered or unexported fields
}

ResourceQuotasListServerResponse is the response for the 'list' method.

func (*ResourceQuotasListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of resource quotas.

func (*ResourceQuotasListServerResponse) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*ResourceQuotasListServerResponse) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*ResourceQuotasListServerResponse) Status

Status sets the status code.

func (*ResourceQuotasListServerResponse) Total

Total sets 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 ResourceQuotasServer

type ResourceQuotasServer interface {

	// Add handles a request for the 'add' method.
	//
	// Creates a new resource quota.
	Add(ctx context.Context, request *ResourceQuotasAddServerRequest, response *ResourceQuotasAddServerResponse) error

	// List handles a request for the 'list' method.
	//
	// Retrieves the list of resource quotas.
	List(ctx context.Context, request *ResourceQuotasListServerRequest, response *ResourceQuotasListServerResponse) error

	// ResourceQuota returns the target 'resource_quota' server for the given identifier.
	//
	// Reference to the service that manages an specific resource quota.
	ResourceQuota(id string) ResourceQuotaServer
}

ResourceQuotasServer represents the interface the manages the 'resource_quotas' resource.

type Role

type Role struct {
	// contains filtered or unexported fields
}

Role represents the values of the 'role' type.

func UnmarshalRole

func UnmarshalRole(source interface{}) (object *Role, err error)

UnmarshalRole reads a value of the 'role' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalRoleList

func UnmarshalRoleList(source interface{}) (items []*Role, err error)

UnmarshalRoleList reads a list of values of the 'role' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Role) Empty

func (o *Role) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Role) GetHREF

func (o *Role) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Role) GetID

func (o *Role) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Role) GetName

func (o *Role) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Role) GetPermissions

func (o *Role) GetPermissions() (value []*Permission, ok bool)

GetPermissions returns the value of the 'permissions' attribute and a flag indicating if the attribute has a value.

func (*Role) HREF

func (o *Role) HREF() string

HREF returns the link to the object.

func (*Role) ID

func (o *Role) ID() string

ID returns the identifier of the object.

func (*Role) Kind

func (o *Role) Kind() string

Kind returns the name of the type of the object.

func (o *Role) Link() bool

Link returns true iif this is a link.

func (*Role) Name

func (o *Role) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Role) Permissions

func (o *Role) Permissions() []*Permission

Permissions returns the value of the 'permissions' attribute, or the zero value of the type if the attribute doesn't have a value.

type RoleBinding

type RoleBinding struct {
	// contains filtered or unexported fields
}

RoleBinding represents the values of the 'role_binding' type.

func UnmarshalRoleBinding

func UnmarshalRoleBinding(source interface{}) (object *RoleBinding, err error)

UnmarshalRoleBinding reads a value of the 'role_binding' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalRoleBindingList

func UnmarshalRoleBindingList(source interface{}) (items []*RoleBinding, err error)

UnmarshalRoleBindingList reads a list of values of the 'role_binding' type from the given source, which can be a slice of bytes, a string or a reader.

func (*RoleBinding) Account

func (o *RoleBinding) Account() *Account

Account returns the value of the 'account' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) AccountID

func (o *RoleBinding) AccountID() string

AccountID returns the value of the 'account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) ConfigManaged

func (o *RoleBinding) ConfigManaged() bool

ConfigManaged returns the value of the 'config_managed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) Empty

func (o *RoleBinding) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*RoleBinding) GetAccount

func (o *RoleBinding) GetAccount() (value *Account, ok bool)

GetAccount returns the value of the 'account' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetAccountID

func (o *RoleBinding) GetAccountID() (value string, ok bool)

GetAccountID returns the value of the 'account_ID' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetConfigManaged

func (o *RoleBinding) GetConfigManaged() (value bool, ok bool)

GetConfigManaged returns the value of the 'config_managed' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetHREF

func (o *RoleBinding) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*RoleBinding) GetID

func (o *RoleBinding) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*RoleBinding) GetOrganization

func (o *RoleBinding) GetOrganization() (value *Organization, ok bool)

GetOrganization returns the value of the 'organization' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetOrganizationID

func (o *RoleBinding) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetRole

func (o *RoleBinding) GetRole() (value *Role, ok bool)

GetRole returns the value of the 'role' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetRoleID

func (o *RoleBinding) GetRoleID() (value string, ok bool)

GetRoleID returns the value of the 'role_ID' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetSubscription

func (o *RoleBinding) GetSubscription() (value *Subscription, ok bool)

GetSubscription returns the value of the 'subscription' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetSubscriptionID

func (o *RoleBinding) GetSubscriptionID() (value string, ok bool)

GetSubscriptionID returns the value of the 'subscription_ID' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetType

func (o *RoleBinding) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) HREF

func (o *RoleBinding) HREF() string

HREF returns the link to the object.

func (*RoleBinding) ID

func (o *RoleBinding) ID() string

ID returns the identifier of the object.

func (*RoleBinding) Kind

func (o *RoleBinding) Kind() string

Kind returns the name of the type of the object.

func (o *RoleBinding) Link() bool

Link returns true iif this is a link.

func (*RoleBinding) Organization

func (o *RoleBinding) Organization() *Organization

Organization returns the value of the 'organization' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) OrganizationID

func (o *RoleBinding) 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.

func (*RoleBinding) Role

func (o *RoleBinding) Role() *Role

Role returns the value of the 'role' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) RoleID

func (o *RoleBinding) RoleID() string

RoleID returns the value of the 'role_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) Subscription

func (o *RoleBinding) Subscription() *Subscription

Subscription returns the value of the 'subscription' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) SubscriptionID

func (o *RoleBinding) 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.

func (*RoleBinding) Type

func (o *RoleBinding) Type() string

Type returns the value of the 'type' attribute, or the zero value of the type if the attribute doesn't have a value.

type RoleBindingBuilder

type RoleBindingBuilder struct {
	// contains filtered or unexported fields
}

RoleBindingBuilder contains the data and logic needed to build 'role_binding' objects.

func NewRoleBinding

func NewRoleBinding() *RoleBindingBuilder

NewRoleBinding creates a new builder of 'role_binding' objects.

func (*RoleBindingBuilder) Account

Account sets the value of the 'account' attribute to the given value.

func (*RoleBindingBuilder) AccountID

func (b *RoleBindingBuilder) AccountID(value string) *RoleBindingBuilder

AccountID sets the value of the 'account_ID' attribute to the given value.

func (*RoleBindingBuilder) Build

func (b *RoleBindingBuilder) Build() (object *RoleBinding, err error)

Build creates a 'role_binding' object using the configuration stored in the builder.

func (*RoleBindingBuilder) ConfigManaged

func (b *RoleBindingBuilder) ConfigManaged(value bool) *RoleBindingBuilder

ConfigManaged sets the value of the 'config_managed' attribute to the given value.

func (*RoleBindingBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*RoleBindingBuilder) HREF

HREF sets the link to the object.

func (*RoleBindingBuilder) ID

ID sets the identifier of the object.

func (b *RoleBindingBuilder) Link(value bool) *RoleBindingBuilder

Link sets the flag that indicates if this is a link.

func (*RoleBindingBuilder) Organization

Organization sets the value of the 'organization' attribute to the given value.

func (*RoleBindingBuilder) OrganizationID

func (b *RoleBindingBuilder) OrganizationID(value string) *RoleBindingBuilder

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*RoleBindingBuilder) Role

Role sets the value of the 'role' attribute to the given value.

func (*RoleBindingBuilder) RoleID

func (b *RoleBindingBuilder) RoleID(value string) *RoleBindingBuilder

RoleID sets the value of the 'role_ID' attribute to the given value.

func (*RoleBindingBuilder) Subscription

Subscription sets the value of the 'subscription' attribute to the given value.

func (*RoleBindingBuilder) SubscriptionID

func (b *RoleBindingBuilder) SubscriptionID(value string) *RoleBindingBuilder

SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.

func (*RoleBindingBuilder) Type

Type sets the value of the 'type' attribute to the given value.

type RoleBindingClient

type RoleBindingClient struct {
	// contains filtered or unexported fields
}

RoleBindingClient is the client of the 'role_binding' resource.

Manages a specific role binding.

func NewRoleBindingClient

func NewRoleBindingClient(transport http.RoundTripper, path string, metric string) *RoleBindingClient

NewRoleBindingClient creates a new client for the 'role_binding' resource using the given transport to send the requests and receive the responses.

func (*RoleBindingClient) Delete

Delete creates a request for the 'delete' method.

Deletes the role binding.

func (*RoleBindingClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the role binding.

func (*RoleBindingClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*RoleBindingClient) Update

Update creates a request for the 'update' method.

Updates the account.

type RoleBindingDeleteRequest

type RoleBindingDeleteRequest struct {
	// contains filtered or unexported fields
}

RoleBindingDeleteRequest is the request for the 'delete' method.

func (*RoleBindingDeleteRequest) Header

func (r *RoleBindingDeleteRequest) Header(name string, value interface{}) *RoleBindingDeleteRequest

Header adds a request header.

func (*RoleBindingDeleteRequest) Parameter

func (r *RoleBindingDeleteRequest) Parameter(name string, value interface{}) *RoleBindingDeleteRequest

Parameter adds a query parameter.

func (*RoleBindingDeleteRequest) Send

func (r *RoleBindingDeleteRequest) Send() (result *RoleBindingDeleteResponse, 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 (*RoleBindingDeleteRequest) SendContext

func (r *RoleBindingDeleteRequest) SendContext(ctx context.Context) (result *RoleBindingDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleBindingDeleteResponse

type RoleBindingDeleteResponse struct {
	// contains filtered or unexported fields
}

RoleBindingDeleteResponse is the response for the 'delete' method.

func (*RoleBindingDeleteResponse) Error

Error returns the response error.

func (*RoleBindingDeleteResponse) Header

Header returns header of the response.

func (*RoleBindingDeleteResponse) Status

func (r *RoleBindingDeleteResponse) Status() int

Status returns the response status code.

type RoleBindingDeleteServerRequest

type RoleBindingDeleteServerRequest struct {
}

RoleBindingDeleteServerRequest is the request for the 'delete' method.

type RoleBindingDeleteServerResponse

type RoleBindingDeleteServerResponse struct {
	// contains filtered or unexported fields
}

RoleBindingDeleteServerResponse is the response for the 'delete' method.

func (*RoleBindingDeleteServerResponse) Status

Status sets the status code.

type RoleBindingGetRequest

type RoleBindingGetRequest struct {
	// contains filtered or unexported fields
}

RoleBindingGetRequest is the request for the 'get' method.

func (*RoleBindingGetRequest) Header

func (r *RoleBindingGetRequest) Header(name string, value interface{}) *RoleBindingGetRequest

Header adds a request header.

func (*RoleBindingGetRequest) Parameter

func (r *RoleBindingGetRequest) Parameter(name string, value interface{}) *RoleBindingGetRequest

Parameter adds a query parameter.

func (*RoleBindingGetRequest) Send

func (r *RoleBindingGetRequest) Send() (result *RoleBindingGetResponse, 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 (*RoleBindingGetRequest) SendContext

func (r *RoleBindingGetRequest) SendContext(ctx context.Context) (result *RoleBindingGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleBindingGetResponse

type RoleBindingGetResponse struct {
	// contains filtered or unexported fields
}

RoleBindingGetResponse is the response for the 'get' method.

func (*RoleBindingGetResponse) Body

Body returns the value of the 'body' parameter.

func (*RoleBindingGetResponse) Error

func (r *RoleBindingGetResponse) Error() *errors.Error

Error returns the response error.

func (*RoleBindingGetResponse) GetBody

func (r *RoleBindingGetResponse) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleBindingGetResponse) Header

func (r *RoleBindingGetResponse) Header() http.Header

Header returns header of the response.

func (*RoleBindingGetResponse) Status

func (r *RoleBindingGetResponse) Status() int

Status returns the response status code.

type RoleBindingGetServerRequest

type RoleBindingGetServerRequest struct {
}

RoleBindingGetServerRequest is the request for the 'get' method.

type RoleBindingGetServerResponse

type RoleBindingGetServerResponse struct {
	// contains filtered or unexported fields
}

RoleBindingGetServerResponse is the response for the 'get' method.

func (*RoleBindingGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*RoleBindingGetServerResponse) Status

Status sets the status code.

type RoleBindingList

type RoleBindingList struct {
	// contains filtered or unexported fields
}

RoleBindingList is a list of values of the 'role_binding' type.

func (*RoleBindingList) Each

func (l *RoleBindingList) Each(f func(item *RoleBinding) 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 (*RoleBindingList) Empty

func (l *RoleBindingList) Empty() bool

Empty returns true if the list is empty.

func (*RoleBindingList) Get

func (l *RoleBindingList) Get(i int) *RoleBinding

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*RoleBindingList) GetHREF

func (l *RoleBindingList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*RoleBindingList) HREF

func (l *RoleBindingList) HREF() string

HREF returns the link to the list.

func (*RoleBindingList) Kind

func (l *RoleBindingList) Kind() string

Kind returns the name of the type of the object.

func (*RoleBindingList) Len

func (l *RoleBindingList) Len() int

Len returns the length of the list.

func (l *RoleBindingList) Link() bool

Link returns true iif this is a link.

func (*RoleBindingList) Range

func (l *RoleBindingList) Range(f func(index int, item *RoleBinding) 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 (*RoleBindingList) Slice

func (l *RoleBindingList) Slice() []*RoleBinding

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 RoleBindingListBuilder

type RoleBindingListBuilder struct {
	// contains filtered or unexported fields
}

RoleBindingListBuilder contains the data and logic needed to build 'role_binding' objects.

func NewRoleBindingList

func NewRoleBindingList() *RoleBindingListBuilder

NewRoleBindingList creates a new builder of 'role_binding' objects.

func (*RoleBindingListBuilder) Build

func (b *RoleBindingListBuilder) Build() (list *RoleBindingList, err error)

Build creates a list of 'role_binding' objects using the configuration stored in the builder.

func (*RoleBindingListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*RoleBindingListBuilder) Items

Items sets the items of the list.

type RoleBindingPollRequest

type RoleBindingPollRequest struct {
	// contains filtered or unexported fields
}

RoleBindingPollRequest is the request for the Poll method.

func (*RoleBindingPollRequest) Header

func (r *RoleBindingPollRequest) Header(name string, value interface{}) *RoleBindingPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*RoleBindingPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*RoleBindingPollRequest) Parameter

func (r *RoleBindingPollRequest) Parameter(name string, value interface{}) *RoleBindingPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*RoleBindingPollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*RoleBindingPollRequest) StartContext

func (r *RoleBindingPollRequest) StartContext(ctx context.Context) (response *RoleBindingPollResponse, 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 (*RoleBindingPollRequest) Status

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type RoleBindingPollResponse

type RoleBindingPollResponse struct {
	// contains filtered or unexported fields
}

RoleBindingPollResponse is the response for the Poll method.

func (*RoleBindingPollResponse) Body

Body returns the value of the 'body' parameter.

func (*RoleBindingPollResponse) Error

func (r *RoleBindingPollResponse) Error() *errors.Error

Error returns the response error.

func (*RoleBindingPollResponse) GetBody

func (r *RoleBindingPollResponse) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleBindingPollResponse) Header

func (r *RoleBindingPollResponse) Header() http.Header

Header returns header of the response.

func (*RoleBindingPollResponse) Status

func (r *RoleBindingPollResponse) Status() int

Status returns the response status code.

type RoleBindingServer

type RoleBindingServer interface {

	// Delete handles a request for the 'delete' method.
	//
	// Deletes the role binding.
	Delete(ctx context.Context, request *RoleBindingDeleteServerRequest, response *RoleBindingDeleteServerResponse) error

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the role binding.
	Get(ctx context.Context, request *RoleBindingGetServerRequest, response *RoleBindingGetServerResponse) error

	// Update handles a request for the 'update' method.
	//
	// Updates the account.
	Update(ctx context.Context, request *RoleBindingUpdateServerRequest, response *RoleBindingUpdateServerResponse) error
}

RoleBindingServer represents the interface the manages the 'role_binding' resource.

type RoleBindingUpdateRequest

type RoleBindingUpdateRequest struct {
	// contains filtered or unexported fields
}

RoleBindingUpdateRequest is the request for the 'update' method.

func (*RoleBindingUpdateRequest) Body

Body sets the value of the 'body' parameter.

func (*RoleBindingUpdateRequest) Header

func (r *RoleBindingUpdateRequest) Header(name string, value interface{}) *RoleBindingUpdateRequest

Header adds a request header.

func (*RoleBindingUpdateRequest) Parameter

func (r *RoleBindingUpdateRequest) Parameter(name string, value interface{}) *RoleBindingUpdateRequest

Parameter adds a query parameter.

func (*RoleBindingUpdateRequest) Send

func (r *RoleBindingUpdateRequest) Send() (result *RoleBindingUpdateResponse, 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 (*RoleBindingUpdateRequest) SendContext

func (r *RoleBindingUpdateRequest) SendContext(ctx context.Context) (result *RoleBindingUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleBindingUpdateResponse

type RoleBindingUpdateResponse struct {
	// contains filtered or unexported fields
}

RoleBindingUpdateResponse is the response for the 'update' method.

func (*RoleBindingUpdateResponse) Body

Body returns the value of the 'body' parameter.

func (*RoleBindingUpdateResponse) Error

Error returns the response error.

func (*RoleBindingUpdateResponse) GetBody

func (r *RoleBindingUpdateResponse) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleBindingUpdateResponse) Header

Header returns header of the response.

func (*RoleBindingUpdateResponse) Status

func (r *RoleBindingUpdateResponse) Status() int

Status returns the response status code.

type RoleBindingUpdateServerRequest

type RoleBindingUpdateServerRequest struct {
	// contains filtered or unexported fields
}

RoleBindingUpdateServerRequest is the request for the 'update' method.

func (*RoleBindingUpdateServerRequest) Body

Body returns the value of the 'body' parameter.

func (*RoleBindingUpdateServerRequest) GetBody

func (r *RoleBindingUpdateServerRequest) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

type RoleBindingUpdateServerResponse

type RoleBindingUpdateServerResponse struct {
	// contains filtered or unexported fields
}

RoleBindingUpdateServerResponse is the response for the 'update' method.

func (*RoleBindingUpdateServerResponse) Body

Body sets the value of the 'body' parameter.

func (*RoleBindingUpdateServerResponse) Status

Status sets the status code.

type RoleBindingsAddRequest

type RoleBindingsAddRequest struct {
	// contains filtered or unexported fields
}

RoleBindingsAddRequest is the request for the 'add' method.

func (*RoleBindingsAddRequest) Body

Body sets the value of the 'body' parameter.

Role binding data.

func (*RoleBindingsAddRequest) Header

func (r *RoleBindingsAddRequest) Header(name string, value interface{}) *RoleBindingsAddRequest

Header adds a request header.

func (*RoleBindingsAddRequest) Parameter

func (r *RoleBindingsAddRequest) Parameter(name string, value interface{}) *RoleBindingsAddRequest

Parameter adds a query parameter.

func (*RoleBindingsAddRequest) Send

func (r *RoleBindingsAddRequest) Send() (result *RoleBindingsAddResponse, 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 (*RoleBindingsAddRequest) SendContext

func (r *RoleBindingsAddRequest) SendContext(ctx context.Context) (result *RoleBindingsAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleBindingsAddResponse

type RoleBindingsAddResponse struct {
	// contains filtered or unexported fields
}

RoleBindingsAddResponse is the response for the 'add' method.

func (*RoleBindingsAddResponse) Body

Body returns the value of the 'body' parameter.

Role binding data.

func (*RoleBindingsAddResponse) Error

func (r *RoleBindingsAddResponse) Error() *errors.Error

Error returns the response error.

func (*RoleBindingsAddResponse) GetBody

func (r *RoleBindingsAddResponse) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Role binding data.

func (*RoleBindingsAddResponse) Header

func (r *RoleBindingsAddResponse) Header() http.Header

Header returns header of the response.

func (*RoleBindingsAddResponse) Status

func (r *RoleBindingsAddResponse) Status() int

Status returns the response status code.

type RoleBindingsAddServerRequest

type RoleBindingsAddServerRequest struct {
	// contains filtered or unexported fields
}

RoleBindingsAddServerRequest is the request for the 'add' method.

func (*RoleBindingsAddServerRequest) Body

Body returns the value of the 'body' parameter.

Role binding data.

func (*RoleBindingsAddServerRequest) GetBody

func (r *RoleBindingsAddServerRequest) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Role binding data.

type RoleBindingsAddServerResponse

type RoleBindingsAddServerResponse struct {
	// contains filtered or unexported fields
}

RoleBindingsAddServerResponse is the response for the 'add' method.

func (*RoleBindingsAddServerResponse) Body

Body sets the value of the 'body' parameter.

Role binding data.

func (*RoleBindingsAddServerResponse) Status

Status sets the status code.

type RoleBindingsClient

type RoleBindingsClient struct {
	// contains filtered or unexported fields
}

RoleBindingsClient is the client of the 'role_bindings' resource.

Manages the collection of role bindings.

func NewRoleBindingsClient

func NewRoleBindingsClient(transport http.RoundTripper, path string, metric string) *RoleBindingsClient

NewRoleBindingsClient creates a new client for the 'role_bindings' resource using the given transport to send the requests and receive the responses.

func (*RoleBindingsClient) Add

Add creates a request for the 'add' method.

Creates a new role binding.

func (*RoleBindingsClient) List

List creates a request for the 'list' method.

Retrieves a list of role bindings.

func (*RoleBindingsClient) RoleBinding

func (c *RoleBindingsClient) RoleBinding(id string) *RoleBindingClient

RoleBinding returns the target 'role_binding' resource for the given identifier.

Reference to the service that manages a specific role binding.

type RoleBindingsListRequest

type RoleBindingsListRequest struct {
	// contains filtered or unexported fields
}

RoleBindingsListRequest is the request for the 'list' method.

func (*RoleBindingsListRequest) Header

func (r *RoleBindingsListRequest) Header(name string, value interface{}) *RoleBindingsListRequest

Header adds a request header.

func (*RoleBindingsListRequest) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RoleBindingsListRequest) Parameter

func (r *RoleBindingsListRequest) Parameter(name string, value interface{}) *RoleBindingsListRequest

Parameter adds a query parameter.

func (*RoleBindingsListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser:

[source,sql] ---- role_id = 'AuthenticatedUser' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*RoleBindingsListRequest) Send

func (r *RoleBindingsListRequest) Send() (result *RoleBindingsListResponse, 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 (*RoleBindingsListRequest) SendContext

func (r *RoleBindingsListRequest) SendContext(ctx context.Context) (result *RoleBindingsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*RoleBindingsListRequest) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type RoleBindingsListResponse

type RoleBindingsListResponse struct {
	// contains filtered or unexported fields
}

RoleBindingsListResponse is the response for the 'list' method.

func (*RoleBindingsListResponse) Error

Error returns the response error.

func (*RoleBindingsListResponse) GetItems

func (r *RoleBindingsListResponse) GetItems() (value *RoleBindingList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of role bindings.

func (*RoleBindingsListResponse) GetPage

func (r *RoleBindingsListResponse) 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 (*RoleBindingsListResponse) GetSize

func (r *RoleBindingsListResponse) 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 (*RoleBindingsListResponse) GetTotal

func (r *RoleBindingsListResponse) 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 (*RoleBindingsListResponse) Header

func (r *RoleBindingsListResponse) Header() http.Header

Header returns header of the response.

func (*RoleBindingsListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of role bindings.

func (*RoleBindingsListResponse) Page

func (r *RoleBindingsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RoleBindingsListResponse) Size

func (r *RoleBindingsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*RoleBindingsListResponse) Status

func (r *RoleBindingsListResponse) Status() int

Status returns the response status code.

func (*RoleBindingsListResponse) Total

func (r *RoleBindingsListResponse) 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 RoleBindingsListServerRequest

type RoleBindingsListServerRequest struct {
	// contains filtered or unexported fields
}

RoleBindingsListServerRequest is the request for the 'list' method.

func (*RoleBindingsListServerRequest) GetPage

func (r *RoleBindingsListServerRequest) 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 (*RoleBindingsListServerRequest) GetSearch

func (r *RoleBindingsListServerRequest) GetSearch() (value string, ok bool)

GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.

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 role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser:

[source,sql] ---- role_id = 'AuthenticatedUser' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*RoleBindingsListServerRequest) GetSize

func (r *RoleBindingsListServerRequest) 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 (*RoleBindingsListServerRequest) Page

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RoleBindingsListServerRequest) Search

Search returns 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 role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser:

[source,sql] ---- role_id = 'AuthenticatedUser' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*RoleBindingsListServerRequest) Size

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type RoleBindingsListServerResponse

type RoleBindingsListServerResponse struct {
	// contains filtered or unexported fields
}

RoleBindingsListServerResponse is the response for the 'list' method.

func (*RoleBindingsListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of role bindings.

func (*RoleBindingsListServerResponse) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RoleBindingsListServerResponse) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*RoleBindingsListServerResponse) Status

Status sets the status code.

func (*RoleBindingsListServerResponse) Total

Total sets 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 RoleBindingsServer

type RoleBindingsServer interface {

	// Add handles a request for the 'add' method.
	//
	// Creates a new role binding.
	Add(ctx context.Context, request *RoleBindingsAddServerRequest, response *RoleBindingsAddServerResponse) error

	// List handles a request for the 'list' method.
	//
	// Retrieves a list of role bindings.
	List(ctx context.Context, request *RoleBindingsListServerRequest, response *RoleBindingsListServerResponse) error

	// RoleBinding returns the target 'role_binding' server for the given identifier.
	//
	// Reference to the service that manages a specific role binding.
	RoleBinding(id string) RoleBindingServer
}

RoleBindingsServer represents the interface the manages the 'role_bindings' resource.

type RoleBuilder

type RoleBuilder struct {
	// contains filtered or unexported fields
}

RoleBuilder contains the data and logic needed to build 'role' objects.

func NewRole

func NewRole() *RoleBuilder

NewRole creates a new builder of 'role' objects.

func (*RoleBuilder) Build

func (b *RoleBuilder) Build() (object *Role, err error)

Build creates a 'role' object using the configuration stored in the builder.

func (*RoleBuilder) Copy

func (b *RoleBuilder) Copy(object *Role) *RoleBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*RoleBuilder) HREF

func (b *RoleBuilder) HREF(value string) *RoleBuilder

HREF sets the link to the object.

func (*RoleBuilder) ID

func (b *RoleBuilder) ID(value string) *RoleBuilder

ID sets the identifier of the object.

func (b *RoleBuilder) Link(value bool) *RoleBuilder

Link sets the flag that indicates if this is a link.

func (*RoleBuilder) Name

func (b *RoleBuilder) Name(value string) *RoleBuilder

Name sets the value of the 'name' attribute to the given value.

func (*RoleBuilder) Permissions

func (b *RoleBuilder) Permissions(values ...*PermissionBuilder) *RoleBuilder

Permissions sets the value of the 'permissions' attribute to the given values.

type RoleClient

type RoleClient struct {
	// contains filtered or unexported fields
}

RoleClient is the client of the 'role' resource.

Manages a specific role.

func NewRoleClient

func NewRoleClient(transport http.RoundTripper, path string, metric string) *RoleClient

NewRoleClient creates a new client for the 'role' resource using the given transport to send the requests and receive the responses.

func (*RoleClient) Delete

func (c *RoleClient) Delete() *RoleDeleteRequest

Delete creates a request for the 'delete' method.

Deletes the role.

func (*RoleClient) Get

func (c *RoleClient) Get() *RoleGetRequest

Get creates a request for the 'get' method.

Retrieves the details of the role.

func (*RoleClient) Poll

func (c *RoleClient) Poll() *RolePollRequest

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.

func (*RoleClient) Update

func (c *RoleClient) Update() *RoleUpdateRequest

Update creates a request for the 'update' method.

Updates the role.

type RoleDeleteRequest

type RoleDeleteRequest struct {
	// contains filtered or unexported fields
}

RoleDeleteRequest is the request for the 'delete' method.

func (*RoleDeleteRequest) Header

func (r *RoleDeleteRequest) Header(name string, value interface{}) *RoleDeleteRequest

Header adds a request header.

func (*RoleDeleteRequest) Parameter

func (r *RoleDeleteRequest) Parameter(name string, value interface{}) *RoleDeleteRequest

Parameter adds a query parameter.

func (*RoleDeleteRequest) Send

func (r *RoleDeleteRequest) Send() (result *RoleDeleteResponse, 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 (*RoleDeleteRequest) SendContext

func (r *RoleDeleteRequest) SendContext(ctx context.Context) (result *RoleDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleDeleteResponse

type RoleDeleteResponse struct {
	// contains filtered or unexported fields
}

RoleDeleteResponse is the response for the 'delete' method.

func (*RoleDeleteResponse) Error

func (r *RoleDeleteResponse) Error() *errors.Error

Error returns the response error.

func (*RoleDeleteResponse) Header

func (r *RoleDeleteResponse) Header() http.Header

Header returns header of the response.

func (*RoleDeleteResponse) Status

func (r *RoleDeleteResponse) Status() int

Status returns the response status code.

type RoleDeleteServerRequest

type RoleDeleteServerRequest struct {
}

RoleDeleteServerRequest is the request for the 'delete' method.

type RoleDeleteServerResponse

type RoleDeleteServerResponse struct {
	// contains filtered or unexported fields
}

RoleDeleteServerResponse is the response for the 'delete' method.

func (*RoleDeleteServerResponse) Status

Status sets the status code.

type RoleGetRequest

type RoleGetRequest struct {
	// contains filtered or unexported fields
}

RoleGetRequest is the request for the 'get' method.

func (*RoleGetRequest) Header

func (r *RoleGetRequest) Header(name string, value interface{}) *RoleGetRequest

Header adds a request header.

func (*RoleGetRequest) Parameter

func (r *RoleGetRequest) Parameter(name string, value interface{}) *RoleGetRequest

Parameter adds a query parameter.

func (*RoleGetRequest) Send

func (r *RoleGetRequest) Send() (result *RoleGetResponse, 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 (*RoleGetRequest) SendContext

func (r *RoleGetRequest) SendContext(ctx context.Context) (result *RoleGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleGetResponse

type RoleGetResponse struct {
	// contains filtered or unexported fields
}

RoleGetResponse is the response for the 'get' method.

func (*RoleGetResponse) Body

func (r *RoleGetResponse) Body() *Role

Body returns the value of the 'body' parameter.

func (*RoleGetResponse) Error

func (r *RoleGetResponse) Error() *errors.Error

Error returns the response error.

func (*RoleGetResponse) GetBody

func (r *RoleGetResponse) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleGetResponse) Header

func (r *RoleGetResponse) Header() http.Header

Header returns header of the response.

func (*RoleGetResponse) Status

func (r *RoleGetResponse) Status() int

Status returns the response status code.

type RoleGetServerRequest

type RoleGetServerRequest struct {
}

RoleGetServerRequest is the request for the 'get' method.

type RoleGetServerResponse

type RoleGetServerResponse struct {
	// contains filtered or unexported fields
}

RoleGetServerResponse is the response for the 'get' method.

func (*RoleGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*RoleGetServerResponse) Status

Status sets the status code.

type RoleList

type RoleList struct {
	// contains filtered or unexported fields
}

RoleList is a list of values of the 'role' type.

func (*RoleList) Each

func (l *RoleList) Each(f func(item *Role) 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 (*RoleList) Empty

func (l *RoleList) Empty() bool

Empty returns true if the list is empty.

func (*RoleList) Get

func (l *RoleList) Get(i int) *Role

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*RoleList) GetHREF

func (l *RoleList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*RoleList) HREF

func (l *RoleList) HREF() string

HREF returns the link to the list.

func (*RoleList) Kind

func (l *RoleList) Kind() string

Kind returns the name of the type of the object.

func (*RoleList) Len

func (l *RoleList) Len() int

Len returns the length of the list.

func (l *RoleList) Link() bool

Link returns true iif this is a link.

func (*RoleList) Range

func (l *RoleList) Range(f func(index int, item *Role) 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 (*RoleList) Slice

func (l *RoleList) Slice() []*Role

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 RoleListBuilder

type RoleListBuilder struct {
	// contains filtered or unexported fields
}

RoleListBuilder contains the data and logic needed to build 'role' objects.

func NewRoleList

func NewRoleList() *RoleListBuilder

NewRoleList creates a new builder of 'role' objects.

func (*RoleListBuilder) Build

func (b *RoleListBuilder) Build() (list *RoleList, err error)

Build creates a list of 'role' objects using the configuration stored in the builder.

func (*RoleListBuilder) Copy

func (b *RoleListBuilder) Copy(list *RoleList) *RoleListBuilder

Copy copies the items of the given list into this builder, discarding any previous items.

func (*RoleListBuilder) Items

func (b *RoleListBuilder) Items(values ...*RoleBuilder) *RoleListBuilder

Items sets the items of the list.

type RolePollRequest

type RolePollRequest struct {
	// contains filtered or unexported fields
}

RolePollRequest is the request for the Poll method.

func (*RolePollRequest) Header

func (r *RolePollRequest) Header(name string, value interface{}) *RolePollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*RolePollRequest) Interval

func (r *RolePollRequest) Interval(value time.Duration) *RolePollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*RolePollRequest) Parameter

func (r *RolePollRequest) Parameter(name string, value interface{}) *RolePollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*RolePollRequest) Predicate

func (r *RolePollRequest) Predicate(value func(*RoleGetResponse) bool) *RolePollRequest

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 (*RolePollRequest) StartContext

func (r *RolePollRequest) StartContext(ctx context.Context) (response *RolePollResponse, 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 (*RolePollRequest) Status

func (r *RolePollRequest) Status(value int) *RolePollRequest

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 RolePollResponse

type RolePollResponse struct {
	// contains filtered or unexported fields
}

RolePollResponse is the response for the Poll method.

func (*RolePollResponse) Body

func (r *RolePollResponse) Body() *Role

Body returns the value of the 'body' parameter.

func (*RolePollResponse) Error

func (r *RolePollResponse) Error() *errors.Error

Error returns the response error.

func (*RolePollResponse) GetBody

func (r *RolePollResponse) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RolePollResponse) Header

func (r *RolePollResponse) Header() http.Header

Header returns header of the response.

func (*RolePollResponse) Status

func (r *RolePollResponse) Status() int

Status returns the response status code.

type RoleServer

type RoleServer interface {

	// Delete handles a request for the 'delete' method.
	//
	// Deletes the role.
	Delete(ctx context.Context, request *RoleDeleteServerRequest, response *RoleDeleteServerResponse) error

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the role.
	Get(ctx context.Context, request *RoleGetServerRequest, response *RoleGetServerResponse) error

	// Update handles a request for the 'update' method.
	//
	// Updates the role.
	Update(ctx context.Context, request *RoleUpdateServerRequest, response *RoleUpdateServerResponse) error
}

RoleServer represents the interface the manages the 'role' resource.

type RoleUpdateRequest

type RoleUpdateRequest struct {
	// contains filtered or unexported fields
}

RoleUpdateRequest is the request for the 'update' method.

func (*RoleUpdateRequest) Body

func (r *RoleUpdateRequest) Body(value *Role) *RoleUpdateRequest

Body sets the value of the 'body' parameter.

func (*RoleUpdateRequest) Header

func (r *RoleUpdateRequest) Header(name string, value interface{}) *RoleUpdateRequest

Header adds a request header.

func (*RoleUpdateRequest) Parameter

func (r *RoleUpdateRequest) Parameter(name string, value interface{}) *RoleUpdateRequest

Parameter adds a query parameter.

func (*RoleUpdateRequest) Send

func (r *RoleUpdateRequest) Send() (result *RoleUpdateResponse, 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 (*RoleUpdateRequest) SendContext

func (r *RoleUpdateRequest) SendContext(ctx context.Context) (result *RoleUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleUpdateResponse

type RoleUpdateResponse struct {
	// contains filtered or unexported fields
}

RoleUpdateResponse is the response for the 'update' method.

func (*RoleUpdateResponse) Body

func (r *RoleUpdateResponse) Body() *Role

Body returns the value of the 'body' parameter.

func (*RoleUpdateResponse) Error

func (r *RoleUpdateResponse) Error() *errors.Error

Error returns the response error.

func (*RoleUpdateResponse) GetBody

func (r *RoleUpdateResponse) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleUpdateResponse) Header

func (r *RoleUpdateResponse) Header() http.Header

Header returns header of the response.

func (*RoleUpdateResponse) Status

func (r *RoleUpdateResponse) Status() int

Status returns the response status code.

type RoleUpdateServerRequest

type RoleUpdateServerRequest struct {
	// contains filtered or unexported fields
}

RoleUpdateServerRequest is the request for the 'update' method.

func (*RoleUpdateServerRequest) Body

func (r *RoleUpdateServerRequest) Body() *Role

Body returns the value of the 'body' parameter.

func (*RoleUpdateServerRequest) GetBody

func (r *RoleUpdateServerRequest) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

type RoleUpdateServerResponse

type RoleUpdateServerResponse struct {
	// contains filtered or unexported fields
}

RoleUpdateServerResponse is the response for the 'update' method.

func (*RoleUpdateServerResponse) Body

Body sets the value of the 'body' parameter.

func (*RoleUpdateServerResponse) Status

Status sets the status code.

type RolesAddRequest

type RolesAddRequest struct {
	// contains filtered or unexported fields
}

RolesAddRequest is the request for the 'add' method.

func (*RolesAddRequest) Body

func (r *RolesAddRequest) Body(value *Role) *RolesAddRequest

Body sets the value of the 'body' parameter.

Role data.

func (*RolesAddRequest) Header

func (r *RolesAddRequest) Header(name string, value interface{}) *RolesAddRequest

Header adds a request header.

func (*RolesAddRequest) Parameter

func (r *RolesAddRequest) Parameter(name string, value interface{}) *RolesAddRequest

Parameter adds a query parameter.

func (*RolesAddRequest) Send

func (r *RolesAddRequest) Send() (result *RolesAddResponse, 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 (*RolesAddRequest) SendContext

func (r *RolesAddRequest) SendContext(ctx context.Context) (result *RolesAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RolesAddResponse

type RolesAddResponse struct {
	// contains filtered or unexported fields
}

RolesAddResponse is the response for the 'add' method.

func (*RolesAddResponse) Body

func (r *RolesAddResponse) Body() *Role

Body returns the value of the 'body' parameter.

Role data.

func (*RolesAddResponse) Error

func (r *RolesAddResponse) Error() *errors.Error

Error returns the response error.

func (*RolesAddResponse) GetBody

func (r *RolesAddResponse) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Role data.

func (*RolesAddResponse) Header

func (r *RolesAddResponse) Header() http.Header

Header returns header of the response.

func (*RolesAddResponse) Status

func (r *RolesAddResponse) Status() int

Status returns the response status code.

type RolesAddServerRequest

type RolesAddServerRequest struct {
	// contains filtered or unexported fields
}

RolesAddServerRequest is the request for the 'add' method.

func (*RolesAddServerRequest) Body

func (r *RolesAddServerRequest) Body() *Role

Body returns the value of the 'body' parameter.

Role data.

func (*RolesAddServerRequest) GetBody

func (r *RolesAddServerRequest) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Role data.

type RolesAddServerResponse

type RolesAddServerResponse struct {
	// contains filtered or unexported fields
}

RolesAddServerResponse is the response for the 'add' method.

func (*RolesAddServerResponse) Body

Body sets the value of the 'body' parameter.

Role data.

func (*RolesAddServerResponse) Status

Status sets the status code.

type RolesClient

type RolesClient struct {
	// contains filtered or unexported fields
}

RolesClient is the client of the 'roles' resource.

Manages the collection of roles.

func NewRolesClient

func NewRolesClient(transport http.RoundTripper, path string, metric string) *RolesClient

NewRolesClient creates a new client for the 'roles' resource using the given transport to send the requests and receive the responses.

func (*RolesClient) Add

func (c *RolesClient) Add() *RolesAddRequest

Add creates a request for the 'add' method.

Creates a new role.

func (*RolesClient) List

func (c *RolesClient) List() *RolesListRequest

List creates a request for the 'list' method.

Retrieves a list of roles.

func (*RolesClient) Role

func (c *RolesClient) Role(id string) *RoleClient

Role returns the target 'role' resource for the given identifier.

Reference to the service that manages a specific role.

type RolesListRequest

type RolesListRequest struct {
	// contains filtered or unexported fields
}

RolesListRequest is the request for the 'list' method.

func (*RolesListRequest) Header

func (r *RolesListRequest) Header(name string, value interface{}) *RolesListRequest

Header adds a request header.

func (*RolesListRequest) Page

func (r *RolesListRequest) Page(value int) *RolesListRequest

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RolesListRequest) Parameter

func (r *RolesListRequest) Parameter(name string, value interface{}) *RolesListRequest

Parameter adds a query parameter.

func (*RolesListRequest) Search

func (r *RolesListRequest) Search(value string) *RolesListRequest

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 role instead of the names of the columns of a table. For example, in order to retrieve roles named starting with `Organization`:

[source,sql] ---- name like 'Organization%' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*RolesListRequest) Send

func (r *RolesListRequest) Send() (result *RolesListResponse, 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 (*RolesListRequest) SendContext

func (r *RolesListRequest) SendContext(ctx context.Context) (result *RolesListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*RolesListRequest) Size

func (r *RolesListRequest) Size(value int) *RolesListRequest

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type RolesListResponse

type RolesListResponse struct {
	// contains filtered or unexported fields
}

RolesListResponse is the response for the 'list' method.

func (*RolesListResponse) Error

func (r *RolesListResponse) Error() *errors.Error

Error returns the response error.

func (*RolesListResponse) GetItems

func (r *RolesListResponse) GetItems() (value *RoleList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of roles.

func (*RolesListResponse) GetPage

func (r *RolesListResponse) 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 (*RolesListResponse) GetSize

func (r *RolesListResponse) 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 (*RolesListResponse) GetTotal

func (r *RolesListResponse) 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 (*RolesListResponse) Header

func (r *RolesListResponse) Header() http.Header

Header returns header of the response.

func (*RolesListResponse) Items

func (r *RolesListResponse) Items() *RoleList

Items returns the value of the 'items' parameter.

Retrieved list of roles.

func (*RolesListResponse) Page

func (r *RolesListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RolesListResponse) Size

func (r *RolesListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*RolesListResponse) Status

func (r *RolesListResponse) Status() int

Status returns the response status code.

func (*RolesListResponse) Total

func (r *RolesListResponse) 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 RolesListServerRequest

type RolesListServerRequest struct {
	// contains filtered or unexported fields
}

RolesListServerRequest is the request for the 'list' method.

func (*RolesListServerRequest) GetPage

func (r *RolesListServerRequest) 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 (*RolesListServerRequest) GetSearch

func (r *RolesListServerRequest) GetSearch() (value string, ok bool)

GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.

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 role instead of the names of the columns of a table. For example, in order to retrieve roles named starting with `Organization`:

[source,sql] ---- name like 'Organization%' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*RolesListServerRequest) GetSize

func (r *RolesListServerRequest) 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 (*RolesListServerRequest) Page

func (r *RolesListServerRequest) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RolesListServerRequest) Search

func (r *RolesListServerRequest) Search() string

Search returns 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 role instead of the names of the columns of a table. For example, in order to retrieve roles named starting with `Organization`:

[source,sql] ---- name like 'Organization%' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*RolesListServerRequest) Size

func (r *RolesListServerRequest) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type RolesListServerResponse

type RolesListServerResponse struct {
	// contains filtered or unexported fields
}

RolesListServerResponse is the response for the 'list' method.

func (*RolesListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of roles.

func (*RolesListServerResponse) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RolesListServerResponse) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*RolesListServerResponse) Status

Status sets the status code.

func (*RolesListServerResponse) Total

Total sets 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 RolesServer

type RolesServer interface {

	// Add handles a request for the 'add' method.
	//
	// Creates a new role.
	Add(ctx context.Context, request *RolesAddServerRequest, response *RolesAddServerResponse) error

	// List handles a request for the 'list' method.
	//
	// Retrieves a list of roles.
	List(ctx context.Context, request *RolesListServerRequest, response *RolesListServerResponse) error

	// Role returns the target 'role' server for the given identifier.
	//
	// Reference to the service that manages a specific role.
	Role(id string) RoleServer
}

RolesServer represents the interface the manages the 'roles' resource.

type SKU

type SKU struct {
	// contains filtered or unexported fields
}

SKU represents the values of the 'SKU' type.

Identifies computing resources

func UnmarshalSKU

func UnmarshalSKU(source interface{}) (object *SKU, err error)

UnmarshalSKU reads a value of the 'SKU' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSKUList

func UnmarshalSKUList(source interface{}) (items []*SKU, err error)

UnmarshalSKUList reads a list of values of the 'SKU' type from the given source, which can be a slice of bytes, a string or a reader.

func (*SKU) AvailabilityZoneType

func (o *SKU) AvailabilityZoneType() string

AvailabilityZoneType returns the value of the 'availability_zone_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SKU) BYOC

func (o *SKU) BYOC() bool

BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SKU) Empty

func (o *SKU) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*SKU) GetAvailabilityZoneType

func (o *SKU) GetAvailabilityZoneType() (value string, ok bool)

GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.

func (*SKU) GetBYOC

func (o *SKU) GetBYOC() (value bool, ok bool)

GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.

func (*SKU) GetHREF

func (o *SKU) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*SKU) GetID

func (o *SKU) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*SKU) GetResourceName

func (o *SKU) GetResourceName() (value string, ok bool)

GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.

platform-specific name, such as "M5.2Xlarge" for a type of EC2 node

func (*SKU) GetResourceType

func (o *SKU) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

func (*SKU) GetResources

func (o *SKU) GetResources() (value []*Resource, ok bool)

GetResources returns the value of the 'resources' attribute and a flag indicating if the attribute has a value.

func (*SKU) HREF

func (o *SKU) HREF() string

HREF returns the link to the object.

func (*SKU) ID

func (o *SKU) ID() string

ID returns the identifier of the object.

func (*SKU) Kind

func (o *SKU) Kind() string

Kind returns the name of the type of the object.

func (o *SKU) Link() bool

Link returns true iif this is a link.

func (*SKU) ResourceName

func (o *SKU) ResourceName() string

ResourceName returns the value of the 'resource_name' attribute, or the zero value of the type if the attribute doesn't have a value.

platform-specific name, such as "M5.2Xlarge" for a type of EC2 node

func (*SKU) ResourceType

func (o *SKU) 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.

func (*SKU) Resources

func (o *SKU) Resources() []*Resource

Resources returns the value of the 'resources' attribute, or the zero value of the type if the attribute doesn't have a value.

type SKUBuilder

type SKUBuilder struct {
	// contains filtered or unexported fields
}

SKUBuilder contains the data and logic needed to build 'SKU' objects.

Identifies computing resources

func NewSKU

func NewSKU() *SKUBuilder

NewSKU creates a new builder of 'SKU' objects.

func (*SKUBuilder) AvailabilityZoneType

func (b *SKUBuilder) AvailabilityZoneType(value string) *SKUBuilder

AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.

func (*SKUBuilder) BYOC

func (b *SKUBuilder) BYOC(value bool) *SKUBuilder

BYOC sets the value of the 'BYOC' attribute to the given value.

func (*SKUBuilder) Build

func (b *SKUBuilder) Build() (object *SKU, err error)

Build creates a 'SKU' object using the configuration stored in the builder.

func (*SKUBuilder) Copy

func (b *SKUBuilder) Copy(object *SKU) *SKUBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SKUBuilder) HREF

func (b *SKUBuilder) HREF(value string) *SKUBuilder

HREF sets the link to the object.

func (*SKUBuilder) ID

func (b *SKUBuilder) ID(value string) *SKUBuilder

ID sets the identifier of the object.

func (b *SKUBuilder) Link(value bool) *SKUBuilder

Link sets the flag that indicates if this is a link.

func (*SKUBuilder) ResourceName

func (b *SKUBuilder) ResourceName(value string) *SKUBuilder

ResourceName sets the value of the 'resource_name' attribute to the given value.

func (*SKUBuilder) ResourceType

func (b *SKUBuilder) ResourceType(value string) *SKUBuilder

ResourceType sets the value of the 'resource_type' attribute to the given value.

func (*SKUBuilder) Resources

func (b *SKUBuilder) Resources(values ...*ResourceBuilder) *SKUBuilder

Resources sets the value of the 'resources' attribute to the given values.

type SKUClient

type SKUClient struct {
	// contains filtered or unexported fields
}

SKUClient is the client of the 'SKU' resource.

Manages a specific SKU.

func NewSKUClient

func NewSKUClient(transport http.RoundTripper, path string, metric string) *SKUClient

NewSKUClient creates a new client for the 'SKU' resource using the given transport to send the requests and receive the responses.

func (*SKUClient) Get

func (c *SKUClient) Get() *SKUGetRequest

Get creates a request for the 'get' method.

Retrieves the details of the SKU.

func (*SKUClient) Poll

func (c *SKUClient) Poll() *SKUPollRequest

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 SKUGetRequest

type SKUGetRequest struct {
	// contains filtered or unexported fields
}

SKUGetRequest is the request for the 'get' method.

func (*SKUGetRequest) Header

func (r *SKUGetRequest) Header(name string, value interface{}) *SKUGetRequest

Header adds a request header.

func (*SKUGetRequest) Parameter

func (r *SKUGetRequest) Parameter(name string, value interface{}) *SKUGetRequest

Parameter adds a query parameter.

func (*SKUGetRequest) Send

func (r *SKUGetRequest) Send() (result *SKUGetResponse, 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 (*SKUGetRequest) SendContext

func (r *SKUGetRequest) SendContext(ctx context.Context) (result *SKUGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SKUGetResponse

type SKUGetResponse struct {
	// contains filtered or unexported fields
}

SKUGetResponse is the response for the 'get' method.

func (*SKUGetResponse) Body

func (r *SKUGetResponse) Body() *SKU

Body returns the value of the 'body' parameter.

func (*SKUGetResponse) Error

func (r *SKUGetResponse) Error() *errors.Error

Error returns the response error.

func (*SKUGetResponse) GetBody

func (r *SKUGetResponse) GetBody() (value *SKU, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SKUGetResponse) Header

func (r *SKUGetResponse) Header() http.Header

Header returns header of the response.

func (*SKUGetResponse) Status

func (r *SKUGetResponse) Status() int

Status returns the response status code.

type SKUGetServerRequest

type SKUGetServerRequest struct {
}

SKUGetServerRequest is the request for the 'get' method.

type SKUGetServerResponse

type SKUGetServerResponse struct {
	// contains filtered or unexported fields
}

SKUGetServerResponse is the response for the 'get' method.

func (*SKUGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*SKUGetServerResponse) Status

func (r *SKUGetServerResponse) Status(value int) *SKUGetServerResponse

Status sets the status code.

type SKUList

type SKUList struct {
	// contains filtered or unexported fields
}

SKUList is a list of values of the 'SKU' type.

func (*SKUList) Each

func (l *SKUList) Each(f func(item *SKU) 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 (*SKUList) Empty

func (l *SKUList) Empty() bool

Empty returns true if the list is empty.

func (*SKUList) Get

func (l *SKUList) Get(i int) *SKU

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SKUList) GetHREF

func (l *SKUList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*SKUList) HREF

func (l *SKUList) HREF() string

HREF returns the link to the list.

func (*SKUList) Kind

func (l *SKUList) Kind() string

Kind returns the name of the type of the object.

func (*SKUList) Len

func (l *SKUList) Len() int

Len returns the length of the list.

func (l *SKUList) Link() bool

Link returns true iif this is a link.

func (*SKUList) Range

func (l *SKUList) Range(f func(index int, item *SKU) 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 (*SKUList) Slice

func (l *SKUList) Slice() []*SKU

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 SKUListBuilder

type SKUListBuilder struct {
	// contains filtered or unexported fields
}

SKUListBuilder contains the data and logic needed to build 'SKU' objects.

func NewSKUList

func NewSKUList() *SKUListBuilder

NewSKUList creates a new builder of 'SKU' objects.

func (*SKUListBuilder) Build

func (b *SKUListBuilder) Build() (list *SKUList, err error)

Build creates a list of 'SKU' objects using the configuration stored in the builder.

func (*SKUListBuilder) Copy

func (b *SKUListBuilder) Copy(list *SKUList) *SKUListBuilder

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SKUListBuilder) Items

func (b *SKUListBuilder) Items(values ...*SKUBuilder) *SKUListBuilder

Items sets the items of the list.

type SKUPollRequest

type SKUPollRequest struct {
	// contains filtered or unexported fields
}

SKUPollRequest is the request for the Poll method.

func (*SKUPollRequest) Header

func (r *SKUPollRequest) Header(name string, value interface{}) *SKUPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*SKUPollRequest) Interval

func (r *SKUPollRequest) Interval(value time.Duration) *SKUPollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*SKUPollRequest) Parameter

func (r *SKUPollRequest) Parameter(name string, value interface{}) *SKUPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*SKUPollRequest) Predicate

func (r *SKUPollRequest) Predicate(value func(*SKUGetResponse) bool) *SKUPollRequest

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 (*SKUPollRequest) StartContext

func (r *SKUPollRequest) StartContext(ctx context.Context) (response *SKUPollResponse, 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 (*SKUPollRequest) Status

func (r *SKUPollRequest) Status(value int) *SKUPollRequest

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 SKUPollResponse

type SKUPollResponse struct {
	// contains filtered or unexported fields
}

SKUPollResponse is the response for the Poll method.

func (*SKUPollResponse) Body

func (r *SKUPollResponse) Body() *SKU

Body returns the value of the 'body' parameter.

func (*SKUPollResponse) Error

func (r *SKUPollResponse) Error() *errors.Error

Error returns the response error.

func (*SKUPollResponse) GetBody

func (r *SKUPollResponse) GetBody() (value *SKU, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SKUPollResponse) Header

func (r *SKUPollResponse) Header() http.Header

Header returns header of the response.

func (*SKUPollResponse) Status

func (r *SKUPollResponse) Status() int

Status returns the response status code.

type SKUSClient

type SKUSClient struct {
	// contains filtered or unexported fields
}

SKUSClient is the client of the 'SKUS' resource.

Manages the collection of SKUS.

func NewSKUSClient

func NewSKUSClient(transport http.RoundTripper, path string, metric string) *SKUSClient

NewSKUSClient creates a new client for the 'SKUS' resource using the given transport to send the requests and receive the responses.

func (*SKUSClient) List

func (c *SKUSClient) List() *SKUSListRequest

List creates a request for the 'list' method.

Retrieves a list of SKUS.

func (*SKUSClient) SKU

func (c *SKUSClient) SKU(id string) *SKUClient

SKU returns the target 'SKU' resource for the given identifier.

Reference to the service that manages a specific SKU.

type SKUSListRequest

type SKUSListRequest struct {
	// contains filtered or unexported fields
}

SKUSListRequest is the request for the 'list' method.

func (*SKUSListRequest) Header

func (r *SKUSListRequest) Header(name string, value interface{}) *SKUSListRequest

Header adds a request header.

func (*SKUSListRequest) Page

func (r *SKUSListRequest) Page(value int) *SKUSListRequest

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SKUSListRequest) Parameter

func (r *SKUSListRequest) Parameter(name string, value interface{}) *SKUSListRequest

Parameter adds a query parameter.

func (*SKUSListRequest) Search

func (r *SKUSListRequest) Search(value string) *SKUSListRequest

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 SKU instead of the names of the columns of a table. For example, in order to retrieve SKUS large sized resources:

[source,sql] ---- resource_name like '%large' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*SKUSListRequest) Send

func (r *SKUSListRequest) Send() (result *SKUSListResponse, 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 (*SKUSListRequest) SendContext

func (r *SKUSListRequest) SendContext(ctx context.Context) (result *SKUSListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*SKUSListRequest) Size

func (r *SKUSListRequest) Size(value int) *SKUSListRequest

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type SKUSListResponse

type SKUSListResponse struct {
	// contains filtered or unexported fields
}

SKUSListResponse is the response for the 'list' method.

func (*SKUSListResponse) Error

func (r *SKUSListResponse) Error() *errors.Error

Error returns the response error.

func (*SKUSListResponse) GetItems

func (r *SKUSListResponse) GetItems() (value *SKUList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of SKUS.

func (*SKUSListResponse) GetPage

func (r *SKUSListResponse) 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 (*SKUSListResponse) GetSize

func (r *SKUSListResponse) 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 (*SKUSListResponse) GetTotal

func (r *SKUSListResponse) 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 (*SKUSListResponse) Header

func (r *SKUSListResponse) Header() http.Header

Header returns header of the response.

func (*SKUSListResponse) Items

func (r *SKUSListResponse) Items() *SKUList

Items returns the value of the 'items' parameter.

Retrieved list of SKUS.

func (*SKUSListResponse) Page

func (r *SKUSListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SKUSListResponse) Size

func (r *SKUSListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*SKUSListResponse) Status

func (r *SKUSListResponse) Status() int

Status returns the response status code.

func (*SKUSListResponse) Total

func (r *SKUSListResponse) 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 SKUSListServerRequest

type SKUSListServerRequest struct {
	// contains filtered or unexported fields
}

SKUSListServerRequest is the request for the 'list' method.

func (*SKUSListServerRequest) GetPage

func (r *SKUSListServerRequest) 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 (*SKUSListServerRequest) GetSearch

func (r *SKUSListServerRequest) GetSearch() (value string, ok bool)

GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.

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 SKU instead of the names of the columns of a table. For example, in order to retrieve SKUS large sized resources:

[source,sql] ---- resource_name like '%large' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*SKUSListServerRequest) GetSize

func (r *SKUSListServerRequest) 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 (*SKUSListServerRequest) Page

func (r *SKUSListServerRequest) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SKUSListServerRequest) Search

func (r *SKUSListServerRequest) Search() string

Search returns 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 SKU instead of the names of the columns of a table. For example, in order to retrieve SKUS large sized resources:

[source,sql] ---- resource_name like '%large' ----

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*SKUSListServerRequest) Size

func (r *SKUSListServerRequest) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type SKUSListServerResponse

type SKUSListServerResponse struct {
	// contains filtered or unexported fields
}

SKUSListServerResponse is the response for the 'list' method.

func (*SKUSListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of SKUS.

func (*SKUSListServerResponse) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SKUSListServerResponse) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*SKUSListServerResponse) Status

Status sets the status code.

func (*SKUSListServerResponse) Total

Total sets 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 SKUSServer

type SKUSServer interface {

	// List handles a request for the 'list' method.
	//
	// Retrieves a list of SKUS.
	List(ctx context.Context, request *SKUSListServerRequest, response *SKUSListServerResponse) error

	// SKU returns the target 'SKU' server for the given identifier.
	//
	// Reference to the service that manages a specific SKU.
	SKU(id string) SKUServer
}

SKUSServer represents the interface the manages the 'SKUS' resource.

type SKUServer

type SKUServer interface {

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the SKU.
	Get(ctx context.Context, request *SKUGetServerRequest, response *SKUGetServerResponse) error
}

SKUServer represents the interface the manages the 'SKU' resource.

type Server

type Server interface {

	// SKUS returns the target 'SKUS' resource.
	//
	// Reference to the resource that manages the collection of
	// SKUS
	SKUS() SKUSServer

	// AccessToken returns the target 'access_token' resource.
	//
	// Reference to the resource that manages generates access tokens.
	AccessToken() AccessTokenServer

	// Accounts returns the target 'accounts' resource.
	//
	// Reference to the resource that manages the collection of accounts.
	Accounts() AccountsServer

	// ClusterAuthorizations returns the target 'cluster_authorizations' resource.
	//
	// Reference to the resource that manages cluster authorizations.
	ClusterAuthorizations() ClusterAuthorizationsServer

	// ClusterRegistrations returns the target 'cluster_registrations' resource.
	//
	// Reference to the resource that manages cluster registrations.
	ClusterRegistrations() ClusterRegistrationsServer

	// CurrentAccess returns the target 'roles' resource.
	//
	// Reference to the resource that manages the current authenticated
	// account.
	CurrentAccess() RolesServer

	// CurrentAccount returns the target 'current_account' resource.
	//
	// Reference to the resource that manages the current authenticated
	// account.
	CurrentAccount() CurrentAccountServer

	// Organizations returns the target 'organizations' resource.
	//
	// Reference to the resource that manages the collection of
	// organizations.
	Organizations() OrganizationsServer

	// Permissions returns the target 'permissions' resource.
	//
	// Reference to the resource that manages the collection of permissions.
	Permissions() PermissionsServer

	// Registries returns the target 'registries' resource.
	//
	// Reference to the resource that manages the collection of registries.
	Registries() RegistriesServer

	// RegistryCredentials returns the target 'registry_credentials' resource.
	//
	// Reference to the resource that manages the collection of registry
	// credentials.
	RegistryCredentials() RegistryCredentialsServer

	// ResourceQuota returns the target 'resource_quotas' resource.
	//
	// Reference to the resource that manages the collection of resource
	// quota.
	ResourceQuota() ResourceQuotasServer

	// RoleBindings returns the target 'role_bindings' resource.
	//
	// Reference to the resource that manages the collection of role
	// bindings.
	RoleBindings() RoleBindingsServer

	// Roles returns the target 'roles' resource.
	//
	// Reference to the resource that manages the collection of roles.
	Roles() RolesServer

	// Subscriptions returns the target 'subscriptions' resource.
	//
	// Reference to the resource that manages the collection of
	// subscriptions.
	Subscriptions() SubscriptionsServer
}

Server represents the interface the manages the 'root' resource.

type Subscription

type Subscription struct {
	// contains filtered or unexported fields
}

Subscription represents the values of the 'subscription' type.

func UnmarshalSubscription

func UnmarshalSubscription(source interface{}) (object *Subscription, err error)

UnmarshalSubscription reads a value of the 'subscription' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSubscriptionList

func UnmarshalSubscriptionList(source interface{}) (items []*Subscription, err error)

UnmarshalSubscriptionList reads a list of values of the 'subscription' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Subscription) ClusterID

func (o *Subscription) 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.

func (*Subscription) CreatedAt

func (o *Subscription) 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.

func (*Subscription) Creator

func (o *Subscription) Creator() *Account

Creator returns the value of the 'creator' attribute, or the zero value of the type if the attribute doesn't have a value.

Link to the account that created the subscription.

func (*Subscription) DisplayName

func (o *Subscription) DisplayName() string

DisplayName returns the value of the 'display_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Empty

func (o *Subscription) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Subscription) ExternalClusterID

func (o *Subscription) ExternalClusterID() string

ExternalClusterID returns the value of the 'external_cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) GetClusterID

func (o *Subscription) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetCreatedAt

func (o *Subscription) 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.

func (*Subscription) GetCreator

func (o *Subscription) GetCreator() (value *Account, ok bool)

GetCreator returns the value of the 'creator' attribute and a flag indicating if the attribute has a value.

Link to the account that created the subscription.

func (*Subscription) GetDisplayName

func (o *Subscription) GetDisplayName() (value string, ok bool)

GetDisplayName returns the value of the 'display_name' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetExternalClusterID

func (o *Subscription) GetExternalClusterID() (value string, ok bool)

GetExternalClusterID returns the value of the 'external_cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetHREF

func (o *Subscription) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Subscription) GetID

func (o *Subscription) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Subscription) GetLastTelemetryDate

func (o *Subscription) GetLastTelemetryDate() (value time.Time, ok bool)

GetLastTelemetryDate returns the value of the 'last_telemetry_date' attribute and a flag indicating if the attribute has a value.

Last telemetry authorization request for this subscription.

func (*Subscription) GetOrganizationID

func (o *Subscription) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetPlan

func (o *Subscription) GetPlan() (value *Plan, ok bool)

GetPlan returns the value of the 'plan' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetRegistryCredential added in v0.1.30

func (o *Subscription) GetRegistryCredential() (value *RegistryCredential, ok bool)

GetRegistryCredential returns the value of the 'registry_credential' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetUpdatedAt

func (o *Subscription) 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.

func (*Subscription) HREF

func (o *Subscription) HREF() string

HREF returns the link to the object.

func (*Subscription) ID

func (o *Subscription) ID() string

ID returns the identifier of the object.

func (*Subscription) Kind

func (o *Subscription) Kind() string

Kind returns the name of the type of the object.

func (*Subscription) LastTelemetryDate

func (o *Subscription) LastTelemetryDate() time.Time

LastTelemetryDate returns the value of the 'last_telemetry_date' attribute, or the zero value of the type if the attribute doesn't have a value.

Last telemetry authorization request for this subscription.

func (o *Subscription) Link() bool

Link returns true iif this is a link.

func (*Subscription) OrganizationID

func (o *Subscription) 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.

func (*Subscription) Plan

func (o *Subscription) Plan() *Plan

Plan returns the value of the 'plan' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) RegistryCredential added in v0.1.30

func (o *Subscription) RegistryCredential() *RegistryCredential

RegistryCredential returns the value of the 'registry_credential' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) UpdatedAt

func (o *Subscription) 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.

type SubscriptionBuilder

type SubscriptionBuilder struct {
	// contains filtered or unexported fields
}

SubscriptionBuilder contains the data and logic needed to build 'subscription' objects.

func NewSubscription

func NewSubscription() *SubscriptionBuilder

NewSubscription creates a new builder of 'subscription' objects.

func (*SubscriptionBuilder) Build

func (b *SubscriptionBuilder) Build() (object *Subscription, err error)

Build creates a 'subscription' object using the configuration stored in the builder.

func (*SubscriptionBuilder) ClusterID

func (b *SubscriptionBuilder) ClusterID(value string) *SubscriptionBuilder

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*SubscriptionBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SubscriptionBuilder) CreatedAt

func (b *SubscriptionBuilder) CreatedAt(value time.Time) *SubscriptionBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*SubscriptionBuilder) Creator

Creator sets the value of the 'creator' attribute to the given value.

func (*SubscriptionBuilder) DisplayName

func (b *SubscriptionBuilder) DisplayName(value string) *SubscriptionBuilder

DisplayName sets the value of the 'display_name' attribute to the given value.

func (*SubscriptionBuilder) ExternalClusterID

func (b *SubscriptionBuilder) ExternalClusterID(value string) *SubscriptionBuilder

ExternalClusterID sets the value of the 'external_cluster_ID' attribute to the given value.

func (*SubscriptionBuilder) HREF

HREF sets the link to the object.

func (*SubscriptionBuilder) ID

ID sets the identifier of the object.

func (*SubscriptionBuilder) LastTelemetryDate

func (b *SubscriptionBuilder) LastTelemetryDate(value time.Time) *SubscriptionBuilder

LastTelemetryDate sets the value of the 'last_telemetry_date' attribute to the given value.

Link sets the flag that indicates if this is a link.

func (*SubscriptionBuilder) OrganizationID

func (b *SubscriptionBuilder) OrganizationID(value string) *SubscriptionBuilder

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*SubscriptionBuilder) Plan

Plan sets the value of the 'plan' attribute to the given value.

func (*SubscriptionBuilder) RegistryCredential added in v0.1.30

func (b *SubscriptionBuilder) RegistryCredential(value *RegistryCredentialBuilder) *SubscriptionBuilder

RegistryCredential sets the value of the 'registry_credential' attribute to the given value.

func (*SubscriptionBuilder) UpdatedAt

func (b *SubscriptionBuilder) UpdatedAt(value time.Time) *SubscriptionBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type SubscriptionClient

type SubscriptionClient struct {
	// contains filtered or unexported fields
}

SubscriptionClient is the client of the 'subscription' resource.

Manages a specific subscription.

func NewSubscriptionClient

func NewSubscriptionClient(transport http.RoundTripper, path string, metric string) *SubscriptionClient

NewSubscriptionClient creates a new client for the 'subscription' resource using the given transport to send the requests and receive the responses.

func (*SubscriptionClient) Delete

Delete creates a request for the 'delete' method.

Deletes the subscription.

func (*SubscriptionClient) Get

Get creates a request for the 'get' method.

Retrieves the details of the subscription.

func (*SubscriptionClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*SubscriptionClient) ReservedResources

ReservedResources returns the target 'subscription_reserved_resources' resource.

Reference to the resource that manages the collection of resources reserved by the subscription.

type SubscriptionDeleteRequest

type SubscriptionDeleteRequest struct {
	// contains filtered or unexported fields
}

SubscriptionDeleteRequest is the request for the 'delete' method.

func (*SubscriptionDeleteRequest) Header

func (r *SubscriptionDeleteRequest) Header(name string, value interface{}) *SubscriptionDeleteRequest

Header adds a request header.

func (*SubscriptionDeleteRequest) Parameter

func (r *SubscriptionDeleteRequest) Parameter(name string, value interface{}) *SubscriptionDeleteRequest

Parameter adds a query parameter.

func (*SubscriptionDeleteRequest) 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 (*SubscriptionDeleteRequest) SendContext

func (r *SubscriptionDeleteRequest) SendContext(ctx context.Context) (result *SubscriptionDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SubscriptionDeleteResponse

type SubscriptionDeleteResponse struct {
	// contains filtered or unexported fields
}

SubscriptionDeleteResponse is the response for the 'delete' method.

func (*SubscriptionDeleteResponse) Error

Error returns the response error.

func (*SubscriptionDeleteResponse) Header

Header returns header of the response.

func (*SubscriptionDeleteResponse) Status

func (r *SubscriptionDeleteResponse) Status() int

Status returns the response status code.

type SubscriptionDeleteServerRequest

type SubscriptionDeleteServerRequest struct {
}

SubscriptionDeleteServerRequest is the request for the 'delete' method.

type SubscriptionDeleteServerResponse

type SubscriptionDeleteServerResponse struct {
	// contains filtered or unexported fields
}

SubscriptionDeleteServerResponse is the response for the 'delete' method.

func (*SubscriptionDeleteServerResponse) Status

Status sets the status code.

type SubscriptionGetRequest

type SubscriptionGetRequest struct {
	// contains filtered or unexported fields
}

SubscriptionGetRequest is the request for the 'get' method.

func (*SubscriptionGetRequest) Header

func (r *SubscriptionGetRequest) Header(name string, value interface{}) *SubscriptionGetRequest

Header adds a request header.

func (*SubscriptionGetRequest) Parameter

func (r *SubscriptionGetRequest) Parameter(name string, value interface{}) *SubscriptionGetRequest

Parameter adds a query parameter.

func (*SubscriptionGetRequest) Send

func (r *SubscriptionGetRequest) Send() (result *SubscriptionGetResponse, 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 (*SubscriptionGetRequest) SendContext

func (r *SubscriptionGetRequest) SendContext(ctx context.Context) (result *SubscriptionGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SubscriptionGetResponse

type SubscriptionGetResponse struct {
	// contains filtered or unexported fields
}

SubscriptionGetResponse is the response for the 'get' method.

func (*SubscriptionGetResponse) Body

Body returns the value of the 'body' parameter.

func (*SubscriptionGetResponse) Error

func (r *SubscriptionGetResponse) Error() *errors.Error

Error returns the response error.

func (*SubscriptionGetResponse) GetBody

func (r *SubscriptionGetResponse) GetBody() (value *Subscription, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SubscriptionGetResponse) Header

func (r *SubscriptionGetResponse) Header() http.Header

Header returns header of the response.

func (*SubscriptionGetResponse) Status

func (r *SubscriptionGetResponse) Status() int

Status returns the response status code.

type SubscriptionGetServerRequest

type SubscriptionGetServerRequest struct {
}

SubscriptionGetServerRequest is the request for the 'get' method.

type SubscriptionGetServerResponse

type SubscriptionGetServerResponse struct {
	// contains filtered or unexported fields
}

SubscriptionGetServerResponse is the response for the 'get' method.

func (*SubscriptionGetServerResponse) Body

Body sets the value of the 'body' parameter.

func (*SubscriptionGetServerResponse) Status

Status sets the status code.

type SubscriptionList

type SubscriptionList struct {
	// contains filtered or unexported fields
}

SubscriptionList is a list of values of the 'subscription' type.

func (*SubscriptionList) Each

func (l *SubscriptionList) Each(f func(item *Subscription) 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 (*SubscriptionList) Empty

func (l *SubscriptionList) Empty() bool

Empty returns true if the list is empty.

func (*SubscriptionList) Get

func (l *SubscriptionList) Get(i int) *Subscription

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SubscriptionList) GetHREF

func (l *SubscriptionList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*SubscriptionList) HREF

func (l *SubscriptionList) HREF() string

HREF returns the link to the list.

func (*SubscriptionList) Kind

func (l *SubscriptionList) Kind() string

Kind returns the name of the type of the object.

func (*SubscriptionList) Len

func (l *SubscriptionList) Len() int

Len returns the length of the list.

func (l *SubscriptionList) Link() bool

Link returns true iif this is a link.

func (*SubscriptionList) Range

func (l *SubscriptionList) Range(f func(index int, item *Subscription) 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 (*SubscriptionList) Slice

func (l *SubscriptionList) Slice() []*Subscription

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 SubscriptionListBuilder

type SubscriptionListBuilder struct {
	// contains filtered or unexported fields
}

SubscriptionListBuilder contains the data and logic needed to build 'subscription' objects.

func NewSubscriptionList

func NewSubscriptionList() *SubscriptionListBuilder

NewSubscriptionList creates a new builder of 'subscription' objects.

func (*SubscriptionListBuilder) Build

func (b *SubscriptionListBuilder) Build() (list *SubscriptionList, err error)

Build creates a list of 'subscription' objects using the configuration stored in the builder.

func (*SubscriptionListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SubscriptionListBuilder) Items

Items sets the items of the list.

type SubscriptionPollRequest

type SubscriptionPollRequest struct {
	// contains filtered or unexported fields
}

SubscriptionPollRequest is the request for the Poll method.

func (*SubscriptionPollRequest) Header

func (r *SubscriptionPollRequest) Header(name string, value interface{}) *SubscriptionPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*SubscriptionPollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*SubscriptionPollRequest) Parameter

func (r *SubscriptionPollRequest) Parameter(name string, value interface{}) *SubscriptionPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*SubscriptionPollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*SubscriptionPollRequest) StartContext

func (r *SubscriptionPollRequest) StartContext(ctx context.Context) (response *SubscriptionPollResponse, 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 (*SubscriptionPollRequest) Status

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type SubscriptionPollResponse

type SubscriptionPollResponse struct {
	// contains filtered or unexported fields
}

SubscriptionPollResponse is the response for the Poll method.

func (*SubscriptionPollResponse) Body

Body returns the value of the 'body' parameter.

func (*SubscriptionPollResponse) Error

Error returns the response error.

func (*SubscriptionPollResponse) GetBody

func (r *SubscriptionPollResponse) GetBody() (value *Subscription, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SubscriptionPollResponse) Header

func (r *SubscriptionPollResponse) Header() http.Header

Header returns header of the response.

func (*SubscriptionPollResponse) Status

func (r *SubscriptionPollResponse) Status() int

Status returns the response status code.

type SubscriptionReservedResourceClient

type SubscriptionReservedResourceClient struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourceClient is the client of the 'subscription_reserved_resource' resource.

Manages a specific resource reserved by a subscription.

func NewSubscriptionReservedResourceClient

func NewSubscriptionReservedResourceClient(transport http.RoundTripper, path string, metric string) *SubscriptionReservedResourceClient

NewSubscriptionReservedResourceClient creates a new client for the 'subscription_reserved_resource' resource using the given transport to send the requests and receive the responses.

func (*SubscriptionReservedResourceClient) Get

Get creates a request for the 'get' method.

Retrieves the reserved resource.

func (*SubscriptionReservedResourceClient) Poll

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type SubscriptionReservedResourceGetRequest

type SubscriptionReservedResourceGetRequest struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourceGetRequest is the request for the 'get' method.

func (*SubscriptionReservedResourceGetRequest) Header

Header adds a request header.

func (*SubscriptionReservedResourceGetRequest) Parameter

Parameter adds a query parameter.

func (*SubscriptionReservedResourceGetRequest) 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 (*SubscriptionReservedResourceGetRequest) SendContext

SendContext sends this request, waits for the response, and returns it.

type SubscriptionReservedResourceGetResponse

type SubscriptionReservedResourceGetResponse struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourceGetResponse is the response for the 'get' method.

func (*SubscriptionReservedResourceGetResponse) Body

Body returns the value of the 'body' parameter.

Retrieved reserved resource.

func (*SubscriptionReservedResourceGetResponse) Error

Error returns the response error.

func (*SubscriptionReservedResourceGetResponse) GetBody

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Retrieved reserved resource.

func (*SubscriptionReservedResourceGetResponse) Header

Header returns header of the response.

func (*SubscriptionReservedResourceGetResponse) Status

Status returns the response status code.

type SubscriptionReservedResourceGetServerRequest

type SubscriptionReservedResourceGetServerRequest struct {
}

SubscriptionReservedResourceGetServerRequest is the request for the 'get' method.

type SubscriptionReservedResourceGetServerResponse

type SubscriptionReservedResourceGetServerResponse struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourceGetServerResponse is the response for the 'get' method.

func (*SubscriptionReservedResourceGetServerResponse) Body

Body sets the value of the 'body' parameter.

Retrieved reserved resource.

func (*SubscriptionReservedResourceGetServerResponse) Status

Status sets the status code.

type SubscriptionReservedResourcePollRequest

type SubscriptionReservedResourcePollRequest struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourcePollRequest is the request for the Poll method.

func (*SubscriptionReservedResourcePollRequest) Header

Header adds a request header to all the requests that will be used to retrieve the object.

func (*SubscriptionReservedResourcePollRequest) Interval

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*SubscriptionReservedResourcePollRequest) Parameter

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*SubscriptionReservedResourcePollRequest) Predicate

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*SubscriptionReservedResourcePollRequest) StartContext

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 (*SubscriptionReservedResourcePollRequest) Status

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type SubscriptionReservedResourcePollResponse

type SubscriptionReservedResourcePollResponse struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourcePollResponse is the response for the Poll method.

func (*SubscriptionReservedResourcePollResponse) Body

Body returns the value of the 'body' parameter.

Retrieved reserved resource.

func (*SubscriptionReservedResourcePollResponse) Error

Error returns the response error.

func (*SubscriptionReservedResourcePollResponse) GetBody

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Retrieved reserved resource.

func (*SubscriptionReservedResourcePollResponse) Header

Header returns header of the response.

func (*SubscriptionReservedResourcePollResponse) Status

Status returns the response status code.

type SubscriptionReservedResourceServer

type SubscriptionReservedResourceServer interface {

	// Get handles a request for the 'get' method.
	//
	// Retrieves the reserved resource.
	Get(ctx context.Context, request *SubscriptionReservedResourceGetServerRequest, response *SubscriptionReservedResourceGetServerResponse) error
}

SubscriptionReservedResourceServer represents the interface the manages the 'subscription_reserved_resource' resource.

type SubscriptionReservedResourcesClient

type SubscriptionReservedResourcesClient struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourcesClient is the client of the 'subscription_reserved_resources' resource.

Manages the collection of reserved resources by a subscription.

func NewSubscriptionReservedResourcesClient

func NewSubscriptionReservedResourcesClient(transport http.RoundTripper, path string, metric string) *SubscriptionReservedResourcesClient

NewSubscriptionReservedResourcesClient creates a new client for the 'subscription_reserved_resources' resource using the given transport to send the requests and receive the responses.

func (*SubscriptionReservedResourcesClient) List

List creates a request for the 'list' method.

Retrieves items of the collection of reserved resources by the subscription.

func (*SubscriptionReservedResourcesClient) ReservedResource

ReservedResource returns the target 'subscription_reserved_resource' resource for the given identifier.

Reference to the resource that manages the a specific resource reserved by a subscription.

type SubscriptionReservedResourcesListRequest

type SubscriptionReservedResourcesListRequest struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourcesListRequest is the request for the 'list' method.

func (*SubscriptionReservedResourcesListRequest) Header

Header adds a request header.

func (*SubscriptionReservedResourcesListRequest) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionReservedResourcesListRequest) Parameter

Parameter adds a query parameter.

func (*SubscriptionReservedResourcesListRequest) 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 (*SubscriptionReservedResourcesListRequest) SendContext

SendContext sends this request, waits for the response, and returns it.

func (*SubscriptionReservedResourcesListRequest) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type SubscriptionReservedResourcesListResponse

type SubscriptionReservedResourcesListResponse struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourcesListResponse is the response for the 'list' method.

func (*SubscriptionReservedResourcesListResponse) Error

Error returns the response error.

func (*SubscriptionReservedResourcesListResponse) GetItems

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of reserved resources.

func (*SubscriptionReservedResourcesListResponse) GetPage

func (r *SubscriptionReservedResourcesListResponse) 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 (*SubscriptionReservedResourcesListResponse) GetSize

func (r *SubscriptionReservedResourcesListResponse) 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 (*SubscriptionReservedResourcesListResponse) GetTotal

func (r *SubscriptionReservedResourcesListResponse) 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 (*SubscriptionReservedResourcesListResponse) Header

Header returns header of the response.

func (*SubscriptionReservedResourcesListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of reserved resources.

func (*SubscriptionReservedResourcesListResponse) Page

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionReservedResourcesListResponse) Size

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*SubscriptionReservedResourcesListResponse) Status

Status returns the response status code.

func (*SubscriptionReservedResourcesListResponse) Total

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 SubscriptionReservedResourcesListServerRequest

type SubscriptionReservedResourcesListServerRequest struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourcesListServerRequest is the request for the 'list' method.

func (*SubscriptionReservedResourcesListServerRequest) GetPage

func (r *SubscriptionReservedResourcesListServerRequest) 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 (*SubscriptionReservedResourcesListServerRequest) GetSize

func (r *SubscriptionReservedResourcesListServerRequest) 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 (*SubscriptionReservedResourcesListServerRequest) Page

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionReservedResourcesListServerRequest) Size

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type SubscriptionReservedResourcesListServerResponse

type SubscriptionReservedResourcesListServerResponse struct {
	// contains filtered or unexported fields
}

SubscriptionReservedResourcesListServerResponse is the response for the 'list' method.

func (*SubscriptionReservedResourcesListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of reserved resources.

func (*SubscriptionReservedResourcesListServerResponse) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionReservedResourcesListServerResponse) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*SubscriptionReservedResourcesListServerResponse) Status

Status sets the status code.

func (*SubscriptionReservedResourcesListServerResponse) Total

Total sets 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 SubscriptionReservedResourcesServer

type SubscriptionReservedResourcesServer interface {

	// List handles a request for the 'list' method.
	//
	// Retrieves items of the collection of reserved resources by the subscription.
	List(ctx context.Context, request *SubscriptionReservedResourcesListServerRequest, response *SubscriptionReservedResourcesListServerResponse) error

	// ReservedResource returns the target 'subscription_reserved_resource' server for the given identifier.
	//
	// Reference to the resource that manages the a specific resource reserved by a
	// subscription.
	ReservedResource(id string) SubscriptionReservedResourceServer
}

SubscriptionReservedResourcesServer represents the interface the manages the 'subscription_reserved_resources' resource.

type SubscriptionServer

type SubscriptionServer interface {

	// Delete handles a request for the 'delete' method.
	//
	// Deletes the subscription.
	Delete(ctx context.Context, request *SubscriptionDeleteServerRequest, response *SubscriptionDeleteServerResponse) error

	// Get handles a request for the 'get' method.
	//
	// Retrieves the details of the subscription.
	Get(ctx context.Context, request *SubscriptionGetServerRequest, response *SubscriptionGetServerResponse) error

	// ReservedResources returns the target 'subscription_reserved_resources' resource.
	//
	// Reference to the resource that manages the collection of resources reserved by the
	// subscription.
	ReservedResources() SubscriptionReservedResourcesServer
}

SubscriptionServer represents the interface the manages the 'subscription' resource.

type SubscriptionsClient

type SubscriptionsClient struct {
	// contains filtered or unexported fields
}

SubscriptionsClient is the client of the 'subscriptions' resource.

Manages the collection of subscriptions.

func NewSubscriptionsClient

func NewSubscriptionsClient(transport http.RoundTripper, path string, metric string) *SubscriptionsClient

NewSubscriptionsClient creates a new client for the 'subscriptions' resource using the given transport to send the requests and receive the responses.

func (*SubscriptionsClient) List

List creates a request for the 'list' method.

Retrieves a list of subscriptions.

func (*SubscriptionsClient) Subscription

func (c *SubscriptionsClient) Subscription(id string) *SubscriptionClient

Subscription returns the target 'subscription' resource for the given identifier.

Reference to the service that manages a specific subscription.

type SubscriptionsListRequest

type SubscriptionsListRequest struct {
	// contains filtered or unexported fields
}

SubscriptionsListRequest is the request for the 'list' method.

func (*SubscriptionsListRequest) Header

func (r *SubscriptionsListRequest) Header(name string, value interface{}) *SubscriptionsListRequest

Header adds a request header.

func (*SubscriptionsListRequest) Order

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the subscriptions descending by name identifier the value should be:

[source,sql] ---- name desc ----

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*SubscriptionsListRequest) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionsListRequest) Parameter

func (r *SubscriptionsListRequest) Parameter(name string, value interface{}) *SubscriptionsListRequest

Parameter adds a query parameter.

func (*SubscriptionsListRequest) Search

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the subscription instead of the names of the columns of a table. For example, in order to retrieve all the subscriptions for managed clusters the value should be:

[source,sql] ---- managed = 't' ----

If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned.

func (*SubscriptionsListRequest) Send

func (r *SubscriptionsListRequest) Send() (result *SubscriptionsListResponse, 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 (*SubscriptionsListRequest) SendContext

func (r *SubscriptionsListRequest) SendContext(ctx context.Context) (result *SubscriptionsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*SubscriptionsListRequest) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type SubscriptionsListResponse

type SubscriptionsListResponse struct {
	// contains filtered or unexported fields
}

SubscriptionsListResponse is the response for the 'list' method.

func (*SubscriptionsListResponse) Error

Error returns the response error.

func (*SubscriptionsListResponse) GetItems

func (r *SubscriptionsListResponse) GetItems() (value *SubscriptionList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of subscriptions.

func (*SubscriptionsListResponse) GetPage

func (r *SubscriptionsListResponse) 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 (*SubscriptionsListResponse) GetSize

func (r *SubscriptionsListResponse) 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 (*SubscriptionsListResponse) GetTotal

func (r *SubscriptionsListResponse) 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 (*SubscriptionsListResponse) Header

Header returns header of the response.

func (*SubscriptionsListResponse) Items

Items returns the value of the 'items' parameter.

Retrieved list of subscriptions.

func (*SubscriptionsListResponse) Page

func (r *SubscriptionsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionsListResponse) Size

func (r *SubscriptionsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*SubscriptionsListResponse) Status

func (r *SubscriptionsListResponse) Status() int

Status returns the response status code.

func (*SubscriptionsListResponse) Total

func (r *SubscriptionsListResponse) 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 SubscriptionsListServerRequest

type SubscriptionsListServerRequest struct {
	// contains filtered or unexported fields
}

SubscriptionsListServerRequest is the request for the 'list' method.

func (*SubscriptionsListServerRequest) GetOrder

func (r *SubscriptionsListServerRequest) GetOrder() (value string, ok bool)

GetOrder returns the value of the 'order' parameter and a flag indicating if the parameter has a value.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the subscriptions descending by name identifier the value should be:

[source,sql] ---- name desc ----

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*SubscriptionsListServerRequest) GetPage

func (r *SubscriptionsListServerRequest) 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 (*SubscriptionsListServerRequest) GetSearch

func (r *SubscriptionsListServerRequest) GetSearch() (value string, ok bool)

GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the subscription instead of the names of the columns of a table. For example, in order to retrieve all the subscriptions for managed clusters the value should be:

[source,sql] ---- managed = 't' ----

If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned.

func (*SubscriptionsListServerRequest) GetSize

func (r *SubscriptionsListServerRequest) 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 (*SubscriptionsListServerRequest) Order

Order returns 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. For example, in order to sort the subscriptions descending by name identifier the value should be:

[source,sql] ---- name desc ----

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*SubscriptionsListServerRequest) Page

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionsListServerRequest) Search

Search returns the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the subscription instead of the names of the columns of a table. For example, in order to retrieve all the subscriptions for managed clusters the value should be:

[source,sql] ---- managed = 't' ----

If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned.

func (*SubscriptionsListServerRequest) Size

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type SubscriptionsListServerResponse

type SubscriptionsListServerResponse struct {
	// contains filtered or unexported fields
}

SubscriptionsListServerResponse is the response for the 'list' method.

func (*SubscriptionsListServerResponse) Items

Items sets the value of the 'items' parameter.

Retrieved list of subscriptions.

func (*SubscriptionsListServerResponse) Page

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionsListServerResponse) Size

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*SubscriptionsListServerResponse) Status

Status sets the status code.

func (*SubscriptionsListServerResponse) Total

Total sets 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 SubscriptionsServer

type SubscriptionsServer interface {

	// List handles a request for the 'list' method.
	//
	// Retrieves a list of subscriptions.
	List(ctx context.Context, request *SubscriptionsListServerRequest, response *SubscriptionsListServerResponse) error

	// Subscription returns the target 'subscription' server for the given identifier.
	//
	// Reference to the service that manages a specific subscription.
	Subscription(id string) SubscriptionServer
}

SubscriptionsServer represents the interface the manages the 'subscriptions' resource.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL