github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/identity/v3/extensions/trusts/results.go (about)

     1  package trusts
     2  
     3  // TrusteeUser represents the trusted user ID of a trust.
     4  type TrusteeUser struct {
     5  	ID string `json:"id"`
     6  }
     7  
     8  // TrustorUser represents the trusting user ID of a trust.
     9  type TrustorUser struct {
    10  	ID string `json:"id"`
    11  }
    12  
    13  // Trust represents a delegated authorization request between two
    14  // identities.
    15  type Trust struct {
    16  	ID                 string      `json:"id"`
    17  	Impersonation      bool        `json:"impersonation"`
    18  	TrusteeUser        TrusteeUser `json:"trustee_user"`
    19  	TrustorUser        TrustorUser `json:"trustor_user"`
    20  	RedelegatedTrustID string      `json:"redelegated_trust_id"`
    21  	RedelegationCount  int         `json:"redelegation_count"`
    22  }
    23  
    24  // TokenExt represents an extension of the base token result.
    25  type TokenExt struct {
    26  	Trust Trust `json:"OS-TRUST:trust"`
    27  }