models

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CallbackResponseStateDone captures enum value "done"
	CallbackResponseStateDone string = "done"
	// CallbackResponseStateError captures enum value "error"
	CallbackResponseStateError string = "error"
)
View Source
const (
	// AccessTokenTokenTypeBearer captures enum value "bearer"
	AccessTokenTokenTypeBearer string = "bearer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {

	// access token
	// Required: true
	// Max Length: 295
	AccessToken *string `json:"access_token"`

	// expires in
	// Required: true
	ExpiresIn *int64 `json:"expires_in"`

	// token type
	// Required: true
	TokenType *string `json:"token_type"`
}

AccessToken A granted access token used for performing requests on behalf o a user or provider against the Manifold Connector API.

swagger:model AccessToken

func (*AccessToken) Validate

func (m *AccessToken) Validate(formats strfmt.Registry) error

Validate validates this access token

type AccessTokenRequest

type AccessTokenRequest interface {
	runtime.Validatable

	// client id
	ClientID() manifold.ID
	SetClientID(manifold.ID)

	// client secret
	ClientSecret() OAuthClientSecret
	SetClientSecret(OAuthClientSecret)

	// grant type
	// Required: true
	GrantType() string
	SetGrantType(string)
}

AccessTokenRequest HTTP Request Body of an Access Token swagger:discriminator AccessTokenRequest grant_type

func UnmarshalAccessTokenRequest

func UnmarshalAccessTokenRequest(reader io.Reader, consumer runtime.Consumer) (AccessTokenRequest, error)

UnmarshalAccessTokenRequest unmarshals polymorphic AccessTokenRequest

func UnmarshalAccessTokenRequestSlice

func UnmarshalAccessTokenRequestSlice(reader io.Reader, consumer runtime.Consumer) ([]AccessTokenRequest, error)

UnmarshalAccessTokenRequestSlice unmarshals polymorphic slices of AccessTokenRequest

type AuthCodeRequest

type AuthCodeRequest struct {

	// body
	// Required: true
	Body *AuthCodeRequestBody `json:"body"`
}

AuthCodeRequest HTTP Request Body of an Auth Code swagger:model AuthCodeRequest

func (*AuthCodeRequest) Validate

func (m *AuthCodeRequest) Validate(formats strfmt.Registry) error

Validate validates this auth code request

type AuthCodeRequestBody

type AuthCodeRequestBody struct {

	// resource id
	// Required: true
	ResourceID manifold.ID `json:"resource_id"`
}

AuthCodeRequestBody auth code request body swagger:model AuthCodeRequestBody

func (*AuthCodeRequestBody) Validate

func (m *AuthCodeRequestBody) Validate(formats strfmt.Registry) error

Validate validates this auth code request body

type AuthorizationCode

type AuthorizationCode struct {

	// code
	// Required: true
	Code Code `json:"code"`
	// contains filtered or unexported fields
}

AuthorizationCode authorization code swagger:model authorization_code

func (*AuthorizationCode) ClientID

func (m *AuthorizationCode) ClientID() manifold.ID

func (*AuthorizationCode) ClientSecret

func (m *AuthorizationCode) ClientSecret() OAuthClientSecret

func (*AuthorizationCode) GrantType

func (m *AuthorizationCode) GrantType() string

func (AuthorizationCode) MarshalJSON

func (m AuthorizationCode) MarshalJSON() ([]byte, error)

MarshalJSON marshals this polymorphic type to a JSON structure

func (*AuthorizationCode) SetClientID

func (m *AuthorizationCode) SetClientID(val manifold.ID)

func (*AuthorizationCode) SetClientSecret

func (m *AuthorizationCode) SetClientSecret(val OAuthClientSecret)

func (*AuthorizationCode) SetGrantType

func (m *AuthorizationCode) SetGrantType(val string)

func (*AuthorizationCode) UnmarshalJSON

func (m *AuthorizationCode) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this polymorphic type from a JSON structure

func (*AuthorizationCode) Validate

func (m *AuthorizationCode) Validate(formats strfmt.Registry) error

Validate validates this authorization code

type CallbackResponse

