agency

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agency

type Agency struct {
	ID                  string `json:"id"`
	Name                string `json:"name"`
	DomainID            string `json:"domain_id"`
	DelegatedDomainID   string `json:"trust_domain_id"`
	DelegatedDomainName string `json:"trust_domain_name"`
	Description         string `json:"description"`
	Duration            string `json:"duration"`
	ExpireTime          string `json:"expire_time"`
	CreateTime          string `json:"create_time"`
}

type CreateOpts

type CreateOpts struct {
	Name            string `json:"name" required:"true"`
	DomainID        string `json:"domain_id" required:"true"`
	DelegatedDomain string `json:"trust_domain_name" required:"true"`
	Description     string `json:"description,omitempty"`
}

func (CreateOpts) ToAgencyCreateMap

func (opts CreateOpts) ToAgencyCreateMap() (map[string]interface{}, error)

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToAgencyCreateMap() (map[string]interface{}, error)
}

type CreateResult

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

func Create

func Create(c *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)

func (CreateResult) Extract

func (r CreateResult) Extract() (*Agency, error)

type ErrResult

type ErrResult struct {
	golangsdk.ErrResult
}

func AttachRoleByDomain

func AttachRoleByDomain(c *golangsdk.ServiceClient, agencyID, domainID, roleID string) (r ErrResult)

func AttachRoleByProject

func AttachRoleByProject(c *golangsdk.ServiceClient, agencyID, projectID, roleID string) (r ErrResult)

func Delete

func Delete(c *golangsdk.ServiceClient, id string) (r ErrResult)

func DetachRoleByDomain

func DetachRoleByDomain(c *golangsdk.ServiceClient, agencyID, domainID, roleID string) (r ErrResult)

func DetachRoleByProject

func DetachRoleByProject(c *golangsdk.ServiceClient, agencyID, projectID, roleID string) (r ErrResult)

type GetResult

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

func Get

func Get(c *golangsdk.ServiceClient, id string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*Agency, error)

type ListRolesResult

type ListRolesResult struct {
	golangsdk.Result
}

func ListRolesAttachedOnDomain

func ListRolesAttachedOnDomain(c *golangsdk.ServiceClient, agencyID, domainID string) (r ListRolesResult)

func ListRolesAttachedOnProject

func ListRolesAttachedOnProject(c *golangsdk.ServiceClient, agencyID, projectID string) (r ListRolesResult)

func (ListRolesResult) ExtractRoles

func (r ListRolesResult) ExtractRoles() ([]roles.Role, error)

type UpdateOpts

type UpdateOpts struct {
	DelegatedDomain string `json:"trust_domain_name,omitempty"`
	Description     string `json:"description,omitempty"`
}

func (UpdateOpts) ToAgencyUpdateMap

func (opts UpdateOpts) ToAgencyUpdateMap() (map[string]interface{}, error)

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToAgencyUpdateMap() (map[string]interface{}, error)
}

type UpdateResult

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

func Update

func Update(c *golangsdk.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult)

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*Agency, error)

Jump to

Keyboard shortcuts

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