github.com/vmware/govmomi@v0.51.0/ssoadmin/types/role.go (about)

     1  // © Broadcom. All Rights Reserved.
     2  // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
     3  // SPDX-License-Identifier: Apache-2.0
     4  
     5  package types
     6  
     7  import (
     8  	"reflect"
     9  
    10  	"github.com/vmware/govmomi/vim25/types"
    11  )
    12  
    13  // Types here are not included in the wsdl
    14  
    15  const (
    16  	RoleActAsUser     = "ActAsUser"
    17  	RoleRegularUser   = "RegularUser"
    18  	RoleAdministrator = "Administrator"
    19  )
    20  
    21  type GrantWSTrustRole GrantWSTrustRoleRequestType
    22  
    23  func init() {
    24  	types.Add("sso:GrantWSTrustRole", reflect.TypeOf((*GrantWSTrustRole)(nil)).Elem())
    25  }
    26  
    27  type GrantWSTrustRoleRequestType struct {
    28  	This   types.ManagedObjectReference `xml:"_this"`
    29  	UserId PrincipalId                  `xml:"userId"`
    30  	Role   string                       `xml:"role"`
    31  }
    32  
    33  func init() {
    34  	types.Add("sso:GrantWSTrustRoleRequestType", reflect.TypeOf((*GrantWSTrustRoleRequestType)(nil)).Elem())
    35  }
    36  
    37  type GrantWSTrustRoleResponse struct {
    38  	Returnval bool `xml:"returnval"`
    39  }
    40  
    41  type RevokeWSTrustRole RevokeWSTrustRoleRequestType
    42  
    43  func init() {
    44  	types.Add("sso:RevokeWSTrustRole", reflect.TypeOf((*RevokeWSTrustRole)(nil)).Elem())
    45  }
    46  
    47  type RevokeWSTrustRoleRequestType struct {
    48  	This   types.ManagedObjectReference `xml:"_this"`
    49  	UserId PrincipalId                  `xml:"userId"`
    50  	Role   string                       `xml:"role"`
    51  }
    52  
    53  func init() {
    54  	types.Add("sso:RevokeWSTrustRoleRequestType", reflect.TypeOf((*RevokeWSTrustRoleRequestType)(nil)).Elem())
    55  }
    56  
    57  type RevokeWSTrustRoleResponse struct {
    58  	Returnval bool `xml:"returnval"`
    59  }