agency

package
v1.0.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgenciesListOpts

type AgenciesListOpts struct {
	DomainId string `q:"domain_id" required:"true`

	TrustDomainId string `q:"trust_domain_id"`

	Name string `q:"name"`
}

func (AgenciesListOpts) ToAgenciesListQuery

func (opts AgenciesListOpts) ToAgenciesListQuery() (string, error)

type AgenciesListOptsBuilder

type AgenciesListOptsBuilder interface {
	ToAgenciesListQuery() (string, error)
}

type Agency

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

func ExtractAgency

func ExtractAgency(r pagination.Page) ([]Agency, error)

type AgencyPage

type AgencyPage struct {
	pagination.LinkedPageBase
}

func (AgencyPage) IsEmpty

func (p AgencyPage) IsEmpty() (bool, error)

func (AgencyPage) NextPageURL

func (r AgencyPage) NextPageURL() (string, error)

type CreateAgencyOpts

type CreateAgencyOpts struct {
	Name            string `json:"name" required:"true"`
	DomainID        string `json:"domain_id" required:"true"`
	TrustDomainID   string `json:"trust_domain_id,omitempty"`
	TrustDomainName string `json:"trust_domain_name,omitempty"`
	Duration        string `json:"duration,omitempty"`
	Description     string `json:"description,omitempty"`
}

func (CreateAgencyOpts) ToAgencyCreateMap

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

type CreateAgencyOptsBuilder

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

type CreateResult

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

func (CreateResult) ExtractCreate

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

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

func Delete

func Delete(client *gophercloud.ServiceClient, agencyId string) (r DeleteResult)

func RemovePermissionFromAgencyOnDomain

func RemovePermissionFromAgencyOnDomain(client *gophercloud.ServiceClient, domainId string, agencyId string, roleId string) (r DeleteResult)

func RemovePermissionFromAgencyOnProject

func RemovePermissionFromAgencyOnProject(client *gophercloud.ServiceClient, projectId string, agencyId string, roleId string) (r DeleteResult)

type GetResult

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

func Get

func Get(client *gophercloud.ServiceClient, agencyId string) (r GetResult)

func (GetResult) ExtractGet

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

type HeadResult

type HeadResult struct {
	gophercloud.ErrResult
}

func CheckPermissionForAgencyOnDomain

func CheckPermissionForAgencyOnDomain(client *gophercloud.ServiceClient, domainId string, agencyId string, roleId string) (r HeadResult)

func CheckPermissionForAgencyOnProject

func CheckPermissionForAgencyOnProject(client *gophercloud.ServiceClient, projectId string, agencyId string, roleId string) (r HeadResult)

type ListResponse

type ListResponse struct {
	Agencies []Agency `json:"agencies"`
}

type ListResult

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

func (ListResult) ExtractList

func (r ListResult) ExtractList() (*ListResponse, error)

type ListRolesResponse

type ListRolesResponse struct {
	Roles []Roles `json:"roles"`
}

type ListRolesResult

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

func ListPermissionsForAgencyOnDomain

func ListPermissionsForAgencyOnDomain(client *gophercloud.ServiceClient, domainId string, agencyId string) (r ListRolesResult)

func ListPermissionsForAgencyOnProject

func ListPermissionsForAgencyOnProject(client *gophercloud.ServiceClient, projectId string, agencyId string) (r ListRolesResult)

func (ListRolesResult) ExtractListRolesDomain

func (r ListRolesResult) ExtractListRolesDomain() (*ListRolesResponse, error)

func (ListRolesResult) ExtractListRolesProject

func (r ListRolesResult) ExtractListRolesProject() (*ListRolesResponse, error)

type Policy

type Policy struct {
	Version   string      `json:"Version"`
	Statement []Statement `json:"Statement"`
}

type PutResult

type PutResult struct {
	gophercloud.ErrResult
}

func GrantPermissionToAgencyOnDomain

func GrantPermissionToAgencyOnDomain(client *gophercloud.ServiceClient, domainId string, agencyId string, roleId string) (r PutResult)

func GrantPermissionToAgencyOnProject

func GrantPermissionToAgencyOnProject(client *gophercloud.ServiceClient, projectId string, agencyId string, roleId string) (r PutResult)

type Roles

type Roles struct {
	Flag          string                 `json:"flag"`
	DisplayName   string                 `json:"display_name"`
	Description   string                 `json:"description"`
	Name          string                 `json:"name"`
	Policy        Policy                 `json:"policy"`
	DescriptionCn string                 `json:"description_cn"`
	DomainID      string                 `json:"domain_id"`
	Type          string                 `json:"type"`
	Catalog       string                 `json:"catalog"`
	ID            string                 `json:"id"`
	CreatedTime   string                 `json:"created_time"`
	UpdatedTime   string                 `json:"updated_time"`
	Links         map[string]interface{} `json:"links"`
}

type Statement

type Statement struct {
	Action []string `json:"Action"`
	Effect string   `json:"Effect"`
}

type UpdateAgencyOpts

type UpdateAgencyOpts struct {
	TrustDomainID   string `json:"trust_domain_id,omitempty"`
	TrustDomainName string `json:"trust_domain_name,omitempty"`
	Duration        string `json:"duration,omitempty"`
	Description     string `json:"description,omitempty"`
}

func (UpdateAgencyOpts) ToAgencyUpdateMap

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

type UpdateAgencyOptsBuilder

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

type UpdateResult

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

func Update

func Update(client *gophercloud.ServiceClient, agencyId string, opts UpdateAgencyOpts) (r UpdateResult)

func (UpdateResult) ExtractUpdate

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

Jump to

Keyboard shortcuts

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