Documentation ¶
Index ¶
- func ValidateScopedRoleDefinitionID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type Permission
- type RoleDefinition
- type RoleDefinitionOperationPredicate
- type RoleDefinitionProperties
- type RoleDefinitionsClient
- func (c RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, id ScopedRoleDefinitionId, input RoleDefinition) (result CreateOrUpdateOperationResponse, err error)
- func (c RoleDefinitionsClient) Delete(ctx context.Context, id ScopedRoleDefinitionId) (result DeleteOperationResponse, err error)
- func (c RoleDefinitionsClient) Get(ctx context.Context, id ScopedRoleDefinitionId) (result GetOperationResponse, err error)
- func (c RoleDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c RoleDefinitionsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error)
- func (c RoleDefinitionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type ScopedRoleDefinitionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateScopedRoleDefinitionID ¶
func ValidateScopedRoleDefinitionID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedRoleDefinitionID checks that 'input' can be parsed as a Scoped Role Definition ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleDefinition }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleDefinition }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleDefinition }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []RoleDefinition }
type ListOperationOptions ¶
type ListOperationOptions struct {
Filter *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RoleDefinition }
type Permission ¶
type Permission struct { Actions *[]string `json:"actions,omitempty"` Condition *string `json:"condition,omitempty"` ConditionVersion *string `json:"conditionVersion,omitempty"` DataActions *[]string `json:"dataActions,omitempty"` NotActions *[]string `json:"notActions,omitempty"` NotDataActions *[]string `json:"notDataActions,omitempty"` }
type RoleDefinition ¶
type RoleDefinition struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RoleDefinitionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type RoleDefinitionOperationPredicate ¶
func (RoleDefinitionOperationPredicate) Matches ¶
func (p RoleDefinitionOperationPredicate) Matches(input RoleDefinition) bool
type RoleDefinitionProperties ¶
type RoleDefinitionProperties struct { AssignableScopes *[]string `json:"assignableScopes,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` Permissions *[]Permission `json:"permissions,omitempty"` RoleName *string `json:"roleName,omitempty"` Type *string `json:"type,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedOn *string `json:"updatedOn,omitempty"` }
func (*RoleDefinitionProperties) GetCreatedOnAsTime ¶
func (o *RoleDefinitionProperties) GetCreatedOnAsTime() (*time.Time, error)
func (*RoleDefinitionProperties) GetUpdatedOnAsTime ¶
func (o *RoleDefinitionProperties) GetUpdatedOnAsTime() (*time.Time, error)
func (*RoleDefinitionProperties) SetCreatedOnAsTime ¶
func (o *RoleDefinitionProperties) SetCreatedOnAsTime(input time.Time)
func (*RoleDefinitionProperties) SetUpdatedOnAsTime ¶
func (o *RoleDefinitionProperties) SetUpdatedOnAsTime(input time.Time)
type RoleDefinitionsClient ¶
type RoleDefinitionsClient struct {
Client *resourcemanager.Client
}
func NewRoleDefinitionsClientWithBaseURI ¶
func NewRoleDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleDefinitionsClient, error)
func (RoleDefinitionsClient) CreateOrUpdate ¶
func (c RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, id ScopedRoleDefinitionId, input RoleDefinition) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (RoleDefinitionsClient) Delete ¶
func (c RoleDefinitionsClient) Delete(ctx context.Context, id ScopedRoleDefinitionId) (result DeleteOperationResponse, err error)
Delete ...
func (RoleDefinitionsClient) Get ¶
func (c RoleDefinitionsClient) Get(ctx context.Context, id ScopedRoleDefinitionId) (result GetOperationResponse, err error)
Get ...
func (RoleDefinitionsClient) List ¶
func (c RoleDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (RoleDefinitionsClient) ListComplete ¶
func (c RoleDefinitionsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (RoleDefinitionsClient) ListCompleteMatchingPredicate ¶
func (c RoleDefinitionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, predicate RoleDefinitionOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ScopedRoleDefinitionId ¶
ScopedRoleDefinitionId is a struct representing the Resource ID for a Scoped Role Definition
func NewScopedRoleDefinitionID ¶
func NewScopedRoleDefinitionID(scope string, roleDefinitionId string) ScopedRoleDefinitionId
NewScopedRoleDefinitionID returns a new ScopedRoleDefinitionId struct
func ParseScopedRoleDefinitionID ¶
func ParseScopedRoleDefinitionID(input string) (*ScopedRoleDefinitionId, error)
ParseScopedRoleDefinitionID parses 'input' into a ScopedRoleDefinitionId
func ParseScopedRoleDefinitionIDInsensitively ¶
func ParseScopedRoleDefinitionIDInsensitively(input string) (*ScopedRoleDefinitionId, error)
ParseScopedRoleDefinitionIDInsensitively parses 'input' case-insensitively into a ScopedRoleDefinitionId note: this method should only be used for API response data and not user input
func (*ScopedRoleDefinitionId) FromParseResult ¶
func (id *ScopedRoleDefinitionId) FromParseResult(input resourceids.ParseResult) error
func (ScopedRoleDefinitionId) ID ¶
func (id ScopedRoleDefinitionId) ID() string
ID returns the formatted Scoped Role Definition ID
func (ScopedRoleDefinitionId) Segments ¶
func (id ScopedRoleDefinitionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Role Definition ID
func (ScopedRoleDefinitionId) String ¶
func (id ScopedRoleDefinitionId) String() string
String returns a human-readable description of this Scoped Role Definition ID