Documentation
¶
Index ¶
- type Permission
- type RoleDefinitionGetResponse
- type RoleDefinitionProperties
- type RoleDefinitionUpdateResponse
- type RoleDefinitionsWorkaroundClient
- func (client RoleDefinitionsWorkaroundClient) CreateOrUpdate(ctx context.Context, scope string, roleDefinitionID string, ...) (result RoleDefinitionUpdateResponse, err error)
- func (client RoleDefinitionsWorkaroundClient) CreateOrUpdateResponder(resp *http.Response) (result RoleDefinitionUpdateResponse, err error)
- func (client RoleDefinitionsWorkaroundClient) Get(ctx context.Context, scope string, roleDefinitionID string) (result RoleDefinitionGetResponse, err error)
- func (client RoleDefinitionsWorkaroundClient) GetResponder(resp *http.Response) (result RoleDefinitionGetResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Permission ¶
type Permission struct { // Actions - Allowed actions. Actions *[]string `json:"actions,omitempty"` // NotActions - Denied actions. NotActions *[]string `json:"notActions,omitempty"` // DataActions - Allowed Data actions. DataActions *[]string `json:"dataActions,omitempty"` // NotDataActions - Denied Data actions. NotDataActions *[]string `json:"notDataActions,omitempty"` }
Permission role definition permissions.
type RoleDefinitionGetResponse ¶
type RoleDefinitionGetResponse struct { autorest.Response `json:"-"` // ID - READ-ONLY; The role definition ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The role definition name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The role definition type. Type *string `json:"type,omitempty"` // RoleDefinitionProperties - Role definition properties. *RoleDefinitionProperties `json:"properties,omitempty"` }
RoleDefinition role definition.
type RoleDefinitionProperties ¶
type RoleDefinitionProperties struct { // RoleName - The role name. RoleName *string `json:"roleName,omitempty"` // Description - The role definition description. Description *string `json:"description,omitempty"` // RoleType - The role type. RoleType *string `json:"type,omitempty"` // Permissions - Role definition permissions. Permissions *[]Permission `json:"permissions,omitempty"` // AssignableScopes - Role definition assignable scopes. AssignableScopes *[]string `json:"assignableScopes,omitempty"` // not exposed in the sdk CreatedOn *string `json:"createdOn,omitempty"` UpdatedOn *string `json:"updatedOn,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` }
RoleDefinitionProperties role definition properties.
type RoleDefinitionUpdateResponse ¶
type RoleDefinitionUpdateResponse struct { autorest.Response `json:"-"` // ID - READ-ONLY; The role definition ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The role definition name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The role definition type. Type *string `json:"type,omitempty"` // RoleDefinitionProperties - Role definition properties. *RoleDefinitionProperties `json:"properties,omitempty"` }
type RoleDefinitionsWorkaroundClient ¶
type RoleDefinitionsWorkaroundClient struct {
// contains filtered or unexported fields
}
func NewRoleDefinitionsWorkaroundClient ¶
func NewRoleDefinitionsWorkaroundClient(client *authorization.RoleDefinitionsClient) RoleDefinitionsWorkaroundClient
func (RoleDefinitionsWorkaroundClient) CreateOrUpdate ¶
func (client RoleDefinitionsWorkaroundClient) CreateOrUpdate(ctx context.Context, scope string, roleDefinitionID string, roleDefinition authorization.RoleDefinition) (result RoleDefinitionUpdateResponse, err error)
CreateOrUpdate creates or updates a role definition. Parameters: scope - the scope of the role definition. roleDefinitionID - the ID of the role definition. roleDefinition - the values for the role definition.
func (RoleDefinitionsWorkaroundClient) CreateOrUpdateResponder ¶
func (client RoleDefinitionsWorkaroundClient) CreateOrUpdateResponder(resp *http.Response) (result RoleDefinitionUpdateResponse, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (RoleDefinitionsWorkaroundClient) Get ¶
func (client RoleDefinitionsWorkaroundClient) Get(ctx context.Context, scope string, roleDefinitionID string) (result RoleDefinitionGetResponse, err error)
Get get role definition by name (GUID). Parameters: scope - the scope of the role definition. roleDefinitionID - the ID of the role definition.
func (RoleDefinitionsWorkaroundClient) GetResponder ¶
func (client RoleDefinitionsWorkaroundClient) GetResponder(resp *http.Response) (result RoleDefinitionGetResponse, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.