authorization

package
v0.0.0-...-91fa101 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package authorization implements the Azure ARM Authorization service API version .

Index

Constants

View Source
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 ApprovalMode

type ApprovalMode string

ApprovalMode enumerates the values for approval mode.

const (
	// ApprovalModeNoApproval ...
	ApprovalModeNoApproval ApprovalMode = "NoApproval"
	// ApprovalModeParallel ...
	ApprovalModeParallel ApprovalMode = "Parallel"
	// ApprovalModeSerial ...
	ApprovalModeSerial ApprovalMode = "Serial"
	// ApprovalModeSingleStage ...
	ApprovalModeSingleStage ApprovalMode = "SingleStage"
)

func PossibleApprovalModeValues

func PossibleApprovalModeValues() []ApprovalMode

PossibleApprovalModeValues returns an array of possible values for the ApprovalMode const type.

type ApprovalSettings

type ApprovalSettings struct {
	// IsApprovalRequired - Determines whether approval is required or not.
	IsApprovalRequired *bool `json:"isApprovalRequired,omitempty"`
	// IsApprovalRequiredForExtension - Determines whether approval is required for assignment extension.
	IsApprovalRequiredForExtension *bool `json:"isApprovalRequiredForExtension,omitempty"`
	// IsRequestorJustificationRequired - Determine whether requestor justification is required.
	IsRequestorJustificationRequired *bool `json:"isRequestorJustificationRequired,omitempty"`
	// ApprovalMode - The type of rule. Possible values include: 'ApprovalModeSingleStage', 'ApprovalModeSerial', 'ApprovalModeParallel', 'ApprovalModeNoApproval'
	ApprovalMode ApprovalMode `json:"approvalMode,omitempty"`
	// ApprovalStages - The approval stages of the request.
	ApprovalStages *[]ApprovalStage `json:"approvalStages,omitempty"`
}

ApprovalSettings the approval settings.

type ApprovalStage

type ApprovalStage struct {
	// ApprovalStageTimeOutInDays - The time in days when approval request would be timed out
	ApprovalStageTimeOutInDays *int32 `json:"approvalStageTimeOutInDays,omitempty"`
	// IsApproverJustificationRequired - Determines whether approver need to provide justification for his decision.
	IsApproverJustificationRequired *bool `json:"isApproverJustificationRequired,omitempty"`
	// EscalationTimeInMinutes - The time in minutes when the approval request would be escalated if the primary approver does not approve
	EscalationTimeInMinutes *int32 `json:"escalationTimeInMinutes,omitempty"`
	// PrimaryApprovers - The primary approver of the request.
	PrimaryApprovers *[]UserSet `json:"primaryApprovers,omitempty"`
	// IsEscalationEnabled - The value determine whether escalation feature is enabled.
	IsEscalationEnabled *bool `json:"isEscalationEnabled,omitempty"`
	// EscalationApprovers - The escalation approver of the request.
	EscalationApprovers *[]UserSet `json:"escalationApprovers,omitempty"`
}

ApprovalStage the approval stage.

type AssignmentType

type AssignmentType string

AssignmentType enumerates the values for assignment type.

const (
	// AssignmentTypeActivated ...
	AssignmentTypeActivated AssignmentType = "Activated"
	// AssignmentTypeAssigned ...
	AssignmentTypeAssigned AssignmentType = "Assigned"
)

func PossibleAssignmentTypeValues

func PossibleAssignmentTypeValues() []AssignmentType

PossibleAssignmentTypeValues returns an array of possible values for the AssignmentType const type.

type BaseClient

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

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 BasicRoleManagementPolicyRule

type BasicRoleManagementPolicyRule interface {
	AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool)
	AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool)
	AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool)
	AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool)
	AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool)
	AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool)
}

BasicRoleManagementPolicyRule the role management policy rule.

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

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

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

func (ClassicAdministratorListResultIterator) Response

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

func (ClassicAdministratorListResultIterator) Value

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

Creates a new instance of the ClassicAdministratorListResultPage type.

func (*ClassicAdministratorListResultPage) Next

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

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

func (ClassicAdministratorListResultPage) Response

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

func (ClassicAdministratorListResultPage) Values

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

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

func (ClassicAdministratorsClient) ListComplete

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

func (ClassicAdministratorsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ClassicAdministratorsClient) ListResponder

func (client ClassicAdministratorsClient) ListResponder(resp *http.Response) (result ClassicAdministratorListResult, err error)

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

func (ClassicAdministratorsClient) ListSender

func (client ClassicAdministratorsClient) ListSender(req *http.Request) (*http.Response, error)

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

type CloudError

type CloudError struct {
	Error *CloudErrorBody `json:"error,omitempty"`
}

CloudError an error response from the service.

type CloudErrorBody

type CloudErrorBody struct {
	// Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
	Code *string `json:"code,omitempty"`
	// Message - A message describing the error, intended to be suitable for display in a user interface.
	Message *string `json:"message,omitempty"`
}

CloudErrorBody an error response from the service.

type EligibleChildResource

type EligibleChildResource struct {
	// ID - READ-ONLY; The resource scope Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The resource type.
	Type *string `json:"type,omitempty"`
}

EligibleChildResource eligible child resource

func (EligibleChildResource) MarshalJSON

