parse

package
v0.0.0-...-0e4e14f Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructRoleAssignmentId

func ConstructRoleAssignmentId(azureResourceId, tenantId string) string

func DestructRoleAssignmentId

func DestructRoleAssignmentId(id string) (string, string)

func ValidateRoleManagementPolicyId

func ValidateRoleManagementPolicyId(input interface{}, key string) (warnings []string, errors []error)

func ValidateScopedRoleAssignmentID

func ValidateScopedRoleAssignmentID(input interface{}, key string) (warnings []string, errors []error)

Types

type PimRoleAssignmentId

type PimRoleAssignmentId struct {
	Scope            string
	RoleDefinitionId string
	PrincipalId      string
}

func NewPimRoleAssignmentID

func NewPimRoleAssignmentID(scope string, roleDefinitionId string, principalId string) PimRoleAssignmentId

func PimRoleAssignmentID

func PimRoleAssignmentID(input string) (*PimRoleAssignmentId, error)

func (PimRoleAssignmentId) ID

func (id PimRoleAssignmentId) ID() string

func (PimRoleAssignmentId) String

func (id PimRoleAssignmentId) String() string

type RoleAssignmentId

type RoleAssignmentId struct {
	SubscriptionID           string
	ResourceGroup            string
	ManagementGroup          string
	ResourceScope            string
	ResourceProvider         string
	Name                     string
	SubscriptionAlias        string
	TenantId                 string
	IsSubscriptionLevel      bool
	IsSubscriptionAliasLevel bool
}

func NewRoleAssignmentID

func NewRoleAssignmentID(subscriptionId, resourceGroup, resourceProvider, resourceScope, managementGroup, name, tenantId, subscriptionAlias string, isSubLevel bool, isSubAliasLevel bool) (*RoleAssignmentId, error)

func RoleAssignmentID

func RoleAssignmentID(input string) (*RoleAssignmentId, error)

func (RoleAssignmentId) AzureResourceID

func (id RoleAssignmentId) AzureResourceID() string

in general case, the id format does not change for cross tenant scenario, add the tenantId info

func (RoleAssignmentId) ID

func (id RoleAssignmentId) ID() string

type RoleDefinitionID

type RoleDefinitionID struct {
	ResourceID string
	Scope      string
	RoleID     string
}

func RoleDefinitionId

func RoleDefinitionId(input string) (*RoleDefinitionID, error)

RoleDefinitionId is a pseudo ID for storing Scope parameter as this it not retrievable from API It is formed of the Azure Resource ID for the Role and the Scope it is created against

func (RoleDefinitionID) ID

func (r RoleDefinitionID) ID() string

func (RoleDefinitionID) Segments

func (r RoleDefinitionID) Segments() []resourceids.Segment

func (RoleDefinitionID) String

func (r RoleDefinitionID) String() string

type RoleManagementPolicyId

type RoleManagementPolicyId struct {
	RoleDefinitionId string
	Scope            string
}

func NewRoleManagementPolicyId

func NewRoleManagementPolicyId(roleDefinitionId string, scope string) RoleManagementPolicyId

func RoleManagementPolicyID

func RoleManagementPolicyID(input string) (*RoleManagementPolicyId, error)

RoleManagementPolicyID parses 'input' into a RoleManagementPolicyId

func (RoleManagementPolicyId) ID

func (RoleManagementPolicyId) String

func (id RoleManagementPolicyId) String() string

type ScopedRoleAssignmentId

type ScopedRoleAssignmentId struct {
	ScopedId roleassignments.ScopedRoleAssignmentId
	TenantId string
}

func NewScopedRoleAssignmentID

func NewScopedRoleAssignmentID(scope string, roleAssignmentName string, tenantId string) ScopedRoleAssignmentId

func ScopedRoleAssignmentID

func ScopedRoleAssignmentID(input string) (*ScopedRoleAssignmentId, error)

func (ScopedRoleAssignmentId) ID

func (ScopedRoleAssignmentId) String

func (id ScopedRoleAssignmentId) String() string

Jump to

Keyboard shortcuts

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