Documentation ¶
Overview ¶
Package accesscontrol implements the Azure ARM Accesscontrol service API version 2020-02-01-preview.
Index ¶
- func UserAgent() string
- func Version() string
- type BaseClient
- type Client
- func (client Client) CreateRoleAssignment(ctx context.Context, createRoleAssignmentOptions RoleAssignmentOptions) (result RoleAssignmentDetails, err error)
- func (client Client) CreateRoleAssignmentPreparer(ctx context.Context, createRoleAssignmentOptions RoleAssignmentOptions) (*http.Request, error)
- func (client Client) CreateRoleAssignmentResponder(resp *http.Response) (result RoleAssignmentDetails, err error)
- func (client Client) CreateRoleAssignmentSender(req *http.Request) (*http.Response, error)
- func (client Client) DeleteRoleAssignmentByID(ctx context.Context, roleAssignmentID string) (result autorest.Response, err error)
- func (client Client) DeleteRoleAssignmentByIDPreparer(ctx context.Context, roleAssignmentID string) (*http.Request, error)
- func (client Client) DeleteRoleAssignmentByIDResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) DeleteRoleAssignmentByIDSender(req *http.Request) (*http.Response, error)
- func (client Client) GetCallerRoleAssignments(ctx context.Context) (result ListString, err error)
- func (client Client) GetCallerRoleAssignmentsPreparer(ctx context.Context) (*http.Request, error)
- func (client Client) GetCallerRoleAssignmentsResponder(resp *http.Response) (result ListString, err error)
- func (client Client) GetCallerRoleAssignmentsSender(req *http.Request) (*http.Response, error)
- func (client Client) GetRoleAssignmentByID(ctx context.Context, roleAssignmentID string) (result RoleAssignmentDetails, err error)
- func (client Client) GetRoleAssignmentByIDPreparer(ctx context.Context, roleAssignmentID string) (*http.Request, error)
- func (client Client) GetRoleAssignmentByIDResponder(resp *http.Response) (result RoleAssignmentDetails, err error)
- func (client Client) GetRoleAssignmentByIDSender(req *http.Request) (*http.Response, error)
- func (client Client) GetRoleAssignments(ctx context.Context, roleID string, principalID string, ...) (result ListRoleAssignmentDetails, err error)
- func (client Client) GetRoleAssignmentsPreparer(ctx context.Context, roleID string, principalID string, ...) (*http.Request, error)
- func (client Client) GetRoleAssignmentsResponder(resp *http.Response) (result ListRoleAssignmentDetails, err error)
- func (client Client) GetRoleAssignmentsSender(req *http.Request) (*http.Response, error)
- func (client Client) GetRoleDefinitionByID(ctx context.Context, roleID string) (result SynapseRole, err error)
- func (client Client) GetRoleDefinitionByIDPreparer(ctx context.Context, roleID string) (*http.Request, error)
- func (client Client) GetRoleDefinitionByIDResponder(resp *http.Response) (result SynapseRole, err error)
- func (client Client) GetRoleDefinitionByIDSender(req *http.Request) (*http.Response, error)
- func (client Client) GetRoleDefinitions(ctx context.Context) (result RolesListResponsePage, err error)
- func (client Client) GetRoleDefinitionsComplete(ctx context.Context) (result RolesListResponseIterator, err error)
- func (client Client) GetRoleDefinitionsPreparer(ctx context.Context) (*http.Request, error)
- func (client Client) GetRoleDefinitionsResponder(resp *http.Response) (result RolesListResponse, err error)
- func (client Client) GetRoleDefinitionsSender(req *http.Request) (*http.Response, error)
- type ErrorContract
- type ErrorDetail
- type ErrorResponse
- type ListRoleAssignmentDetails
- type ListString
- type RoleAssignmentDetails
- type RoleAssignmentOptions
- type RolesListResponse
- type RolesListResponseIterator
- func (iter *RolesListResponseIterator) Next() error
- func (iter *RolesListResponseIterator) NextWithContext(ctx context.Context) (err error)
- func (iter RolesListResponseIterator) NotDone() bool
- func (iter RolesListResponseIterator) Response() RolesListResponse
- func (iter RolesListResponseIterator) Value() SynapseRole
- type RolesListResponsePage
- func (page *RolesListResponsePage) Next() error
- func (page *RolesListResponsePage) NextWithContext(ctx context.Context) (err error)
- func (page RolesListResponsePage) NotDone() bool
- func (page RolesListResponsePage) Response() RolesListResponse
- func (page RolesListResponsePage) Values() []SynapseRole
- type SynapseRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type BaseClient ¶
BaseClient is the base client for Accesscontrol.
func NewWithoutDefaults ¶
func NewWithoutDefaults(endpoint string) BaseClient
NewWithoutDefaults creates an instance of the BaseClient client.
type Client ¶
type Client struct {
BaseClient
}
Client is the client for the AccessControl methods of the Accesscontrol service.
func (Client) CreateRoleAssignment ¶
func (client Client) CreateRoleAssignment(ctx context.Context, createRoleAssignmentOptions RoleAssignmentOptions) (result RoleAssignmentDetails, err error)
CreateRoleAssignment create role assignment. Parameters: createRoleAssignmentOptions - details of role id and object id.
func (Client) CreateRoleAssignmentPreparer ¶
func (client Client) CreateRoleAssignmentPreparer(ctx context.Context, createRoleAssignmentOptions RoleAssignmentOptions) (*http.Request, error)
CreateRoleAssignmentPreparer prepares the CreateRoleAssignment request.
func (Client) CreateRoleAssignmentResponder ¶
func (client Client) CreateRoleAssignmentResponder(resp *http.Response) (result RoleAssignmentDetails, err error)
CreateRoleAssignmentResponder handles the response to the CreateRoleAssignment request. The method always closes the http.Response Body.
func (Client) CreateRoleAssignmentSender ¶
CreateRoleAssignmentSender sends the CreateRoleAssignment request. The method will close the http.Response Body if it receives an error.
func (Client) DeleteRoleAssignmentByID ¶
func (client Client) DeleteRoleAssignmentByID(ctx context.Context, roleAssignmentID string) (result autorest.Response, err error)
DeleteRoleAssignmentByID delete role assignment by role assignment Id. Parameters: roleAssignmentID - the ID of the role assignment.
func (Client) DeleteRoleAssignmentByIDPreparer ¶
func (client Client) DeleteRoleAssignmentByIDPreparer(ctx context.Context, roleAssignmentID string) (*http.Request, error)
DeleteRoleAssignmentByIDPreparer prepares the DeleteRoleAssignmentByID request.
func (Client) DeleteRoleAssignmentByIDResponder ¶
func (client Client) DeleteRoleAssignmentByIDResponder(resp *http.Response) (result autorest.Response, err error)
DeleteRoleAssignmentByIDResponder handles the response to the DeleteRoleAssignmentByID request. The method always closes the http.Response Body.
func (Client) DeleteRoleAssignmentByIDSender ¶
DeleteRoleAssignmentByIDSender sends the DeleteRoleAssignmentByID request. The method will close the http.Response Body if it receives an error.
func (Client) GetCallerRoleAssignments ¶
func (client Client) GetCallerRoleAssignments(ctx context.Context) (result ListString, err error)
GetCallerRoleAssignments list role assignments of the caller.
func (Client) GetCallerRoleAssignmentsPreparer ¶
GetCallerRoleAssignmentsPreparer prepares the GetCallerRoleAssignments request.
func (Client) GetCallerRoleAssignmentsResponder ¶
func (client Client) GetCallerRoleAssignmentsResponder(resp *http.Response) (result ListString, err error)
GetCallerRoleAssignmentsResponder handles the response to the GetCallerRoleAssignments request. The method always closes the http.Response Body.
func (Client) GetCallerRoleAssignmentsSender ¶
GetCallerRoleAssignmentsSender sends the GetCallerRoleAssignments request. The method will close the http.Response Body if it receives an error.
func (Client) GetRoleAssignmentByID ¶
func (client Client) GetRoleAssignmentByID(ctx context.Context, roleAssignmentID string) (result RoleAssignmentDetails, err error)
GetRoleAssignmentByID get role assignment by role assignment Id. Parameters: roleAssignmentID - the ID of the role assignment.
func (Client) GetRoleAssignmentByIDPreparer ¶
func (client Client) GetRoleAssignmentByIDPreparer(ctx context.Context, roleAssignmentID string) (*http.Request, error)
GetRoleAssignmentByIDPreparer prepares the GetRoleAssignmentByID request.
func (Client) GetRoleAssignmentByIDResponder ¶
func (client Client) GetRoleAssignmentByIDResponder(resp *http.Response) (result RoleAssignmentDetails, err error)
GetRoleAssignmentByIDResponder handles the response to the GetRoleAssignmentByID request. The method always closes the http.Response Body.
func (Client) GetRoleAssignmentByIDSender ¶
GetRoleAssignmentByIDSender sends the GetRoleAssignmentByID request. The method will close the http.Response Body if it receives an error.
func (Client) GetRoleAssignments ¶
func (client Client) GetRoleAssignments(ctx context.Context, roleID string, principalID string, continuationToken string) (result ListRoleAssignmentDetails, err error)
GetRoleAssignments list role assignments. Parameters: roleID - synapse Built-In Role Id. principalID - object ID of the AAD principal or security-group. continuationToken - continuation token.
func (Client) GetRoleAssignmentsPreparer ¶
func (client Client) GetRoleAssignmentsPreparer(ctx context.Context, roleID string, principalID string, continuationToken string) (*http.Request, error)
GetRoleAssignmentsPreparer prepares the GetRoleAssignments request.
func (Client) GetRoleAssignmentsResponder ¶
func (client Client) GetRoleAssignmentsResponder(resp *http.Response) (result ListRoleAssignmentDetails, err error)
GetRoleAssignmentsResponder handles the response to the GetRoleAssignments request. The method always closes the http.Response Body.
func (Client) GetRoleAssignmentsSender ¶
GetRoleAssignmentsSender sends the GetRoleAssignments request. The method will close the http.Response Body if it receives an error.
func (Client) GetRoleDefinitionByID ¶
func (client Client) GetRoleDefinitionByID(ctx context.Context, roleID string) (result SynapseRole, err error)
GetRoleDefinitionByID get role by role Id. Parameters: roleID - synapse Built-In Role Id.
func (Client) GetRoleDefinitionByIDPreparer ¶
func (client Client) GetRoleDefinitionByIDPreparer(ctx context.Context, roleID string) (*http.Request, error)
GetRoleDefinitionByIDPreparer prepares the GetRoleDefinitionByID request.
func (Client) GetRoleDefinitionByIDResponder ¶
func (client Client) GetRoleDefinitionByIDResponder(resp *http.Response) (result SynapseRole, err error)
GetRoleDefinitionByIDResponder handles the response to the GetRoleDefinitionByID request. The method always closes the http.Response Body.
func (Client) GetRoleDefinitionByIDSender ¶
GetRoleDefinitionByIDSender sends the GetRoleDefinitionByID request. The method will close the http.Response Body if it receives an error.
func (Client) GetRoleDefinitions ¶
func (client Client) GetRoleDefinitions(ctx context.Context) (result RolesListResponsePage, err error)
GetRoleDefinitions list roles.
func (Client) GetRoleDefinitionsComplete ¶
func (client Client) GetRoleDefinitionsComplete(ctx context.Context) (result RolesListResponseIterator, err error)
GetRoleDefinitionsComplete enumerates all values, automatically crossing page boundaries as required.
func (Client) GetRoleDefinitionsPreparer ¶
GetRoleDefinitionsPreparer prepares the GetRoleDefinitions request.
func (Client) GetRoleDefinitionsResponder ¶
func (client Client) GetRoleDefinitionsResponder(resp *http.Response) (result RolesListResponse, err error)
GetRoleDefinitionsResponder handles the response to the GetRoleDefinitions request. The method always closes the http.Response Body.
type ErrorContract ¶
type ErrorContract struct { // Error - The error details. Error *ErrorResponse `json:"error,omitempty"` }
ErrorContract contains details when the response code indicates an error.
type ErrorDetail ¶
type ErrorDetail struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` }
ErrorDetail ...
type ErrorResponse ¶
type ErrorResponse struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` Details *[]ErrorDetail `json:"details,omitempty"` }
ErrorResponse ...
type ListRoleAssignmentDetails ¶
type ListRoleAssignmentDetails struct { autorest.Response `json:"-"` Value *[]RoleAssignmentDetails `json:"value,omitempty"` }
ListRoleAssignmentDetails ...
type ListString ¶
ListString ...
type RoleAssignmentDetails ¶
type RoleAssignmentDetails struct { autorest.Response `json:"-"` // ID - Role Assignment ID ID *string `json:"id,omitempty"` // RoleID - Role ID of the Synapse Built-In Role RoleID *string `json:"roleId,omitempty"` // PrincipalID - Object ID of the AAD principal or security-group PrincipalID *string `json:"principalId,omitempty"` }
RoleAssignmentDetails role Assignment response details
type RoleAssignmentOptions ¶
type RoleAssignmentOptions struct { // RoleID - Role ID of the Synapse Built-In Role RoleID *string `json:"roleId,omitempty"` // PrincipalID - Object ID of the AAD principal or security-group PrincipalID *string `json:"principalId,omitempty"` }
RoleAssignmentOptions role Assignment request details
type RolesListResponse ¶
type RolesListResponse struct { autorest.Response `json:"-"` // Value - List of Synapse roles. Value *[]SynapseRole `json:"value,omitempty"` // NextLink - The link to the next page of results, if any remaining results exist. NextLink *string `json:"nextLink,omitempty"` }
RolesListResponse a list of Synapse roles available.
func (RolesListResponse) IsEmpty ¶
func (rlr RolesListResponse) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type RolesListResponseIterator ¶
type RolesListResponseIterator struct {
// contains filtered or unexported fields
}
RolesListResponseIterator provides access to a complete listing of SynapseRole values.
func NewRolesListResponseIterator ¶
func NewRolesListResponseIterator(page RolesListResponsePage) RolesListResponseIterator
Creates a new instance of the RolesListResponseIterator type.
func (*RolesListResponseIterator) Next ¶
func (iter *RolesListResponseIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*RolesListResponseIterator) NextWithContext ¶
func (iter *RolesListResponseIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (RolesListResponseIterator) NotDone ¶
func (iter RolesListResponseIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (RolesListResponseIterator) Response ¶
func (iter RolesListResponseIterator) Response() RolesListResponse
Response returns the raw server response from the last page request.
func (RolesListResponseIterator) Value ¶
func (iter RolesListResponseIterator) Value() SynapseRole
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type RolesListResponsePage ¶
type RolesListResponsePage struct {
// contains filtered or unexported fields
}
RolesListResponsePage contains a page of SynapseRole values.
func NewRolesListResponsePage ¶
func NewRolesListResponsePage(getNextPage func(context.Context, RolesListResponse) (RolesListResponse, error)) RolesListResponsePage
Creates a new instance of the RolesListResponsePage type.
func (*RolesListResponsePage) Next ¶
func (page *RolesListResponsePage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*RolesListResponsePage) NextWithContext ¶
func (page *RolesListResponsePage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (RolesListResponsePage) NotDone ¶
func (page RolesListResponsePage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (RolesListResponsePage) Response ¶
func (page RolesListResponsePage) Response() RolesListResponse
Response returns the raw server response from the last page request.
func (RolesListResponsePage) Values ¶
func (page RolesListResponsePage) Values() []SynapseRole
Values returns the slice of values for the current page or nil if there are no values.
type SynapseRole ¶
type SynapseRole struct { autorest.Response `json:"-"` // ID - Role ID ID *string `json:"id,omitempty"` // Name - Name of the Synapse role Name *string `json:"name,omitempty"` // IsBuiltIn - Is a built-in role or not IsBuiltIn *bool `json:"isBuiltIn,omitempty"` }
SynapseRole synapse role details