type CallbackResponse struct {

	// credentials
	Credentials map[string]string `json:"credentials,omitempty"`

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`

	// state
	// Required: true
	State *string `json:"state"`
}

CallbackResponse A callback sent from a provider to complete an asynchronous request.

Credentials can only be specified *if* the callback corresponds with a credential provisioning request.

swagger:model CallbackResponse

func (*CallbackResponse) Validate

func (m *CallbackResponse) Validate(formats strfmt.Registry) error

Validate validates this callback response

type ClientCredentials

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

ClientCredentials client credentials swagger:model client_credentials

func (*ClientCredentials) ClientID

func (m *ClientCredentials) ClientID() manifold.ID

func (*ClientCredentials) ClientSecret

func (m *ClientCredentials) ClientSecret() OAuthClientSecret

func (*ClientCredentials) GrantType

func (m *ClientCredentials) GrantType() string

func (ClientCredentials) MarshalJSON

func (m ClientCredentials) MarshalJSON() ([]byte, error)

MarshalJSON marshals this polymorphic type to a JSON structure

func (*ClientCredentials) SetClientID

func (m *ClientCredentials) SetClientID(val manifold.ID)

func (*ClientCredentials) SetClientSecret

func (m *ClientCredentials) SetClientSecret(val OAuthClientSecret)

func (*ClientCredentials) SetGrantType

func (m *ClientCredentials) SetGrantType(val string)

func (*ClientCredentials) UnmarshalJSON

func (m *ClientCredentials) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this polymorphic type from a JSON structure

func (*ClientCredentials) Validate

func (m *ClientCredentials) Validate(formats strfmt.Registry) error

Validate validates this client credentials

type Code

type Code string

Code An authorization code used by a provider in exchange for a scoped Access Token.

swagger:model Code

func (Code) Validate

func (m Code) Validate(formats strfmt.Registry) error

Validate validates this code

type FeatureMap added in v0.13.0

type FeatureMap map[string]interface{}

FeatureMap A map of feature labels to selected values for customizable features swagger:model FeatureMap

func (FeatureMap) Validate added in v0.13.0

func (m FeatureMap) Validate(formats strfmt.Registry) error

Validate validates this feature map

type Identity

type Identity interface {
	runtime.Validatable

	// type
	// Required: true
	Type() string
	SetType(string)
}

Identity The underlying actor represented by the current Access Token. swagger:discriminator Identity type

func UnmarshalIdentity

func UnmarshalIdentity(reader io.Reader, consumer runtime.Consumer) (Identity, error)

UnmarshalIdentity unmarshals polymorphic Identity

func UnmarshalIdentitySlice

func UnmarshalIdentitySlice(reader io.Reader, consumer runtime.Consumer) ([]Identity, error)

UnmarshalIdentitySlice unmarshals polymorphic slices of Identity

type OAuthClientSecret

type OAuthClientSecret string

OAuthClientSecret Client Secret portion of the OAuth Credentials used for accessing the Manifold Connector API. A client secret is a 32byte base64 encoded value.

This value must be kept a secret.

swagger:model OAuthClientSecret

func (OAuthClientSecret) Validate

func (m OAuthClientSecret) Validate(formats strfmt.Registry) error

Validate validates this o auth client secret

type OAuthCredentialCreateRequest

type OAuthCredentialCreateRequest struct {

	// A human readable description of this credential pair.
	//
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Description *string `json:"description"`

	// product id
	// Required: true
	ProductID manifold.ID `json:"product_id"`
}

OAuthCredentialCreateRequest o auth credential create request swagger:model OAuthCredentialCreateRequest

func (*OAuthCredentialCreateRequest) Validate

func (m *OAuthCredentialCreateRequest) Validate(formats strfmt.Registry) error

Validate validates this o auth credential create request

type OAuthCredentialCreateResponse

type OAuthCredentialCreateResponse struct {

	// secret
	// Required: true
	Secret OAuthClientSecret `json:"secret"`

	OAuthCredentialGetResponse
}

OAuthCredentialCreateResponse o auth credential create response swagger:model OAuthCredentialCreateResponse

func (OAuthCredentialCreateResponse) MarshalJSON

func (m OAuthCredentialCreateResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*OAuthCredentialCreateResponse) UnmarshalJSON

func (m *OAuthCredentialCreateResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*OAuthCredentialCreateResponse) Validate

func (m *OAuthCredentialCreateResponse) Validate(formats strfmt.Registry) error

Validate validates this o auth credential create response

type OAuthCredentialGetResponse

type OAuthCredentialGetResponse struct {

	// created at
	// Required: true
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// expires at
	ExpiresAt strfmt.DateTime `json:"expires_at,omitempty"`

	// id
	// Required: true
	ID manifold.ID `json:"id"`

	// updated at
	// Required: true
	UpdatedAt *strfmt.DateTime `json:"updated_at"`

	OAuthCredentialCreateRequest
}

OAuthCredentialGetResponse o auth credential get response swagger:model OAuthCredentialGetResponse

func (OAuthCredentialGetResponse) MarshalJSON

func (m OAuthCredentialGetResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*OAuthCredentialGetResponse) UnmarshalJSON

func (m *OAuthCredentialGetResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*OAuthCredentialGetResponse) Validate

func (m *OAuthCredentialGetResponse) Validate(formats strfmt.Registry) error

Validate validates this o auth credential get response

type Product

type Product struct {

	// target
	// Required: true
	Target *ProductAO1Target `json:"target"`
}

Product product swagger:model product

func (Product) MarshalJSON

func (m Product) MarshalJSON() ([]byte, error)

MarshalJSON marshals this polymorphic type to a JSON structure

func (*Product) SetType

func (m *Product) SetType(val string)

func (*Product) Type

func (m *Product) Type() string

func (*Product) UnmarshalJSON

func (m *Product) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this polymorphic type from a JSON structure

func (*Product) Validate

func (m *Product) Validate(formats strfmt.Registry) error

Validate validates this product

type ProductAO1Target

type ProductAO1Target struct {

	// label
	// Required: true
	Label manifold.Label `json:"label"`

	// name
	// Required: true
	Name manifold.Name `json:"name"`
}

ProductAO1Target product a o1 target swagger:model ProductAO1Target

func (*ProductAO1Target) Validate

func (m *ProductAO1Target) Validate(formats strfmt.Registry) error

Validate validates this product a o1 target

type Profile

type Profile struct {

	// email
	// Required: true
	Email manifold.Email `json:"email"`

	// name
	// Required: true
	Name manifold.Name `json:"name"`
}

Profile A view of a Manifold User.

Do not store any of this data, instead query Manifold for the most up to date information.

swagger:model Profile

func (*Profile) Validate

func (m *Profile) Validate(formats strfmt.Registry) error

Validate validates this profile

type RegionSlug

type RegionSlug string

RegionSlug Combination of the cloud platform and location to provision this resource within.

swagger:model RegionSlug

func (RegionSlug) Validate

func (m RegionSlug) Validate(formats strfmt.Registry) error

Validate validates this region slug

type Resource

type Resource struct {

	// created at
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// features
	Features FeatureMap `json:"features,omitempty"`

	// id
	ID manifold.ID `json:"id,omitempty"`

	// label
	Label manifold.Label `json:"label,omitempty"`

	// This field has been deprecated in favor of label
	Name manifold.Name `json:"name,omitempty"`

	// plan
	Plan manifold.Label `json:"plan,omitempty"`

	// product
	Product manifold.Label `json:"product,omitempty"`

	// region
	Region RegionSlug `json:"region,omitempty"`

	// updated at
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
}

Resource A view of a Resource provisioned through Manifold.

Do not store any of this data, instead query Manifold for the most up to date information.

swagger:model Resource

func (*Resource) Validate

func (m *Resource) Validate(formats strfmt.Registry) error

Validate validates this resource

type User

type User struct {

	// target
	// Required: true
	Target *UserAO1Target `json:"target"`
}

User user swagger:model user

func (User) MarshalJSON

func (m User) MarshalJSON() ([]byte, error)

MarshalJSON marshals this polymorphic type to a JSON structure

func (*User) SetType

func (m *User) SetType(val string)

func (*User) Type

func (m *User) Type() string

func (*User) UnmarshalJSON

func (m *User) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this polymorphic type from a JSON structure

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

type UserAO1Target

type UserAO1Target struct {

	// email
	// Required: true
	Email manifold.Email `json:"email"`

	// name
	// Required: true
	Name manifold.Name `json:"name"`
}

UserAO1Target user a o1 target swagger:model UserAO1Target

func (*UserAO1Target) Validate

func (m *UserAO1Target) Validate(formats strfmt.Registry) error

Validate validates this user a o1 target

Jump to

Keyboard shortcuts

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