Documentation ¶
Overview ¶
Package authorization implements the Azure ARM Authorization service API version 2015-07-01.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type ClassicAdministrator
- type ClassicAdministratorListResult
- type ClassicAdministratorProperties
- type ClassicAdministratorsClient
- func (client ClassicAdministratorsClient) List() (result ClassicAdministratorListResult, err error)
- func (client ClassicAdministratorsClient) ListNextResults(lastResults ClassicAdministratorListResult) (result ClassicAdministratorListResult, err error)
- func (client ClassicAdministratorsClient) ListPreparer() (*http.Request, error)
- func (client ClassicAdministratorsClient) ListResponder(resp *http.Response) (result ClassicAdministratorListResult, err error)
- func (client ClassicAdministratorsClient) ListSender(req *http.Request) (*http.Response, error)
- type ManagementClient
- type Permission
- type PermissionGetResult
- type PermissionsClient
- func (client PermissionsClient) ListForResource(resourceGroupName string, resourceProviderNamespace string, ...) (result PermissionGetResult, err error)
- func (client PermissionsClient) ListForResourceGroup(resourceGroupName string) (result PermissionGetResult, err error)
- func (client PermissionsClient) ListForResourceGroupNextResults(lastResults PermissionGetResult) (result PermissionGetResult, err error)
- func (client PermissionsClient) ListForResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client PermissionsClient) ListForResourceGroupResponder(resp *http.Response) (result PermissionGetResult, err error)
- func (client PermissionsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client PermissionsClient) ListForResourceNextResults(lastResults PermissionGetResult) (result PermissionGetResult, err error)
- func (client PermissionsClient) ListForResourcePreparer(resourceGroupName string, resourceProviderNamespace string, ...) (*http.Request, error)
- func (client PermissionsClient) ListForResourceResponder(resp *http.Response) (result PermissionGetResult, err error)
- func (client PermissionsClient) ListForResourceSender(req *http.Request) (*http.Response, error)
- type ProviderOperation
- type ProviderOperationsMetadata
- type ProviderOperationsMetadataListResult
- type ProviderOperationsMetadataOperationsClient
- func (client ProviderOperationsMetadataOperationsClient) Get(resourceProviderNamespace string, expand string) (result ProviderOperationsMetadata, err error)
- func (client ProviderOperationsMetadataOperationsClient) GetPreparer(resourceProviderNamespace string, expand string) (*http.Request, error)
- func (client ProviderOperationsMetadataOperationsClient) GetResponder(resp *http.Response) (result ProviderOperationsMetadata, err error)
- func (client ProviderOperationsMetadataOperationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ProviderOperationsMetadataOperationsClient) List(expand string) (result ProviderOperationsMetadataListResult, err error)
- func (client ProviderOperationsMetadataOperationsClient) ListNextResults(lastResults ProviderOperationsMetadataListResult) (result ProviderOperationsMetadataListResult, err error)
- func (client ProviderOperationsMetadataOperationsClient) ListPreparer(expand string) (*http.Request, error)
- func (client ProviderOperationsMetadataOperationsClient) ListResponder(resp *http.Response) (result ProviderOperationsMetadataListResult, err error)
- func (client ProviderOperationsMetadataOperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type ResourceType
- type RoleAssignment
- type RoleAssignmentCreateParameters
- type RoleAssignmentFilter
- type RoleAssignmentListResult
- type RoleAssignmentProperties
- type RoleAssignmentPropertiesWithScope
- type RoleAssignmentsClient
- func (client RoleAssignmentsClient) Create(scope string, roleAssignmentName string, ...) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) CreateByID(roleAssignmentID string, parameters RoleAssignmentCreateParameters) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) CreateByIDPreparer(roleAssignmentID string, parameters RoleAssignmentCreateParameters) (*http.Request, error)
- func (client RoleAssignmentsClient) CreateByIDResponder(resp *http.Response) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) CreateByIDSender(req *http.Request) (*http.Response, error)
- func (client RoleAssignmentsClient) CreatePreparer(scope string, roleAssignmentName string, ...) (*http.Request, error)
- func (client RoleAssignmentsClient) CreateResponder(resp *http.Response) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client RoleAssignmentsClient) Delete(scope string, roleAssignmentName string) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) DeleteByID(roleAssignmentID string) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) DeleteByIDPreparer(roleAssignmentID string) (*http.Request, error)
- func (client RoleAssignmentsClient) DeleteByIDResponder(resp *http.Response) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) DeleteByIDSender(req *http.Request) (*http.Response, error)
- func (client RoleAssignmentsClient) DeletePreparer(scope string, roleAssignmentName string) (*http.Request, error)
- func (client RoleAssignmentsClient) DeleteResponder(resp *http.Response) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client RoleAssignmentsClient) Get(scope string, roleAssignmentName string) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) GetByID(roleAssignmentID string) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) GetByIDPreparer(roleAssignmentID string) (*http.Request, error)
- func (client RoleAssignmentsClient) GetByIDResponder(resp *http.Response) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) GetByIDSender(req *http.Request) (*http.Response, error)
- func (client RoleAssignmentsClient) GetPreparer(scope string, roleAssignmentName string) (*http.Request, error)
- func (client RoleAssignmentsClient) GetResponder(resp *http.Response) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client RoleAssignmentsClient) List(filter string) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForResource(resourceGroupName string, resourceProviderNamespace string, ...) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForResourceGroup(resourceGroupName string, filter string) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForResourceGroupNextResults(lastResults RoleAssignmentListResult) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForResourceGroupPreparer(resourceGroupName string, filter string) (*http.Request, error)
- func (client RoleAssignmentsClient) ListForResourceGroupResponder(resp *http.Response) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client RoleAssignmentsClient) ListForResourceNextResults(lastResults RoleAssignmentListResult) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForResourcePreparer(resourceGroupName string, resourceProviderNamespace string, ...) (*http.Request, error)
- func (client RoleAssignmentsClient) ListForResourceResponder(resp *http.Response) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForResourceSender(req *http.Request) (*http.Response, error)
- func (client RoleAssignmentsClient) ListForScope(scope string, filter string) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForScopeNextResults(lastResults RoleAssignmentListResult) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForScopePreparer(scope string, filter string) (*http.Request, error)
- func (client RoleAssignmentsClient) ListForScopeResponder(resp *http.Response) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListForScopeSender(req *http.Request) (*http.Response, error)
- func (client RoleAssignmentsClient) ListNextResults(lastResults RoleAssignmentListResult) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListPreparer(filter string) (*http.Request, error)
- func (client RoleAssignmentsClient) ListResponder(resp *http.Response) (result RoleAssignmentListResult, err error)
- func (client RoleAssignmentsClient) ListSender(req *http.Request) (*http.Response, error)
- type RoleDefinition
- type RoleDefinitionFilter
- type RoleDefinitionListResult
- type RoleDefinitionProperties
- type RoleDefinitionsClient
- func (client RoleDefinitionsClient) CreateOrUpdate(scope string, roleDefinitionID string, roleDefinition RoleDefinition) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) CreateOrUpdatePreparer(scope string, roleDefinitionID string, roleDefinition RoleDefinition) (*http.Request, error)
- func (client RoleDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client RoleDefinitionsClient) Delete(scope string, roleDefinitionID string) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) DeletePreparer(scope string, roleDefinitionID string) (*http.Request, error)
- func (client RoleDefinitionsClient) DeleteResponder(resp *http.Response) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client RoleDefinitionsClient) Get(scope string, roleDefinitionID string) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) GetByID(roleDefinitionID string) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) GetByIDPreparer(roleDefinitionID string) (*http.Request, error)
- func (client RoleDefinitionsClient) GetByIDResponder(resp *http.Response) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) GetByIDSender(req *http.Request) (*http.Response, error)
- func (client RoleDefinitionsClient) GetPreparer(scope string, roleDefinitionID string) (*http.Request, error)
- func (client RoleDefinitionsClient) GetResponder(resp *http.Response) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client RoleDefinitionsClient) List(scope string, filter string) (result RoleDefinitionListResult, err error)
- func (client RoleDefinitionsClient) ListNextResults(lastResults RoleDefinitionListResult) (result RoleDefinitionListResult, err error)
- func (client RoleDefinitionsClient) ListPreparer(scope string, filter string) (*http.Request, error)
- func (client RoleDefinitionsClient) ListResponder(resp *http.Response) (result RoleDefinitionListResult, err error)
- func (client RoleDefinitionsClient) ListSender(req *http.Request) (*http.Response, error)
Constants ¶
const ( // APIVersion is the version of the Authorization APIVersion = "2015-07-01" // DefaultBaseURI is the default URI used for the service Authorization DefaultBaseURI = "https://management.azure.com" )
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 ClassicAdministrator ¶
type ClassicAdministrator struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Properties *ClassicAdministratorProperties `json:"properties,omitempty"` }
ClassicAdministrator is classic Administrators
type ClassicAdministratorListResult ¶
type ClassicAdministratorListResult struct { autorest.Response `json:"-"` Value *[]ClassicAdministrator `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
ClassicAdministratorListResult is classicAdministrator list result information.
func (ClassicAdministratorListResult) ClassicAdministratorListResultPreparer ¶
func (client ClassicAdministratorListResult) ClassicAdministratorListResultPreparer() (*http.Request, error)
ClassicAdministratorListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type ClassicAdministratorProperties ¶
type ClassicAdministratorProperties struct { EmailAddress *string `json:"emailAddress,omitempty"` Role *string `json:"role,omitempty"` }
ClassicAdministratorProperties is classic Administrator properties.
type ClassicAdministratorsClient ¶
type ClassicAdministratorsClient struct {
ManagementClient
}
ClassicAdministratorsClient is the client for the ClassicAdministrators methods of the Authorization service.
func NewClassicAdministratorsClient ¶
func NewClassicAdministratorsClient(subscriptionID string) ClassicAdministratorsClient
NewClassicAdministratorsClient creates an instance of the ClassicAdministratorsClient client.
func NewClassicAdministratorsClientWithBaseURI ¶
func NewClassicAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ClassicAdministratorsClient
NewClassicAdministratorsClientWithBaseURI creates an instance of the ClassicAdministratorsClient client.
func (ClassicAdministratorsClient) List ¶
func (client ClassicAdministratorsClient) List() (result ClassicAdministratorListResult, err error)
List gets a list of classic administrators for the subscription.
func (ClassicAdministratorsClient) ListNextResults ¶
func (client ClassicAdministratorsClient) ListNextResults(lastResults ClassicAdministratorListResult) (result ClassicAdministratorListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (ClassicAdministratorsClient) ListPreparer ¶
func (client ClassicAdministratorsClient) ListPreparer() (*http.Request, error)
ListPreparer prepares the List request.
func (ClassicAdministratorsClient) ListResponder ¶
func (client ClassicAdministratorsClient) ListResponder(resp *http.Response) (result ClassicAdministratorListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ClassicAdministratorsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type ManagementClient ¶
type ManagementClient struct { autorest.Client BaseURI string APIVersion string SubscriptionID string }
ManagementClient is the base client for Authorization.
func New ¶
func New(subscriptionID string) ManagementClient
New creates an instance of the ManagementClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient
NewWithBaseURI creates an instance of the ManagementClient client.
type Permission ¶
type Permission struct { Actions *[]string `json:"actions,omitempty"` NotActions *[]string `json:"notActions,omitempty"` }
Permission is role definition permissions.
type PermissionGetResult ¶
type PermissionGetResult struct { autorest.Response `json:"-"` Value *[]Permission `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
PermissionGetResult is permissions information.
func (PermissionGetResult) PermissionGetResultPreparer ¶
func (client PermissionGetResult) PermissionGetResultPreparer() (*http.Request, error)
PermissionGetResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type PermissionsClient ¶
type PermissionsClient struct {
ManagementClient
}
PermissionsClient is the client for the Permissions methods of the Authorization service.
func NewPermissionsClient ¶
func NewPermissionsClient(subscriptionID string) PermissionsClient
NewPermissionsClient creates an instance of the PermissionsClient client.
func NewPermissionsClientWithBaseURI ¶
func NewPermissionsClientWithBaseURI(baseURI string, subscriptionID string) PermissionsClient
NewPermissionsClientWithBaseURI creates an instance of the PermissionsClient client.
func (PermissionsClient) ListForResource ¶
func (client PermissionsClient) ListForResource(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result PermissionGetResult, err error)
ListForResource gets a resource permissions.
resourceGroupName is the name of the resource group. The name is case insensitive. resourceProviderNamespace is resource parentResourcePath is resource resourceType is resource resourceName is resource
func (PermissionsClient) ListForResourceGroup ¶
func (client PermissionsClient) ListForResourceGroup(resourceGroupName string) (result PermissionGetResult, err error)
ListForResourceGroup gets a resource group permissions.
resourceGroupName is name of the resource group to get the permissions for.The name is case insensitive.
func (PermissionsClient) ListForResourceGroupNextResults ¶
func (client PermissionsClient) ListForResourceGroupNextResults(lastResults PermissionGetResult) (result PermissionGetResult, err error)
ListForResourceGroupNextResults retrieves the next set of results, if any.
func (PermissionsClient) ListForResourceGroupPreparer ¶
func (client PermissionsClient) ListForResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
ListForResourceGroupPreparer prepares the ListForResourceGroup request.
func (PermissionsClient) ListForResourceGroupResponder ¶
func (client PermissionsClient) ListForResourceGroupResponder(resp *http.Response) (result PermissionGetResult, err error)
ListForResourceGroupResponder handles the response to the ListForResourceGroup request. The method always closes the http.Response Body.
func (PermissionsClient) ListForResourceGroupSender ¶
func (client PermissionsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error)
ListForResourceGroupSender sends the ListForResourceGroup request. The method will close the http.Response Body if it receives an error.
func (PermissionsClient) ListForResourceNextResults ¶
func (client PermissionsClient) ListForResourceNextResults(lastResults PermissionGetResult) (result PermissionGetResult, err error)
ListForResourceNextResults retrieves the next set of results, if any.
func (PermissionsClient) ListForResourcePreparer ¶
func (client PermissionsClient) ListForResourcePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error)
ListForResourcePreparer prepares the ListForResource request.
func (PermissionsClient) ListForResourceResponder ¶
func (client PermissionsClient) ListForResourceResponder(resp *http.Response) (result PermissionGetResult, err error)
ListForResourceResponder handles the response to the ListForResource request. The method always closes the http.Response Body.
func (PermissionsClient) ListForResourceSender ¶
ListForResourceSender sends the ListForResource request. The method will close the http.Response Body if it receives an error.
type ProviderOperation ¶
type ProviderOperation struct { Name *string `json:"name,omitempty"` DisplayName *string `json:"displayName,omitempty"` Description *string `json:"description,omitempty"` Origin *string `json:"origin,omitempty"` Properties *map[string]interface{} `json:"properties,omitempty"` }
ProviderOperation is operation
type ProviderOperationsMetadata ¶
type ProviderOperationsMetadata struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` DisplayName *string `json:"displayName,omitempty"` ResourceTypes *[]ResourceType `json:"resourceTypes,omitempty"` Operations *[]ProviderOperation `json:"operations,omitempty"` }
ProviderOperationsMetadata is provider Operations metadata
type ProviderOperationsMetadataListResult ¶
type ProviderOperationsMetadataListResult struct { autorest.Response `json:"-"` Value *[]ProviderOperationsMetadata `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
ProviderOperationsMetadataListResult is provider operations metadata list
func (ProviderOperationsMetadataListResult) ProviderOperationsMetadataListResultPreparer ¶
func (client ProviderOperationsMetadataListResult) ProviderOperationsMetadataListResultPreparer() (*http.Request, error)
ProviderOperationsMetadataListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type ProviderOperationsMetadataOperationsClient ¶
type ProviderOperationsMetadataOperationsClient struct {
ManagementClient
}
ProviderOperationsMetadataOperationsClient is the client for the ProviderOperationsMetadataOperations methods of the Authorization service.
func NewProviderOperationsMetadataOperationsClient ¶
func NewProviderOperationsMetadataOperationsClient(subscriptionID string) ProviderOperationsMetadataOperationsClient
NewProviderOperationsMetadataOperationsClient creates an instance of the ProviderOperationsMetadataOperationsClient client.
func NewProviderOperationsMetadataOperationsClientWithBaseURI ¶
func NewProviderOperationsMetadataOperationsClientWithBaseURI(baseURI string, subscriptionID string) ProviderOperationsMetadataOperationsClient
NewProviderOperationsMetadataOperationsClientWithBaseURI creates an instance of the ProviderOperationsMetadataOperationsClient client.
func (ProviderOperationsMetadataOperationsClient) Get ¶
func (client ProviderOperationsMetadataOperationsClient) Get(resourceProviderNamespace string, expand string) (result ProviderOperationsMetadata, err error)
Get gets provider operations metadata
resourceProviderNamespace is namespace of the resource provider.
func (ProviderOperationsMetadataOperationsClient) GetPreparer ¶
func (client ProviderOperationsMetadataOperationsClient) GetPreparer(resourceProviderNamespace string, expand string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ProviderOperationsMetadataOperationsClient) GetResponder ¶
func (client ProviderOperationsMetadataOperationsClient) GetResponder(resp *http.Response) (result ProviderOperationsMetadata, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ProviderOperationsMetadataOperationsClient) GetSender ¶
func (client ProviderOperationsMetadataOperationsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ProviderOperationsMetadataOperationsClient) List ¶
func (client ProviderOperationsMetadataOperationsClient) List(expand string) (result ProviderOperationsMetadataListResult, err error)
List gets provider operations metadata list
func (ProviderOperationsMetadataOperationsClient) ListNextResults ¶
func (client ProviderOperationsMetadataOperationsClient) ListNextResults(lastResults ProviderOperationsMetadataListResult) (result ProviderOperationsMetadataListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (ProviderOperationsMetadataOperationsClient) ListPreparer ¶
func (client ProviderOperationsMetadataOperationsClient) ListPreparer(expand string) (*http.Request, error)
ListPreparer prepares the List request.
func (ProviderOperationsMetadataOperationsClient) ListResponder ¶
func (client ProviderOperationsMetadataOperationsClient) ListResponder(resp *http.Response) (result ProviderOperationsMetadataListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ProviderOperationsMetadataOperationsClient) ListSender ¶
func (client ProviderOperationsMetadataOperationsClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type ResourceType ¶
type ResourceType struct { Name *string `json:"name,omitempty"` DisplayName *string `json:"displayName,omitempty"` Operations *[]ProviderOperation `json:"operations,omitempty"` }
ResourceType is resource Type
type RoleAssignment ¶
type RoleAssignment struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Properties *RoleAssignmentPropertiesWithScope `json:"properties,omitempty"` }
RoleAssignment is role Assignments
type RoleAssignmentCreateParameters ¶
type RoleAssignmentCreateParameters struct {
Properties *RoleAssignmentProperties `json:"properties,omitempty"`
}
RoleAssignmentCreateParameters is role assignment create parameters.
type RoleAssignmentFilter ¶
type RoleAssignmentFilter struct {
PrincipalID *string `json:"principalId,omitempty"`
}
RoleAssignmentFilter is role Assignments filter
type RoleAssignmentListResult ¶
type RoleAssignmentListResult struct { autorest.Response `json:"-"` Value *[]RoleAssignment `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
RoleAssignmentListResult is role assignment list operation result.
func (RoleAssignmentListResult) RoleAssignmentListResultPreparer ¶
func (client RoleAssignmentListResult) RoleAssignmentListResultPreparer() (*http.Request, error)
RoleAssignmentListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type RoleAssignmentProperties ¶
type RoleAssignmentProperties struct { RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` PrincipalID *string `json:"principalId,omitempty"` }
RoleAssignmentProperties is role assignment properties.
type RoleAssignmentPropertiesWithScope ¶
type RoleAssignmentPropertiesWithScope struct { Scope *string `json:"scope,omitempty"` RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` PrincipalID *string `json:"principalId,omitempty"` }
RoleAssignmentPropertiesWithScope is role assignment properties with scope.
type RoleAssignmentsClient ¶
type RoleAssignmentsClient struct {
ManagementClient
}
RoleAssignmentsClient is the client for the RoleAssignments methods of the Authorization service.
func NewRoleAssignmentsClient ¶
func NewRoleAssignmentsClient(subscriptionID string) RoleAssignmentsClient
NewRoleAssignmentsClient creates an instance of the RoleAssignmentsClient client.
func NewRoleAssignmentsClientWithBaseURI ¶
func NewRoleAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) RoleAssignmentsClient
NewRoleAssignmentsClientWithBaseURI creates an instance of the RoleAssignmentsClient client.
func (RoleAssignmentsClient) Create ¶
func (client RoleAssignmentsClient) Create(scope string, roleAssignmentName string, parameters RoleAssignmentCreateParameters) (result RoleAssignment, err error)
Create create role assignment.
scope is scope. roleAssignmentName is role assignment name. parameters is role assignment.
func (RoleAssignmentsClient) CreateByID ¶
func (client RoleAssignmentsClient) CreateByID(roleAssignmentID string, parameters RoleAssignmentCreateParameters) (result RoleAssignment, err error)
CreateByID create role assignment by Id.
roleAssignmentID is role assignment Id parameters is role assignment.
func (RoleAssignmentsClient) CreateByIDPreparer ¶
func (client RoleAssignmentsClient) CreateByIDPreparer(roleAssignmentID string, parameters RoleAssignmentCreateParameters) (*http.Request, error)
CreateByIDPreparer prepares the CreateByID request.
func (RoleAssignmentsClient) CreateByIDResponder ¶
func (client RoleAssignmentsClient) CreateByIDResponder(resp *http.Response) (result RoleAssignment, err error)
CreateByIDResponder handles the response to the CreateByID request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) CreateByIDSender ¶
CreateByIDSender sends the CreateByID request. The method will close the http.Response Body if it receives an error.
func (RoleAssignmentsClient) CreatePreparer ¶
func (client RoleAssignmentsClient) CreatePreparer(scope string, roleAssignmentName string, parameters RoleAssignmentCreateParameters) (*http.Request, error)
CreatePreparer prepares the Create request.
func (RoleAssignmentsClient) CreateResponder ¶
func (client RoleAssignmentsClient) CreateResponder(resp *http.Response) (result RoleAssignment, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (RoleAssignmentsClient) Delete ¶
func (client RoleAssignmentsClient) Delete(scope string, roleAssignmentName string) (result RoleAssignment, err error)
Delete delete role assignment.
scope is scope. roleAssignmentName is role assignment name.
func (RoleAssignmentsClient) DeleteByID ¶
func (client RoleAssignmentsClient) DeleteByID(roleAssignmentID string) (result RoleAssignment, err error)
DeleteByID delete role assignment.
roleAssignmentID is role assignment Id
func (RoleAssignmentsClient) DeleteByIDPreparer ¶
func (client RoleAssignmentsClient) DeleteByIDPreparer(roleAssignmentID string) (*http.Request, error)
DeleteByIDPreparer prepares the DeleteByID request.
func (RoleAssignmentsClient) DeleteByIDResponder ¶
func (client RoleAssignmentsClient) DeleteByIDResponder(resp *http.Response) (result RoleAssignment, err error)
DeleteByIDResponder handles the response to the DeleteByID request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) DeleteByIDSender ¶
DeleteByIDSender sends the DeleteByID request. The method will close the http.Response Body if it receives an error.
func (RoleAssignmentsClient) DeletePreparer ¶
func (client RoleAssignmentsClient) DeletePreparer(scope string, roleAssignmentName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (RoleAssignmentsClient) DeleteResponder ¶
func (client RoleAssignmentsClient) DeleteResponder(resp *http.Response) (result RoleAssignment, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (RoleAssignmentsClient) Get ¶
func (client RoleAssignmentsClient) Get(scope string, roleAssignmentName string) (result RoleAssignment, err error)
Get get single role assignment.
scope is scope. roleAssignmentName is role assignment name.
func (RoleAssignmentsClient) GetByID ¶
func (client RoleAssignmentsClient) GetByID(roleAssignmentID string) (result RoleAssignment, err error)
GetByID get single role assignment.
roleAssignmentID is role assignment Id
func (RoleAssignmentsClient) GetByIDPreparer ¶
func (client RoleAssignmentsClient) GetByIDPreparer(roleAssignmentID string) (*http.Request, error)
GetByIDPreparer prepares the GetByID request.
func (RoleAssignmentsClient) GetByIDResponder ¶
func (client RoleAssignmentsClient) GetByIDResponder(resp *http.Response) (result RoleAssignment, err error)
GetByIDResponder handles the response to the GetByID request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) GetByIDSender ¶
GetByIDSender sends the GetByID request. The method will close the http.Response Body if it receives an error.
func (RoleAssignmentsClient) GetPreparer ¶
func (client RoleAssignmentsClient) GetPreparer(scope string, roleAssignmentName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (RoleAssignmentsClient) GetResponder ¶
func (client RoleAssignmentsClient) GetResponder(resp *http.Response) (result RoleAssignment, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (RoleAssignmentsClient) List ¶
func (client RoleAssignmentsClient) List(filter string) (result RoleAssignmentListResult, err error)
List gets role assignments of the subscription.
filter is the filter to apply on the operation.
func (RoleAssignmentsClient) ListForResource ¶
func (client RoleAssignmentsClient) ListForResource(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result RoleAssignmentListResult, err error)
ListForResource gets role assignments of the resource.
resourceGroupName is the name of the resource group. resourceProviderNamespace is resource identity. parentResourcePath is resource identity. resourceType is resource identity. resourceName is resource identity. filter is the filter to apply on the operation.
func (RoleAssignmentsClient) ListForResourceGroup ¶
func (client RoleAssignmentsClient) ListForResourceGroup(resourceGroupName string, filter string) (result RoleAssignmentListResult, err error)
ListForResourceGroup gets role assignments of the resource group.
resourceGroupName is resource group name. filter is the filter to apply on the operation.
func (RoleAssignmentsClient) ListForResourceGroupNextResults ¶
func (client RoleAssignmentsClient) ListForResourceGroupNextResults(lastResults RoleAssignmentListResult) (result RoleAssignmentListResult, err error)
ListForResourceGroupNextResults retrieves the next set of results, if any.
func (RoleAssignmentsClient) ListForResourceGroupPreparer ¶
func (client RoleAssignmentsClient) ListForResourceGroupPreparer(resourceGroupName string, filter string) (*http.Request, error)
ListForResourceGroupPreparer prepares the ListForResourceGroup request.
func (RoleAssignmentsClient) ListForResourceGroupResponder ¶
func (client RoleAssignmentsClient) ListForResourceGroupResponder(resp *http.Response) (result RoleAssignmentListResult, err error)
ListForResourceGroupResponder handles the response to the ListForResourceGroup request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) ListForResourceGroupSender ¶
func (client RoleAssignmentsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error)
ListForResourceGroupSender sends the ListForResourceGroup request. The method will close the http.Response Body if it receives an error.
func (RoleAssignmentsClient) ListForResourceNextResults ¶
func (client RoleAssignmentsClient) ListForResourceNextResults(lastResults RoleAssignmentListResult) (result RoleAssignmentListResult, err error)
ListForResourceNextResults retrieves the next set of results, if any.
func (RoleAssignmentsClient) ListForResourcePreparer ¶
func (client RoleAssignmentsClient) ListForResourcePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (*http.Request, error)
ListForResourcePreparer prepares the ListForResource request.
func (RoleAssignmentsClient) ListForResourceResponder ¶
func (client RoleAssignmentsClient) ListForResourceResponder(resp *http.Response) (result RoleAssignmentListResult, err error)
ListForResourceResponder handles the response to the ListForResource request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) ListForResourceSender ¶
func (client RoleAssignmentsClient) ListForResourceSender(req *http.Request) (*http.Response, error)
ListForResourceSender sends the ListForResource request. The method will close the http.Response Body if it receives an error.
func (RoleAssignmentsClient) ListForScope ¶
func (client RoleAssignmentsClient) ListForScope(scope string, filter string) (result RoleAssignmentListResult, err error)
ListForScope gets role assignments of the scope.
scope is scope. filter is the filter to apply on the operation.
func (RoleAssignmentsClient) ListForScopeNextResults ¶
func (client RoleAssignmentsClient) ListForScopeNextResults(lastResults RoleAssignmentListResult) (result RoleAssignmentListResult, err error)
ListForScopeNextResults retrieves the next set of results, if any.
func (RoleAssignmentsClient) ListForScopePreparer ¶
func (client RoleAssignmentsClient) ListForScopePreparer(scope string, filter string) (*http.Request, error)
ListForScopePreparer prepares the ListForScope request.
func (RoleAssignmentsClient) ListForScopeResponder ¶
func (client RoleAssignmentsClient) ListForScopeResponder(resp *http.Response) (result RoleAssignmentListResult, err error)
ListForScopeResponder handles the response to the ListForScope request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) ListForScopeSender ¶
ListForScopeSender sends the ListForScope request. The method will close the http.Response Body if it receives an error.
func (RoleAssignmentsClient) ListNextResults ¶
func (client RoleAssignmentsClient) ListNextResults(lastResults RoleAssignmentListResult) (result RoleAssignmentListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (RoleAssignmentsClient) ListPreparer ¶
func (client RoleAssignmentsClient) ListPreparer(filter string) (*http.Request, error)
ListPreparer prepares the List request.
func (RoleAssignmentsClient) ListResponder ¶
func (client RoleAssignmentsClient) ListResponder(resp *http.Response) (result RoleAssignmentListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (RoleAssignmentsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type RoleDefinition ¶
type RoleDefinition struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Properties *RoleDefinitionProperties `json:"properties,omitempty"` }
RoleDefinition is role definition.
type RoleDefinitionFilter ¶
type RoleDefinitionFilter struct {
RoleName *string `json:"roleName,omitempty"`
}
RoleDefinitionFilter is role Definitions filter
type RoleDefinitionListResult ¶
type RoleDefinitionListResult struct { autorest.Response `json:"-"` Value *[]RoleDefinition `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
RoleDefinitionListResult is role definition list operation result.
func (RoleDefinitionListResult) RoleDefinitionListResultPreparer ¶
func (client RoleDefinitionListResult) RoleDefinitionListResultPreparer() (*http.Request, error)
RoleDefinitionListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type RoleDefinitionProperties ¶
type RoleDefinitionProperties struct { RoleName *string `json:"roleName,omitempty"` Description *string `json:"description,omitempty"` Type *string `json:"type,omitempty"` Permissions *[]Permission `json:"permissions,omitempty"` AssignableScopes *[]string `json:"assignableScopes,omitempty"` }
RoleDefinitionProperties is role definition properties.
type RoleDefinitionsClient ¶
type RoleDefinitionsClient struct {
ManagementClient
}
RoleDefinitionsClient is the client for the RoleDefinitions methods of the Authorization service.
func NewRoleDefinitionsClient ¶
func NewRoleDefinitionsClient(subscriptionID string) RoleDefinitionsClient
NewRoleDefinitionsClient creates an instance of the RoleDefinitionsClient client.
func NewRoleDefinitionsClientWithBaseURI ¶
func NewRoleDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) RoleDefinitionsClient
NewRoleDefinitionsClientWithBaseURI creates an instance of the RoleDefinitionsClient client.
func (RoleDefinitionsClient) CreateOrUpdate ¶
func (client RoleDefinitionsClient) CreateOrUpdate(scope string, roleDefinitionID string, roleDefinition RoleDefinition) (result RoleDefinition, err error)
CreateOrUpdate creates or updates a role definition.
scope is scope roleDefinitionID is role definition id. roleDefinition is role definition.
func (RoleDefinitionsClient) CreateOrUpdatePreparer ¶
func (client RoleDefinitionsClient) CreateOrUpdatePreparer(scope string, roleDefinitionID string, roleDefinition RoleDefinition) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (RoleDefinitionsClient) CreateOrUpdateResponder ¶
func (client RoleDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result RoleDefinition, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (RoleDefinitionsClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (RoleDefinitionsClient) Delete ¶
func (client RoleDefinitionsClient) Delete(scope string, roleDefinitionID string) (result RoleDefinition, err error)
Delete deletes the role definition.
scope is scope roleDefinitionID is role definition id.
func (RoleDefinitionsClient) DeletePreparer ¶
func (client RoleDefinitionsClient) DeletePreparer(scope string, roleDefinitionID string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (RoleDefinitionsClient) DeleteResponder ¶
func (client RoleDefinitionsClient) DeleteResponder(resp *http.Response) (result RoleDefinition, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (RoleDefinitionsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (RoleDefinitionsClient) Get ¶
func (client RoleDefinitionsClient) Get(scope string, roleDefinitionID string) (result RoleDefinition, err error)
Get get role definition by name (GUID).
scope is scope roleDefinitionID is role definition Id
func (RoleDefinitionsClient) GetByID ¶
func (client RoleDefinitionsClient) GetByID(roleDefinitionID string) (result RoleDefinition, err error)
GetByID get role definition by name (GUID).
roleDefinitionID is fully qualified role definition Id
func (RoleDefinitionsClient) GetByIDPreparer ¶
func (client RoleDefinitionsClient) GetByIDPreparer(roleDefinitionID string) (*http.Request, error)
GetByIDPreparer prepares the GetByID request.
func (RoleDefinitionsClient) GetByIDResponder ¶
func (client RoleDefinitionsClient) GetByIDResponder(resp *http.Response) (result RoleDefinition, err error)
GetByIDResponder handles the response to the GetByID request. The method always closes the http.Response Body.
func (RoleDefinitionsClient) GetByIDSender ¶
GetByIDSender sends the GetByID request. The method will close the http.Response Body if it receives an error.
func (RoleDefinitionsClient) GetPreparer ¶
func (client RoleDefinitionsClient) GetPreparer(scope string, roleDefinitionID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (RoleDefinitionsClient) GetResponder ¶
func (client RoleDefinitionsClient) GetResponder(resp *http.Response) (result RoleDefinition, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (RoleDefinitionsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (RoleDefinitionsClient) List ¶
func (client RoleDefinitionsClient) List(scope string, filter string) (result RoleDefinitionListResult, err error)
List get all role definitions that are applicable at scope and above. Use atScopeAndBelow filter to search below the given scope as well
scope is scope filter is the filter to apply on the operation.
func (RoleDefinitionsClient) ListNextResults ¶
func (client RoleDefinitionsClient) ListNextResults(lastResults RoleDefinitionListResult) (result RoleDefinitionListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (RoleDefinitionsClient) ListPreparer ¶
func (client RoleDefinitionsClient) ListPreparer(scope string, filter string) (*http.Request, error)
ListPreparer prepares the List request.
func (RoleDefinitionsClient) ListResponder ¶
func (client RoleDefinitionsClient) ListResponder(resp *http.Response) (result RoleDefinitionListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (RoleDefinitionsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.