azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization Index | Files | Directories

package authorization

import "github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization"

Package authorization implements the Azure ARM Authorization service API version .

Index

Package Files

classicadministrators.go client.go denyassignments.go globaladministrator.go models.go permissions.go provideroperationsmetadata.go roleassignments.go roledefinitions.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Authorization
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Authorization.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type ClassicAdministrator Uses

type ClassicAdministrator struct {
    // ID - The ID of the administrator.
    ID  *string `json:"id,omitempty"`
    // Name - The name of the administrator.
    Name *string `json:"name,omitempty"`
    // Type - The type of the administrator.
    Type *string `json:"type,omitempty"`
    // ClassicAdministratorProperties - Properties for the classic administrator.
    *ClassicAdministratorProperties `json:"properties,omitempty"`
}

ClassicAdministrator classic Administrators

func (ClassicAdministrator) MarshalJSON Uses

func (ca ClassicAdministrator) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClassicAdministrator.

func (*ClassicAdministrator) UnmarshalJSON Uses

func (ca *ClassicAdministrator) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ClassicAdministrator struct.

type ClassicAdministratorListResult Uses

type ClassicAdministratorListResult struct {
    autorest.Response `json:"-"`
    // Value - An array of administrators.
    Value *[]ClassicAdministrator `json:"value,omitempty"`
    // NextLink - The URL to use for getting the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

ClassicAdministratorListResult classicAdministrator list result information.

func (ClassicAdministratorListResult) IsEmpty Uses

func (calr ClassicAdministratorListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ClassicAdministratorListResultIterator Uses

type ClassicAdministratorListResultIterator struct {
    // contains filtered or unexported fields
}

ClassicAdministratorListResultIterator provides access to a complete listing of ClassicAdministrator values.

func NewClassicAdministratorListResultIterator Uses

func NewClassicAdministratorListResultIterator(page ClassicAdministratorListResultPage) ClassicAdministratorListResultIterator

Creates a new instance of the ClassicAdministratorListResultIterator type.

func (*ClassicAdministratorListResultIterator) Next Uses

func (iter *ClassicAdministratorListResultIterator) 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 (*ClassicAdministratorListResultIterator) NextWithContext Uses

func (iter *ClassicAdministratorListResultIterator) 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 (ClassicAdministratorListResultIterator) NotDone Uses

func (iter ClassicAdministratorListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ClassicAdministratorListResultIterator) Response Uses

func (iter ClassicAdministratorListResultIterator) Response() ClassicAdministratorListResult

Response returns the raw server response from the last page request.

func (ClassicAdministratorListResultIterator) Value Uses

func (iter ClassicAdministratorListResultIterator) Value() ClassicAdministrator

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ClassicAdministratorListResultPage Uses

type ClassicAdministratorListResultPage struct {
    // contains filtered or unexported fields
}

ClassicAdministratorListResultPage contains a page of ClassicAdministrator values.

func NewClassicAdministratorListResultPage Uses

func NewClassicAdministratorListResultPage(getNextPage func(context.Context, ClassicAdministratorListResult) (ClassicAdministratorListResult, error)) ClassicAdministratorListResultPage

Creates a new instance of the ClassicAdministratorListResultPage type.

func (*ClassicAdministratorListResultPage) Next Uses

func (page *ClassicAdministratorListResultPage) 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 (*ClassicAdministratorListResultPage) NextWithContext Uses

func (page *ClassicAdministratorListResultPage) 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 (ClassicAdministratorListResultPage) NotDone Uses

func (page ClassicAdministratorListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ClassicAdministratorListResultPage) Response Uses

func (page ClassicAdministratorListResultPage) Response() ClassicAdministratorListResult

Response returns the raw server response from the last page request.

func (ClassicAdministratorListResultPage) Values Uses

func (page ClassicAdministratorListResultPage) Values() []ClassicAdministrator

Values returns the slice of values for the current page or nil if there are no values.

type ClassicAdministratorProperties Uses

type ClassicAdministratorProperties struct {
    // EmailAddress - The email address of the administrator.
    EmailAddress *string `json:"emailAddress,omitempty"`
    // Role - The role of the administrator.
    Role *string `json:"role,omitempty"`
}

ClassicAdministratorProperties classic Administrator properties.

type ClassicAdministratorsClient Uses

type ClassicAdministratorsClient struct {
    BaseClient
}

ClassicAdministratorsClient is the client for the ClassicAdministrators methods of the Authorization service.

func NewClassicAdministratorsClient Uses

func NewClassicAdministratorsClient(subscriptionID string) ClassicAdministratorsClient

NewClassicAdministratorsClient creates an instance of the ClassicAdministratorsClient client.

func NewClassicAdministratorsClientWithBaseURI Uses

func NewClassicAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ClassicAdministratorsClient

NewClassicAdministratorsClientWithBaseURI creates an instance of the ClassicAdministratorsClient client.

func (ClassicAdministratorsClient) List Uses

func (client ClassicAdministratorsClient) List(ctx context.Context) (result ClassicAdministratorListResultPage, err error)

List gets service administrator, account administrator, and co-administrators for the subscription.

func (ClassicAdministratorsClient) ListComplete Uses

func (client ClassicAdministratorsClient) ListComplete(ctx context.Context) (result ClassicAdministratorListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ClassicAdministratorsClient) ListPreparer Uses

func (client ClassicAdministratorsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ClassicAdministratorsClient) ListResponder Uses

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 Uses

func (client ClassicAdministratorsClient) 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 DenyAssignment Uses

type DenyAssignment struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; The deny assignment ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The deny assignment name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The deny assignment type.
    Type *string `json:"type,omitempty"`
    // DenyAssignmentProperties - Deny assignment properties.
    *DenyAssignmentProperties `json:"properties,omitempty"`
}

DenyAssignment deny Assignment

func (DenyAssignment) MarshalJSON Uses

func (da DenyAssignment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DenyAssignment.

func (*DenyAssignment) UnmarshalJSON Uses

func (da *DenyAssignment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DenyAssignment struct.

type DenyAssignmentFilter Uses

type DenyAssignmentFilter struct {
    // DenyAssignmentName - Return deny assignment with specified name.
    DenyAssignmentName *string `json:"denyAssignmentName,omitempty"`
    // PrincipalID - Return all deny assignments where the specified principal is listed in the principals list of deny assignments.
    PrincipalID *string `json:"principalId,omitempty"`
    // GdprExportPrincipalID - Return all deny assignments where the specified principal is listed either in the principals list or exclude principals list of deny assignments.
    GdprExportPrincipalID *string `json:"gdprExportPrincipalId,omitempty"`
}

DenyAssignmentFilter deny Assignments filter

type DenyAssignmentListResult Uses

type DenyAssignmentListResult struct {
    autorest.Response `json:"-"`
    // Value - Deny assignment list.
    Value *[]DenyAssignment `json:"value,omitempty"`
    // NextLink - The URL to use for getting the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

DenyAssignmentListResult deny assignment list operation result.

func (DenyAssignmentListResult) IsEmpty Uses

func (dalr DenyAssignmentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DenyAssignmentListResultIterator Uses

type DenyAssignmentListResultIterator struct {
    // contains filtered or unexported fields
}

DenyAssignmentListResultIterator provides access to a complete listing of DenyAssignment values.

func NewDenyAssignmentListResultIterator Uses

func NewDenyAssignmentListResultIterator(page DenyAssignmentListResultPage) DenyAssignmentListResultIterator

Creates a new instance of the DenyAssignmentListResultIterator type.

func (*DenyAssignmentListResultIterator) Next Uses

func (iter *DenyAssignmentListResultIterator) 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 (*DenyAssignmentListResultIterator) NextWithContext Uses

func (iter *DenyAssignmentListResultIterator) 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 (DenyAssignmentListResultIterator) NotDone Uses

func (iter DenyAssignmentListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DenyAssignmentListResultIterator) Response Uses

func (iter DenyAssignmentListResultIterator) Response() DenyAssignmentListResult

Response returns the raw server response from the last page request.

func (DenyAssignmentListResultIterator) Value Uses

func (iter DenyAssignmentListResultIterator) Value() DenyAssignment

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DenyAssignmentListResultPage Uses

type DenyAssignmentListResultPage struct {
    // contains filtered or unexported fields
}

DenyAssignmentListResultPage contains a page of DenyAssignment values.

func NewDenyAssignmentListResultPage Uses

func NewDenyAssignmentListResultPage(getNextPage func(context.Context, DenyAssignmentListResult) (DenyAssignmentListResult, error)) DenyAssignmentListResultPage

Creates a new instance of the DenyAssignmentListResultPage type.

func (*DenyAssignmentListResultPage) Next Uses

func (page *DenyAssignmentListResultPage) 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 (*DenyAssignmentListResultPage) NextWithContext Uses

func (page *DenyAssignmentListResultPage) 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 (DenyAssignmentListResultPage) NotDone Uses

func (page DenyAssignmentListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DenyAssignmentListResultPage) Response Uses

func (page DenyAssignmentListResultPage) Response() DenyAssignmentListResult

Response returns the raw server response from the last page request.

func (DenyAssignmentListResultPage) Values Uses

func (page DenyAssignmentListResultPage) Values() []DenyAssignment

Values returns the slice of values for the current page or nil if there are no values.

type DenyAssignmentPermission Uses

type DenyAssignmentPermission struct {
    // Actions - Actions to which the deny assignment does not grant access.
    Actions *[]string `json:"actions,omitempty"`
    // NotActions - Actions to exclude from that the deny assignment does not grant access.
    NotActions *[]string `json:"notActions,omitempty"`
    // DataActions - Data actions to which the deny assignment does not grant access.
    DataActions *[]string `json:"dataActions,omitempty"`
    // NotDataActions - Data actions to exclude from that the deny assignment does not grant access.
    NotDataActions *[]string `json:"notDataActions,omitempty"`
}

DenyAssignmentPermission deny assignment permissions.

type DenyAssignmentProperties Uses

type DenyAssignmentProperties struct {
    // DenyAssignmentName - The display name of the deny assignment.
    DenyAssignmentName *string `json:"denyAssignmentName,omitempty"`
    // Description - The description of the deny assignment.
    Description *string `json:"description,omitempty"`
    // Permissions - An array of permissions that are denied by the deny assignment.
    Permissions *[]DenyAssignmentPermission `json:"permissions,omitempty"`
    // Scope - The deny assignment scope.
    Scope *string `json:"scope,omitempty"`
    // DoNotApplyToChildScopes - Determines if the deny assignment applies to child scopes. Default value is false.
    DoNotApplyToChildScopes *bool `json:"doNotApplyToChildScopes,omitempty"`
    // Principals - Array of principals to which the deny assignment applies.
    Principals *[]Principal `json:"principals,omitempty"`
    // ExcludePrincipals - Array of principals to which the deny assignment does not apply.
    ExcludePrincipals *[]Principal `json:"excludePrincipals,omitempty"`
    // IsSystemProtected - Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
    IsSystemProtected *bool `json:"isSystemProtected,omitempty"`
}

DenyAssignmentProperties deny assignment properties.

type DenyAssignmentsClient Uses

type DenyAssignmentsClient struct {
    BaseClient
}

DenyAssignmentsClient is the client for the DenyAssignments methods of the Authorization service.

func NewDenyAssignmentsClient Uses

func NewDenyAssignmentsClient(subscriptionID string) DenyAssignmentsClient

NewDenyAssignmentsClient creates an instance of the DenyAssignmentsClient client.

func NewDenyAssignmentsClientWithBaseURI Uses

func NewDenyAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) DenyAssignmentsClient

NewDenyAssignmentsClientWithBaseURI creates an instance of the DenyAssignmentsClient client.

func (DenyAssignmentsClient) Get Uses

func (client DenyAssignmentsClient) Get(ctx context.Context, scope string, denyAssignmentID string) (result DenyAssignment, err error)

Get get the specified deny assignment. Parameters: scope - the scope of the deny assignment. denyAssignmentID - the ID of the deny assignment to get.

func (DenyAssignmentsClient) GetByID Uses

func (client DenyAssignmentsClient) GetByID(ctx context.Context, denyAssignmentID string) (result DenyAssignment, err error)

GetByID gets a deny assignment by ID. Parameters: denyAssignmentID - the fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments.

func (DenyAssignmentsClient) GetByIDPreparer Uses

func (client DenyAssignmentsClient) GetByIDPreparer(ctx context.Context, denyAssignmentID string) (*http.Request, error)

GetByIDPreparer prepares the GetByID request.

func (DenyAssignmentsClient) GetByIDResponder Uses

func (client DenyAssignmentsClient) GetByIDResponder(resp *http.Response) (result DenyAssignment, err error)

GetByIDResponder handles the response to the GetByID request. The method always closes the http.Response Body.

func (DenyAssignmentsClient) GetByIDSender Uses

func (client DenyAssignmentsClient) GetByIDSender(req *http.Request) (*http.Response, error)

GetByIDSender sends the GetByID request. The method will close the http.Response Body if it receives an error.

func (DenyAssignmentsClient) GetPreparer Uses

func (client DenyAssignmentsClient) GetPreparer(ctx context.Context, scope string, denyAssignmentID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DenyAssignmentsClient) GetResponder Uses

func (client DenyAssignmentsClient) GetResponder(resp *http.Response) (result DenyAssignment, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DenyAssignmentsClient) GetSender Uses

func (client DenyAssignmentsClient) 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 (DenyAssignmentsClient) List Uses

func (client DenyAssignmentsClient) List(ctx context.Context, filter string) (result DenyAssignmentListResultPage, err error)

List gets all deny assignments for the subscription. Parameters: filter - the filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.

func (DenyAssignmentsClient) ListComplete Uses

func (client DenyAssignmentsClient) ListComplete(ctx context.Context, filter string) (result DenyAssignmentListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (DenyAssignmentsClient) ListForResource Uses

func (client DenyAssignmentsClient) ListForResource(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result DenyAssignmentListResultPage, err error)

ListForResource gets deny assignments for a resource. Parameters: resourceGroupName - the name of the resource group. resourceProviderNamespace - the namespace of the resource provider. parentResourcePath - the parent resource identity. resourceType - the resource type of the resource. resourceName - the name of the resource to get deny assignments for. filter - the filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.

func (DenyAssignmentsClient) ListForResourceComplete Uses

func (client DenyAssignmentsClient) ListForResourceComplete(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result DenyAssignmentListResultIterator, err error)

ListForResourceComplete enumerates all values, automatically crossing page boundaries as required.

func (DenyAssignmentsClient) ListForResourceGroup Uses

func (client DenyAssignmentsClient) ListForResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result DenyAssignmentListResultPage, err error)

ListForResourceGroup gets deny assignments for a resource group. Parameters: resourceGroupName - the name of the resource group. filter - the filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.

func (DenyAssignmentsClient) ListForResourceGroupComplete Uses

func (client DenyAssignmentsClient) ListForResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string) (result DenyAssignmentListResultIterator, err error)

ListForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (DenyAssignmentsClient) ListForResourceGroupPreparer Uses

func (client DenyAssignmentsClient) ListForResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error)

ListForResourceGroupPreparer prepares the ListForResourceGroup request.

func (DenyAssignmentsClient) ListForResourceGroupResponder Uses

func (client DenyAssignmentsClient) ListForResourceGroupResponder(resp *http.Response) (result DenyAssignmentListResult, err error)

ListForResourceGroupResponder handles the response to the ListForResourceGroup request. The method always closes the http.Response Body.

func (DenyAssignmentsClient) ListForResourceGroupSender Uses

func (client DenyAssignmentsClient) 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 (DenyAssignmentsClient) ListForResourcePreparer Uses

func (client DenyAssignmentsClient) ListForResourcePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (*http.Request, error)

ListForResourcePreparer prepares the ListForResource request.

func (DenyAssignmentsClient) ListForResourceResponder Uses

func (client DenyAssignmentsClient) ListForResourceResponder(resp *http.Response) (result DenyAssignmentListResult, err error)

ListForResourceResponder handles the response to the ListForResource request. The method always closes the http.Response Body.

func (DenyAssignmentsClient) ListForResourceSender Uses

func (client DenyAssignmentsClient) 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 (DenyAssignmentsClient) ListForScope Uses

func (client DenyAssignmentsClient) ListForScope(ctx context.Context, scope string, filter string) (result DenyAssignmentListResultPage, err error)

ListForScope gets deny assignments for a scope. Parameters: scope - the scope of the deny assignments. filter - the filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.

func (DenyAssignmentsClient) ListForScopeComplete Uses

func (client DenyAssignmentsClient) ListForScopeComplete(ctx context.Context, scope string, filter string) (result DenyAssignmentListResultIterator, err error)

ListForScopeComplete enumerates all values, automatically crossing page boundaries as required.

func (DenyAssignmentsClient) ListForScopePreparer Uses

func (client DenyAssignmentsClient) ListForScopePreparer(ctx context.Context, scope string, filter string) (*http.Request, error)

ListForScopePreparer prepares the ListForScope request.

func (DenyAssignmentsClient) ListForScopeResponder Uses

func (client DenyAssignmentsClient) ListForScopeResponder(resp *http.Response) (result DenyAssignmentListResult, err error)

ListForScopeResponder handles the response to the ListForScope request. The method always closes the http.Response Body.

func (DenyAssignmentsClient) ListForScopeSender Uses

func (client DenyAssignmentsClient) ListForScopeSender(req *http.Request) (*http.Response, error)

ListForScopeSender sends the ListForScope request. The method will close the http.Response Body if it receives an error.

func (DenyAssignmentsClient) ListPreparer Uses

func (client DenyAssignmentsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (DenyAssignmentsClient) ListResponder Uses

func (client DenyAssignmentsClient) ListResponder(resp *http.Response) (result DenyAssignmentListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DenyAssignmentsClient) ListSender Uses

func (client DenyAssignmentsClient) 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 GlobalAdministratorClient Uses

type GlobalAdministratorClient struct {
    BaseClient
}

GlobalAdministratorClient is the client for the GlobalAdministrator methods of the Authorization service.

func NewGlobalAdministratorClient Uses

func NewGlobalAdministratorClient(subscriptionID string) GlobalAdministratorClient

NewGlobalAdministratorClient creates an instance of the GlobalAdministratorClient client.

func NewGlobalAdministratorClientWithBaseURI Uses

func NewGlobalAdministratorClientWithBaseURI(baseURI string, subscriptionID string) GlobalAdministratorClient

NewGlobalAdministratorClientWithBaseURI creates an instance of the GlobalAdministratorClient client.

func (GlobalAdministratorClient) ElevateAccess Uses

func (client GlobalAdministratorClient) ElevateAccess(ctx context.Context) (result autorest.Response, err error)

ElevateAccess elevates access for a Global Administrator.

func (GlobalAdministratorClient) ElevateAccessPreparer Uses

func (client GlobalAdministratorClient) ElevateAccessPreparer(ctx context.Context) (*http.Request, error)

ElevateAccessPreparer prepares the ElevateAccess request.

func (GlobalAdministratorClient) ElevateAccessResponder Uses

func (client GlobalAdministratorClient) ElevateAccessResponder(resp *http.Response) (result autorest.Response, err error)

ElevateAccessResponder handles the response to the ElevateAccess request. The method always closes the http.Response Body.

func (GlobalAdministratorClient) ElevateAccessSender Uses

func (client GlobalAdministratorClient) ElevateAccessSender(req *http.Request) (*http.Response, error)

ElevateAccessSender sends the ElevateAccess request. The method will close the http.Response Body if it receives an error.

type Permission Uses

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 PermissionGetResult Uses

type PermissionGetResult struct {
    autorest.Response `json:"-"`
    // Value - An array of permissions.
    Value *[]Permission `json:"value,omitempty"`
    // NextLink - The URL to use for getting the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

PermissionGetResult permissions information.

func (PermissionGetResult) IsEmpty Uses

func (pgr PermissionGetResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PermissionGetResultIterator Uses

type PermissionGetResultIterator struct {
    // contains filtered or unexported fields
}

PermissionGetResultIterator provides access to a complete listing of Permission values.

func NewPermissionGetResultIterator Uses

func NewPermissionGetResultIterator(page PermissionGetResultPage) PermissionGetResultIterator

Creates a new instance of the PermissionGetResultIterator type.

func (*PermissionGetResultIterator) Next Uses

func (iter *PermissionGetResultIterator) 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 (*PermissionGetResultIterator) NextWithContext Uses

func (iter *PermissionGetResultIterator) 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 (PermissionGetResultIterator) NotDone Uses

func (iter PermissionGetResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (PermissionGetResultIterator) Response Uses

func (iter PermissionGetResultIterator) Response() PermissionGetResult

Response returns the raw server response from the last page request.

func (PermissionGetResultIterator) Value Uses

func (iter PermissionGetResultIterator) Value() Permission

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PermissionGetResultPage Uses

type PermissionGetResultPage struct {
    // contains filtered or unexported fields
}

PermissionGetResultPage contains a page of Permission values.

func NewPermissionGetResultPage Uses

func NewPermissionGetResultPage(getNextPage func(context.Context, PermissionGetResult) (PermissionGetResult, error)) PermissionGetResultPage

Creates a new instance of the PermissionGetResultPage type.

func (*PermissionGetResultPage) Next Uses

func (page *PermissionGetResultPage) 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 (*PermissionGetResultPage) NextWithContext Uses

func (page *PermissionGetResultPage) 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 (PermissionGetResultPage) NotDone Uses

func (page PermissionGetResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PermissionGetResultPage) Response Uses

func (page PermissionGetResultPage) Response() PermissionGetResult

Response returns the raw server response from the last page request.

func (PermissionGetResultPage) Values Uses

func (page PermissionGetResultPage) Values() []Permission

Values returns the slice of values for the current page or nil if there are no values.

type PermissionsClient Uses

type PermissionsClient struct {
    BaseClient
}

PermissionsClient is the client for the Permissions methods of the Authorization service.

func NewPermissionsClient Uses

func NewPermissionsClient(subscriptionID string) PermissionsClient

NewPermissionsClient creates an instance of the PermissionsClient client.

func NewPermissionsClientWithBaseURI Uses

func NewPermissionsClientWithBaseURI(baseURI string, subscriptionID string) PermissionsClient

NewPermissionsClientWithBaseURI creates an instance of the PermissionsClient client.

func (PermissionsClient) ListForResource Uses

func (client PermissionsClient) ListForResource(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result PermissionGetResultPage, err error)

ListForResource gets all permissions the caller has for a resource. Parameters: resourceGroupName - the name of the resource group. resourceProviderNamespace - the namespace of the resource provider. parentResourcePath - the parent resource identity. resourceType - the resource type of the resource. resourceName - the name of the resource to get the permissions for.

func (PermissionsClient) ListForResourceComplete Uses

func (client PermissionsClient) ListForResourceComplete(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result PermissionGetResultIterator, err error)

ListForResourceComplete enumerates all values, automatically crossing page boundaries as required.

func (PermissionsClient) ListForResourceGroup Uses

func (client PermissionsClient) ListForResourceGroup(ctx context.Context, resourceGroupName string) (result PermissionGetResultPage, err error)

ListForResourceGroup gets all permissions the caller has for a resource group. Parameters: resourceGroupName - the name of the resource group.

func (PermissionsClient) ListForResourceGroupComplete Uses

func (client PermissionsClient) ListForResourceGroupComplete(ctx context.Context, resourceGroupName string) (result PermissionGetResultIterator, err error)

ListForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (PermissionsClient) ListForResourceGroupPreparer Uses

func (client PermissionsClient) ListForResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListForResourceGroupPreparer prepares the ListForResourceGroup request.

func (PermissionsClient) ListForResourceGroupResponder Uses

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 Uses

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) ListForResourcePreparer Uses

func (client PermissionsClient) ListForResourcePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error)

ListForResourcePreparer prepares the ListForResource request.

func (PermissionsClient) ListForResourceResponder Uses

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 Uses

func (client PermissionsClient) 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.

type Principal Uses

type Principal struct {
    // ID - READ-ONLY; Object ID of the Azure AD principal (user, group, or service principal) to which the deny assignment applies. An empty guid '00000000-0000-0000-0000-000000000000' as principal id and principal type as 'Everyone' represents all users, groups and service principals.
    ID  *string `json:"id,omitempty"`
    // Type - READ-ONLY; Type of object represented by principal id (user, group, or service principal). An empty guid '00000000-0000-0000-0000-000000000000' as principal id and principal type as 'Everyone' represents all users, groups and service principals.
    Type *string `json:"type,omitempty"`
}

Principal deny assignment principal.

type PrincipalType Uses

type PrincipalType string

PrincipalType enumerates the values for principal type.

const (
    // Application ...
    Application PrincipalType = "Application"
    // DirectoryObjectOrGroup ...
    DirectoryObjectOrGroup PrincipalType = "DirectoryObjectOrGroup"
    // DirectoryRoleTemplate ...
    DirectoryRoleTemplate PrincipalType = "DirectoryRoleTemplate"
    // Everyone ...
    Everyone PrincipalType = "Everyone"
    // ForeignGroup ...
    ForeignGroup PrincipalType = "ForeignGroup"
    // Group ...
    Group PrincipalType = "Group"
    // MSI ...
    MSI PrincipalType = "MSI"
    // ServicePrincipal ...
    ServicePrincipal PrincipalType = "ServicePrincipal"
    // Unknown ...
    Unknown PrincipalType = "Unknown"
    // User ...
    User PrincipalType = "User"
)

func PossiblePrincipalTypeValues Uses

func PossiblePrincipalTypeValues() []PrincipalType

PossiblePrincipalTypeValues returns an array of possible values for the PrincipalType const type.

type ProviderOperation Uses

type ProviderOperation struct {
    // Name - The operation name.
    Name *string `json:"name,omitempty"`
    // DisplayName - The operation display name.
    DisplayName *string `json:"displayName,omitempty"`
    // Description - The operation description.
    Description *string `json:"description,omitempty"`
    // Origin - The operation origin.
    Origin *string `json:"origin,omitempty"`
    // Properties - The operation properties.
    Properties interface{} `json:"properties,omitempty"`
    // IsDataAction - The dataAction flag to specify the operation type.
    IsDataAction *bool `json:"isDataAction,omitempty"`
}

ProviderOperation operation

type ProviderOperationsMetadata Uses

type ProviderOperationsMetadata struct {
    autorest.Response `json:"-"`
    // ID - The provider id.
    ID  *string `json:"id,omitempty"`
    // Name - The provider name.
    Name *string `json:"name,omitempty"`
    // Type - The provider type.
    Type *string `json:"type,omitempty"`
    // DisplayName - The provider display name.
    DisplayName *string `json:"displayName,omitempty"`
    // ResourceTypes - The provider resource types
    ResourceTypes *[]ResourceType `json:"resourceTypes,omitempty"`
    // Operations - The provider operations.
    Operations *[]ProviderOperation `json:"operations,omitempty"`
}

ProviderOperationsMetadata provider Operations metadata

type ProviderOperationsMetadataClient Uses

type ProviderOperationsMetadataClient struct {
    BaseClient
}

ProviderOperationsMetadataClient is the client for the ProviderOperationsMetadata methods of the Authorization service.

func NewProviderOperationsMetadataClient Uses

func NewProviderOperationsMetadataClient(subscriptionID string) ProviderOperationsMetadataClient

NewProviderOperationsMetadataClient creates an instance of the ProviderOperationsMetadataClient client.

func NewProviderOperationsMetadataClientWithBaseURI Uses

func NewProviderOperationsMetadataClientWithBaseURI(baseURI string, subscriptionID string) ProviderOperationsMetadataClient

NewProviderOperationsMetadataClientWithBaseURI creates an instance of the ProviderOperationsMetadataClient client.

func (ProviderOperationsMetadataClient) Get Uses

func (client ProviderOperationsMetadataClient) Get(ctx context.Context, resourceProviderNamespace string, expand string) (result ProviderOperationsMetadata, err error)

Get gets provider operations metadata for the specified resource provider. Parameters: resourceProviderNamespace - the namespace of the resource provider. expand - specifies whether to expand the values.

func (ProviderOperationsMetadataClient) GetPreparer Uses

func (client ProviderOperationsMetadataClient) GetPreparer(ctx context.Context, resourceProviderNamespace string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProviderOperationsMetadataClient) GetResponder Uses

func (client ProviderOperationsMetadataClient) 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 (ProviderOperationsMetadataClient) GetSender Uses

func (client ProviderOperationsMetadataClient) 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 (ProviderOperationsMetadataClient) List Uses

func (client ProviderOperationsMetadataClient) List(ctx context.Context, expand string) (result ProviderOperationsMetadataListResultPage, err error)

List gets provider operations metadata for all resource providers. Parameters: expand - specifies whether to expand the values.

func (ProviderOperationsMetadataClient) ListComplete Uses

func (client ProviderOperationsMetadataClient) ListComplete(ctx context.Context, expand string) (result ProviderOperationsMetadataListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ProviderOperationsMetadataClient) ListPreparer Uses

func (client ProviderOperationsMetadataClient) ListPreparer(ctx context.Context, expand string) (*http.Request, error)

ListPreparer prepares the List request.

func (ProviderOperationsMetadataClient) ListResponder Uses

func (client ProviderOperationsMetadataClient) 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 (ProviderOperationsMetadataClient) ListSender Uses

func (client ProviderOperationsMetadataClient) 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 ProviderOperationsMetadataListResult Uses

type ProviderOperationsMetadataListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of providers.
    Value *[]ProviderOperationsMetadata `json:"value,omitempty"`
    // NextLink - The URL to use for getting the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

ProviderOperationsMetadataListResult provider operations metadata list

func (ProviderOperationsMetadataListResult) IsEmpty Uses

func (pomlr ProviderOperationsMetadataListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProviderOperationsMetadataListResultIterator Uses

type ProviderOperationsMetadataListResultIterator struct {
    // contains filtered or unexported fields
}

ProviderOperationsMetadataListResultIterator provides access to a complete listing of ProviderOperationsMetadata values.

func NewProviderOperationsMetadataListResultIterator Uses

func NewProviderOperationsMetadataListResultIterator(page ProviderOperationsMetadataListResultPage) ProviderOperationsMetadataListResultIterator

Creates a new instance of the ProviderOperationsMetadataListResultIterator type.

func (*ProviderOperationsMetadataListResultIterator) Next Uses

func (iter *ProviderOperationsMetadataListResultIterator) 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 (*ProviderOperationsMetadataListResultIterator) NextWithContext Uses

func (iter *ProviderOperationsMetadataListResultIterator) 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 (ProviderOperationsMetadataListResultIterator) NotDone Uses

func (iter ProviderOperationsMetadataListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ProviderOperationsMetadataListResultIterator) Response Uses

func (iter ProviderOperationsMetadataListResultIterator) Response() ProviderOperationsMetadataListResult

Response returns the raw server response from the last page request.

func (ProviderOperationsMetadataListResultIterator) Value Uses

func (iter ProviderOperationsMetadataListResultIterator) Value() ProviderOperationsMetadata

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ProviderOperationsMetadataListResultPage Uses

type ProviderOperationsMetadataListResultPage struct {
    // contains filtered or unexported fields
}

ProviderOperationsMetadataListResultPage contains a page of ProviderOperationsMetadata values.

func NewProviderOperationsMetadataListResultPage Uses

func NewProviderOperationsMetadataListResultPage(getNextPage func(context.Context, ProviderOperationsMetadataListResult) (ProviderOperationsMetadataListResult, error)) ProviderOperationsMetadataListResultPage

Creates a new instance of the ProviderOperationsMetadataListResultPage type.

func (*ProviderOperationsMetadataListResultPage) Next Uses

func (page *ProviderOperationsMetadataListResultPage) 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 (*ProviderOperationsMetadataListResultPage) NextWithContext Uses

func (page *ProviderOperationsMetadataListResultPage) 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 (ProviderOperationsMetadataListResultPage) NotDone Uses

func (page ProviderOperationsMetadataListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ProviderOperationsMetadataListResultPage) Response Uses

func (page ProviderOperationsMetadataListResultPage) Response() ProviderOperationsMetadataListResult

Response returns the raw server response from the last page request.

func (ProviderOperationsMetadataListResultPage) Values Uses

func (page ProviderOperationsMetadataListResultPage) Values() []ProviderOperationsMetadata

Values returns the slice of values for the current page or nil if there are no values.

type ResourceType Uses

type ResourceType struct {
    // Name - The resource type name.
    Name *string `json:"name,omitempty"`
    // DisplayName - The resource type display name.
    DisplayName *string `json:"displayName,omitempty"`
    // Operations - The resource type operations.
    Operations *[]ProviderOperation `json:"operations,omitempty"`
}

ResourceType resource Type

type RoleAssignment Uses

type RoleAssignment struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; The role assignment ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The role assignment name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The role assignment type.
    Type *string `json:"type,omitempty"`
    // RoleAssignmentPropertiesWithScope - Role assignment properties.
    *RoleAssignmentPropertiesWithScope `json:"properties,omitempty"`
}

RoleAssignment role Assignments

func (RoleAssignment) MarshalJSON Uses

func (ra RoleAssignment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleAssignment.

func (*RoleAssignment) UnmarshalJSON Uses

func (ra *RoleAssignment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleAssignment struct.

type RoleAssignmentCreateParameters Uses

type RoleAssignmentCreateParameters struct {
    // RoleAssignmentProperties - Role assignment properties.
    *RoleAssignmentProperties `json:"properties,omitempty"`
}

RoleAssignmentCreateParameters role assignment create parameters.

func (RoleAssignmentCreateParameters) MarshalJSON Uses

func (racp RoleAssignmentCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleAssignmentCreateParameters.

func (*RoleAssignmentCreateParameters) UnmarshalJSON Uses

func (racp *RoleAssignmentCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleAssignmentCreateParameters struct.

type RoleAssignmentFilter Uses

type RoleAssignmentFilter struct {
    // PrincipalID - Returns role assignment of the specific principal.
    PrincipalID *string `json:"principalId,omitempty"`
    // CanDelegate - The Delegation flag for the role assignment
    CanDelegate *bool `json:"canDelegate,omitempty"`
}

RoleAssignmentFilter role Assignments filter

type RoleAssignmentListResult Uses

type RoleAssignmentListResult struct {
    autorest.Response `json:"-"`
    // Value - Role assignment list.
    Value *[]RoleAssignment `json:"value,omitempty"`
    // NextLink - The URL to use for getting the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

RoleAssignmentListResult role assignment list operation result.

func (RoleAssignmentListResult) IsEmpty Uses

func (ralr RoleAssignmentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RoleAssignmentListResultIterator Uses

type RoleAssignmentListResultIterator struct {
    // contains filtered or unexported fields
}

RoleAssignmentListResultIterator provides access to a complete listing of RoleAssignment values.

func NewRoleAssignmentListResultIterator Uses

func NewRoleAssignmentListResultIterator(page RoleAssignmentListResultPage) RoleAssignmentListResultIterator

Creates a new instance of the RoleAssignmentListResultIterator type.

func (*RoleAssignmentListResultIterator) Next Uses

func (iter *RoleAssignmentListResultIterator) 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 (*RoleAssignmentListResultIterator) NextWithContext Uses

func (iter *RoleAssignmentListResultIterator) 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 (RoleAssignmentListResultIterator) NotDone Uses

func (iter RoleAssignmentListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (RoleAssignmentListResultIterator) Response Uses

func (iter RoleAssignmentListResultIterator) Response() RoleAssignmentListResult

Response returns the raw server response from the last page request.

func (RoleAssignmentListResultIterator) Value Uses

func (iter RoleAssignmentListResultIterator) Value() RoleAssignment

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RoleAssignmentListResultPage Uses

type RoleAssignmentListResultPage struct {
    // contains filtered or unexported fields
}

RoleAssignmentListResultPage contains a page of RoleAssignment values.

func NewRoleAssignmentListResultPage Uses

func NewRoleAssignmentListResultPage(getNextPage func(context.Context, RoleAssignmentListResult) (RoleAssignmentListResult, error)) RoleAssignmentListResultPage

Creates a new instance of the RoleAssignmentListResultPage type.

func (*RoleAssignmentListResultPage) Next Uses

func (page *RoleAssignmentListResultPage) 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 (*RoleAssignmentListResultPage) NextWithContext Uses

func (page *RoleAssignmentListResultPage) 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 (RoleAssignmentListResultPage) NotDone Uses

func (page RoleAssignmentListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RoleAssignmentListResultPage) Response Uses

func (page RoleAssignmentListResultPage) Response() RoleAssignmentListResult

Response returns the raw server response from the last page request.

func (RoleAssignmentListResultPage) Values Uses

func (page RoleAssignmentListResultPage) Values() []RoleAssignment

Values returns the slice of values for the current page or nil if there are no values.

type RoleAssignmentProperties Uses

type RoleAssignmentProperties struct {
    // RoleDefinitionID - The role definition ID used in the role assignment.
    RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
    // PrincipalID - The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group.
    PrincipalID *string `json:"principalId,omitempty"`
    // PrincipalType - The principal type of the assigned principal ID. Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone'
    PrincipalType PrincipalType `json:"principalType,omitempty"`
    // CanDelegate - The delegation flag used for creating a role assignment
    CanDelegate *bool `json:"canDelegate,omitempty"`
}

RoleAssignmentProperties role assignment properties.

type RoleAssignmentPropertiesWithScope Uses

type RoleAssignmentPropertiesWithScope struct {
    // Scope - The role assignment scope.
    Scope *string `json:"scope,omitempty"`
    // RoleDefinitionID - The role definition ID.
    RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
    // PrincipalID - The principal ID.
    PrincipalID *string `json:"principalId,omitempty"`
    // PrincipalType - The principal type of the assigned principal ID. Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone'
    PrincipalType PrincipalType `json:"principalType,omitempty"`
    // CanDelegate - The Delegation flag for the role assignment
    CanDelegate *bool `json:"canDelegate,omitempty"`
}

RoleAssignmentPropertiesWithScope role assignment properties with scope.

type RoleAssignmentsClient Uses

type RoleAssignmentsClient struct {
    BaseClient
}

RoleAssignmentsClient is the client for the RoleAssignments methods of the Authorization service.

func NewRoleAssignmentsClient Uses

func NewRoleAssignmentsClient(subscriptionID string) RoleAssignmentsClient

NewRoleAssignmentsClient creates an instance of the RoleAssignmentsClient client.

func NewRoleAssignmentsClientWithBaseURI Uses

func NewRoleAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) RoleAssignmentsClient

NewRoleAssignmentsClientWithBaseURI creates an instance of the RoleAssignmentsClient client.

func (RoleAssignmentsClient) Create Uses

func (client RoleAssignmentsClient) Create(ctx context.Context, scope string, roleAssignmentName string, parameters RoleAssignmentCreateParameters) (result RoleAssignment, err error)

Create creates a role assignment. Parameters: scope - the scope of the role assignment to create. The scope can be any REST resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource. roleAssignmentName - the name of the role assignment to create. It can be any valid GUID. parameters - parameters for the role assignment.

func (RoleAssignmentsClient) CreateByID Uses

func (client RoleAssignmentsClient) CreateByID(ctx context.Context, roleID string, parameters RoleAssignmentCreateParameters) (result RoleAssignment, err error)

CreateByID creates a role assignment by ID. Parameters: roleID - the ID of the role assignment to create. parameters - parameters for the role assignment.

func (RoleAssignmentsClient) CreateByIDPreparer Uses

func (client RoleAssignmentsClient) CreateByIDPreparer(ctx context.Context, roleID string, parameters RoleAssignmentCreateParameters) (*http.Request, error)

CreateByIDPreparer prepares the CreateByID request.

func (RoleAssignmentsClient) CreateByIDResponder Uses

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 Uses

func (client RoleAssignmentsClient) CreateByIDSender(req *http.Request) (*http.Response, error)

CreateByIDSender sends the CreateByID request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) CreatePreparer Uses

func (client RoleAssignmentsClient) CreatePreparer(ctx context.Context, scope string, roleAssignmentName string, parameters RoleAssignmentCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (RoleAssignmentsClient) CreateResponder Uses

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 Uses

func (client RoleAssignmentsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) Delete Uses

func (client RoleAssignmentsClient) Delete(ctx context.Context, scope string, roleAssignmentName string) (result RoleAssignment, err error)

Delete deletes a role assignment. Parameters: scope - the scope of the role assignment to delete. roleAssignmentName - the name of the role assignment to delete.

func (RoleAssignmentsClient) DeleteByID Uses

func (client RoleAssignmentsClient) DeleteByID(ctx context.Context, roleID string) (result RoleAssignment, err error)

DeleteByID deletes a role assignment. Parameters: roleID - the ID of the role assignment to delete.

func (RoleAssignmentsClient) DeleteByIDPreparer Uses

func (client RoleAssignmentsClient) DeleteByIDPreparer(ctx context.Context, roleID string) (*http.Request, error)

DeleteByIDPreparer prepares the DeleteByID request.

func (RoleAssignmentsClient) DeleteByIDResponder Uses

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 Uses

func (client RoleAssignmentsClient) DeleteByIDSender(req *http.Request) (*http.Response, error)

DeleteByIDSender sends the DeleteByID request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) DeletePreparer Uses

func (client RoleAssignmentsClient) DeletePreparer(ctx context.Context, scope string, roleAssignmentName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (RoleAssignmentsClient) DeleteResponder Uses

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 Uses

func (client RoleAssignmentsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) Get Uses

func (client RoleAssignmentsClient) Get(ctx context.Context, scope string, roleAssignmentName string) (result RoleAssignment, err error)

Get get the specified role assignment. Parameters: scope - the scope of the role assignment. roleAssignmentName - the name of the role assignment to get.

func (RoleAssignmentsClient) GetByID Uses

func (client RoleAssignmentsClient) GetByID(ctx context.Context, roleID string) (result RoleAssignment, err error)

GetByID gets a role assignment by ID. Parameters: roleID - the ID of the role assignment to get.

func (RoleAssignmentsClient) GetByIDPreparer Uses

func (client RoleAssignmentsClient) GetByIDPreparer(ctx context.Context, roleID string) (*http.Request, error)

GetByIDPreparer prepares the GetByID request.

func (RoleAssignmentsClient) GetByIDResponder Uses

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 Uses

func (client RoleAssignmentsClient) GetByIDSender(req *http.Request) (*http.Response, error)

GetByIDSender sends the GetByID request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) GetPreparer Uses

func (client RoleAssignmentsClient) GetPreparer(ctx context.Context, scope string, roleAssignmentName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RoleAssignmentsClient) GetResponder Uses

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 Uses

func (client RoleAssignmentsClient) 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 (RoleAssignmentsClient) List Uses

func (client RoleAssignmentsClient) List(ctx context.Context, filter string) (result RoleAssignmentListResultPage, err error)

List gets all role assignments for the subscription. Parameters: filter - the filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.

func (RoleAssignmentsClient) ListComplete Uses

func (client RoleAssignmentsClient) ListComplete(ctx context.Context, filter string) (result RoleAssignmentListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (RoleAssignmentsClient) ListForResource Uses

func (client RoleAssignmentsClient) ListForResource(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result RoleAssignmentListResultPage, err error)

ListForResource gets role assignments for a resource. Parameters: resourceGroupName - the name of the resource group. resourceProviderNamespace - the namespace of the resource provider. parentResourcePath - the parent resource identity. resourceType - the resource type of the resource. resourceName - the name of the resource to get role assignments for. filter - the filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.

func (RoleAssignmentsClient) ListForResourceComplete Uses

func (client RoleAssignmentsClient) ListForResourceComplete(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result RoleAssignmentListResultIterator, err error)

ListForResourceComplete enumerates all values, automatically crossing page boundaries as required.

func (RoleAssignmentsClient) ListForResourceGroup Uses

func (client RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result RoleAssignmentListResultPage, err error)

ListForResourceGroup gets role assignments for a resource group. Parameters: resourceGroupName - the name of the resource group. filter - the filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.

func (RoleAssignmentsClient) ListForResourceGroupComplete Uses

func (client RoleAssignmentsClient) ListForResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string) (result RoleAssignmentListResultIterator, err error)

ListForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (RoleAssignmentsClient) ListForResourceGroupPreparer Uses

func (client RoleAssignmentsClient) ListForResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error)

ListForResourceGroupPreparer prepares the ListForResourceGroup request.

func (RoleAssignmentsClient) ListForResourceGroupResponder Uses

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 Uses

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) ListForResourcePreparer Uses

func (client RoleAssignmentsClient) ListForResourcePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (*http.Request, error)

ListForResourcePreparer prepares the ListForResource request.

func (RoleAssignmentsClient) ListForResourceResponder Uses

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 Uses

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 Uses

func (client RoleAssignmentsClient) ListForScope(ctx context.Context, scope string, filter string) (result RoleAssignmentListResultPage, err error)

ListForScope gets role assignments for a scope. Parameters: scope - the scope of the role assignments. filter - the filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.

func (RoleAssignmentsClient) ListForScopeComplete Uses

func (client RoleAssignmentsClient) ListForScopeComplete(ctx context.Context, scope string, filter string) (result RoleAssignmentListResultIterator, err error)

ListForScopeComplete enumerates all values, automatically crossing page boundaries as required.

func (RoleAssignmentsClient) ListForScopePreparer Uses

func (client RoleAssignmentsClient) ListForScopePreparer(ctx context.Context, scope string, filter string) (*http.Request, error)

ListForScopePreparer prepares the ListForScope request.

func (RoleAssignmentsClient) ListForScopeResponder Uses

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 Uses

func (client RoleAssignmentsClient) ListForScopeSender(req *http.Request) (*http.Response, error)

ListForScopeSender sends the ListForScope request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) ListPreparer Uses

func (client RoleAssignmentsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (RoleAssignmentsClient) ListResponder Uses

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 Uses

func (client RoleAssignmentsClient) 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 RoleDefinition Uses

type RoleDefinition 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.

func (RoleDefinition) MarshalJSON Uses

func (rd RoleDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleDefinition.

func (*RoleDefinition) UnmarshalJSON Uses

func (rd *RoleDefinition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleDefinition struct.

type RoleDefinitionFilter Uses

type RoleDefinitionFilter struct {
    // RoleName - Returns role definition with the specific name.
    RoleName *string `json:"roleName,omitempty"`
    // Type - Returns role definition with the specific type.
    Type *string `json:"type,omitempty"`
}

RoleDefinitionFilter role Definitions filter

type RoleDefinitionListResult Uses

type RoleDefinitionListResult struct {
    autorest.Response `json:"-"`
    // Value - Role definition list.
    Value *[]RoleDefinition `json:"value,omitempty"`
    // NextLink - The URL to use for getting the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

RoleDefinitionListResult role definition list operation result.

func (RoleDefinitionListResult) IsEmpty Uses

func (rdlr RoleDefinitionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RoleDefinitionListResultIterator Uses

type RoleDefinitionListResultIterator struct {
    // contains filtered or unexported fields
}

RoleDefinitionListResultIterator provides access to a complete listing of RoleDefinition values.

func NewRoleDefinitionListResultIterator Uses

func NewRoleDefinitionListResultIterator(page RoleDefinitionListResultPage) RoleDefinitionListResultIterator

Creates a new instance of the RoleDefinitionListResultIterator type.

func (*RoleDefinitionListResultIterator) Next Uses

func (iter *RoleDefinitionListResultIterator) 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 (*RoleDefinitionListResultIterator) NextWithContext Uses

func (iter *RoleDefinitionListResultIterator) 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 (RoleDefinitionListResultIterator) NotDone Uses

func (iter RoleDefinitionListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (RoleDefinitionListResultIterator) Response Uses

func (iter RoleDefinitionListResultIterator) Response() RoleDefinitionListResult

Response returns the raw server response from the last page request.

func (RoleDefinitionListResultIterator) Value Uses

func (iter RoleDefinitionListResultIterator) Value() RoleDefinition

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RoleDefinitionListResultPage Uses

type RoleDefinitionListResultPage struct {
    // contains filtered or unexported fields
}

RoleDefinitionListResultPage contains a page of RoleDefinition values.

func NewRoleDefinitionListResultPage Uses

func NewRoleDefinitionListResultPage(getNextPage func(context.Context, RoleDefinitionListResult) (RoleDefinitionListResult, error)) RoleDefinitionListResultPage

Creates a new instance of the RoleDefinitionListResultPage type.

func (*RoleDefinitionListResultPage) Next Uses

func (page *RoleDefinitionListResultPage) 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 (*RoleDefinitionListResultPage) NextWithContext Uses

func (page *RoleDefinitionListResultPage) 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 (RoleDefinitionListResultPage) NotDone Uses

func (page RoleDefinitionListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RoleDefinitionListResultPage) Response Uses

func (page RoleDefinitionListResultPage) Response() RoleDefinitionListResult

Response returns the raw server response from the last page request.

func (RoleDefinitionListResultPage) Values Uses

func (page RoleDefinitionListResultPage) Values() []RoleDefinition

Values returns the slice of values for the current page or nil if there are no values.

type RoleDefinitionProperties Uses

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"`
}

RoleDefinitionProperties role definition properties.

type RoleDefinitionsClient Uses

type RoleDefinitionsClient struct {
    BaseClient
}

RoleDefinitionsClient is the client for the RoleDefinitions methods of the Authorization service.

func NewRoleDefinitionsClient Uses

func NewRoleDefinitionsClient(subscriptionID string) RoleDefinitionsClient

NewRoleDefinitionsClient creates an instance of the RoleDefinitionsClient client.

func NewRoleDefinitionsClientWithBaseURI Uses

func NewRoleDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) RoleDefinitionsClient

NewRoleDefinitionsClientWithBaseURI creates an instance of the RoleDefinitionsClient client.

func (RoleDefinitionsClient) CreateOrUpdate Uses

func (client RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, scope string, roleDefinitionID string, roleDefinition RoleDefinition) (result RoleDefinition, 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 (RoleDefinitionsClient) CreateOrUpdatePreparer Uses

func (client RoleDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, scope string, roleDefinitionID string, roleDefinition RoleDefinition) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (RoleDefinitionsClient) CreateOrUpdateResponder Uses

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 Uses

func (client RoleDefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (RoleDefinitionsClient) Delete Uses

func (client RoleDefinitionsClient) Delete(ctx context.Context, scope string, roleDefinitionID string) (result RoleDefinition, err error)

Delete deletes a role definition. Parameters: scope - the scope of the role definition. roleDefinitionID - the ID of the role definition to delete.

func (RoleDefinitionsClient) DeletePreparer Uses

func (client RoleDefinitionsClient) DeletePreparer(ctx context.Context, scope string, roleDefinitionID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (RoleDefinitionsClient) DeleteResponder Uses

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 Uses

func (client RoleDefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (RoleDefinitionsClient) Get Uses

func (client RoleDefinitionsClient) Get(ctx context.Context, scope string, roleDefinitionID string) (result RoleDefinition, 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 (RoleDefinitionsClient) GetByID Uses

func (client RoleDefinitionsClient) GetByID(ctx context.Context, roleID string) (result RoleDefinition, err error)

GetByID gets a role definition by ID. Parameters: roleID - the fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.

func (RoleDefinitionsClient) GetByIDPreparer Uses

func (client RoleDefinitionsClient) GetByIDPreparer(ctx context.Context, roleID string) (*http.Request, error)

GetByIDPreparer prepares the GetByID request.

func (RoleDefinitionsClient) GetByIDResponder Uses

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 Uses

func (client RoleDefinitionsClient) GetByIDSender(req *http.Request) (*http.Response, error)

GetByIDSender sends the GetByID request. The method will close the http.Response Body if it receives an error.

func (RoleDefinitionsClient) GetPreparer Uses

func (client RoleDefinitionsClient) GetPreparer(ctx context.Context, scope string, roleDefinitionID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RoleDefinitionsClient) GetResponder Uses

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 Uses

func (client RoleDefinitionsClient) 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 (RoleDefinitionsClient) List Uses

func (client RoleDefinitionsClient) List(ctx context.Context, scope string, filter string) (result RoleDefinitionListResultPage, err error)

List get all role definitions that are applicable at scope and above. Parameters: scope - the scope of the role definition. filter - the filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well.

func (RoleDefinitionsClient) ListComplete Uses

func (client RoleDefinitionsClient) ListComplete(ctx context.Context, scope string, filter string) (result RoleDefinitionListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (RoleDefinitionsClient) ListPreparer Uses

func (client RoleDefinitionsClient) ListPreparer(ctx context.Context, scope string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (RoleDefinitionsClient) ListResponder Uses

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 Uses

func (client RoleDefinitionsClient) 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.

Directories

PathSynopsis
authorizationapi

Package authorization imports 9 packages (graph) and is imported by 6 packages. Updated 2019-08-18. Refresh now. Tools for package owners.