Documentation ¶
Overview ¶
Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
Package authorization implements the Azure ARM Authorization service API version .
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type ClassicAdministrator
- type ClassicAdministratorListResult
- type ClassicAdministratorListResultIterator
- func (iter *ClassicAdministratorListResultIterator) Next() error
- func (iter *ClassicAdministratorListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ClassicAdministratorListResultIterator) NotDone() bool
- func (iter ClassicAdministratorListResultIterator) Response() ClassicAdministratorListResult
- func (iter ClassicAdministratorListResultIterator) Value() ClassicAdministrator
- type ClassicAdministratorListResultPage
- func (page *ClassicAdministratorListResultPage) Next() error
- func (page *ClassicAdministratorListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ClassicAdministratorListResultPage) NotDone() bool
- func (page ClassicAdministratorListResultPage) Response() ClassicAdministratorListResult
- func (page ClassicAdministratorListResultPage) Values() []ClassicAdministrator
- type ClassicAdministratorProperties
- type ClassicAdministratorsClient
- func (client ClassicAdministratorsClient) List(ctx context.Context) (result ClassicAdministratorListResultPage, err error)
- func (client ClassicAdministratorsClient) ListComplete(ctx context.Context) (result ClassicAdministratorListResultIterator, err error)
- func (client ClassicAdministratorsClient) ListPreparer(ctx context.Context) (*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 DenyAssignment
- type DenyAssignmentFilter
- type DenyAssignmentListResult
- type DenyAssignmentListResultIterator
- func (iter *DenyAssignmentListResultIterator) Next() error
- func (iter *DenyAssignmentListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter DenyAssignmentListResultIterator) NotDone() bool
- func (iter DenyAssignmentListResultIterator) Response() DenyAssignmentListResult
- func (iter DenyAssignmentListResultIterator) Value() DenyAssignment
- type DenyAssignmentListResultPage
- func (page *DenyAssignmentListResultPage) Next() error
- func (page *DenyAssignmentListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page DenyAssignmentListResultPage) NotDone() bool
- func (page DenyAssignmentListResultPage) Response() DenyAssignmentListResult
- func (page DenyAssignmentListResultPage) Values() []DenyAssignment
- type DenyAssignmentPermission
- type DenyAssignmentProperties
- type DenyAssignmentsClient
- func (client DenyAssignmentsClient) Get(ctx context.Context, scope string, denyAssignmentID string) (result DenyAssignment, err error)
- func (client DenyAssignmentsClient) GetByID(ctx context.Context, denyAssignmentID string) (result DenyAssignment, err error)
- func (client DenyAssignmentsClient) GetByIDPreparer(ctx context.Context, denyAssignmentID string) (*http.Request, error)
- func (client DenyAssignmentsClient) GetByIDResponder(resp *http.Response) (result DenyAssignment, err error)
- func (client DenyAssignmentsClient) GetByIDSender(req *http.Request) (*http.Response, error)
- func (client DenyAssignmentsClient) GetPreparer(ctx context.Context, scope string, denyAssignmentID string) (*http.Request, error)
- func (client DenyAssignmentsClient) GetResponder(resp *http.Response) (result DenyAssignment, err error)
- func (client DenyAssignmentsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DenyAssignmentsClient) List(ctx context.Context, filter string) (result DenyAssignmentListResultPage, err error)
- func (client DenyAssignmentsClient) ListComplete(ctx context.Context, filter string) (result DenyAssignmentListResultIterator, err error)
- func (client DenyAssignmentsClient) ListForResource(ctx context.Context, resourceGroupName string, ...) (result DenyAssignmentListResultPage, err error)
- func (client DenyAssignmentsClient) ListForResourceComplete(ctx context.Context, resourceGroupName string, ...) (result DenyAssignmentListResultIterator, err error)
- func (client DenyAssignmentsClient) ListForResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result DenyAssignmentListResultPage, err error)
- func (client DenyAssignmentsClient) ListForResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string) (result DenyAssignmentListResultIterator, err error)
- func (client DenyAssignmentsClient) ListForResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error)
- func (client DenyAssignmentsClient) ListForResourceGroupResponder(resp *http.Response) (result DenyAssignmentListResult, err error)
- func (client DenyAssignmentsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client DenyAssignmentsClient) ListForResourcePreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client DenyAssignmentsClient) ListForResourceResponder(resp *http.Response) (result DenyAssignmentListResult, err error)
- func (client DenyAssignmentsClient) ListForResourceSender(req *http.Request) (*http.Response, error)
- func (client DenyAssignmentsClient) ListForScope(ctx context.Context, scope string, filter string) (result DenyAssignmentListResultPage, err error)
- func (client DenyAssignmentsClient) ListForScopeComplete(ctx context.Context, scope string, filter string) (result DenyAssignmentListResultIterator, err error)
- func (client DenyAssignmentsClient) ListForScopePreparer(ctx context.Context, scope string, filter string) (*http.Request, error)
- func (client DenyAssignmentsClient) ListForScopeResponder(resp *http.Response) (result DenyAssignmentListResult, err error)
- func (client DenyAssignmentsClient) ListForScopeSender(req *http.Request) (*http.Response, error)
- func (client DenyAssignmentsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error)
- func (client DenyAssignmentsClient) ListResponder(resp *http.Response) (result DenyAssignmentListResult, err error)
- func (client DenyAssignmentsClient) ListSender(req *http.Request) (*http.Response, error)
- type GlobalAdministratorClient
- func (client GlobalAdministratorClient) ElevateAccess(ctx context.Context) (result autorest.Response, err error)
- func (client GlobalAdministratorClient) ElevateAccessPreparer(ctx context.Context) (*http.Request, error)
- func (client GlobalAdministratorClient) ElevateAccessResponder(resp *http.Response) (result autorest.Response, err error)
- func (client GlobalAdministratorClient) ElevateAccessSender(req *http.Request) (*http.Response, error)
- type Permission
- type PermissionGetResult
- type PermissionGetResultIterator
- func (iter *PermissionGetResultIterator) Next() error
- func (iter *PermissionGetResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter PermissionGetResultIterator) NotDone() bool
- func (iter PermissionGetResultIterator) Response() PermissionGetResult
- func (iter PermissionGetResultIterator) Value() Permission
- type PermissionGetResultPage
- func (page *PermissionGetResultPage) Next() error
- func (page *PermissionGetResultPage) NextWithContext(ctx context.Context) (err error)
- func (page PermissionGetResultPage) NotDone() bool
- func (page PermissionGetResultPage) Response() PermissionGetResult
- func (page PermissionGetResultPage) Values() []Permission
- type PermissionsClient
- func (client PermissionsClient) ListForResource(ctx context.Context, resourceGroupName string, ...) (result PermissionGetResultPage, err error)
- func (client PermissionsClient) ListForResourceComplete(ctx context.Context, resourceGroupName string, ...) (result PermissionGetResultIterator, err error)
- func (client PermissionsClient) ListForResourceGroup(ctx context.Context, resourceGroupName string) (result PermissionGetResultPage, err error)
- func (client PermissionsClient) ListForResourceGroupComplete(ctx context.Context, resourceGroupName string) (result PermissionGetResultIterator, err error)
- func (client PermissionsClient) ListForResourceGroupPreparer(ctx context.Context, 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) ListForResourcePreparer(ctx context.Context, resourceGroupName 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 Principal
- type ProviderOperation
- type ProviderOperationsMetadata
- type ProviderOperationsMetadataClient
- func (client ProviderOperationsMetadataClient) Get(ctx context.Context, resourceProviderNamespace string, expand string) (result ProviderOperationsMetadata, err error)
- func (client ProviderOperationsMetadataClient) GetPreparer(ctx context.Context, resourceProviderNamespace string, expand string) (*http.Request, error)
- func (client ProviderOperationsMetadataClient) GetResponder(resp *http.Response) (result ProviderOperationsMetadata, err error)
- func (client ProviderOperationsMetadataClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ProviderOperationsMetadataClient) List(ctx context.Context, expand string) (result ProviderOperationsMetadataListResultPage, err error)
- func (client ProviderOperationsMetadataClient) ListComplete(ctx context.Context, expand string) (result ProviderOperationsMetadataListResultIterator, err error)
- func (client ProviderOperationsMetadataClient) ListPreparer(ctx context.Context, expand string) (*http.Request, error)
- func (client ProviderOperationsMetadataClient) ListResponder(resp *http.Response) (result ProviderOperationsMetadataListResult, err error)
- func (client ProviderOperationsMetadataClient) ListSender(req *http.Request) (*http.Response, error)
- type ProviderOperationsMetadataListResult
- type ProviderOperationsMetadataListResultIterator
- func (iter *ProviderOperationsMetadataListResultIterator) Next() error
- func (iter *ProviderOperationsMetadataListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ProviderOperationsMetadataListResultIterator) NotDone() bool
- func (iter ProviderOperationsMetadataListResultIterator) Response() ProviderOperationsMetadataListResult
- func (iter ProviderOperationsMetadataListResultIterator) Value() ProviderOperationsMetadata
- type ProviderOperationsMetadataListResultPage
- func (page *ProviderOperationsMetadataListResultPage) Next() error
- func (page *ProviderOperationsMetadataListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ProviderOperationsMetadataListResultPage) NotDone() bool
- func (page ProviderOperationsMetadataListResultPage) Response() ProviderOperationsMetadataListResult
- func (page ProviderOperationsMetadataListResultPage) Values() []ProviderOperationsMetadata
- type ResourceType
- type RoleAssignment
- type RoleAssignmentCreateParameters
- type RoleAssignmentFilter
- type RoleAssignmentListResult
- type RoleAssignmentListResultIterator
- func (iter *RoleAssignmentListResultIterator) Next() error
- func (iter *RoleAssignmentListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter RoleAssignmentListResultIterator) NotDone() bool
- func (iter RoleAssignmentListResultIterator) Response() RoleAssignmentListResult
- func (iter RoleAssignmentListResultIterator) Value() RoleAssignment
- type RoleAssignmentListResultPage
- func (page *RoleAssignmentListResultPage) Next() error
- func (page *RoleAssignmentListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page RoleAssignmentListResultPage) NotDone() bool
- func (page RoleAssignmentListResultPage) Response() RoleAssignmentListResult
- func (page RoleAssignmentListResultPage) Values() []RoleAssignment
- type RoleAssignmentProperties
- type RoleAssignmentPropertiesWithScope
- type RoleAssignmentsClient
- func (client RoleAssignmentsClient) Create(ctx context.Context, scope string, roleAssignmentName string, ...) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) CreateByID(ctx context.Context, roleID string, parameters RoleAssignmentCreateParameters) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) CreateByIDPreparer(ctx context.Context, roleID 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(ctx context.Context, 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(ctx context.Context, scope string, roleAssignmentName string) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) DeleteByID(ctx context.Context, roleID string) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) DeleteByIDPreparer(ctx context.Context, roleID 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(ctx context.Context, 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(ctx context.Context, scope string, roleAssignmentName string) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) GetByID(ctx context.Context, roleID string) (result RoleAssignment, err error)
- func (client RoleAssignmentsClient) GetByIDPreparer(ctx context.Context, roleID 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(ctx context.Context, 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(ctx context.Context, filter string) (result RoleAssignmentListResultPage, err error)
- func (client RoleAssignmentsClient) ListComplete(ctx context.Context, filter string) (result RoleAssignmentListResultIterator, err error)
- func (client RoleAssignmentsClient) ListForResource(ctx context.Context, resourceGroupName string, ...) (result RoleAssignmentListResultPage, err error)
- func (client RoleAssignmentsClient) ListForResourceComplete(ctx context.Context, resourceGroupName string, ...) (result RoleAssignmentListResultIterator, err error)
- func (client RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result RoleAssignmentListResultPage, err error)
- func (client RoleAssignmentsClient) ListForResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string) (result RoleAssignmentListResultIterator, err error)
- func (client RoleAssignmentsClient) ListForResourceGroupPreparer(ctx context.Context, 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) ListForResourcePreparer(ctx context.Context, resourceGroupName 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(ctx context.Context, scope string, filter string) (result RoleAssignmentListResultPage, err error)
- func (client RoleAssignmentsClient) ListForScopeComplete(ctx context.Context, scope string, filter string) (result RoleAssignmentListResultIterator, err error)
- func (client RoleAssignmentsClient) ListForScopePreparer(ctx context.Context, 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) ListPreparer(ctx context.Context, 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 RoleDefinitionListResultIterator
- func (iter *RoleDefinitionListResultIterator) Next() error
- func (iter *RoleDefinitionListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter RoleDefinitionListResultIterator) NotDone() bool
- func (iter RoleDefinitionListResultIterator) Response() RoleDefinitionListResult
- func (iter RoleDefinitionListResultIterator) Value() RoleDefinition
- type RoleDefinitionListResultPage
- func (page *RoleDefinitionListResultPage) Next() error
- func (page *RoleDefinitionListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page RoleDefinitionListResultPage) NotDone() bool
- func (page RoleDefinitionListResultPage) Response() RoleDefinitionListResult
- func (page RoleDefinitionListResultPage) Values() []RoleDefinition
- type RoleDefinitionProperties
- type RoleDefinitionsClient
- func (client RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, scope string, roleDefinitionID string, ...) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, scope string, roleDefinitionID string, ...) (*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(ctx context.Context, scope string, roleDefinitionID string) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) DeletePreparer(ctx context.Context, 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(ctx context.Context, scope string, roleDefinitionID string) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) GetByID(ctx context.Context, roleID string) (result RoleDefinition, err error)
- func (client RoleDefinitionsClient) GetByIDPreparer(ctx context.Context, roleID 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(ctx context.Context, 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(ctx context.Context, scope string, filter string) (result RoleDefinitionListResultPage, err error)
- func (client RoleDefinitionsClient) ListComplete(ctx context.Context, scope string, filter string) (result RoleDefinitionListResultIterator, err error)
- func (client RoleDefinitionsClient) ListPreparer(ctx context.Context, 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 (
// 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 BaseClient ¶
BaseClient is the base client for Authorization.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type ClassicAdministrator ¶
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 ¶
func (ca ClassicAdministrator) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClassicAdministrator.
func (*ClassicAdministrator) UnmarshalJSON ¶
func (ca *ClassicAdministrator) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ClassicAdministrator struct.
type ClassicAdministratorListResult ¶
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 ¶
func (calr ClassicAdministratorListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ClassicAdministratorListResultIterator ¶
type ClassicAdministratorListResultIterator struct {
// contains filtered or unexported fields
}
ClassicAdministratorListResultIterator provides access to a complete listing of ClassicAdministrator values.
func NewClassicAdministratorListResultIterator ¶
func NewClassicAdministratorListResultIterator(page ClassicAdministratorListResultPage) ClassicAdministratorListResultIterator
Creates a new instance of the ClassicAdministratorListResultIterator type.
func (*ClassicAdministratorListResultIterator) Next ¶
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 ¶
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 ¶
func (iter ClassicAdministratorListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ClassicAdministratorListResultIterator) Response ¶
func (iter ClassicAdministratorListResultIterator) Response() ClassicAdministratorListResult
Response returns the raw server response from the last page request.
func (ClassicAdministratorListResultIterator) Value ¶
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 ¶
type ClassicAdministratorListResultPage struct {
// contains filtered or unexported fields
}
ClassicAdministratorListResultPage contains a page of ClassicAdministrator values.
func NewClassicAdministratorListResultPage ¶
func NewClassicAdministratorListResultPage(cur ClassicAdministratorListResult, getNextPage func(context.Context, ClassicAdministratorListResult) (ClassicAdministratorListResult, error)) ClassicAdministratorListResultPage
Creates a new instance of the ClassicAdministratorListResultPage type.
func (*ClassicAdministratorListResultPage) Next ¶
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 ¶
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 ¶
func (page ClassicAdministratorListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ClassicAdministratorListResultPage) Response ¶
func (page ClassicAdministratorListResultPage) Response() ClassicAdministratorListResult
Response returns the raw server response from the last page request.
func (ClassicAdministratorListResultPage) Values ¶
func (page ClassicAdministratorListResultPage) Values() []ClassicAdministrator
Values returns the slice of values for the current page or nil if there are no values.
type ClassicAdministratorProperties ¶
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 ¶
type ClassicAdministratorsClient struct {
BaseClient
}
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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ClassicAdministratorsClient) List ¶
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 ¶
func (client ClassicAdministratorsClient) ListComplete(ctx context.Context) (result ClassicAdministratorListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (ClassicAdministratorsClient) ListPreparer ¶
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 DenyAssignment ¶
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 ¶
func (da DenyAssignment) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DenyAssignment.
func (*DenyAssignment) UnmarshalJSON ¶
func (da *DenyAssignment) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DenyAssignment struct.
type DenyAssignmentFilter ¶
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 ¶
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 ¶
func (dalr DenyAssignmentListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type DenyAssignmentListResultIterator ¶
type DenyAssignmentListResultIterator struct {
// contains filtered or unexported fields
}
DenyAssignmentListResultIterator provides access to a complete listing of DenyAssignment values.
func NewDenyAssignmentListResultIterator ¶
func NewDenyAssignmentListResultIterator(page DenyAssignmentListResultPage) DenyAssignmentListResultIterator
Creates a new instance of the DenyAssignmentListResultIterator type.
func (*DenyAssignmentListResultIterator) Next ¶
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 ¶
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 ¶
func (iter DenyAssignmentListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (DenyAssignmentListResultIterator) Response ¶
func (iter DenyAssignmentListResultIterator) Response() DenyAssignmentListResult
Response returns the raw server response from the last page request.
func (DenyAssignmentListResultIterator) Value ¶
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 ¶
type DenyAssignmentListResultPage struct {
// contains filtered or unexported fields
}
DenyAssignmentListResultPage contains a page of DenyAssignment values.
func NewDenyAssignmentListResultPage ¶
func NewDenyAssignmentListResultPage(cur DenyAssignmentListResult, getNextPage func(context.Context, DenyAssignmentListResult) (DenyAssignmentListResult, error)) DenyAssignmentListResultPage
Creates a new instance of the DenyAssignmentListResultPage type.
func (*DenyAssignmentListResultPage) Next ¶
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 ¶
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 ¶
func (page DenyAssignmentListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (DenyAssignmentListResultPage) Response ¶
func (page DenyAssignmentListResultPage) Response() DenyAssignmentListResult
Response returns the raw server response from the last page request.
func (DenyAssignmentListResultPage) Values ¶
func (page DenyAssignmentListResultPage) Values() []DenyAssignment
Values returns the slice of values for the current page or nil if there are no values.
type DenyAssignmentPermission ¶
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 ¶
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 ¶
type DenyAssignmentsClient struct {
BaseClient
}
DenyAssignmentsClient is the client for the DenyAssignments methods of the Authorization service.
func NewDenyAssignmentsClient ¶
func NewDenyAssignmentsClient(subscriptionID string) DenyAssignmentsClient
NewDenyAssignmentsClient creates an instance of the DenyAssignmentsClient client.
func NewDenyAssignmentsClientWithBaseURI ¶
func NewDenyAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) DenyAssignmentsClient
NewDenyAssignmentsClientWithBaseURI creates an instance of the DenyAssignmentsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (DenyAssignmentsClient) Get ¶
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 ¶
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 ¶
func (client DenyAssignmentsClient) GetByIDPreparer(ctx context.Context, denyAssignmentID string) (*http.Request, error)
GetByIDPreparer prepares the GetByID request.
func (DenyAssignmentsClient) GetByIDResponder ¶
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 ¶
GetByIDSender sends the GetByID request. The method will close the http.Response Body if it receives an error.
func (DenyAssignmentsClient) GetPreparer ¶
func (client DenyAssignmentsClient) GetPreparer(ctx context.Context, scope string, denyAssignmentID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DenyAssignmentsClient) GetResponder ¶
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 ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DenyAssignmentsClient) List ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (client DenyAssignmentsClient) ListForResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error)
ListForResourceGroupPreparer prepares the ListForResourceGroup request.
func (DenyAssignmentsClient) ListForResourceGroupResponder ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (client DenyAssignmentsClient) ListForScopePreparer(ctx context.Context, scope string, filter string) (*http.Request, error)
ListForScopePreparer prepares the ListForScope request.
func (DenyAssignmentsClient) ListForScopeResponder ¶
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 ¶
ListForScopeSender sends the ListForScope request. The method will close the http.Response Body if it receives an error.
func (DenyAssignmentsClient) ListPreparer ¶
func (client DenyAssignmentsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error)
ListPreparer prepares the List request.
func (DenyAssignmentsClient) ListResponder ¶
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 ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type GlobalAdministratorClient ¶
type GlobalAdministratorClient struct {
BaseClient
}
GlobalAdministratorClient is the client for the GlobalAdministrator methods of the Authorization service.
func NewGlobalAdministratorClient ¶
func NewGlobalAdministratorClient(subscriptionID string) GlobalAdministratorClient
NewGlobalAdministratorClient creates an instance of the GlobalAdministratorClient client.
func NewGlobalAdministratorClientWithBaseURI ¶
func NewGlobalAdministratorClientWithBaseURI(baseURI string, subscriptionID string) GlobalAdministratorClient
NewGlobalAdministratorClientWithBaseURI creates an instance of the GlobalAdministratorClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (GlobalAdministratorClient) ElevateAccess ¶
func (client GlobalAdministratorClient) ElevateAccess(ctx context.Context) (result autorest.Response, err error)
ElevateAccess elevates access for a Global Administrator.
func (GlobalAdministratorClient) ElevateAccessPreparer ¶
func (client GlobalAdministratorClient) ElevateAccessPreparer(ctx context.Context) (*http.Request, error)
ElevateAccessPreparer prepares the ElevateAccess request.
func (GlobalAdministratorClient) ElevateAccessResponder ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (pgr PermissionGetResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type PermissionGetResultIterator ¶
type PermissionGetResultIterator struct {
// contains filtered or unexported fields
}
PermissionGetResultIterator provides access to a complete listing of Permission values.
func NewPermissionGetResultIterator ¶
func NewPermissionGetResultIterator(page PermissionGetResultPage) PermissionGetResultIterator
Creates a new instance of the PermissionGetResultIterator type.
func (*PermissionGetResultIterator) Next ¶
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 ¶
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 ¶
func (iter PermissionGetResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (PermissionGetResultIterator) Response ¶
func (iter PermissionGetResultIterator) Response() PermissionGetResult
Response returns the raw server response from the last page request.
func (PermissionGetResultIterator) Value ¶
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 ¶
type PermissionGetResultPage struct {
// contains filtered or unexported fields
}
PermissionGetResultPage contains a page of Permission values.
func NewPermissionGetResultPage ¶
func NewPermissionGetResultPage(cur PermissionGetResult, getNextPage func(context.Context, PermissionGetResult) (PermissionGetResult, error)) PermissionGetResultPage
Creates a new instance of the PermissionGetResultPage type.
func (*PermissionGetResultPage) Next ¶
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 ¶
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 ¶
func (page PermissionGetResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (PermissionGetResultPage) Response ¶
func (page PermissionGetResultPage) Response() PermissionGetResult
Response returns the raw server response from the last page request.
func (PermissionGetResultPage) Values ¶
func (page PermissionGetResultPage) Values() []Permission
Values returns the slice of values for the current page or nil if there are no values.
type PermissionsClient ¶
type PermissionsClient struct {
BaseClient
}
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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (PermissionsClient) ListForResource ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (client PermissionsClient) ListForResourceGroupPreparer(ctx context.Context, 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) ListForResourcePreparer ¶
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 ¶
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 Principal ¶
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.
func (Principal) MarshalJSON ¶
MarshalJSON is the custom marshaler for Principal.
type ProviderOperation ¶
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 ¶
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 ¶
type ProviderOperationsMetadataClient struct {
BaseClient
}
ProviderOperationsMetadataClient is the client for the ProviderOperationsMetadata methods of the Authorization service.
func NewProviderOperationsMetadataClient ¶
func NewProviderOperationsMetadataClient(subscriptionID string) ProviderOperationsMetadataClient
NewProviderOperationsMetadataClient creates an instance of the ProviderOperationsMetadataClient client.
func NewProviderOperationsMetadataClientWithBaseURI ¶
func NewProviderOperationsMetadataClientWithBaseURI(baseURI string, subscriptionID string) ProviderOperationsMetadataClient
NewProviderOperationsMetadataClientWithBaseURI creates an instance of the ProviderOperationsMetadataClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ProviderOperationsMetadataClient) Get ¶
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 ¶
func (client ProviderOperationsMetadataClient) GetPreparer(ctx context.Context, resourceProviderNamespace string, expand string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ProviderOperationsMetadataClient) GetResponder ¶
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 ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ProviderOperationsMetadataClient) List ¶
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 ¶
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 ¶
func (client ProviderOperationsMetadataClient) ListPreparer(ctx context.Context, expand string) (*http.Request, error)
ListPreparer prepares the List request.
func (ProviderOperationsMetadataClient) ListResponder ¶
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 ¶
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 ¶
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 ¶
func (pomlr ProviderOperationsMetadataListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ProviderOperationsMetadataListResultIterator ¶
type ProviderOperationsMetadataListResultIterator struct {
// contains filtered or unexported fields
}
ProviderOperationsMetadataListResultIterator provides access to a complete listing of ProviderOperationsMetadata values.
func NewProviderOperationsMetadataListResultIterator ¶
func NewProviderOperationsMetadataListResultIterator(page ProviderOperationsMetadataListResultPage) ProviderOperationsMetadataListResultIterator
Creates a new instance of the ProviderOperationsMetadataListResultIterator type.
func (*ProviderOperationsMetadataListResultIterator) Next ¶
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 ¶
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 ¶
func (iter ProviderOperationsMetadataListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ProviderOperationsMetadataListResultIterator) Response ¶
func (iter ProviderOperationsMetadataListResultIterator) Response() ProviderOperationsMetadataListResult
Response returns the raw server response from the last page request.
func (ProviderOperationsMetadataListResultIterator) Value ¶
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 ¶
type ProviderOperationsMetadataListResultPage struct {
// contains filtered or unexported fields
}
ProviderOperationsMetadataListResultPage contains a page of ProviderOperationsMetadata values.
func NewProviderOperationsMetadataListResultPage ¶
func NewProviderOperationsMetadataListResultPage(cur ProviderOperationsMetadataListResult, getNextPage func(context.Context, ProviderOperationsMetadataListResult) (ProviderOperationsMetadataListResult, error)) ProviderOperationsMetadataListResultPage
Creates a new instance of the ProviderOperationsMetadataListResultPage type.
func (*ProviderOperationsMetadataListResultPage) Next ¶
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 ¶
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 ¶
func (page ProviderOperationsMetadataListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ProviderOperationsMetadataListResultPage) Response ¶
func (page ProviderOperationsMetadataListResultPage) Response() ProviderOperationsMetadataListResult
Response returns the raw server response from the last page request.
func (ProviderOperationsMetadataListResultPage) Values ¶
func (page ProviderOperationsMetadataListResultPage) Values() []ProviderOperationsMetadata
Values returns the slice of values for the current page or nil if there are no values.
type ResourceType ¶
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 ¶
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 ¶
func (ra RoleAssignment) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RoleAssignment.
func (*RoleAssignment) UnmarshalJSON ¶
func (ra *RoleAssignment) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RoleAssignment struct.
type RoleAssignmentCreateParameters ¶
type RoleAssignmentCreateParameters struct { // RoleAssignmentProperties - Role assignment properties. *RoleAssignmentProperties `json:"properties,omitempty"` }
RoleAssignmentCreateParameters role assignment create parameters.
func (RoleAssignmentCreateParameters) MarshalJSON ¶
func (racp RoleAssignmentCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RoleAssignmentCreateParameters.
func (*RoleAssignmentCreateParameters) UnmarshalJSON ¶
func (racp *RoleAssignmentCreateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RoleAssignmentCreateParameters struct.
type RoleAssignmentFilter ¶
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 ¶
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 ¶
func (ralr RoleAssignmentListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type RoleAssignmentListResultIterator ¶
type RoleAssignmentListResultIterator struct {
// contains filtered or unexported fields
}
RoleAssignmentListResultIterator provides access to a complete listing of RoleAssignment values.
func NewRoleAssignmentListResultIterator ¶
func NewRoleAssignmentListResultIterator(page RoleAssignmentListResultPage) RoleAssignmentListResultIterator
Creates a new instance of the RoleAssignmentListResultIterator type.
func (*RoleAssignmentListResultIterator) Next ¶
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 ¶
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 ¶
func (iter RoleAssignmentListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (RoleAssignmentListResultIterator) Response ¶
func (iter RoleAssignmentListResultIterator) Response() RoleAssignmentListResult
Response returns the raw server response from the last page request.
func (RoleAssignmentListResultIterator) Value ¶
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 ¶
type RoleAssignmentListResultPage struct {
// contains filtered or unexported fields
}
RoleAssignmentListResultPage contains a page of RoleAssignment values.
func NewRoleAssignmentListResultPage ¶
func NewRoleAssignmentListResultPage(cur RoleAssignmentListResult, getNextPage func(context.Context, RoleAssignmentListResult) (RoleAssignmentListResult, error)) RoleAssignmentListResultPage
Creates a new instance of the RoleAssignmentListResultPage type.
func (*RoleAssignmentListResultPage) Next ¶
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 ¶
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 ¶
func (page RoleAssignmentListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (RoleAssignmentListResultPage) Response ¶
func (page RoleAssignmentListResultPage) Response() RoleAssignmentListResult
Response returns the raw server response from the last page request.
func (RoleAssignmentListResultPage) Values ¶
func (page RoleAssignmentListResultPage) Values() []RoleAssignment
Values returns the slice of values for the current page or nil if there are no values.
type RoleAssignmentProperties ¶
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"` // CanDelegate - The delegation flag used for creating a role assignment CanDelegate *bool `json:"canDelegate,omitempty"` }
RoleAssignmentProperties role assignment properties.
type RoleAssignmentPropertiesWithScope ¶
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"` // CanDelegate - The Delegation flag for the role assignment CanDelegate *bool `json:"canDelegate,omitempty"` }
RoleAssignmentPropertiesWithScope role assignment properties with scope.
type RoleAssignmentsClient ¶
type RoleAssignmentsClient struct {
BaseClient
}
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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (RoleAssignmentsClient) Create ¶
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 ¶
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 ¶
func (client RoleAssignmentsClient) CreateByIDPreparer(ctx context.Context, roleID 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(ctx context.Context, 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(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 ¶
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 ¶
func (client RoleAssignmentsClient) DeleteByIDPreparer(ctx context.Context, roleID 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(ctx context.Context, 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(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 ¶
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 ¶
func (client RoleAssignmentsClient) GetByIDPreparer(ctx context.Context, roleID 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(ctx context.Context, 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(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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (client RoleAssignmentsClient) ListForResourceGroupPreparer(ctx context.Context, 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) ListForResourcePreparer ¶
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 ¶
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(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 ¶
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 ¶
func (client RoleAssignmentsClient) ListForScopePreparer(ctx context.Context, 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) ListPreparer ¶
func (client RoleAssignmentsClient) ListPreparer(ctx context.Context, 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 - 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 ¶
func (rd RoleDefinition) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RoleDefinition.
func (*RoleDefinition) UnmarshalJSON ¶
func (rd *RoleDefinition) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RoleDefinition struct.
type RoleDefinitionFilter ¶
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 ¶
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 ¶
func (rdlr RoleDefinitionListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type RoleDefinitionListResultIterator ¶
type RoleDefinitionListResultIterator struct {
// contains filtered or unexported fields
}
RoleDefinitionListResultIterator provides access to a complete listing of RoleDefinition values.
func NewRoleDefinitionListResultIterator ¶
func NewRoleDefinitionListResultIterator(page RoleDefinitionListResultPage) RoleDefinitionListResultIterator
Creates a new instance of the RoleDefinitionListResultIterator type.
func (*RoleDefinitionListResultIterator) Next ¶
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 ¶
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 ¶
func (iter RoleDefinitionListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (RoleDefinitionListResultIterator) Response ¶
func (iter RoleDefinitionListResultIterator) Response() RoleDefinitionListResult
Response returns the raw server response from the last page request.
func (RoleDefinitionListResultIterator) Value ¶
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 ¶
type RoleDefinitionListResultPage struct {
// contains filtered or unexported fields
}
RoleDefinitionListResultPage contains a page of RoleDefinition values.
func NewRoleDefinitionListResultPage ¶
func NewRoleDefinitionListResultPage(cur RoleDefinitionListResult, getNextPage func(context.Context, RoleDefinitionListResult) (RoleDefinitionListResult, error)) RoleDefinitionListResultPage
Creates a new instance of the RoleDefinitionListResultPage type.
func (*RoleDefinitionListResultPage) Next ¶
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 ¶
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 ¶
func (page RoleDefinitionListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (RoleDefinitionListResultPage) Response ¶
func (page RoleDefinitionListResultPage) Response() RoleDefinitionListResult
Response returns the raw server response from the last page request.
func (RoleDefinitionListResultPage) Values ¶
func (page RoleDefinitionListResultPage) Values() []RoleDefinition
Values returns the slice of values for the current page or nil if there are no values.
type RoleDefinitionProperties ¶
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 ¶
type RoleDefinitionsClient struct {
BaseClient
}
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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (RoleDefinitionsClient) CreateOrUpdate ¶
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 ¶
func (client RoleDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, 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(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 ¶
func (client RoleDefinitionsClient) DeletePreparer(ctx context.Context, 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(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 ¶
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 ¶
func (client RoleDefinitionsClient) GetByIDPreparer(ctx context.Context, roleID 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(ctx context.Context, 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(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 ¶
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 ¶
func (client RoleDefinitionsClient) ListPreparer(ctx context.Context, 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.