Documentation ¶
Index ¶
- func PossibleValuesForPrincipalType() []string
- func ValidateScopedRoleAssignmentID(input interface{}, key string) (warnings []string, errors []error)
- type CreateByIdOperationResponse
- type CreateOperationResponse
- type DeleteByIdOperationOptions
- type DeleteByIdOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetByIdOperationOptions
- type GetByIdOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type ListForResourceCompleteResult
- type ListForResourceGroupCompleteResult
- type ListForResourceGroupOperationOptions
- type ListForResourceGroupOperationResponse
- type ListForResourceOperationOptions
- type ListForResourceOperationResponse
- type ListForScopeCompleteResult
- type ListForScopeOperationOptions
- type ListForScopeOperationResponse
- type ListForSubscriptionCompleteResult
- type ListForSubscriptionOperationOptions
- type ListForSubscriptionOperationResponse
- type PrincipalType
- type RoleAssignment
- type RoleAssignmentCreateParameters
- type RoleAssignmentOperationPredicate
- type RoleAssignmentProperties
- type RoleAssignmentsClient
- func (c RoleAssignmentsClient) Create(ctx context.Context, id ScopedRoleAssignmentId, ...) (result CreateOperationResponse, err error)
- func (c RoleAssignmentsClient) CreateById(ctx context.Context, id commonids.ScopeId, ...) (result CreateByIdOperationResponse, err error)
- func (c RoleAssignmentsClient) Delete(ctx context.Context, id ScopedRoleAssignmentId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c RoleAssignmentsClient) DeleteById(ctx context.Context, id commonids.ScopeId, options DeleteByIdOperationOptions) (result DeleteByIdOperationResponse, err error)
- func (c RoleAssignmentsClient) Get(ctx context.Context, id ScopedRoleAssignmentId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c RoleAssignmentsClient) GetById(ctx context.Context, id commonids.ScopeId, options GetByIdOperationOptions) (result GetByIdOperationResponse, err error)
- func (c RoleAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, ...) (result ListForResourceOperationResponse, err error)
- func (c RoleAssignmentsClient) ListForResourceComplete(ctx context.Context, id commonids.ScopeId, ...) (ListForResourceCompleteResult, error)
- func (c RoleAssignmentsClient) ListForResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListForResourceCompleteResult, err error)
- func (c RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListForResourceGroupOperationResponse, err error)
- func (c RoleAssignmentsClient) ListForResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, ...) (ListForResourceGroupCompleteResult, error)
- func (c RoleAssignmentsClient) ListForResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListForResourceGroupCompleteResult, err error)
- func (c RoleAssignmentsClient) ListForScope(ctx context.Context, id commonids.ScopeId, ...) (result ListForScopeOperationResponse, err error)
- func (c RoleAssignmentsClient) ListForScopeComplete(ctx context.Context, id commonids.ScopeId, ...) (ListForScopeCompleteResult, error)
- func (c RoleAssignmentsClient) ListForScopeCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListForScopeCompleteResult, err error)
- func (c RoleAssignmentsClient) ListForSubscription(ctx context.Context, id commonids.SubscriptionId, ...) (result ListForSubscriptionOperationResponse, err error)
- func (c RoleAssignmentsClient) ListForSubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, ...) (ListForSubscriptionCompleteResult, error)
- func (c RoleAssignmentsClient) ListForSubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListForSubscriptionCompleteResult, err error)
- type ScopedRoleAssignmentId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForPrincipalType ¶
func PossibleValuesForPrincipalType() []string
func ValidateScopedRoleAssignmentID ¶
func ValidateScopedRoleAssignmentID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedRoleAssignmentID checks that 'input' can be parsed as a Scoped Role Assignment ID
Types ¶
type CreateByIdOperationResponse ¶
type CreateByIdOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleAssignment }
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleAssignment }
type DeleteByIdOperationOptions ¶
type DeleteByIdOperationOptions struct {
TenantId *string
}
func DefaultDeleteByIdOperationOptions ¶
func DefaultDeleteByIdOperationOptions() DeleteByIdOperationOptions
func (DeleteByIdOperationOptions) ToHeaders ¶
func (o DeleteByIdOperationOptions) ToHeaders() *client.Headers
func (DeleteByIdOperationOptions) ToOData ¶
func (o DeleteByIdOperationOptions) ToOData() *odata.Query
func (DeleteByIdOperationOptions) ToQuery ¶
func (o DeleteByIdOperationOptions) ToQuery() *client.QueryParams
type DeleteByIdOperationResponse ¶
type DeleteByIdOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleAssignment }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
TenantId *string
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleAssignment }
type GetByIdOperationOptions ¶
type GetByIdOperationOptions struct {
TenantId *string
}
func DefaultGetByIdOperationOptions ¶
func DefaultGetByIdOperationOptions() GetByIdOperationOptions
func (GetByIdOperationOptions) ToHeaders ¶
func (o GetByIdOperationOptions) ToHeaders() *client.Headers
func (GetByIdOperationOptions) ToOData ¶
func (o GetByIdOperationOptions) ToOData() *odata.Query
func (GetByIdOperationOptions) ToQuery ¶
func (o GetByIdOperationOptions) ToQuery() *client.QueryParams
type GetByIdOperationResponse ¶
type GetByIdOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleAssignment }
type GetOperationOptions ¶
type GetOperationOptions struct {
TenantId *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoleAssignment }
type ListForResourceCompleteResult ¶
type ListForResourceCompleteResult struct {
Items []RoleAssignment
}
type ListForResourceGroupCompleteResult ¶
type ListForResourceGroupCompleteResult struct {
Items []RoleAssignment
}
type ListForResourceGroupOperationOptions ¶
func DefaultListForResourceGroupOperationOptions ¶
func DefaultListForResourceGroupOperationOptions() ListForResourceGroupOperationOptions
func (ListForResourceGroupOperationOptions) ToHeaders ¶
func (o ListForResourceGroupOperationOptions) ToHeaders() *client.Headers
func (ListForResourceGroupOperationOptions) ToOData ¶
func (o ListForResourceGroupOperationOptions) ToOData() *odata.Query
func (ListForResourceGroupOperationOptions) ToQuery ¶
func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams
type ListForResourceGroupOperationResponse ¶
type ListForResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RoleAssignment }
type ListForResourceOperationOptions ¶
func DefaultListForResourceOperationOptions ¶
func DefaultListForResourceOperationOptions() ListForResourceOperationOptions
func (ListForResourceOperationOptions) ToHeaders ¶
func (o ListForResourceOperationOptions) ToHeaders() *client.Headers
func (ListForResourceOperationOptions) ToOData ¶
func (o ListForResourceOperationOptions) ToOData() *odata.Query
func (ListForResourceOperationOptions) ToQuery ¶
func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams
type ListForResourceOperationResponse ¶
type ListForResourceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RoleAssignment }
type ListForScopeCompleteResult ¶
type ListForScopeCompleteResult struct {
Items []RoleAssignment
}
type ListForScopeOperationOptions ¶
func DefaultListForScopeOperationOptions ¶
func DefaultListForScopeOperationOptions() ListForScopeOperationOptions
func (ListForScopeOperationOptions) ToHeaders ¶
func (o ListForScopeOperationOptions) ToHeaders() *client.Headers
func (ListForScopeOperationOptions) ToOData ¶
func (o ListForScopeOperationOptions) ToOData() *odata.Query
func (ListForScopeOperationOptions) ToQuery ¶
func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams
type ListForScopeOperationResponse ¶
type ListForScopeOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RoleAssignment }
type ListForSubscriptionCompleteResult ¶
type ListForSubscriptionCompleteResult struct {
Items []RoleAssignment
}
type ListForSubscriptionOperationOptions ¶
func DefaultListForSubscriptionOperationOptions ¶
func DefaultListForSubscriptionOperationOptions() ListForSubscriptionOperationOptions
func (ListForSubscriptionOperationOptions) ToHeaders ¶
func (o ListForSubscriptionOperationOptions) ToHeaders() *client.Headers
func (ListForSubscriptionOperationOptions) ToOData ¶
func (o ListForSubscriptionOperationOptions) ToOData() *odata.Query
func (ListForSubscriptionOperationOptions) ToQuery ¶
func (o ListForSubscriptionOperationOptions) ToQuery() *client.QueryParams
type ListForSubscriptionOperationResponse ¶
type ListForSubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RoleAssignment }
type PrincipalType ¶
type PrincipalType string
const ( PrincipalTypeDevice PrincipalType = "Device" PrincipalTypeForeignGroup PrincipalType = "ForeignGroup" PrincipalTypeGroup PrincipalType = "Group" PrincipalTypeServicePrincipal PrincipalType = "ServicePrincipal" PrincipalTypeUser PrincipalType = "User" )
func (*PrincipalType) UnmarshalJSON ¶
func (s *PrincipalType) UnmarshalJSON(bytes []byte) error
type RoleAssignment ¶
type RoleAssignment struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RoleAssignmentProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type RoleAssignmentCreateParameters ¶
type RoleAssignmentCreateParameters struct {
Properties RoleAssignmentProperties `json:"properties"`
}
type RoleAssignmentOperationPredicate ¶
func (RoleAssignmentOperationPredicate) Matches ¶
func (p RoleAssignmentOperationPredicate) Matches(input RoleAssignment) bool
type RoleAssignmentProperties ¶
type RoleAssignmentProperties struct { Condition *string `json:"condition,omitempty"` ConditionVersion *string `json:"conditionVersion,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedOn *string `json:"createdOn,omitempty"` DelegatedManagedIdentityResourceId *string `json:"delegatedManagedIdentityResourceId,omitempty"` Description *string `json:"description,omitempty"` PrincipalId string `json:"principalId"` PrincipalType *PrincipalType `json:"principalType,omitempty"` RoleDefinitionId string `json:"roleDefinitionId"` Scope *string `json:"scope,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedOn *string `json:"updatedOn,omitempty"` }
func (*RoleAssignmentProperties) GetCreatedOnAsTime ¶
func (o *RoleAssignmentProperties) GetCreatedOnAsTime() (*time.Time, error)
func (*RoleAssignmentProperties) GetUpdatedOnAsTime ¶
func (o *RoleAssignmentProperties) GetUpdatedOnAsTime() (*time.Time, error)
func (*RoleAssignmentProperties) SetCreatedOnAsTime ¶
func (o *RoleAssignmentProperties) SetCreatedOnAsTime(input time.Time)
func (*RoleAssignmentProperties) SetUpdatedOnAsTime ¶
func (o *RoleAssignmentProperties) SetUpdatedOnAsTime(input time.Time)
type RoleAssignmentsClient ¶
type RoleAssignmentsClient struct {
Client *resourcemanager.Client
}
func NewRoleAssignmentsClientWithBaseURI ¶
func NewRoleAssignmentsClientWithBaseURI(api environments.Api) (*RoleAssignmentsClient, error)
func (RoleAssignmentsClient) Create ¶
func (c RoleAssignmentsClient) Create(ctx context.Context, id ScopedRoleAssignmentId, input RoleAssignmentCreateParameters) (result CreateOperationResponse, err error)
Create ...
func (RoleAssignmentsClient) CreateById ¶
func (c RoleAssignmentsClient) CreateById(ctx context.Context, id commonids.ScopeId, input RoleAssignmentCreateParameters) (result CreateByIdOperationResponse, err error)
CreateById ...
func (RoleAssignmentsClient) Delete ¶
func (c RoleAssignmentsClient) Delete(ctx context.Context, id ScopedRoleAssignmentId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (RoleAssignmentsClient) DeleteById ¶
func (c RoleAssignmentsClient) DeleteById(ctx context.Context, id commonids.ScopeId, options DeleteByIdOperationOptions) (result DeleteByIdOperationResponse, err error)
DeleteById ...
func (RoleAssignmentsClient) Get ¶
func (c RoleAssignmentsClient) Get(ctx context.Context, id ScopedRoleAssignmentId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (RoleAssignmentsClient) GetById ¶
func (c RoleAssignmentsClient) GetById(ctx context.Context, id commonids.ScopeId, options GetByIdOperationOptions) (result GetByIdOperationResponse, err error)
GetById ...
func (RoleAssignmentsClient) ListForResource ¶
func (c RoleAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error)
ListForResource ...
func (RoleAssignmentsClient) ListForResourceComplete ¶
func (c RoleAssignmentsClient) ListForResourceComplete(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (ListForResourceCompleteResult, error)
ListForResourceComplete retrieves all the results into a single object
func (RoleAssignmentsClient) ListForResourceCompleteMatchingPredicate ¶
func (c RoleAssignmentsClient) ListForResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions, predicate RoleAssignmentOperationPredicate) (result ListForResourceCompleteResult, err error)
ListForResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (RoleAssignmentsClient) ListForResourceGroup ¶
func (c RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error)
ListForResourceGroup ...
func (RoleAssignmentsClient) ListForResourceGroupComplete ¶
func (c RoleAssignmentsClient) ListForResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (ListForResourceGroupCompleteResult, error)
ListForResourceGroupComplete retrieves all the results into a single object
func (RoleAssignmentsClient) ListForResourceGroupCompleteMatchingPredicate ¶
func (c RoleAssignmentsClient) ListForResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions, predicate RoleAssignmentOperationPredicate) (result ListForResourceGroupCompleteResult, err error)
ListForResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (RoleAssignmentsClient) ListForScope ¶
func (c RoleAssignmentsClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error)
ListForScope ...
func (RoleAssignmentsClient) ListForScopeComplete ¶
func (c RoleAssignmentsClient) ListForScopeComplete(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (ListForScopeCompleteResult, error)
ListForScopeComplete retrieves all the results into a single object
func (RoleAssignmentsClient) ListForScopeCompleteMatchingPredicate ¶
func (c RoleAssignmentsClient) ListForScopeCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions, predicate RoleAssignmentOperationPredicate) (result ListForScopeCompleteResult, err error)
ListForScopeCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (RoleAssignmentsClient) ListForSubscription ¶
func (c RoleAssignmentsClient) ListForSubscription(ctx context.Context, id commonids.SubscriptionId, options ListForSubscriptionOperationOptions) (result ListForSubscriptionOperationResponse, err error)
ListForSubscription ...
func (RoleAssignmentsClient) ListForSubscriptionComplete ¶
func (c RoleAssignmentsClient) ListForSubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, options ListForSubscriptionOperationOptions) (ListForSubscriptionCompleteResult, error)
ListForSubscriptionComplete retrieves all the results into a single object
func (RoleAssignmentsClient) ListForSubscriptionCompleteMatchingPredicate ¶
func (c RoleAssignmentsClient) ListForSubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListForSubscriptionOperationOptions, predicate RoleAssignmentOperationPredicate) (result ListForSubscriptionCompleteResult, err error)
ListForSubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ScopedRoleAssignmentId ¶
ScopedRoleAssignmentId is a struct representing the Resource ID for a Scoped Role Assignment
func NewScopedRoleAssignmentID ¶
func NewScopedRoleAssignmentID(scope string, roleAssignmentName string) ScopedRoleAssignmentId
NewScopedRoleAssignmentID returns a new ScopedRoleAssignmentId struct
func ParseScopedRoleAssignmentID ¶
func ParseScopedRoleAssignmentID(input string) (*ScopedRoleAssignmentId, error)
ParseScopedRoleAssignmentID parses 'input' into a ScopedRoleAssignmentId
func ParseScopedRoleAssignmentIDInsensitively ¶
func ParseScopedRoleAssignmentIDInsensitively(input string) (*ScopedRoleAssignmentId, error)
ParseScopedRoleAssignmentIDInsensitively parses 'input' case-insensitively into a ScopedRoleAssignmentId note: this method should only be used for API response data and not user input
func (ScopedRoleAssignmentId) ID ¶
func (id ScopedRoleAssignmentId) ID() string
ID returns the formatted Scoped Role Assignment ID
func (ScopedRoleAssignmentId) Segments ¶
func (id ScopedRoleAssignmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Role Assignment ID
func (ScopedRoleAssignmentId) String ¶
func (id ScopedRoleAssignmentId) String() string
String returns a human-readable description of this Scoped Role Assignment ID
Source Files ¶
- client.go
- constants.go
- id_scopedroleassignment.go
- method_create.go
- method_createbyid.go
- method_delete.go
- method_deletebyid.go
- method_get.go
- method_getbyid.go
- method_listforresource.go
- method_listforresourcegroup.go
- method_listforscope.go
- method_listforsubscription.go
- model_roleassignment.go
- model_roleassignmentcreateparameters.go
- model_roleassignmentproperties.go
- predicates.go
- version.go