func (ecr EligibleChildResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EligibleChildResource.

type EligibleChildResourcesClient

type EligibleChildResourcesClient struct {
	BaseClient
}

EligibleChildResourcesClient is the client for the EligibleChildResources methods of the Authorization service.

func NewEligibleChildResourcesClient

func NewEligibleChildResourcesClient(subscriptionID string) EligibleChildResourcesClient

NewEligibleChildResourcesClient creates an instance of the EligibleChildResourcesClient client.

func NewEligibleChildResourcesClientWithBaseURI

func NewEligibleChildResourcesClientWithBaseURI(baseURI string, subscriptionID string) EligibleChildResourcesClient

NewEligibleChildResourcesClientWithBaseURI creates an instance of the EligibleChildResourcesClient 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 (EligibleChildResourcesClient) Get

Get get the child resources of a resource on which user has eligible access Parameters: scope - the scope of the role management policy. filter - the filter to apply on the operation. Use $filter=resourceType+eq+'Subscription' to filter on only resource of type = 'Subscription'. Use $filter=resourceType+eq+'subscription'+or+resourceType+eq+'resourcegroup' to filter on resource of type = 'Subscription' or 'ResourceGroup'

func (EligibleChildResourcesClient) GetComplete

func (client EligibleChildResourcesClient) GetComplete(ctx context.Context, scope string, filter string) (result EligibleChildResourcesListResultIterator, err error)

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

func (EligibleChildResourcesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (EligibleChildResourcesClient) GetResponder

func (client EligibleChildResourcesClient) GetResponder(resp *http.Response) (result EligibleChildResourcesListResult, err error)

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

func (EligibleChildResourcesClient) GetSender

func (client EligibleChildResourcesClient) GetSender(req *http.Request) (*http.Response, error)

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

type EligibleChildResourcesListResult

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

EligibleChildResourcesListResult eligible child resources list operation result.

func (EligibleChildResourcesListResult) IsEmpty

func (ecrlr EligibleChildResourcesListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EligibleChildResourcesListResultIterator

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

EligibleChildResourcesListResultIterator provides access to a complete listing of EligibleChildResource values.

func NewEligibleChildResourcesListResultIterator

func NewEligibleChildResourcesListResultIterator(page EligibleChildResourcesListResultPage) EligibleChildResourcesListResultIterator

Creates a new instance of the EligibleChildResourcesListResultIterator type.

func (*EligibleChildResourcesListResultIterator) Next

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 (*EligibleChildResourcesListResultIterator) NextWithContext

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

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

func (EligibleChildResourcesListResultIterator) Response

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

func (EligibleChildResourcesListResultIterator) Value

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

type EligibleChildResourcesListResultPage

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

EligibleChildResourcesListResultPage contains a page of EligibleChildResource values.

func NewEligibleChildResourcesListResultPage

Creates a new instance of the EligibleChildResourcesListResultPage type.

func (*EligibleChildResourcesListResultPage) Next

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 (*EligibleChildResourcesListResultPage) NextWithContext

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

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

func (EligibleChildResourcesListResultPage) Response

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

func (EligibleChildResourcesListResultPage) Values

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

type EnablementRules

type EnablementRules string

EnablementRules enumerates the values for enablement rules.

const (
	// EnablementRulesJustification ...
	EnablementRulesJustification EnablementRules = "Justification"
	// EnablementRulesMultiFactorAuthentication ...
	EnablementRulesMultiFactorAuthentication EnablementRules = "MultiFactorAuthentication"
	// EnablementRulesTicketing ...
	EnablementRulesTicketing EnablementRules = "Ticketing"
)

func PossibleEnablementRulesValues

func PossibleEnablementRulesValues() []EnablementRules

PossibleEnablementRulesValues returns an array of possible values for the EnablementRules const type.

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	// Type - READ-ONLY; The additional info type.
	Type *string `json:"type,omitempty"`
	// Info - READ-ONLY; The additional info.
	Info interface{} `json:"info,omitempty"`
}

ErrorAdditionalInfo the resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON

func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorAdditionalInfo.

type ErrorDetail

type ErrorDetail struct {
	// Code - READ-ONLY; The error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; The error message.
	Message *string `json:"message,omitempty"`
	// Target - READ-ONLY; The error target.
	Target *string `json:"target,omitempty"`
	// Details - READ-ONLY; The error details.
	Details *[]ErrorDetail `json:"details,omitempty"`
	// AdditionalInfo - READ-ONLY; The error additional info.
	AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
}

ErrorDetail the error detail.

func (ErrorDetail) MarshalJSON

func (ed ErrorDetail) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorDetail.

type ErrorResponse

type ErrorResponse struct {
	// Error - The error object.
	Error *ErrorDetail `json:"error,omitempty"`
}

ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).

type ExpandedProperties

type ExpandedProperties struct {
	// Scope - Details of the resource scope
	Scope *ExpandedPropertiesScope `json:"scope,omitempty"`
	// RoleDefinition - Details of role definition
	RoleDefinition *ExpandedPropertiesRoleDefinition `json:"roleDefinition,omitempty"`
	// Principal - Details of the principal
	Principal *ExpandedPropertiesPrincipal `json:"principal,omitempty"`
}

ExpandedProperties expanded info of resource, role and principal

type ExpandedPropertiesPrincipal

type ExpandedPropertiesPrincipal struct {
	// ID - Id of the principal
	ID *string `json:"id,omitempty"`
	// DisplayName - Display name of the principal
	DisplayName *string `json:"displayName,omitempty"`
	// Email - Email id of the principal
	Email *string `json:"email,omitempty"`
	// Type - Type of the principal
	Type *string `json:"type,omitempty"`
}

ExpandedPropertiesPrincipal details of the principal

type ExpandedPropertiesRoleDefinition

type ExpandedPropertiesRoleDefinition struct {
	// ID - Id of the role definition
	ID *string `json:"id,omitempty"`
	// DisplayName - Display name of the role definition
	DisplayName *string `json:"displayName,omitempty"`
	// Type - Type of the role definition
	Type *string `json:"type,omitempty"`
}

ExpandedPropertiesRoleDefinition details of role definition

type ExpandedPropertiesScope

type ExpandedPropertiesScope struct {
	// ID - Scope id of the resource
	ID *string `json:"id,omitempty"`
	// DisplayName - Display name of the resource
	DisplayName *string `json:"displayName,omitempty"`
	// Type - Type of the resource
	Type *string `json:"type,omitempty"`
}

ExpandedPropertiesScope details of the resource scope

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 MemberType

type MemberType string

MemberType enumerates the values for member type.

const (
	// MemberTypeDirect ...
	MemberTypeDirect MemberType = "Direct"
	// MemberTypeGroup ...
	MemberTypeGroup MemberType = "Group"
	// MemberTypeInherited ...
	MemberTypeInherited MemberType = "Inherited"
)

func PossibleMemberTypeValues

func PossibleMemberTypeValues() []MemberType

PossibleMemberTypeValues returns an array of possible values for the MemberType const type.

type NotificationDeliveryMechanism

type NotificationDeliveryMechanism string

NotificationDeliveryMechanism enumerates the values for notification delivery mechanism.

const (
	// NotificationDeliveryMechanismEmail ...
	NotificationDeliveryMechanismEmail NotificationDeliveryMechanism = "Email"
)

func PossibleNotificationDeliveryMechanismValues

func PossibleNotificationDeliveryMechanismValues() []NotificationDeliveryMechanism

PossibleNotificationDeliveryMechanismValues returns an array of possible values for the NotificationDeliveryMechanism const type.

type NotificationLevel

type NotificationLevel string

NotificationLevel enumerates the values for notification level.

const (
	// NotificationLevelAll ...
	NotificationLevelAll NotificationLevel = "All"
	// NotificationLevelCritical ...
	NotificationLevelCritical NotificationLevel = "Critical"
	// NotificationLevelNone ...
	NotificationLevelNone NotificationLevel = "None"
)

func PossibleNotificationLevelValues

func PossibleNotificationLevelValues() []NotificationLevel

PossibleNotificationLevelValues returns an array of possible values for the NotificationLevel const type.

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

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

func (PermissionGetResultIterator) Value

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

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. The name is case insensitive. 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. The name is case insensitive.

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

func (client PermissionsClient) ListForResourceSender(req *http.Request) (*http.Response, error)

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

type PolicyAssignmentProperties

type PolicyAssignmentProperties struct {
	// Scope - Details of the resource scope
	Scope *PolicyAssignmentPropertiesScope `json:"scope,omitempty"`
	// RoleDefinition - Details of role definition
	RoleDefinition *PolicyAssignmentPropertiesRoleDefinition `json:"roleDefinition,omitempty"`
	// Policy - Details of the policy
	Policy *PolicyAssignmentPropertiesPolicy `json:"policy,omitempty"`
}

PolicyAssignmentProperties expanded info of resource scope, role definition and policy

type PolicyAssignmentPropertiesPolicy

type PolicyAssignmentPropertiesPolicy struct {
	// ID - Id of the policy
	ID             *string    `json:"id,omitempty"`
	LastModifiedBy *Principal `json:"lastModifiedBy,omitempty"`
	// LastModifiedDateTime - The last modified date time.
	LastModifiedDateTime *date.Time `json:"lastModifiedDateTime,omitempty"`
}

PolicyAssignmentPropertiesPolicy details of the policy

type PolicyAssignmentPropertiesRoleDefinition

type PolicyAssignmentPropertiesRoleDefinition struct {
	// ID - Id of the role definition
	ID *string `json:"id,omitempty"`
	// DisplayName - Display name of the role definition
	DisplayName *string `json:"displayName,omitempty"`
	// Type - Type of the role definition
	Type *string `json:"type,omitempty"`
}

PolicyAssignmentPropertiesRoleDefinition details of role definition

type PolicyAssignmentPropertiesScope

type PolicyAssignmentPropertiesScope struct {
	// ID - Scope id of the resource
	ID *string `json:"id,omitempty"`
	// DisplayName - Display name of the resource
	DisplayName *string `json:"displayName,omitempty"`
	// Type - Type of the resource
	Type *string `json:"type,omitempty"`
}

PolicyAssignmentPropertiesScope details of the resource scope

type PolicyProperties

type PolicyProperties struct {
	// Scope - READ-ONLY; Details of the resource scope
	Scope *PolicyPropertiesScope `json:"scope,omitempty"`
}

PolicyProperties expanded info of resource scope

func (PolicyProperties) MarshalJSON

func (pp PolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyProperties.

type PolicyPropertiesScope

type PolicyPropertiesScope struct {
	// ID - Scope id of the resource
	ID *string `json:"id,omitempty"`
	// DisplayName - Display name of the resource
	DisplayName *string `json:"displayName,omitempty"`
	// Type - Type of the resource
	Type *string `json:"type,omitempty"`
}

PolicyPropertiesScope details of the resource scope

type Principal

type Principal struct {
	// ID - The id of the principal made changes
	ID *string `json:"id,omitempty"`
	// DisplayName - The name of the principal made changes
	DisplayName *string `json:"displayName,omitempty"`
	// Type - Type of principal such as user , group etc
	Type *string `json:"type,omitempty"`
	// Email - Email of principal
	Email *string `json:"email,omitempty"`
}

Principal the name of the entity last modified it

type PrincipalType

type PrincipalType string

PrincipalType enumerates the values for principal type.

const (
	// PrincipalTypeDevice ...
	PrincipalTypeDevice PrincipalType = "Device"
	// PrincipalTypeForeignGroup ...
	PrincipalTypeForeignGroup PrincipalType = "ForeignGroup"
	// PrincipalTypeGroup ...
	PrincipalTypeGroup PrincipalType = "Group"
	// PrincipalTypeServicePrincipal ...
	PrincipalTypeServicePrincipal PrincipalType = "ServicePrincipal"
	// PrincipalTypeUser ...
	PrincipalTypeUser PrincipalType = "User"
)

func PossiblePrincipalTypeValues

func PossiblePrincipalTypeValues() []PrincipalType

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

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

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

func (client ProviderOperationsMetadataClient) GetSender(req *http.Request) (*http.Response, error)

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

func (ProviderOperationsMetadataClient) List

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

func (ProviderOperationsMetadataClient) ListComplete

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

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

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

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

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

func (ProviderOperationsMetadataListResultIterator) Response

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

func (ProviderOperationsMetadataListResultIterator) Value

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

Creates a new instance of the ProviderOperationsMetadataListResultPage type.

func (*ProviderOperationsMetadataListResultPage) Next

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

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

func (ProviderOperationsMetadataListResultPage) Response

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

func (ProviderOperationsMetadataListResultPage) Values

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

type RecipientType

type RecipientType string

RecipientType enumerates the values for recipient type.

const (
	// RecipientTypeAdmin ...
	RecipientTypeAdmin RecipientType = "Admin"
	// RecipientTypeApprover ...
	RecipientTypeApprover RecipientType = "Approver"
	// RecipientTypeRequestor ...
	RecipientTypeRequestor RecipientType = "Requestor"
)

func PossibleRecipientTypeValues

func PossibleRecipientTypeValues() []RecipientType

PossibleRecipientTypeValues returns an array of possible values for the RecipientType const type.

type RequestType

type RequestType string

RequestType enumerates the values for request type.

const (
	// RequestTypeAdminAssign ...
	RequestTypeAdminAssign RequestType = "AdminAssign"
	// RequestTypeAdminExtend ...
	RequestTypeAdminExtend RequestType = "AdminExtend"
	// RequestTypeAdminRemove ...
	RequestTypeAdminRemove RequestType = "AdminRemove"
	// RequestTypeAdminRenew ...
	RequestTypeAdminRenew RequestType = "AdminRenew"
	// RequestTypeAdminUpdate ...
	RequestTypeAdminUpdate RequestType = "AdminUpdate"
	// RequestTypeSelfActivate ...
	RequestTypeSelfActivate RequestType = "SelfActivate"
	// RequestTypeSelfDeactivate ...
	RequestTypeSelfDeactivate RequestType = "SelfDeactivate"
	// RequestTypeSelfExtend ...
	RequestTypeSelfExtend RequestType = "SelfExtend"
	// RequestTypeSelfRenew ...
	RequestTypeSelfRenew RequestType = "SelfRenew"
)

func PossibleRequestTypeValues

func PossibleRequestTypeValues() []RequestType

PossibleRequestTypeValues returns an array of possible values for the RequestType const type.

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"`
	// Properties - Role assignment properties.
	Properties *RoleAssignmentPropertiesWithScope `json:"properties,omitempty"`
}

RoleAssignment role Assignments

func (RoleAssignment) MarshalJSON

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

MarshalJSON is the custom marshaler for RoleAssignment.

type RoleAssignmentCreateParameters

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

RoleAssignmentCreateParameters role assignment create parameters.

type RoleAssignmentFilter

type RoleAssignmentFilter struct {
	// PrincipalID - Returns role assignment of the specific principal.
	PrincipalID *string `json:"principalId,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

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

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

func (RoleAssignmentListResultIterator) Value

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

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

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

func (RoleAssignmentListResultPage) Values

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

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

RoleAssignmentPropertiesWithScope role assignment properties with scope.

type RoleAssignmentSchedule

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

RoleAssignmentSchedule role Assignment schedule

func (RoleAssignmentSchedule) MarshalJSON

func (ras RoleAssignmentSchedule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleAssignmentSchedule.

func (*RoleAssignmentSchedule) UnmarshalJSON

func (ras *RoleAssignmentSchedule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleAssignmentSchedule struct.

type RoleAssignmentScheduleFilter

type RoleAssignmentScheduleFilter struct {
	// PrincipalID - Returns role assignment schedule of the specific principal.
	PrincipalID *string `json:"principalId,omitempty"`
	// RoleDefinitionID - Returns role assignment schedule of the specific role definition.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// Status - Returns role assignment schedule instances of the specific status.
	Status *string `json:"status,omitempty"`
}

RoleAssignmentScheduleFilter role assignment schedule filter

type RoleAssignmentScheduleInstance

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

RoleAssignmentScheduleInstance information about current or upcoming role assignment schedule instance

func (RoleAssignmentScheduleInstance) MarshalJSON

func (rasi RoleAssignmentScheduleInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleAssignmentScheduleInstance.

func (*RoleAssignmentScheduleInstance) UnmarshalJSON

func (rasi *RoleAssignmentScheduleInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleAssignmentScheduleInstance struct.

type RoleAssignmentScheduleInstanceFilter

type RoleAssignmentScheduleInstanceFilter struct {
	// PrincipalID - Returns role assignment schedule instances of the specific principal.
	PrincipalID *string `json:"principalId,omitempty"`
	// RoleDefinitionID - Returns role assignment schedule instances of the specific role definition.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// Status - Returns role assignment schedule instances of the specific status.
	Status *string `json:"status,omitempty"`
	// RoleAssignmentScheduleID - Returns role assignment schedule instances belonging to a specific role assignment schedule.
	RoleAssignmentScheduleID *string `json:"roleAssignmentScheduleId,omitempty"`
}

RoleAssignmentScheduleInstanceFilter role assignment schedule instance filter

type RoleAssignmentScheduleInstanceListResult

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

RoleAssignmentScheduleInstanceListResult role assignment schedule instance list operation result.

func (RoleAssignmentScheduleInstanceListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type RoleAssignmentScheduleInstanceListResultIterator

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

RoleAssignmentScheduleInstanceListResultIterator provides access to a complete listing of RoleAssignmentScheduleInstance values.

func NewRoleAssignmentScheduleInstanceListResultIterator

func NewRoleAssignmentScheduleInstanceListResultIterator(page RoleAssignmentScheduleInstanceListResultPage) RoleAssignmentScheduleInstanceListResultIterator

Creates a new instance of the RoleAssignmentScheduleInstanceListResultIterator type.

func (*RoleAssignmentScheduleInstanceListResultIterator) Next

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 (*RoleAssignmentScheduleInstanceListResultIterator) NextWithContext

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

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

func (RoleAssignmentScheduleInstanceListResultIterator) Response

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

func (RoleAssignmentScheduleInstanceListResultIterator) Value

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

type RoleAssignmentScheduleInstanceListResultPage

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

RoleAssignmentScheduleInstanceListResultPage contains a page of RoleAssignmentScheduleInstance values.

func NewRoleAssignmentScheduleInstanceListResultPage

Creates a new instance of the RoleAssignmentScheduleInstanceListResultPage type.

func (*RoleAssignmentScheduleInstanceListResultPage) Next

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 (*RoleAssignmentScheduleInstanceListResultPage) NextWithContext

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

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

func (RoleAssignmentScheduleInstanceListResultPage) Response

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

func (RoleAssignmentScheduleInstanceListResultPage) Values

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

type RoleAssignmentScheduleInstanceProperties

type RoleAssignmentScheduleInstanceProperties struct {
	// Scope - The role assignment schedule scope.
	Scope *string `json:"scope,omitempty"`
	// RoleDefinitionID - The role definition ID.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// PrincipalID - The principal ID.
	PrincipalID *string `json:"principalId,omitempty"`
	// PrincipalType - The principal type of the assigned principal ID. Possible values include: 'PrincipalTypeUser', 'PrincipalTypeGroup', 'PrincipalTypeServicePrincipal', 'PrincipalTypeForeignGroup', 'PrincipalTypeDevice'
	PrincipalType PrincipalType `json:"principalType,omitempty"`
	// RoleAssignmentScheduleID - Id of the master role assignment schedule
	RoleAssignmentScheduleID *string `json:"roleAssignmentScheduleId,omitempty"`
	// OriginRoleAssignmentID - Role Assignment Id in external system
	OriginRoleAssignmentID *string `json:"originRoleAssignmentId,omitempty"`
	// Status - The status of the role assignment schedule instance. Possible values include: 'StatusAccepted', 'StatusPendingEvaluation', 'StatusGranted', 'StatusDenied', 'StatusPendingProvisioning', 'StatusProvisioned', 'StatusPendingRevocation', 'StatusRevoked', 'StatusCanceled', 'StatusFailed', 'StatusPendingApprovalProvisioning', 'StatusPendingApproval', 'StatusFailedAsResourceIsLocked', 'StatusPendingAdminDecision', 'StatusAdminApproved', 'StatusAdminDenied', 'StatusTimedOut', 'StatusProvisioningStarted', 'StatusInvalid', 'StatusPendingScheduleCreation', 'StatusScheduleCreated', 'StatusPendingExternalProvisioning'
	Status Status `json:"status,omitempty"`
	// StartDateTime - The startDateTime of the role assignment schedule instance
	StartDateTime *date.Time `json:"startDateTime,omitempty"`
	// EndDateTime - The endDateTime of the role assignment schedule instance
	EndDateTime *date.Time `json:"endDateTime,omitempty"`
	// LinkedRoleEligibilityScheduleID - roleEligibilityScheduleId used to activate
	LinkedRoleEligibilityScheduleID *string `json:"linkedRoleEligibilityScheduleId,omitempty"`
	// LinkedRoleEligibilityScheduleInstanceID - roleEligibilityScheduleInstanceId linked to this roleAssignmentScheduleInstance
	LinkedRoleEligibilityScheduleInstanceID *string `json:"linkedRoleEligibilityScheduleInstanceId,omitempty"`
	// AssignmentType - Assignment type of the role assignment schedule. Possible values include: 'AssignmentTypeActivated', 'AssignmentTypeAssigned'
	AssignmentType AssignmentType `json:"assignmentType,omitempty"`
	// MemberType - Membership type of the role assignment schedule. Possible values include: 'MemberTypeInherited', 'MemberTypeDirect', 'MemberTypeGroup'
	MemberType MemberType `json:"memberType,omitempty"`
	// Condition - The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
	Condition *string `json:"condition,omitempty"`
	// ConditionVersion - Version of the condition. Currently accepted value is '2.0'
	ConditionVersion *string `json:"conditionVersion,omitempty"`
	// CreatedOn - DateTime when role assignment schedule was created
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// ExpandedProperties - Additional properties of principal, scope and role definition
	ExpandedProperties *ExpandedProperties `json:"expandedProperties,omitempty"`
}

RoleAssignmentScheduleInstanceProperties role assignment schedule properties with scope.

type RoleAssignmentScheduleInstancesClient

type RoleAssignmentScheduleInstancesClient struct {
	BaseClient
}

RoleAssignmentScheduleInstancesClient is the client for the RoleAssignmentScheduleInstances methods of the Authorization service.

func NewRoleAssignmentScheduleInstancesClient

func NewRoleAssignmentScheduleInstancesClient(subscriptionID string) RoleAssignmentScheduleInstancesClient

NewRoleAssignmentScheduleInstancesClient creates an instance of the RoleAssignmentScheduleInstancesClient client.

func NewRoleAssignmentScheduleInstancesClientWithBaseURI

func NewRoleAssignmentScheduleInstancesClientWithBaseURI(baseURI string, subscriptionID string) RoleAssignmentScheduleInstancesClient

NewRoleAssignmentScheduleInstancesClientWithBaseURI creates an instance of the RoleAssignmentScheduleInstancesClient 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 (RoleAssignmentScheduleInstancesClient) Get

func (client RoleAssignmentScheduleInstancesClient) Get(ctx context.Context, scope string, roleAssignmentScheduleInstanceName string) (result RoleAssignmentScheduleInstance, err error)

Get gets the specified role assignment schedule instance. Parameters: scope - the scope of the role assignments schedules. roleAssignmentScheduleInstanceName - the name (hash of schedule name + time) of the role assignment schedule to get.

func (RoleAssignmentScheduleInstancesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RoleAssignmentScheduleInstancesClient) GetResponder

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

func (RoleAssignmentScheduleInstancesClient) GetSender

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

func (RoleAssignmentScheduleInstancesClient) ListForScope

ListForScope gets role assignment schedule instances of a role assignment schedule. Parameters: scope - the scope of the role assignment schedule. filter - the filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role assignment schedule instances for the user. Use $filter=asTarget() to return all role assignment schedule instances created for the current user.

func (RoleAssignmentScheduleInstancesClient) ListForScopeComplete

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

func (RoleAssignmentScheduleInstancesClient) ListForScopePreparer

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

ListForScopePreparer prepares the ListForScope request.

func (RoleAssignmentScheduleInstancesClient) ListForScopeResponder

func (client RoleAssignmentScheduleInstancesClient) ListForScopeResponder(resp *http.Response) (result RoleAssignmentScheduleInstanceListResult, err error)

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

func (RoleAssignmentScheduleInstancesClient) ListForScopeSender

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

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

type RoleAssignmentScheduleListResult

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

RoleAssignmentScheduleListResult role assignment schedule list operation result.

func (RoleAssignmentScheduleListResult) IsEmpty

func (raslr RoleAssignmentScheduleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RoleAssignmentScheduleListResultIterator

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

RoleAssignmentScheduleListResultIterator provides access to a complete listing of RoleAssignmentSchedule values.

func NewRoleAssignmentScheduleListResultIterator

func NewRoleAssignmentScheduleListResultIterator(page RoleAssignmentScheduleListResultPage) RoleAssignmentScheduleListResultIterator

Creates a new instance of the RoleAssignmentScheduleListResultIterator type.

func (*RoleAssignmentScheduleListResultIterator) Next

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 (*RoleAssignmentScheduleListResultIterator) NextWithContext

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

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

func (RoleAssignmentScheduleListResultIterator) Response

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

func (RoleAssignmentScheduleListResultIterator) Value

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

type RoleAssignmentScheduleListResultPage

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

RoleAssignmentScheduleListResultPage contains a page of RoleAssignmentSchedule values.

func NewRoleAssignmentScheduleListResultPage

Creates a new instance of the RoleAssignmentScheduleListResultPage type.

func (*RoleAssignmentScheduleListResultPage) Next

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 (*RoleAssignmentScheduleListResultPage) NextWithContext

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

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

func (RoleAssignmentScheduleListResultPage) Response

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

func (RoleAssignmentScheduleListResultPage) Values

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

type RoleAssignmentScheduleProperties

type RoleAssignmentScheduleProperties struct {
	// Scope - The role assignment schedule scope.
	Scope *string `json:"scope,omitempty"`
	// RoleDefinitionID - The role definition ID.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// PrincipalID - The principal ID.
	PrincipalID *string `json:"principalId,omitempty"`
	// PrincipalType - The principal type of the assigned principal ID. Possible values include: 'PrincipalTypeUser', 'PrincipalTypeGroup', 'PrincipalTypeServicePrincipal', 'PrincipalTypeForeignGroup', 'PrincipalTypeDevice'
	PrincipalType PrincipalType `json:"principalType,omitempty"`
	// RoleAssignmentScheduleRequestID - The id of roleAssignmentScheduleRequest used to create this roleAssignmentSchedule
	RoleAssignmentScheduleRequestID *string `json:"roleAssignmentScheduleRequestId,omitempty"`
	// LinkedRoleEligibilityScheduleID - The id of roleEligibilitySchedule used to activated this roleAssignmentSchedule
	LinkedRoleEligibilityScheduleID *string `json:"linkedRoleEligibilityScheduleId,omitempty"`
	// AssignmentType - Assignment type of the role assignment schedule. Possible values include: 'AssignmentTypeActivated', 'AssignmentTypeAssigned'
	AssignmentType AssignmentType `json:"assignmentType,omitempty"`
	// MemberType - Membership type of the role assignment schedule. Possible values include: 'MemberTypeInherited', 'MemberTypeDirect', 'MemberTypeGroup'
	MemberType MemberType `json:"memberType,omitempty"`
	// Status - The status of the role assignment schedule. Possible values include: 'StatusAccepted', 'StatusPendingEvaluation', 'StatusGranted', 'StatusDenied', 'StatusPendingProvisioning', 'StatusProvisioned', 'StatusPendingRevocation', 'StatusRevoked', 'StatusCanceled', 'StatusFailed', 'StatusPendingApprovalProvisioning', 'StatusPendingApproval', 'StatusFailedAsResourceIsLocked', 'StatusPendingAdminDecision', 'StatusAdminApproved', 'StatusAdminDenied', 'StatusTimedOut', 'StatusProvisioningStarted', 'StatusInvalid', 'StatusPendingScheduleCreation', 'StatusScheduleCreated', 'StatusPendingExternalProvisioning'
	Status Status `json:"status,omitempty"`
	// StartDateTime - Start DateTime when role assignment schedule
	StartDateTime *date.Time `json:"startDateTime,omitempty"`
	// EndDateTime - End DateTime when role assignment schedule
	EndDateTime *date.Time `json:"endDateTime,omitempty"`
	// Condition - The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
	Condition *string `json:"condition,omitempty"`
	// ConditionVersion - Version of the condition. Currently accepted value is '2.0'
	ConditionVersion *string `json:"conditionVersion,omitempty"`
	// CreatedOn - DateTime when role assignment schedule was created
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// UpdatedOn - DateTime when role assignment schedule was modified
	UpdatedOn *date.Time `json:"updatedOn,omitempty"`
	// ExpandedProperties - Additional properties of principal, scope and role definition
	ExpandedProperties *ExpandedProperties `json:"expandedProperties,omitempty"`
}

RoleAssignmentScheduleProperties role assignment schedule properties with scope.

type RoleAssignmentScheduleRequest

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

RoleAssignmentScheduleRequest role Assignment schedule request

func (RoleAssignmentScheduleRequest) MarshalJSON

func (rasr RoleAssignmentScheduleRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleAssignmentScheduleRequest.

func (*RoleAssignmentScheduleRequest) UnmarshalJSON

func (rasr *RoleAssignmentScheduleRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleAssignmentScheduleRequest struct.

type RoleAssignmentScheduleRequestFilter

type RoleAssignmentScheduleRequestFilter struct {
	// PrincipalID - Returns role assignment requests of the specific principal.
	PrincipalID *string `json:"principalId,omitempty"`
	// RoleDefinitionID - Returns role assignment requests of the specific role definition.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// RequestorID - Returns role assignment requests created by specific principal.
	RequestorID *string `json:"requestorId,omitempty"`
	// Status - Returns role assignment requests of specific status.
	Status *string `json:"status,omitempty"`
}

RoleAssignmentScheduleRequestFilter role assignment schedule request filter

type RoleAssignmentScheduleRequestListResult

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

RoleAssignmentScheduleRequestListResult role assignment schedule request list operation result.

func (RoleAssignmentScheduleRequestListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type RoleAssignmentScheduleRequestListResultIterator

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

RoleAssignmentScheduleRequestListResultIterator provides access to a complete listing of RoleAssignmentScheduleRequest values.

func NewRoleAssignmentScheduleRequestListResultIterator

func NewRoleAssignmentScheduleRequestListResultIterator(page RoleAssignmentScheduleRequestListResultPage) RoleAssignmentScheduleRequestListResultIterator

Creates a new instance of the RoleAssignmentScheduleRequestListResultIterator type.

func (*RoleAssignmentScheduleRequestListResultIterator) Next

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 (*RoleAssignmentScheduleRequestListResultIterator) NextWithContext

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

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

func (RoleAssignmentScheduleRequestListResultIterator) Response

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

func (RoleAssignmentScheduleRequestListResultIterator) Value

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

type RoleAssignmentScheduleRequestListResultPage

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

RoleAssignmentScheduleRequestListResultPage contains a page of RoleAssignmentScheduleRequest values.

func NewRoleAssignmentScheduleRequestListResultPage

Creates a new instance of the RoleAssignmentScheduleRequestListResultPage type.

func (*RoleAssignmentScheduleRequestListResultPage) Next

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 (*RoleAssignmentScheduleRequestListResultPage) NextWithContext

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

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

func (RoleAssignmentScheduleRequestListResultPage) Response

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

func (RoleAssignmentScheduleRequestListResultPage) Values

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

type RoleAssignmentScheduleRequestProperties

type RoleAssignmentScheduleRequestProperties struct {
	// Scope - READ-ONLY; The role assignment schedule request scope.
	Scope *string `json:"scope,omitempty"`
	// RoleDefinitionID - The role definition ID.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// PrincipalID - The principal ID.
	PrincipalID *string `json:"principalId,omitempty"`
	// PrincipalType - READ-ONLY; The principal type of the assigned principal ID. Possible values include: 'PrincipalTypeUser', 'PrincipalTypeGroup', 'PrincipalTypeServicePrincipal', 'PrincipalTypeForeignGroup', 'PrincipalTypeDevice'
	PrincipalType PrincipalType `json:"principalType,omitempty"`
	// RequestType - The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc. Possible values include: 'RequestTypeAdminAssign', 'RequestTypeAdminRemove', 'RequestTypeAdminUpdate', 'RequestTypeAdminExtend', 'RequestTypeAdminRenew', 'RequestTypeSelfActivate', 'RequestTypeSelfDeactivate', 'RequestTypeSelfExtend', 'RequestTypeSelfRenew'
	RequestType RequestType `json:"requestType,omitempty"`
	// Status - READ-ONLY; The status of the role assignment schedule request. Possible values include: 'StatusAccepted', 'StatusPendingEvaluation', 'StatusGranted', 'StatusDenied', 'StatusPendingProvisioning', 'StatusProvisioned', 'StatusPendingRevocation', 'StatusRevoked', 'StatusCanceled', 'StatusFailed', 'StatusPendingApprovalProvisioning', 'StatusPendingApproval', 'StatusFailedAsResourceIsLocked', 'StatusPendingAdminDecision', 'StatusAdminApproved', 'StatusAdminDenied', 'StatusTimedOut', 'StatusProvisioningStarted', 'StatusInvalid', 'StatusPendingScheduleCreation', 'StatusScheduleCreated', 'StatusPendingExternalProvisioning'
	Status Status `json:"status,omitempty"`
	// ApprovalID - READ-ONLY; The approvalId of the role assignment schedule request.
	ApprovalID *string `json:"approvalId,omitempty"`
	// TargetRoleAssignmentScheduleID - The resultant role assignment schedule id or the role assignment schedule id being updated
	TargetRoleAssignmentScheduleID *string `json:"targetRoleAssignmentScheduleId,omitempty"`
	// TargetRoleAssignmentScheduleInstanceID - The role assignment schedule instance id being updated
	TargetRoleAssignmentScheduleInstanceID *string `json:"targetRoleAssignmentScheduleInstanceId,omitempty"`
	// ScheduleInfo - Schedule info of the role assignment schedule
	ScheduleInfo *RoleAssignmentScheduleRequestPropertiesScheduleInfo `json:"scheduleInfo,omitempty"`
	// LinkedRoleEligibilityScheduleID - The linked role eligibility schedule id - to activate an eligibility.
	LinkedRoleEligibilityScheduleID *string `json:"linkedRoleEligibilityScheduleId,omitempty"`
	// Justification - Justification for the role assignment
	Justification *string `json:"justification,omitempty"`
	// TicketInfo - Ticket Info of the role assignment
	TicketInfo *RoleAssignmentScheduleRequestPropertiesTicketInfo `json:"ticketInfo,omitempty"`
	// Condition - The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
	Condition *string `json:"condition,omitempty"`
	// ConditionVersion - Version of the condition. Currently accepted value is '2.0'
	ConditionVersion *string `json:"conditionVersion,omitempty"`
	// CreatedOn - READ-ONLY; DateTime when role assignment schedule request was created
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// RequestorID - READ-ONLY; Id of the user who created this request
	RequestorID *string `json:"requestorId,omitempty"`
	// ExpandedProperties - READ-ONLY; Additional properties of principal, scope and role definition
	ExpandedProperties *ExpandedProperties `json:"expandedProperties,omitempty"`
}

RoleAssignmentScheduleRequestProperties role assignment schedule request properties with scope.

func (RoleAssignmentScheduleRequestProperties) MarshalJSON

func (rasrp RoleAssignmentScheduleRequestProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleAssignmentScheduleRequestProperties.

type RoleAssignmentScheduleRequestPropertiesScheduleInfo

type RoleAssignmentScheduleRequestPropertiesScheduleInfo struct {
	// StartDateTime - Start DateTime of the role assignment schedule.
	StartDateTime *date.Time `json:"startDateTime,omitempty"`
	// Expiration - Expiration of the role assignment schedule
	Expiration *RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration `json:"expiration,omitempty"`
}

RoleAssignmentScheduleRequestPropertiesScheduleInfo schedule info of the role assignment schedule

type RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration

type RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration struct {
	// Type - Type of the role assignment schedule expiration. Possible values include: 'TypeAfterDuration', 'TypeAfterDateTime', 'TypeNoExpiration'
	Type Type `json:"type,omitempty"`
	// EndDateTime - End DateTime of the role assignment schedule.
	EndDateTime *date.Time `json:"endDateTime,omitempty"`
	// Duration - Duration of the role assignment schedule in TimeSpan.
	Duration *string `json:"duration,omitempty"`
}

RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration expiration of the role assignment schedule

type RoleAssignmentScheduleRequestPropertiesTicketInfo

type RoleAssignmentScheduleRequestPropertiesTicketInfo struct {
	// TicketNumber - Ticket number for the role assignment
	TicketNumber *string `json:"ticketNumber,omitempty"`
	// TicketSystem - Ticket system name for the role assignment
	TicketSystem *string `json:"ticketSystem,omitempty"`
}

RoleAssignmentScheduleRequestPropertiesTicketInfo ticket Info of the role assignment

type RoleAssignmentScheduleRequestsClient

type RoleAssignmentScheduleRequestsClient struct {
	BaseClient
}

RoleAssignmentScheduleRequestsClient is the client for the RoleAssignmentScheduleRequests methods of the Authorization service.

func NewRoleAssignmentScheduleRequestsClient

func NewRoleAssignmentScheduleRequestsClient(subscriptionID string) RoleAssignmentScheduleRequestsClient

NewRoleAssignmentScheduleRequestsClient creates an instance of the RoleAssignmentScheduleRequestsClient client.

func NewRoleAssignmentScheduleRequestsClientWithBaseURI

func NewRoleAssignmentScheduleRequestsClientWithBaseURI(baseURI string, subscriptionID string) RoleAssignmentScheduleRequestsClient

NewRoleAssignmentScheduleRequestsClientWithBaseURI creates an instance of the RoleAssignmentScheduleRequestsClient 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 (RoleAssignmentScheduleRequestsClient) Cancel

func (client RoleAssignmentScheduleRequestsClient) Cancel(ctx context.Context, scope string, roleAssignmentScheduleRequestName string) (result autorest.Response, err error)

Cancel cancels a pending role assignment schedule request. Parameters: scope - the scope of the role assignment request to cancel. roleAssignmentScheduleRequestName - the name of the role assignment request to cancel.

func (RoleAssignmentScheduleRequestsClient) CancelPreparer

func (client RoleAssignmentScheduleRequestsClient) CancelPreparer(ctx context.Context, scope string, roleAssignmentScheduleRequestName string) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (RoleAssignmentScheduleRequestsClient) CancelResponder

func (client RoleAssignmentScheduleRequestsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (RoleAssignmentScheduleRequestsClient) CancelSender

func (client RoleAssignmentScheduleRequestsClient) CancelSender(req *http.Request) (*http.Response, error)

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

func (RoleAssignmentScheduleRequestsClient) Create

func (client RoleAssignmentScheduleRequestsClient) Create(ctx context.Context, scope string, roleAssignmentScheduleRequestName string, parameters RoleAssignmentScheduleRequest) (result RoleAssignmentScheduleRequest, err error)

Create creates a role assignment schedule request. Parameters: scope - the scope of the role assignment schedule request 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. roleAssignmentScheduleRequestName - a GUID for the role assignment to create. The name must be unique and different for each role assignment. parameters - parameters for the role assignment schedule request.

func (RoleAssignmentScheduleRequestsClient) CreatePreparer

func (client RoleAssignmentScheduleRequestsClient) CreatePreparer(ctx context.Context, scope string, roleAssignmentScheduleRequestName string, parameters RoleAssignmentScheduleRequest) (*http.Request, error)

CreatePreparer prepares the Create request.

func (RoleAssignmentScheduleRequestsClient) CreateResponder

func (client RoleAssignmentScheduleRequestsClient) CreateResponder(resp *http.Response) (result RoleAssignmentScheduleRequest, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (RoleAssignmentScheduleRequestsClient) CreateSender

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

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

func (RoleAssignmentScheduleRequestsClient) Get

func (client RoleAssignmentScheduleRequestsClient) Get(ctx context.Context, scope string, roleAssignmentScheduleRequestName string) (result RoleAssignmentScheduleRequest, err error)

Get get the specified role assignment schedule request. Parameters: scope - the scope of the role assignment schedule request. roleAssignmentScheduleRequestName - the name (guid) of the role assignment schedule request to get.

func (RoleAssignmentScheduleRequestsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RoleAssignmentScheduleRequestsClient) GetResponder

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

func (RoleAssignmentScheduleRequestsClient) GetSender

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

func (RoleAssignmentScheduleRequestsClient) ListForScope

ListForScope gets role assignment schedule requests for a scope. Parameters: scope - the scope of the role assignments schedule requests. filter - the filter to apply on the operation. Use $filter=atScope() to return all role assignment schedule requests at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedule requests at, above or below the scope for the specified principal. Use $filter=asRequestor() to return all role assignment schedule requests requested by the current user. Use $filter=asTarget() to return all role assignment schedule requests created for the current user. Use $filter=asApprover() to return all role assignment schedule requests where the current user is an approver.

func (RoleAssignmentScheduleRequestsClient) ListForScopeComplete

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

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

func (RoleAssignmentScheduleRequestsClient) ListForScopePreparer

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

ListForScopePreparer prepares the ListForScope request.

func (RoleAssignmentScheduleRequestsClient) ListForScopeResponder

func (client RoleAssignmentScheduleRequestsClient) ListForScopeResponder(resp *http.Response) (result RoleAssignmentScheduleRequestListResult, err error)

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

func (RoleAssignmentScheduleRequestsClient) ListForScopeSender

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

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

func (RoleAssignmentScheduleRequestsClient) Validate

func (client RoleAssignmentScheduleRequestsClient) Validate(ctx context.Context, scope string, roleAssignmentScheduleRequestName string, parameters RoleAssignmentScheduleRequest) (result RoleAssignmentScheduleRequest, err error)

Validate validates a new role assignment schedule request. Parameters: scope - the scope of the role assignment request to validate. roleAssignmentScheduleRequestName - the name of the role assignment request to validate. parameters - parameters for the role assignment schedule request.

func (RoleAssignmentScheduleRequestsClient) ValidatePreparer

func (client RoleAssignmentScheduleRequestsClient) ValidatePreparer(ctx context.Context, scope string, roleAssignmentScheduleRequestName string, parameters RoleAssignmentScheduleRequest) (*http.Request, error)

ValidatePreparer prepares the Validate request.

func (RoleAssignmentScheduleRequestsClient) ValidateResponder

func (client RoleAssignmentScheduleRequestsClient) ValidateResponder(resp *http.Response) (result RoleAssignmentScheduleRequest, err error)

ValidateResponder handles the response to the Validate request. The method always closes the http.Response Body.

func (RoleAssignmentScheduleRequestsClient) ValidateSender

func (client RoleAssignmentScheduleRequestsClient) ValidateSender(req *http.Request) (*http.Response, error)

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

type RoleAssignmentSchedulesClient

type RoleAssignmentSchedulesClient struct {
	BaseClient
}

RoleAssignmentSchedulesClient is the client for the RoleAssignmentSchedules methods of the Authorization service.

func NewRoleAssignmentSchedulesClient

func NewRoleAssignmentSchedulesClient(subscriptionID string) RoleAssignmentSchedulesClient

NewRoleAssignmentSchedulesClient creates an instance of the RoleAssignmentSchedulesClient client.

func NewRoleAssignmentSchedulesClientWithBaseURI

func NewRoleAssignmentSchedulesClientWithBaseURI(baseURI string, subscriptionID string) RoleAssignmentSchedulesClient

NewRoleAssignmentSchedulesClientWithBaseURI creates an instance of the RoleAssignmentSchedulesClient 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 (RoleAssignmentSchedulesClient) Get

func (client RoleAssignmentSchedulesClient) Get(ctx context.Context, scope string, roleAssignmentScheduleName string) (result RoleAssignmentSchedule, err error)

Get get the specified role assignment schedule for a resource scope Parameters: scope - the scope of the role assignment schedule. roleAssignmentScheduleName - the name (guid) of the role assignment schedule to get.

func (RoleAssignmentSchedulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RoleAssignmentSchedulesClient) GetResponder

func (client RoleAssignmentSchedulesClient) GetResponder(resp *http.Response) (result RoleAssignmentSchedule, err error)

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

func (RoleAssignmentSchedulesClient) GetSender

func (client RoleAssignmentSchedulesClient) GetSender(req *http.Request) (*http.Response, error)

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

func (RoleAssignmentSchedulesClient) ListForScope

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

ListForScope gets role assignment schedules for a resource scope. Parameters: scope - the scope of the role assignments schedules. filter - the filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role assignment schedules for the current user. Use $filter=asTarget() to return all role assignment schedules created for the current user.

func (RoleAssignmentSchedulesClient) ListForScopeComplete

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

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

func (RoleAssignmentSchedulesClient) ListForScopePreparer

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

ListForScopePreparer prepares the ListForScope request.

func (RoleAssignmentSchedulesClient) ListForScopeResponder

func (client RoleAssignmentSchedulesClient) ListForScopeResponder(resp *http.Response) (result RoleAssignmentScheduleListResult, err error)

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

func (RoleAssignmentSchedulesClient) ListForScopeSender

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

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

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 - a GUID for the role assignment to create. The name must be unique and different for each role assignment. parameters - parameters for the role assignment.

func (RoleAssignmentsClient) CreateByID

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

CreateByID creates a role assignment by ID. Parameters: roleAssignmentID - the fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. parameters - parameters for the role assignment.

func (RoleAssignmentsClient) CreateByIDPreparer

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

CreateByIDPreparer prepares the CreateByID request.

func (RoleAssignmentsClient) CreateByIDResponder

func (client RoleAssignmentsClient) CreateByIDResponder(resp *http.Response) (result RoleAssignment, err error)

CreateByIDResponder handles the response to the CreateByID request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) CreateByIDSender

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

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

func (RoleAssignmentsClient) CreatePreparer

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

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

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

func (RoleAssignmentsClient) Delete

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, roleAssignmentID string) (result RoleAssignment, err error)

DeleteByID deletes a role assignment. Parameters: roleAssignmentID - the fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.

func (RoleAssignmentsClient) DeleteByIDPreparer

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

DeleteByIDPreparer prepares the DeleteByID request.

func (RoleAssignmentsClient) DeleteByIDResponder

func (client RoleAssignmentsClient) DeleteByIDResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteByIDResponder handles the response to the DeleteByID request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) DeleteByIDSender

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

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

func (RoleAssignmentsClient) DeletePreparer

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

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

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

func (RoleAssignmentsClient) Get

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, roleAssignmentID string) (result RoleAssignment, err error)

GetByID gets a role assignment by ID. Parameters: roleAssignmentID - the fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.

func (RoleAssignmentsClient) GetByIDPreparer

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

GetByIDPreparer prepares the GetByID request.

func (RoleAssignmentsClient) GetByIDResponder

func (client RoleAssignmentsClient) GetByIDResponder(resp *http.Response) (result RoleAssignment, err error)

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

func (RoleAssignmentsClient) GetByIDSender

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

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

func (RoleAssignmentsClient) GetPreparer

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

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

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

func (RoleAssignmentsClient) List

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. The name is case insensitive. 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. The name is case insensitive. 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

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

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

func (RoleAssignmentsClient) ListPreparer

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

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

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

type RoleDefinition

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

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

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

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

func (RoleDefinitionListResultIterator) Value

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

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

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

func (RoleDefinitionListResultPage) Values

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

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

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

func (RoleDefinitionsClient) Delete

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

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

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

func (RoleDefinitionsClient) Get

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, roleDefinitionID string) (result RoleDefinition, err error)

GetByID gets a role definition by ID. Parameters: roleDefinitionID - 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, roleDefinitionID string) (*http.Request, error)

GetByIDPreparer prepares the GetByID request.

func (RoleDefinitionsClient) GetByIDResponder

func (client RoleDefinitionsClient) GetByIDResponder(resp *http.Response) (result RoleDefinition, err error)

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

func (RoleDefinitionsClient) GetByIDSender

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

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

func (RoleDefinitionsClient) GetPreparer

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

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

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

func (RoleDefinitionsClient) List

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

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

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

type RoleEligibilitySchedule

type RoleEligibilitySchedule struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; The role eligibility schedule Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The role eligibility schedule name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The role eligibility schedule type.
	Type *string `json:"type,omitempty"`
	// RoleEligibilityScheduleProperties - role eligibility schedule properties.
	*RoleEligibilityScheduleProperties `json:"properties,omitempty"`
}

RoleEligibilitySchedule role eligibility schedule

func (RoleEligibilitySchedule) MarshalJSON

func (res RoleEligibilitySchedule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleEligibilitySchedule.

func (*RoleEligibilitySchedule) UnmarshalJSON

func (res *RoleEligibilitySchedule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleEligibilitySchedule struct.

type RoleEligibilityScheduleFilter

type RoleEligibilityScheduleFilter struct {
	// PrincipalID - Returns role eligibility schedule of the specific principal.
	PrincipalID *string `json:"principalId,omitempty"`
	// RoleDefinitionID - Returns role eligibility schedule of the specific role definition.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// Status - Returns role eligibility schedule of the specific status.
	Status *string `json:"status,omitempty"`
}

RoleEligibilityScheduleFilter role eligibility schedule filter

type RoleEligibilityScheduleInstance

type RoleEligibilityScheduleInstance struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; The role eligibility schedule instance ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The role eligibility schedule instance name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The role eligibility schedule instance type.
	Type *string `json:"type,omitempty"`
	// RoleEligibilityScheduleInstanceProperties - Role eligibility schedule instance properties.
	*RoleEligibilityScheduleInstanceProperties `json:"properties,omitempty"`
}

RoleEligibilityScheduleInstance information about current or upcoming role eligibility schedule instance

func (RoleEligibilityScheduleInstance) MarshalJSON

func (resi RoleEligibilityScheduleInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleEligibilityScheduleInstance.

func (*RoleEligibilityScheduleInstance) UnmarshalJSON

func (resi *RoleEligibilityScheduleInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleEligibilityScheduleInstance struct.

type RoleEligibilityScheduleInstanceFilter

type RoleEligibilityScheduleInstanceFilter struct {
	// PrincipalID - Returns role eligibility schedule instances of the specific principal.
	PrincipalID *string `json:"principalId,omitempty"`
	// RoleDefinitionID - Returns role eligibility schedule instances of the specific role definition.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// Status - Returns role eligibility schedule instances of the specific status.
	Status *string `json:"status,omitempty"`
	// RoleEligibilityScheduleID - Returns role eligibility schedule instances belonging to a specific role eligibility schedule.
	RoleEligibilityScheduleID *string `json:"roleEligibilityScheduleId,omitempty"`
}

RoleEligibilityScheduleInstanceFilter role eligibility schedule instance filter

type RoleEligibilityScheduleInstanceListResult

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

RoleEligibilityScheduleInstanceListResult role eligibility schedule instance list operation result.

func (RoleEligibilityScheduleInstanceListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type RoleEligibilityScheduleInstanceListResultIterator

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

RoleEligibilityScheduleInstanceListResultIterator provides access to a complete listing of RoleEligibilityScheduleInstance values.

func NewRoleEligibilityScheduleInstanceListResultIterator

func NewRoleEligibilityScheduleInstanceListResultIterator(page RoleEligibilityScheduleInstanceListResultPage) RoleEligibilityScheduleInstanceListResultIterator

Creates a new instance of the RoleEligibilityScheduleInstanceListResultIterator type.

func (*RoleEligibilityScheduleInstanceListResultIterator) Next

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 (*RoleEligibilityScheduleInstanceListResultIterator) NextWithContext

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 (RoleEligibilityScheduleInstanceListResultIterator) NotDone

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

func (RoleEligibilityScheduleInstanceListResultIterator) Response

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

func (RoleEligibilityScheduleInstanceListResultIterator) Value

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

type RoleEligibilityScheduleInstanceListResultPage

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

RoleEligibilityScheduleInstanceListResultPage contains a page of RoleEligibilityScheduleInstance values.

func NewRoleEligibilityScheduleInstanceListResultPage

Creates a new instance of the RoleEligibilityScheduleInstanceListResultPage type.

func (*RoleEligibilityScheduleInstanceListResultPage) Next

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 (*RoleEligibilityScheduleInstanceListResultPage) NextWithContext

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

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

func (RoleEligibilityScheduleInstanceListResultPage) Response

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

func (RoleEligibilityScheduleInstanceListResultPage) Values

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

type RoleEligibilityScheduleInstanceProperties

type RoleEligibilityScheduleInstanceProperties struct {
	// Scope - The role eligibility schedule scope.
	Scope *string `json:"scope,omitempty"`
	// RoleDefinitionID - The role definition ID.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// PrincipalID - The principal ID.
	PrincipalID *string `json:"principalId,omitempty"`
	// PrincipalType - The principal type of the assigned principal ID. Possible values include: 'PrincipalTypeUser', 'PrincipalTypeGroup', 'PrincipalTypeServicePrincipal', 'PrincipalTypeForeignGroup', 'PrincipalTypeDevice'
	PrincipalType PrincipalType `json:"principalType,omitempty"`
	// RoleEligibilityScheduleID - Id of the master role eligibility schedule
	RoleEligibilityScheduleID *string `json:"roleEligibilityScheduleId,omitempty"`
	// Status - The status of the role eligibility schedule instance. Possible values include: 'StatusAccepted', 'StatusPendingEvaluation', 'StatusGranted', 'StatusDenied', 'StatusPendingProvisioning', 'StatusProvisioned', 'StatusPendingRevocation', 'StatusRevoked', 'StatusCanceled', 'StatusFailed', 'StatusPendingApprovalProvisioning', 'StatusPendingApproval', 'StatusFailedAsResourceIsLocked', 'StatusPendingAdminDecision', 'StatusAdminApproved', 'StatusAdminDenied', 'StatusTimedOut', 'StatusProvisioningStarted', 'StatusInvalid', 'StatusPendingScheduleCreation', 'StatusScheduleCreated', 'StatusPendingExternalProvisioning'
	Status Status `json:"status,omitempty"`
	// StartDateTime - The startDateTime of the role eligibility schedule instance
	StartDateTime *date.Time `json:"startDateTime,omitempty"`
	// EndDateTime - The endDateTime of the role eligibility schedule instance
	EndDateTime *date.Time `json:"endDateTime,omitempty"`
	// MemberType - Membership type of the role eligibility schedule. Possible values include: 'MemberTypeInherited', 'MemberTypeDirect', 'MemberTypeGroup'
	MemberType MemberType `json:"memberType,omitempty"`
	// Condition - The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
	Condition *string `json:"condition,omitempty"`
	// ConditionVersion - Version of the condition. Currently accepted value is '2.0'
	ConditionVersion *string `json:"conditionVersion,omitempty"`
	// CreatedOn - DateTime when role eligibility schedule was created
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// ExpandedProperties - Additional properties of principal, scope and role definition
	ExpandedProperties *ExpandedProperties `json:"expandedProperties,omitempty"`
}

RoleEligibilityScheduleInstanceProperties role eligibility schedule properties with scope.

type RoleEligibilityScheduleInstancesClient

type RoleEligibilityScheduleInstancesClient struct {
	BaseClient
}

RoleEligibilityScheduleInstancesClient is the client for the RoleEligibilityScheduleInstances methods of the Authorization service.

func NewRoleEligibilityScheduleInstancesClient

func NewRoleEligibilityScheduleInstancesClient(subscriptionID string) RoleEligibilityScheduleInstancesClient

NewRoleEligibilityScheduleInstancesClient creates an instance of the RoleEligibilityScheduleInstancesClient client.

func NewRoleEligibilityScheduleInstancesClientWithBaseURI

func NewRoleEligibilityScheduleInstancesClientWithBaseURI(baseURI string, subscriptionID string) RoleEligibilityScheduleInstancesClient

NewRoleEligibilityScheduleInstancesClientWithBaseURI creates an instance of the RoleEligibilityScheduleInstancesClient 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 (RoleEligibilityScheduleInstancesClient) Get

func (client RoleEligibilityScheduleInstancesClient) Get(ctx context.Context, scope string, roleEligibilityScheduleInstanceName string) (result RoleEligibilityScheduleInstance, err error)

Get gets the specified role eligibility schedule instance. Parameters: scope - the scope of the role eligibility schedules. roleEligibilityScheduleInstanceName - the name (hash of schedule name + time) of the role eligibility schedule to get.

func (RoleEligibilityScheduleInstancesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RoleEligibilityScheduleInstancesClient) GetResponder

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

func (RoleEligibilityScheduleInstancesClient) GetSender

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

func (RoleEligibilityScheduleInstancesClient) ListForScope

ListForScope gets role eligibility schedule instances of a role eligibility schedule. Parameters: scope - the scope of the role eligibility schedule. filter - the filter to apply on the operation. Use $filter=atScope() to return all role assignment schedules at or above the scope. Use $filter=principalId eq {id} to return all role assignment schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role eligibility schedules for the user. Use $filter=asTarget() to return all role eligibility schedules created for the current user.

func (RoleEligibilityScheduleInstancesClient) ListForScopeComplete

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

func (RoleEligibilityScheduleInstancesClient) ListForScopePreparer

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

ListForScopePreparer prepares the ListForScope request.

func (RoleEligibilityScheduleInstancesClient) ListForScopeResponder

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

func (RoleEligibilityScheduleInstancesClient) ListForScopeSender

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

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

type RoleEligibilityScheduleListResult

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

RoleEligibilityScheduleListResult role eligibility schedule list operation result.

func (RoleEligibilityScheduleListResult) IsEmpty

func (reslr RoleEligibilityScheduleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RoleEligibilityScheduleListResultIterator

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

RoleEligibilityScheduleListResultIterator provides access to a complete listing of RoleEligibilitySchedule values.

func NewRoleEligibilityScheduleListResultIterator

func NewRoleEligibilityScheduleListResultIterator(page RoleEligibilityScheduleListResultPage) RoleEligibilityScheduleListResultIterator

Creates a new instance of the RoleEligibilityScheduleListResultIterator type.

func (*RoleEligibilityScheduleListResultIterator) Next

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 (*RoleEligibilityScheduleListResultIterator) NextWithContext

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

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

func (RoleEligibilityScheduleListResultIterator) Response

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

func (RoleEligibilityScheduleListResultIterator) Value

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

type RoleEligibilityScheduleListResultPage

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

RoleEligibilityScheduleListResultPage contains a page of RoleEligibilitySchedule values.

func NewRoleEligibilityScheduleListResultPage

Creates a new instance of the RoleEligibilityScheduleListResultPage type.

func (*RoleEligibilityScheduleListResultPage) Next

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 (*RoleEligibilityScheduleListResultPage) NextWithContext

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

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

func (RoleEligibilityScheduleListResultPage) Response

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

func (RoleEligibilityScheduleListResultPage) Values

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

type RoleEligibilityScheduleProperties

type RoleEligibilityScheduleProperties struct {
	// Scope - The role eligibility schedule scope.
	Scope *string `json:"scope,omitempty"`
	// RoleDefinitionID - The role definition ID.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// PrincipalID - The principal ID.
	PrincipalID *string `json:"principalId,omitempty"`
	// PrincipalType - The principal type of the assigned principal ID. Possible values include: 'PrincipalTypeUser', 'PrincipalTypeGroup', 'PrincipalTypeServicePrincipal', 'PrincipalTypeForeignGroup', 'PrincipalTypeDevice'
	PrincipalType PrincipalType `json:"principalType,omitempty"`
	// RoleEligibilityScheduleRequestID - The id of roleEligibilityScheduleRequest used to create this roleAssignmentSchedule
	RoleEligibilityScheduleRequestID *string `json:"roleEligibilityScheduleRequestId,omitempty"`
	// MemberType - Membership type of the role eligibility schedule. Possible values include: 'MemberTypeInherited', 'MemberTypeDirect', 'MemberTypeGroup'
	MemberType MemberType `json:"memberType,omitempty"`
	// Status - The status of the role eligibility schedule. Possible values include: 'StatusAccepted', 'StatusPendingEvaluation', 'StatusGranted', 'StatusDenied', 'StatusPendingProvisioning', 'StatusProvisioned', 'StatusPendingRevocation', 'StatusRevoked', 'StatusCanceled', 'StatusFailed', 'StatusPendingApprovalProvisioning', 'StatusPendingApproval', 'StatusFailedAsResourceIsLocked', 'StatusPendingAdminDecision', 'StatusAdminApproved', 'StatusAdminDenied', 'StatusTimedOut', 'StatusProvisioningStarted', 'StatusInvalid', 'StatusPendingScheduleCreation', 'StatusScheduleCreated', 'StatusPendingExternalProvisioning'
	Status Status `json:"status,omitempty"`
	// StartDateTime - Start DateTime when role eligibility schedule
	StartDateTime *date.Time `json:"startDateTime,omitempty"`
	// EndDateTime - End DateTime when role eligibility schedule
	EndDateTime *date.Time `json:"endDateTime,omitempty"`
	// Condition - The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
	Condition *string `json:"condition,omitempty"`
	// ConditionVersion - Version of the condition. Currently accepted value is '2.0'
	ConditionVersion *string `json:"conditionVersion,omitempty"`
	// CreatedOn - DateTime when role eligibility schedule was created
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// UpdatedOn - DateTime when role eligibility schedule was modified
	UpdatedOn *date.Time `json:"updatedOn,omitempty"`
	// ExpandedProperties - Additional properties of principal, scope and role definition
	ExpandedProperties *ExpandedProperties `json:"expandedProperties,omitempty"`
}

RoleEligibilityScheduleProperties role eligibility schedule properties with scope.

type RoleEligibilityScheduleRequest

type RoleEligibilityScheduleRequest struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; The role eligibility schedule request ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The role eligibility schedule request name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The role eligibility schedule request type.
	Type *string `json:"type,omitempty"`
	// RoleEligibilityScheduleRequestProperties - Role eligibility schedule request properties.
	*RoleEligibilityScheduleRequestProperties `json:"properties,omitempty"`
}

RoleEligibilityScheduleRequest role Eligibility schedule request

func (RoleEligibilityScheduleRequest) MarshalJSON

func (resr RoleEligibilityScheduleRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleEligibilityScheduleRequest.

func (*RoleEligibilityScheduleRequest) UnmarshalJSON

func (resr *RoleEligibilityScheduleRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleEligibilityScheduleRequest struct.

type RoleEligibilityScheduleRequestFilter

type RoleEligibilityScheduleRequestFilter struct {
	// PrincipalID - Returns role eligibility requests of the specific principal.
	PrincipalID *string `json:"principalId,omitempty"`
	// RoleDefinitionID - Returns role eligibility requests of the specific role definition.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// RequestorID - Returns role eligibility requests created by specific principal.
	RequestorID *string `json:"requestorId,omitempty"`
	// Status - Returns role eligibility requests of specific status.
	Status *string `json:"status,omitempty"`
}

RoleEligibilityScheduleRequestFilter role eligibility schedule request filter

type RoleEligibilityScheduleRequestListResult

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

RoleEligibilityScheduleRequestListResult role eligibility schedule request list operation result.

func (RoleEligibilityScheduleRequestListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type RoleEligibilityScheduleRequestListResultIterator

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

RoleEligibilityScheduleRequestListResultIterator provides access to a complete listing of RoleEligibilityScheduleRequest values.

func NewRoleEligibilityScheduleRequestListResultIterator

func NewRoleEligibilityScheduleRequestListResultIterator(page RoleEligibilityScheduleRequestListResultPage) RoleEligibilityScheduleRequestListResultIterator

Creates a new instance of the RoleEligibilityScheduleRequestListResultIterator type.

func (*RoleEligibilityScheduleRequestListResultIterator) Next

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 (*RoleEligibilityScheduleRequestListResultIterator) NextWithContext

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

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

func (RoleEligibilityScheduleRequestListResultIterator) Response

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

func (RoleEligibilityScheduleRequestListResultIterator) Value

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

type RoleEligibilityScheduleRequestListResultPage

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

RoleEligibilityScheduleRequestListResultPage contains a page of RoleEligibilityScheduleRequest values.

func NewRoleEligibilityScheduleRequestListResultPage

Creates a new instance of the RoleEligibilityScheduleRequestListResultPage type.

func (*RoleEligibilityScheduleRequestListResultPage) Next

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 (*RoleEligibilityScheduleRequestListResultPage) NextWithContext

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

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

func (RoleEligibilityScheduleRequestListResultPage) Response

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

func (RoleEligibilityScheduleRequestListResultPage) Values

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

type RoleEligibilityScheduleRequestProperties

type RoleEligibilityScheduleRequestProperties struct {
	// Scope - READ-ONLY; The role eligibility schedule request scope.
	Scope *string `json:"scope,omitempty"`
	// RoleDefinitionID - The role definition ID.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// PrincipalID - The principal ID.
	PrincipalID *string `json:"principalId,omitempty"`
	// PrincipalType - READ-ONLY; The principal type of the assigned principal ID. Possible values include: 'PrincipalTypeUser', 'PrincipalTypeGroup', 'PrincipalTypeServicePrincipal', 'PrincipalTypeForeignGroup', 'PrincipalTypeDevice'
	PrincipalType PrincipalType `json:"principalType,omitempty"`
	// RequestType - The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc. Possible values include: 'RequestTypeAdminAssign', 'RequestTypeAdminRemove', 'RequestTypeAdminUpdate', 'RequestTypeAdminExtend', 'RequestTypeAdminRenew', 'RequestTypeSelfActivate', 'RequestTypeSelfDeactivate', 'RequestTypeSelfExtend', 'RequestTypeSelfRenew'
	RequestType RequestType `json:"requestType,omitempty"`
	// Status - READ-ONLY; The status of the role eligibility schedule request. Possible values include: 'StatusAccepted', 'StatusPendingEvaluation', 'StatusGranted', 'StatusDenied', 'StatusPendingProvisioning', 'StatusProvisioned', 'StatusPendingRevocation', 'StatusRevoked', 'StatusCanceled', 'StatusFailed', 'StatusPendingApprovalProvisioning', 'StatusPendingApproval', 'StatusFailedAsResourceIsLocked', 'StatusPendingAdminDecision', 'StatusAdminApproved', 'StatusAdminDenied', 'StatusTimedOut', 'StatusProvisioningStarted', 'StatusInvalid', 'StatusPendingScheduleCreation', 'StatusScheduleCreated', 'StatusPendingExternalProvisioning'
	Status Status `json:"status,omitempty"`
	// ApprovalID - READ-ONLY; The approvalId of the role eligibility schedule request.
	ApprovalID *string `json:"approvalId,omitempty"`
	// ScheduleInfo - Schedule info of the role eligibility schedule
	ScheduleInfo *RoleEligibilityScheduleRequestPropertiesScheduleInfo `json:"scheduleInfo,omitempty"`
	// TargetRoleEligibilityScheduleID - The resultant role eligibility schedule id or the role eligibility schedule id being updated
	TargetRoleEligibilityScheduleID *string `json:"targetRoleEligibilityScheduleId,omitempty"`
	// TargetRoleEligibilityScheduleInstanceID - The role eligibility schedule instance id being updated
	TargetRoleEligibilityScheduleInstanceID *string `json:"targetRoleEligibilityScheduleInstanceId,omitempty"`
	// Justification - Justification for the role eligibility
	Justification *string `json:"justification,omitempty"`
	// TicketInfo - Ticket Info of the role eligibility
	TicketInfo *RoleEligibilityScheduleRequestPropertiesTicketInfo `json:"ticketInfo,omitempty"`
	// Condition - The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
	Condition *string `json:"condition,omitempty"`
	// ConditionVersion - Version of the condition. Currently accepted value is '2.0'
	ConditionVersion *string `json:"conditionVersion,omitempty"`
	// CreatedOn - READ-ONLY; DateTime when role eligibility schedule request was created
	CreatedOn *date.Time `json:"createdOn,omitempty"`
	// RequestorID - READ-ONLY; Id of the user who created this request
	RequestorID *string `json:"requestorId,omitempty"`
	// ExpandedProperties - READ-ONLY; Additional properties of principal, scope and role definition
	ExpandedProperties *ExpandedProperties `json:"expandedProperties,omitempty"`
}

RoleEligibilityScheduleRequestProperties role eligibility schedule request properties with scope.

func (RoleEligibilityScheduleRequestProperties) MarshalJSON

func (resrp RoleEligibilityScheduleRequestProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleEligibilityScheduleRequestProperties.

type RoleEligibilityScheduleRequestPropertiesScheduleInfo

type RoleEligibilityScheduleRequestPropertiesScheduleInfo struct {
	// StartDateTime - Start DateTime of the role eligibility schedule.
	StartDateTime *date.Time `json:"startDateTime,omitempty"`
	// Expiration - Expiration of the role eligibility schedule
	Expiration *RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration `json:"expiration,omitempty"`
}

RoleEligibilityScheduleRequestPropertiesScheduleInfo schedule info of the role eligibility schedule

type RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration

type RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration struct {
	// Type - Type of the role eligibility schedule expiration. Possible values include: 'TypeAfterDuration', 'TypeAfterDateTime', 'TypeNoExpiration'
	Type Type `json:"type,omitempty"`
	// EndDateTime - End DateTime of the role eligibility schedule.
	EndDateTime *date.Time `json:"endDateTime,omitempty"`
	// Duration - Duration of the role eligibility schedule in TimeSpan.
	Duration *string `json:"duration,omitempty"`
}

RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration expiration of the role eligibility schedule

type RoleEligibilityScheduleRequestPropertiesTicketInfo

type RoleEligibilityScheduleRequestPropertiesTicketInfo struct {
	// TicketNumber - Ticket number for the role eligibility
	TicketNumber *string `json:"ticketNumber,omitempty"`
	// TicketSystem - Ticket system name for the role eligibility
	TicketSystem *string `json:"ticketSystem,omitempty"`
}

RoleEligibilityScheduleRequestPropertiesTicketInfo ticket Info of the role eligibility

type RoleEligibilityScheduleRequestsClient

type RoleEligibilityScheduleRequestsClient struct {
	BaseClient
}

RoleEligibilityScheduleRequestsClient is the client for the RoleEligibilityScheduleRequests methods of the Authorization service.

func NewRoleEligibilityScheduleRequestsClient

func NewRoleEligibilityScheduleRequestsClient(subscriptionID string) RoleEligibilityScheduleRequestsClient

NewRoleEligibilityScheduleRequestsClient creates an instance of the RoleEligibilityScheduleRequestsClient client.

func NewRoleEligibilityScheduleRequestsClientWithBaseURI

func NewRoleEligibilityScheduleRequestsClientWithBaseURI(baseURI string, subscriptionID string) RoleEligibilityScheduleRequestsClient

NewRoleEligibilityScheduleRequestsClientWithBaseURI creates an instance of the RoleEligibilityScheduleRequestsClient 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 (RoleEligibilityScheduleRequestsClient) Cancel

func (client RoleEligibilityScheduleRequestsClient) Cancel(ctx context.Context, scope string, roleEligibilityScheduleRequestName string) (result autorest.Response, err error)

Cancel cancels a pending role eligibility schedule request. Parameters: scope - the scope of the role eligibility request to cancel. roleEligibilityScheduleRequestName - the name of the role eligibility request to cancel.

func (RoleEligibilityScheduleRequestsClient) CancelPreparer

func (client RoleEligibilityScheduleRequestsClient) CancelPreparer(ctx context.Context, scope string, roleEligibilityScheduleRequestName string) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (RoleEligibilityScheduleRequestsClient) CancelResponder

func (client RoleEligibilityScheduleRequestsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (RoleEligibilityScheduleRequestsClient) CancelSender

func (client RoleEligibilityScheduleRequestsClient) CancelSender(req *http.Request) (*http.Response, error)

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

func (RoleEligibilityScheduleRequestsClient) Create

func (client RoleEligibilityScheduleRequestsClient) Create(ctx context.Context, scope string, roleEligibilityScheduleRequestName string, parameters RoleEligibilityScheduleRequest) (result RoleEligibilityScheduleRequest, err error)

Create creates a role eligibility schedule request. Parameters: scope - the scope of the role eligibility schedule request 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. roleEligibilityScheduleRequestName - the name of the role eligibility to create. It can be any valid GUID. parameters - parameters for the role eligibility schedule request.

func (RoleEligibilityScheduleRequestsClient) CreatePreparer

func (client RoleEligibilityScheduleRequestsClient) CreatePreparer(ctx context.Context, scope string, roleEligibilityScheduleRequestName string, parameters RoleEligibilityScheduleRequest) (*http.Request, error)

CreatePreparer prepares the Create request.

func (RoleEligibilityScheduleRequestsClient) CreateResponder

func (client RoleEligibilityScheduleRequestsClient) CreateResponder(resp *http.Response) (result RoleEligibilityScheduleRequest, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (RoleEligibilityScheduleRequestsClient) CreateSender

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

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

func (RoleEligibilityScheduleRequestsClient) Get

func (client RoleEligibilityScheduleRequestsClient) Get(ctx context.Context, scope string, roleEligibilityScheduleRequestName string) (result RoleEligibilityScheduleRequest, err error)

Get get the specified role eligibility schedule request. Parameters: scope - the scope of the role eligibility schedule request. roleEligibilityScheduleRequestName - the name (guid) of the role eligibility schedule request to get.

func (RoleEligibilityScheduleRequestsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RoleEligibilityScheduleRequestsClient) GetResponder

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

func (RoleEligibilityScheduleRequestsClient) GetSender

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

func (RoleEligibilityScheduleRequestsClient) ListForScope

ListForScope gets role eligibility schedule requests for a scope. Parameters: scope - the scope of the role eligibility schedule requests. filter - the filter to apply on the operation. Use $filter=atScope() to return all role eligibility schedule requests at or above the scope. Use $filter=principalId eq {id} to return all role eligibility schedule requests at, above or below the scope for the specified principal. Use $filter=asRequestor() to return all role eligibility schedule requests requested by the current user. Use $filter=asTarget() to return all role eligibility schedule requests created for the current user. Use $filter=asApprover() to return all role eligibility schedule requests where the current user is an approver.

func (RoleEligibilityScheduleRequestsClient) ListForScopeComplete

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

func (RoleEligibilityScheduleRequestsClient) ListForScopePreparer

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

ListForScopePreparer prepares the ListForScope request.

func (RoleEligibilityScheduleRequestsClient) ListForScopeResponder

func (client RoleEligibilityScheduleRequestsClient) ListForScopeResponder(resp *http.Response) (result RoleEligibilityScheduleRequestListResult, err error)

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

func (RoleEligibilityScheduleRequestsClient) ListForScopeSender

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

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

func (RoleEligibilityScheduleRequestsClient) Validate

func (client RoleEligibilityScheduleRequestsClient) Validate(ctx context.Context, scope string, roleEligibilityScheduleRequestName string, parameters RoleEligibilityScheduleRequest) (result RoleEligibilityScheduleRequest, err error)

Validate validates a new role eligibility schedule request. Parameters: scope - the scope of the role eligibility request to validate. roleEligibilityScheduleRequestName - the name of the role eligibility request to validate. parameters - parameters for the role eligibility schedule request.

func (RoleEligibilityScheduleRequestsClient) ValidatePreparer

func (client RoleEligibilityScheduleRequestsClient) ValidatePreparer(ctx context.Context, scope string, roleEligibilityScheduleRequestName string, parameters RoleEligibilityScheduleRequest) (*http.Request, error)

ValidatePreparer prepares the Validate request.

func (RoleEligibilityScheduleRequestsClient) ValidateResponder

func (client RoleEligibilityScheduleRequestsClient) ValidateResponder(resp *http.Response) (result RoleEligibilityScheduleRequest, err error)

ValidateResponder handles the response to the Validate request. The method always closes the http.Response Body.

func (RoleEligibilityScheduleRequestsClient) ValidateSender

func (client RoleEligibilityScheduleRequestsClient) ValidateSender(req *http.Request) (*http.Response, error)

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

type RoleEligibilitySchedulesClient

type RoleEligibilitySchedulesClient struct {
	BaseClient
}

RoleEligibilitySchedulesClient is the client for the RoleEligibilitySchedules methods of the Authorization service.

func NewRoleEligibilitySchedulesClient

func NewRoleEligibilitySchedulesClient(subscriptionID string) RoleEligibilitySchedulesClient

NewRoleEligibilitySchedulesClient creates an instance of the RoleEligibilitySchedulesClient client.

func NewRoleEligibilitySchedulesClientWithBaseURI

func NewRoleEligibilitySchedulesClientWithBaseURI(baseURI string, subscriptionID string) RoleEligibilitySchedulesClient

NewRoleEligibilitySchedulesClientWithBaseURI creates an instance of the RoleEligibilitySchedulesClient 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 (RoleEligibilitySchedulesClient) Get

func (client RoleEligibilitySchedulesClient) Get(ctx context.Context, scope string, roleEligibilityScheduleName string) (result RoleEligibilitySchedule, err error)

Get get the specified role eligibility schedule for a resource scope Parameters: scope - the scope of the role eligibility schedule. roleEligibilityScheduleName - the name (guid) of the role eligibility schedule to get.

func (RoleEligibilitySchedulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RoleEligibilitySchedulesClient) GetResponder

func (client RoleEligibilitySchedulesClient) GetResponder(resp *http.Response) (result RoleEligibilitySchedule, err error)

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

func (RoleEligibilitySchedulesClient) GetSender

func (client RoleEligibilitySchedulesClient) GetSender(req *http.Request) (*http.Response, error)

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

func (RoleEligibilitySchedulesClient) ListForScope

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

ListForScope gets role eligibility schedules for a resource scope. Parameters: scope - the scope of the role eligibility schedules. filter - the filter to apply on the operation. Use $filter=atScope() to return all role eligibility schedules at or above the scope. Use $filter=principalId eq {id} to return all role eligibility schedules at, above or below the scope for the specified principal. Use $filter=assignedTo('{userId}') to return all role eligibility schedules for the user. Use $filter=asTarget() to return all role eligibility schedules created for the current user.

func (RoleEligibilitySchedulesClient) ListForScopeComplete

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

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

func (RoleEligibilitySchedulesClient) ListForScopePreparer

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

ListForScopePreparer prepares the ListForScope request.

func (RoleEligibilitySchedulesClient) ListForScopeResponder

func (client RoleEligibilitySchedulesClient) ListForScopeResponder(resp *http.Response) (result RoleEligibilityScheduleListResult, err error)

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

func (RoleEligibilitySchedulesClient) ListForScopeSender

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

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

type RoleManagementPoliciesClient

type RoleManagementPoliciesClient struct {
	BaseClient
}

RoleManagementPoliciesClient is the client for the RoleManagementPolicies methods of the Authorization service.

func NewRoleManagementPoliciesClient

func NewRoleManagementPoliciesClient(subscriptionID string) RoleManagementPoliciesClient

NewRoleManagementPoliciesClient creates an instance of the RoleManagementPoliciesClient client.

func NewRoleManagementPoliciesClientWithBaseURI

func NewRoleManagementPoliciesClientWithBaseURI(baseURI string, subscriptionID string) RoleManagementPoliciesClient

NewRoleManagementPoliciesClientWithBaseURI creates an instance of the RoleManagementPoliciesClient 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 (RoleManagementPoliciesClient) Delete

func (client RoleManagementPoliciesClient) Delete(ctx context.Context, scope string, roleManagementPolicyName string) (result autorest.Response, err error)

Delete delete a role management policy Parameters: scope - the scope of the role management policy to upsert. roleManagementPolicyName - the name (guid) of the role management policy to upsert.

func (RoleManagementPoliciesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (RoleManagementPoliciesClient) DeleteResponder

func (client RoleManagementPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (RoleManagementPoliciesClient) DeleteSender

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

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

func (RoleManagementPoliciesClient) Get

func (client RoleManagementPoliciesClient) Get(ctx context.Context, scope string, roleManagementPolicyName string) (result RoleManagementPolicy, err error)

Get get the specified role management policy for a resource scope Parameters: scope - the scope of the role management policy. roleManagementPolicyName - the name (guid) of the role management policy to get.

func (RoleManagementPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RoleManagementPoliciesClient) GetResponder

func (client RoleManagementPoliciesClient) GetResponder(resp *http.Response) (result RoleManagementPolicy, err error)

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

func (RoleManagementPoliciesClient) GetSender

func (client RoleManagementPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

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

func (RoleManagementPoliciesClient) ListForScope

func (client RoleManagementPoliciesClient) ListForScope(ctx context.Context, scope string) (result RoleManagementPolicyListResultPage, err error)

ListForScope gets role management policies for a resource scope. Parameters: scope - the scope of the role management policy.

func (RoleManagementPoliciesClient) ListForScopeComplete

func (client RoleManagementPoliciesClient) ListForScopeComplete(ctx context.Context, scope string) (result RoleManagementPolicyListResultIterator, err error)

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

func (RoleManagementPoliciesClient) ListForScopePreparer

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

ListForScopePreparer prepares the ListForScope request.

func (RoleManagementPoliciesClient) ListForScopeResponder

func (client RoleManagementPoliciesClient) ListForScopeResponder(resp *http.Response) (result RoleManagementPolicyListResult, err error)

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

func (RoleManagementPoliciesClient) ListForScopeSender

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

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

func (RoleManagementPoliciesClient) Update

func (client RoleManagementPoliciesClient) Update(ctx context.Context, scope string, roleManagementPolicyName string, parameters RoleManagementPolicy) (result RoleManagementPolicy, err error)

Update update a role management policy Parameters: scope - the scope of the role management policy to upsert. roleManagementPolicyName - the name (guid) of the role management policy to upsert. parameters - parameters for the role management policy.

func (RoleManagementPoliciesClient) UpdatePreparer

func (client RoleManagementPoliciesClient) UpdatePreparer(ctx context.Context, scope string, roleManagementPolicyName string, parameters RoleManagementPolicy) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (RoleManagementPoliciesClient) UpdateResponder

func (client RoleManagementPoliciesClient) UpdateResponder(resp *http.Response) (result RoleManagementPolicy, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (RoleManagementPoliciesClient) UpdateSender

func (client RoleManagementPoliciesClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type RoleManagementPolicy

type RoleManagementPolicy struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; The role management policy Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The role management policy name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The role management policy type.
	Type *string `json:"type,omitempty"`
	// RoleManagementPolicyProperties - Role management policy properties.
	*RoleManagementPolicyProperties `json:"properties,omitempty"`
}

RoleManagementPolicy role management policy

func (RoleManagementPolicy) MarshalJSON

func (rmp RoleManagementPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicy.

func (*RoleManagementPolicy) UnmarshalJSON

func (rmp *RoleManagementPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleManagementPolicy struct.

type RoleManagementPolicyApprovalRule

type RoleManagementPolicyApprovalRule struct {
	// Setting - The approval setting
	Setting *ApprovalSettings `json:"setting,omitempty"`
	// ID - The id of the rule.
	ID *string `json:"id,omitempty"`
	// Target - The target of the current rule.
	Target *RoleManagementPolicyRuleTarget `json:"target,omitempty"`
	// RuleType - Possible values include: 'RuleTypeRoleManagementPolicyRule', 'RuleTypeRoleManagementPolicyApprovalRule', 'RuleTypeRoleManagementPolicyAuthenticationContextRule', 'RuleTypeRoleManagementPolicyEnablementRule', 'RuleTypeRoleManagementPolicyExpirationRule', 'RuleTypeRoleManagementPolicyNotificationRule'
	RuleType RuleType `json:"ruleType,omitempty"`
}

RoleManagementPolicyApprovalRule the role management policy approval rule.

func (RoleManagementPolicyApprovalRule) AsBasicRoleManagementPolicyRule

func (rmpar RoleManagementPolicyApprovalRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool)

AsBasicRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyApprovalRule.

func (RoleManagementPolicyApprovalRule) AsRoleManagementPolicyApprovalRule

func (rmpar RoleManagementPolicyApprovalRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool)

AsRoleManagementPolicyApprovalRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyApprovalRule.

func (RoleManagementPolicyApprovalRule) AsRoleManagementPolicyAuthenticationContextRule

func (rmpar RoleManagementPolicyApprovalRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool)

AsRoleManagementPolicyAuthenticationContextRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyApprovalRule.

func (RoleManagementPolicyApprovalRule) AsRoleManagementPolicyEnablementRule

func (rmpar RoleManagementPolicyApprovalRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool)

AsRoleManagementPolicyEnablementRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyApprovalRule.

func (RoleManagementPolicyApprovalRule) AsRoleManagementPolicyExpirationRule

func (rmpar RoleManagementPolicyApprovalRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool)

AsRoleManagementPolicyExpirationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyApprovalRule.

func (RoleManagementPolicyApprovalRule) AsRoleManagementPolicyNotificationRule

func (rmpar RoleManagementPolicyApprovalRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool)

AsRoleManagementPolicyNotificationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyApprovalRule.

func (RoleManagementPolicyApprovalRule) AsRoleManagementPolicyRule

func (rmpar RoleManagementPolicyApprovalRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool)

AsRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyApprovalRule.

func (RoleManagementPolicyApprovalRule) MarshalJSON

func (rmpar RoleManagementPolicyApprovalRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicyApprovalRule.

type RoleManagementPolicyAssignment

type RoleManagementPolicyAssignment struct {
	autorest.Response `json:"-"`
	// ID - READ-ONLY; The role management policy Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The role management policy name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The role management policy type.
	Type *string `json:"type,omitempty"`
	// RoleManagementPolicyAssignmentProperties - Role management policy properties.
	*RoleManagementPolicyAssignmentProperties `json:"properties,omitempty"`
}

RoleManagementPolicyAssignment role management policy

func (RoleManagementPolicyAssignment) MarshalJSON

func (rmpa RoleManagementPolicyAssignment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicyAssignment.

func (*RoleManagementPolicyAssignment) UnmarshalJSON

func (rmpa *RoleManagementPolicyAssignment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleManagementPolicyAssignment struct.

type RoleManagementPolicyAssignmentListResult

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

RoleManagementPolicyAssignmentListResult role management policy assignment list operation result.

func (RoleManagementPolicyAssignmentListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type RoleManagementPolicyAssignmentListResultIterator

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

RoleManagementPolicyAssignmentListResultIterator provides access to a complete listing of RoleManagementPolicyAssignment values.

func NewRoleManagementPolicyAssignmentListResultIterator

func NewRoleManagementPolicyAssignmentListResultIterator(page RoleManagementPolicyAssignmentListResultPage) RoleManagementPolicyAssignmentListResultIterator

Creates a new instance of the RoleManagementPolicyAssignmentListResultIterator type.

func (*RoleManagementPolicyAssignmentListResultIterator) Next

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 (*RoleManagementPolicyAssignmentListResultIterator) NextWithContext

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

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

func (RoleManagementPolicyAssignmentListResultIterator) Response

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

func (RoleManagementPolicyAssignmentListResultIterator) Value

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

type RoleManagementPolicyAssignmentListResultPage

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

RoleManagementPolicyAssignmentListResultPage contains a page of RoleManagementPolicyAssignment values.

func NewRoleManagementPolicyAssignmentListResultPage

Creates a new instance of the RoleManagementPolicyAssignmentListResultPage type.

func (*RoleManagementPolicyAssignmentListResultPage) Next

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 (*RoleManagementPolicyAssignmentListResultPage) NextWithContext

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

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

func (RoleManagementPolicyAssignmentListResultPage) Response

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

func (RoleManagementPolicyAssignmentListResultPage) Values

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

type RoleManagementPolicyAssignmentProperties

type RoleManagementPolicyAssignmentProperties struct {
	// Scope - The role management policy scope.
	Scope *string `json:"scope,omitempty"`
	// RoleDefinitionID - The role definition of management policy assignment.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
	// PolicyID - The policy id role management policy assignment.
	PolicyID *string `json:"policyId,omitempty"`
	// EffectiveRules - READ-ONLY; The readonly computed rule applied to the policy.
	EffectiveRules *[]BasicRoleManagementPolicyRule `json:"effectiveRules,omitempty"`
	// PolicyAssignmentProperties - READ-ONLY; Additional properties of scope, role definition and policy
	PolicyAssignmentProperties *PolicyAssignmentProperties `json:"policyAssignmentProperties,omitempty"`
}

RoleManagementPolicyAssignmentProperties role management policy assignment properties with scope.

func (RoleManagementPolicyAssignmentProperties) MarshalJSON

func (rmpap RoleManagementPolicyAssignmentProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicyAssignmentProperties.

func (*RoleManagementPolicyAssignmentProperties) UnmarshalJSON

func (rmpap *RoleManagementPolicyAssignmentProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleManagementPolicyAssignmentProperties struct.

type RoleManagementPolicyAssignmentsClient

type RoleManagementPolicyAssignmentsClient struct {
	BaseClient
}

RoleManagementPolicyAssignmentsClient is the client for the RoleManagementPolicyAssignments methods of the Authorization service.

func NewRoleManagementPolicyAssignmentsClient

func NewRoleManagementPolicyAssignmentsClient(subscriptionID string) RoleManagementPolicyAssignmentsClient

NewRoleManagementPolicyAssignmentsClient creates an instance of the RoleManagementPolicyAssignmentsClient client.

func NewRoleManagementPolicyAssignmentsClientWithBaseURI

func NewRoleManagementPolicyAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) RoleManagementPolicyAssignmentsClient

NewRoleManagementPolicyAssignmentsClientWithBaseURI creates an instance of the RoleManagementPolicyAssignmentsClient 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 (RoleManagementPolicyAssignmentsClient) Create

func (client RoleManagementPolicyAssignmentsClient) Create(ctx context.Context, scope string, roleManagementPolicyAssignmentName string, parameters RoleManagementPolicyAssignment) (result RoleManagementPolicyAssignment, err error)

Create create a role management policy assignment Parameters: scope - the scope of the role management policy assignment to upsert. roleManagementPolicyAssignmentName - the name of format {guid_guid} the role management policy assignment to upsert. parameters - parameters for the role management policy assignment.

func (RoleManagementPolicyAssignmentsClient) CreatePreparer

func (client RoleManagementPolicyAssignmentsClient) CreatePreparer(ctx context.Context, scope string, roleManagementPolicyAssignmentName string, parameters RoleManagementPolicyAssignment) (*http.Request, error)

CreatePreparer prepares the Create request.

func (RoleManagementPolicyAssignmentsClient) CreateResponder

func (client RoleManagementPolicyAssignmentsClient) CreateResponder(resp *http.Response) (result RoleManagementPolicyAssignment, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (RoleManagementPolicyAssignmentsClient) CreateSender

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

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

func (RoleManagementPolicyAssignmentsClient) Delete

func (client RoleManagementPolicyAssignmentsClient) Delete(ctx context.Context, scope string, roleManagementPolicyAssignmentName string) (result autorest.Response, err error)

Delete delete a role management policy assignment Parameters: scope - the scope of the role management policy assignment to delete. roleManagementPolicyAssignmentName - the name of format {guid_guid} the role management policy assignment to delete.

func (RoleManagementPolicyAssignmentsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (RoleManagementPolicyAssignmentsClient) DeleteResponder

func (client RoleManagementPolicyAssignmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (RoleManagementPolicyAssignmentsClient) DeleteSender

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

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

func (RoleManagementPolicyAssignmentsClient) Get

func (client RoleManagementPolicyAssignmentsClient) Get(ctx context.Context, scope string, roleManagementPolicyAssignmentName string) (result RoleManagementPolicyAssignment, err error)

Get get the specified role management policy assignment for a resource scope Parameters: scope - the scope of the role management policy. roleManagementPolicyAssignmentName - the name of format {guid_guid} the role management policy assignment to get.

func (RoleManagementPolicyAssignmentsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RoleManagementPolicyAssignmentsClient) GetResponder

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

func (RoleManagementPolicyAssignmentsClient) GetSender

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

func (RoleManagementPolicyAssignmentsClient) ListForScope

ListForScope gets role management assignment policies for a resource scope. Parameters: scope - the scope of the role management policy.

func (RoleManagementPolicyAssignmentsClient) ListForScopeComplete

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

func (RoleManagementPolicyAssignmentsClient) ListForScopePreparer

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

ListForScopePreparer prepares the ListForScope request.

func (RoleManagementPolicyAssignmentsClient) ListForScopeResponder

func (client RoleManagementPolicyAssignmentsClient) ListForScopeResponder(resp *http.Response) (result RoleManagementPolicyAssignmentListResult, err error)

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

func (RoleManagementPolicyAssignmentsClient) ListForScopeSender

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

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

type RoleManagementPolicyAuthenticationContextRule

type RoleManagementPolicyAuthenticationContextRule struct {
	// IsEnabled - The value indicating if rule is enabled.
	IsEnabled *bool `json:"isEnabled,omitempty"`
	// ClaimValue - The claim value.
	ClaimValue *string `json:"claimValue,omitempty"`
	// ID - The id of the rule.
	ID *string `json:"id,omitempty"`
	// Target - The target of the current rule.
	Target *RoleManagementPolicyRuleTarget `json:"target,omitempty"`
	// RuleType - Possible values include: 'RuleTypeRoleManagementPolicyRule', 'RuleTypeRoleManagementPolicyApprovalRule', 'RuleTypeRoleManagementPolicyAuthenticationContextRule', 'RuleTypeRoleManagementPolicyEnablementRule', 'RuleTypeRoleManagementPolicyExpirationRule', 'RuleTypeRoleManagementPolicyNotificationRule'
	RuleType RuleType `json:"ruleType,omitempty"`
}

RoleManagementPolicyAuthenticationContextRule the role management policy authentication context rule.

func (RoleManagementPolicyAuthenticationContextRule) AsBasicRoleManagementPolicyRule

func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool)

AsBasicRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyAuthenticationContextRule.

func (RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyApprovalRule

func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool)

AsRoleManagementPolicyApprovalRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyAuthenticationContextRule.

func (RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyAuthenticationContextRule

func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool)

AsRoleManagementPolicyAuthenticationContextRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyAuthenticationContextRule.

func (RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyEnablementRule

func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool)

AsRoleManagementPolicyEnablementRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyAuthenticationContextRule.

func (RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyExpirationRule

func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool)

AsRoleManagementPolicyExpirationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyAuthenticationContextRule.

func (RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyNotificationRule

func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool)

AsRoleManagementPolicyNotificationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyAuthenticationContextRule.

func (RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyRule

func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool)

AsRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyAuthenticationContextRule.

func (RoleManagementPolicyAuthenticationContextRule) MarshalJSON

func (rmpacr RoleManagementPolicyAuthenticationContextRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicyAuthenticationContextRule.

type RoleManagementPolicyEnablementRule

type RoleManagementPolicyEnablementRule struct {
	// EnabledRules - The list of enabled rules.
	EnabledRules *[]EnablementRules `json:"enabledRules,omitempty"`
	// ID - The id of the rule.
	ID *string `json:"id,omitempty"`
	// Target - The target of the current rule.
	Target *RoleManagementPolicyRuleTarget `json:"target,omitempty"`
	// RuleType - Possible values include: 'RuleTypeRoleManagementPolicyRule', 'RuleTypeRoleManagementPolicyApprovalRule', 'RuleTypeRoleManagementPolicyAuthenticationContextRule', 'RuleTypeRoleManagementPolicyEnablementRule', 'RuleTypeRoleManagementPolicyExpirationRule', 'RuleTypeRoleManagementPolicyNotificationRule'
	RuleType RuleType `json:"ruleType,omitempty"`
}

RoleManagementPolicyEnablementRule the role management policy enablement rule.

func (RoleManagementPolicyEnablementRule) AsBasicRoleManagementPolicyRule

func (rmper RoleManagementPolicyEnablementRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool)

AsBasicRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyEnablementRule.

func (RoleManagementPolicyEnablementRule) AsRoleManagementPolicyApprovalRule

func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool)

AsRoleManagementPolicyApprovalRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyEnablementRule.

func (RoleManagementPolicyEnablementRule) AsRoleManagementPolicyAuthenticationContextRule

func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool)

AsRoleManagementPolicyAuthenticationContextRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyEnablementRule.

func (RoleManagementPolicyEnablementRule) AsRoleManagementPolicyEnablementRule

func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool)

AsRoleManagementPolicyEnablementRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyEnablementRule.

func (RoleManagementPolicyEnablementRule) AsRoleManagementPolicyExpirationRule

func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool)

AsRoleManagementPolicyExpirationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyEnablementRule.

func (RoleManagementPolicyEnablementRule) AsRoleManagementPolicyNotificationRule

func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool)

AsRoleManagementPolicyNotificationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyEnablementRule.

func (RoleManagementPolicyEnablementRule) AsRoleManagementPolicyRule

func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool)

AsRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyEnablementRule.

func (RoleManagementPolicyEnablementRule) MarshalJSON

func (rmper RoleManagementPolicyEnablementRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicyEnablementRule.

type RoleManagementPolicyExpirationRule

type RoleManagementPolicyExpirationRule struct {
	// IsExpirationRequired - The value indicating whether expiration is required.
	IsExpirationRequired *bool `json:"isExpirationRequired,omitempty"`
	// MaximumDuration - The maximum duration of expiration in timespan.
	MaximumDuration *string `json:"maximumDuration,omitempty"`
	// ID - The id of the rule.
	ID *string `json:"id,omitempty"`
	// Target - The target of the current rule.
	Target *RoleManagementPolicyRuleTarget `json:"target,omitempty"`
	// RuleType - Possible values include: 'RuleTypeRoleManagementPolicyRule', 'RuleTypeRoleManagementPolicyApprovalRule', 'RuleTypeRoleManagementPolicyAuthenticationContextRule', 'RuleTypeRoleManagementPolicyEnablementRule', 'RuleTypeRoleManagementPolicyExpirationRule', 'RuleTypeRoleManagementPolicyNotificationRule'
	RuleType RuleType `json:"ruleType,omitempty"`
}

RoleManagementPolicyExpirationRule the role management policy expiration rule.

func (RoleManagementPolicyExpirationRule) AsBasicRoleManagementPolicyRule

func (rmper RoleManagementPolicyExpirationRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool)

AsBasicRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyExpirationRule.

func (RoleManagementPolicyExpirationRule) AsRoleManagementPolicyApprovalRule

func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool)

AsRoleManagementPolicyApprovalRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyExpirationRule.

func (RoleManagementPolicyExpirationRule) AsRoleManagementPolicyAuthenticationContextRule

func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool)

AsRoleManagementPolicyAuthenticationContextRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyExpirationRule.

func (RoleManagementPolicyExpirationRule) AsRoleManagementPolicyEnablementRule

func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool)

AsRoleManagementPolicyEnablementRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyExpirationRule.

func (RoleManagementPolicyExpirationRule) AsRoleManagementPolicyExpirationRule

func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool)

AsRoleManagementPolicyExpirationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyExpirationRule.

func (RoleManagementPolicyExpirationRule) AsRoleManagementPolicyNotificationRule

func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool)

AsRoleManagementPolicyNotificationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyExpirationRule.

func (RoleManagementPolicyExpirationRule) AsRoleManagementPolicyRule

func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool)

AsRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyExpirationRule.

func (RoleManagementPolicyExpirationRule) MarshalJSON

func (rmper RoleManagementPolicyExpirationRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicyExpirationRule.

type RoleManagementPolicyListResult

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

RoleManagementPolicyListResult role management policy list operation result.

func (RoleManagementPolicyListResult) IsEmpty

func (rmplr RoleManagementPolicyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RoleManagementPolicyListResultIterator

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

RoleManagementPolicyListResultIterator provides access to a complete listing of RoleManagementPolicy values.

func NewRoleManagementPolicyListResultIterator

func NewRoleManagementPolicyListResultIterator(page RoleManagementPolicyListResultPage) RoleManagementPolicyListResultIterator

Creates a new instance of the RoleManagementPolicyListResultIterator type.

func (*RoleManagementPolicyListResultIterator) Next

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 (*RoleManagementPolicyListResultIterator) NextWithContext

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

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

func (RoleManagementPolicyListResultIterator) Response

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

func (RoleManagementPolicyListResultIterator) Value

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

type RoleManagementPolicyListResultPage

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

RoleManagementPolicyListResultPage contains a page of RoleManagementPolicy values.

func NewRoleManagementPolicyListResultPage

Creates a new instance of the RoleManagementPolicyListResultPage type.

func (*RoleManagementPolicyListResultPage) Next

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 (*RoleManagementPolicyListResultPage) NextWithContext

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

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

func (RoleManagementPolicyListResultPage) Response

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

func (RoleManagementPolicyListResultPage) Values

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

type RoleManagementPolicyNotificationRule

type RoleManagementPolicyNotificationRule struct {
	// NotificationType - The type of notification. Possible values include: 'NotificationDeliveryMechanismEmail'
	NotificationType NotificationDeliveryMechanism `json:"notificationType,omitempty"`
	// NotificationLevel - The notification level. Possible values include: 'NotificationLevelNone', 'NotificationLevelCritical', 'NotificationLevelAll'
	NotificationLevel NotificationLevel `json:"notificationLevel,omitempty"`
	// RecipientType - The recipient type. Possible values include: 'RecipientTypeRequestor', 'RecipientTypeApprover', 'RecipientTypeAdmin'
	RecipientType RecipientType `json:"recipientType,omitempty"`
	// NotificationRecipients - The list of notification recipients.
	NotificationRecipients *[]string `json:"notificationRecipients,omitempty"`
	// IsDefaultRecipientsEnabled - Determines if the notification will be sent to the recipient type specified in the policy rule.
	IsDefaultRecipientsEnabled *bool `json:"isDefaultRecipientsEnabled,omitempty"`
	// ID - The id of the rule.
	ID *string `json:"id,omitempty"`
	// Target - The target of the current rule.
	Target *RoleManagementPolicyRuleTarget `json:"target,omitempty"`
	// RuleType - Possible values include: 'RuleTypeRoleManagementPolicyRule', 'RuleTypeRoleManagementPolicyApprovalRule', 'RuleTypeRoleManagementPolicyAuthenticationContextRule', 'RuleTypeRoleManagementPolicyEnablementRule', 'RuleTypeRoleManagementPolicyExpirationRule', 'RuleTypeRoleManagementPolicyNotificationRule'
	RuleType RuleType `json:"ruleType,omitempty"`
}

RoleManagementPolicyNotificationRule the role management policy notification rule.

func (RoleManagementPolicyNotificationRule) AsBasicRoleManagementPolicyRule

func (rmpnr RoleManagementPolicyNotificationRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool)

AsBasicRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyNotificationRule.

func (RoleManagementPolicyNotificationRule) AsRoleManagementPolicyApprovalRule

func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool)

AsRoleManagementPolicyApprovalRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyNotificationRule.

func (RoleManagementPolicyNotificationRule) AsRoleManagementPolicyAuthenticationContextRule

func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool)

AsRoleManagementPolicyAuthenticationContextRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyNotificationRule.

func (RoleManagementPolicyNotificationRule) AsRoleManagementPolicyEnablementRule

func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool)

AsRoleManagementPolicyEnablementRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyNotificationRule.

func (RoleManagementPolicyNotificationRule) AsRoleManagementPolicyExpirationRule

func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool)

AsRoleManagementPolicyExpirationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyNotificationRule.

func (RoleManagementPolicyNotificationRule) AsRoleManagementPolicyNotificationRule

func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool)

AsRoleManagementPolicyNotificationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyNotificationRule.

func (RoleManagementPolicyNotificationRule) AsRoleManagementPolicyRule

func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool)

AsRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyNotificationRule.

func (RoleManagementPolicyNotificationRule) MarshalJSON

func (rmpnr RoleManagementPolicyNotificationRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicyNotificationRule.

type RoleManagementPolicyProperties

type RoleManagementPolicyProperties struct {
	// Scope - The role management policy scope.
	Scope *string `json:"scope,omitempty"`
	// DisplayName - The role management policy display name.
	DisplayName *string `json:"displayName,omitempty"`
	// Description - The role management policy description.
	Description *string `json:"description,omitempty"`
	// IsOrganizationDefault - The role management policy is default policy.
	IsOrganizationDefault *bool      `json:"isOrganizationDefault,omitempty"`
	LastModifiedBy        *Principal `json:"lastModifiedBy,omitempty"`
	// LastModifiedDateTime - READ-ONLY; The last modified date time.
	LastModifiedDateTime *date.Time `json:"lastModifiedDateTime,omitempty"`
	// Rules - The rule applied to the policy.
	Rules *[]BasicRoleManagementPolicyRule `json:"rules,omitempty"`
	// EffectiveRules - READ-ONLY; The readonly computed rule applied to the policy.
	EffectiveRules *[]BasicRoleManagementPolicyRule `json:"effectiveRules,omitempty"`
	// PolicyProperties - READ-ONLY; Additional properties of scope
	PolicyProperties *PolicyProperties `json:"policyProperties,omitempty"`
}

RoleManagementPolicyProperties role management policy properties with scope.

func (RoleManagementPolicyProperties) MarshalJSON

func (rmpp RoleManagementPolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicyProperties.

func (*RoleManagementPolicyProperties) UnmarshalJSON

func (rmpp *RoleManagementPolicyProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleManagementPolicyProperties struct.

type RoleManagementPolicyRule

type RoleManagementPolicyRule struct {
	// ID - The id of the rule.
	ID *string `json:"id,omitempty"`
	// Target - The target of the current rule.
	Target *RoleManagementPolicyRuleTarget `json:"target,omitempty"`
	// RuleType - Possible values include: 'RuleTypeRoleManagementPolicyRule', 'RuleTypeRoleManagementPolicyApprovalRule', 'RuleTypeRoleManagementPolicyAuthenticationContextRule', 'RuleTypeRoleManagementPolicyEnablementRule', 'RuleTypeRoleManagementPolicyExpirationRule', 'RuleTypeRoleManagementPolicyNotificationRule'
	RuleType RuleType `json:"ruleType,omitempty"`
}

RoleManagementPolicyRule the role management policy rule.

func (RoleManagementPolicyRule) AsBasicRoleManagementPolicyRule

func (rmpr RoleManagementPolicyRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool)

AsBasicRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyRule.

func (RoleManagementPolicyRule) AsRoleManagementPolicyApprovalRule

func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool)

AsRoleManagementPolicyApprovalRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyRule.

func (RoleManagementPolicyRule) AsRoleManagementPolicyAuthenticationContextRule

func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool)

AsRoleManagementPolicyAuthenticationContextRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyRule.

func (RoleManagementPolicyRule) AsRoleManagementPolicyEnablementRule

func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool)

AsRoleManagementPolicyEnablementRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyRule.

func (RoleManagementPolicyRule) AsRoleManagementPolicyExpirationRule

func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool)

AsRoleManagementPolicyExpirationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyRule.

func (RoleManagementPolicyRule) AsRoleManagementPolicyNotificationRule

func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool)

AsRoleManagementPolicyNotificationRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyRule.

func (RoleManagementPolicyRule) AsRoleManagementPolicyRule

func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool)

AsRoleManagementPolicyRule is the BasicRoleManagementPolicyRule implementation for RoleManagementPolicyRule.

func (RoleManagementPolicyRule) MarshalJSON

func (rmpr RoleManagementPolicyRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleManagementPolicyRule.

type RoleManagementPolicyRuleTarget

type RoleManagementPolicyRuleTarget struct {
	// Caller - The caller of the setting.
	Caller *string `json:"caller,omitempty"`
	// Operations - The type of operation.
	Operations *[]string `json:"operations,omitempty"`
	// Level - The assignment level to which rule is applied.
	Level *string `json:"level,omitempty"`
	// TargetObjects - The list of target objects.
	TargetObjects *[]string `json:"targetObjects,omitempty"`
	// InheritableSettings - The list of inheritable settings.
	InheritableSettings *[]string `json:"inheritableSettings,omitempty"`
	// EnforcedSettings - The list of enforced settings.
	EnforcedSettings *[]string `json:"enforcedSettings,omitempty"`
}

RoleManagementPolicyRuleTarget the role management policy rule target.

type RoleManagementPolicyRuleType

type RoleManagementPolicyRuleType string

RoleManagementPolicyRuleType enumerates the values for role management policy rule type.

const (
	// RoleManagementPolicyRuleTypeRoleManagementPolicyApprovalRule ...
	RoleManagementPolicyRuleTypeRoleManagementPolicyApprovalRule RoleManagementPolicyRuleType = "RoleManagementPolicyApprovalRule"
	// RoleManagementPolicyRuleTypeRoleManagementPolicyAuthenticationContextRule ...
	RoleManagementPolicyRuleTypeRoleManagementPolicyAuthenticationContextRule RoleManagementPolicyRuleType = "RoleManagementPolicyAuthenticationContextRule"
	// RoleManagementPolicyRuleTypeRoleManagementPolicyEnablementRule ...
	RoleManagementPolicyRuleTypeRoleManagementPolicyEnablementRule RoleManagementPolicyRuleType = "RoleManagementPolicyEnablementRule"
	// RoleManagementPolicyRuleTypeRoleManagementPolicyExpirationRule ...
	RoleManagementPolicyRuleTypeRoleManagementPolicyExpirationRule RoleManagementPolicyRuleType = "RoleManagementPolicyExpirationRule"
	// RoleManagementPolicyRuleTypeRoleManagementPolicyNotificationRule ...
	RoleManagementPolicyRuleTypeRoleManagementPolicyNotificationRule RoleManagementPolicyRuleType = "RoleManagementPolicyNotificationRule"
)

func PossibleRoleManagementPolicyRuleTypeValues

func PossibleRoleManagementPolicyRuleTypeValues() []RoleManagementPolicyRuleType

PossibleRoleManagementPolicyRuleTypeValues returns an array of possible values for the RoleManagementPolicyRuleType const type.

type RuleType

type RuleType string

RuleType enumerates the values for rule type.

const (
	// RuleTypeRoleManagementPolicyApprovalRule ...
	RuleTypeRoleManagementPolicyApprovalRule RuleType = "RoleManagementPolicyApprovalRule"
	// RuleTypeRoleManagementPolicyAuthenticationContextRule ...
	RuleTypeRoleManagementPolicyAuthenticationContextRule RuleType = "RoleManagementPolicyAuthenticationContextRule"
	// RuleTypeRoleManagementPolicyEnablementRule ...
	RuleTypeRoleManagementPolicyEnablementRule RuleType = "RoleManagementPolicyEnablementRule"
	// RuleTypeRoleManagementPolicyExpirationRule ...
	RuleTypeRoleManagementPolicyExpirationRule RuleType = "RoleManagementPolicyExpirationRule"
	// RuleTypeRoleManagementPolicyNotificationRule ...
	RuleTypeRoleManagementPolicyNotificationRule RuleType = "RoleManagementPolicyNotificationRule"
	// RuleTypeRoleManagementPolicyRule ...
	RuleTypeRoleManagementPolicyRule RuleType = "RoleManagementPolicyRule"
)

func PossibleRuleTypeValues

func PossibleRuleTypeValues() []RuleType

PossibleRuleTypeValues returns an array of possible values for the RuleType const type.

type Status

type Status string

Status enumerates the values for status.

const (
	// StatusAccepted ...
	StatusAccepted Status = "Accepted"
	// StatusAdminApproved ...
	StatusAdminApproved Status = "AdminApproved"
	// StatusAdminDenied ...
	StatusAdminDenied Status = "AdminDenied"
	// StatusCanceled ...
	StatusCanceled Status = "Canceled"
	// StatusDenied ...
	StatusDenied Status = "Denied"
	// StatusFailed ...
	StatusFailed Status = "Failed"
	// StatusFailedAsResourceIsLocked ...
	StatusFailedAsResourceIsLocked Status = "FailedAsResourceIsLocked"
	// StatusGranted ...
	StatusGranted Status = "Granted"
	// StatusInvalid ...
	StatusInvalid Status = "Invalid"
	// StatusPendingAdminDecision ...
	StatusPendingAdminDecision Status = "PendingAdminDecision"
	// StatusPendingApproval ...
	StatusPendingApproval Status = "PendingApproval"
	// StatusPendingApprovalProvisioning ...
	StatusPendingApprovalProvisioning Status = "PendingApprovalProvisioning"
	// StatusPendingEvaluation ...
	StatusPendingEvaluation Status = "PendingEvaluation"
	// StatusPendingExternalProvisioning ...
	StatusPendingExternalProvisioning Status = "PendingExternalProvisioning"
	// StatusPendingProvisioning ...
	StatusPendingProvisioning Status = "PendingProvisioning"
	// StatusPendingRevocation ...
	StatusPendingRevocation Status = "PendingRevocation"
	// StatusPendingScheduleCreation ...
	StatusPendingScheduleCreation Status = "PendingScheduleCreation"
	// StatusProvisioned ...
	StatusProvisioned Status = "Provisioned"
	// StatusProvisioningStarted ...
	StatusProvisioningStarted Status = "ProvisioningStarted"
	// StatusRevoked ...
	StatusRevoked Status = "Revoked"
	// StatusScheduleCreated ...
	StatusScheduleCreated Status = "ScheduleCreated"
	// StatusTimedOut ...
	StatusTimedOut Status = "TimedOut"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type Type

type Type string

Type enumerates the values for type.

const (
	// TypeAfterDateTime ...
	TypeAfterDateTime Type = "AfterDateTime"
	// TypeAfterDuration ...
	TypeAfterDuration Type = "AfterDuration"
	// TypeNoExpiration ...
	TypeNoExpiration Type = "NoExpiration"
)

func PossibleTypeValues

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type UserSet

type UserSet struct {
	// UserType - The type of user. Possible values include: 'UserTypeUser', 'UserTypeGroup'
	UserType UserType `json:"userType,omitempty"`
	// IsBackup - The value indicating whether the user is a backup fallback approver
	IsBackup *bool `json:"isBackup,omitempty"`
	// ID - The object id of the user.
	ID *string `json:"id,omitempty"`
	// Description - The description of the user.
	Description *string `json:"description,omitempty"`
}

UserSet the detail of a user.

type UserType

type UserType string

UserType enumerates the values for user type.

const (
	// UserTypeGroup ...
	UserTypeGroup UserType = "Group"
	// UserTypeUser ...
	UserTypeUser UserType = "User"
)

func PossibleUserTypeValues

func PossibleUserTypeValues() []UserType

PossibleUserTypeValues returns an array of possible values for the UserType const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL