tenant

package
v0.0.0-...-9dabdb3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package implements OCCM Tenant API.

Package implements OCCM Tenant API.

Package implements OCCM Tenant API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tenant

type Tenant struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	NssUser     string `json:"nssUserName"`
	PublicId    string `json:"publicId"`
	CostCenter  string `json:"costCenter"`
}

Tenant object

func ListFromJSON

func ListFromJSON(data []byte) ([]Tenant, error)

type TenantAPI

type TenantAPI struct {
	*client.Client
}

Tenant API

func New

func New(context *client.Context) (*TenantAPI, error)

New creates a new OCCM Tenant API client

func (*TenantAPI) GetTenants

func (api *TenantAPI) GetTenants() ([]Tenant, error)

GetTenants retrieves a list of all tenants

type TenantAPIProto

type TenantAPIProto interface {
	GetTenants() ([]Tenant, error)
}

Jump to

Keyboard shortcuts

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