commonids

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MPL-2.0 Imports: 3 Imported by: 4,724

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateManagementGroupID

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

ValidateManagementGroupID checks that 'input' can be parsed as a Management Group ID

func ValidateResourceGroupID

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

ValidateResourceGroupID checks that 'input' can be parsed as a Resource Group ID

func ValidateScopeID added in v0.21.0

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

ValidateScopeID checks that 'input' can be parsed as a Scope ID

func ValidateSubscriptionID

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

ValidateSubscriptionID checks that 'input' can be parsed as a Subscription ID

func ValidateUserAssignedIdentityID

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

ValidateUserAssignedIdentityID checks that 'input' can be parsed as a User Assigned Identity ID

Types

type ManagementGroupId

type ManagementGroupId struct {
	GroupId string
}

ManagementGroupId is a struct representing the Resource ID for a Management Group

func NewManagementGroupID

func NewManagementGroupID(groupId string) ManagementGroupId

NewManagementGroupID returns a new ManagementGroupId struct

func ParseManagementGroupID

func ParseManagementGroupID(input string) (*ManagementGroupId, error)

ParseManagementGroupID parses 'input' into a ManagementGroupId

func ParseManagementGroupIDInsensitively

func ParseManagementGroupIDInsensitively(input string) (*ManagementGroupId, error)

ParseManagementGroupIDInsensitively parses 'input' case-insensitively into a ManagementGroupId note: this method should only be used for API response data and not user input

func (ManagementGroupId) ID

func (id ManagementGroupId) ID() string

ID returns the formatted Management Group ID

func (ManagementGroupId) Segments

func (id ManagementGroupId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Management Group ID

func (ManagementGroupId) String

func (id ManagementGroupId) String() string

String returns a human-readable description of this Management Group ID

type ResourceGroupId

type ResourceGroupId struct {
	SubscriptionId    string
	ResourceGroupName string
}

ResourceGroupId is a struct representing the Resource ID for a Resource Group

func NewResourceGroupID

func NewResourceGroupID(subscriptionId string, resourceGroupName string) ResourceGroupId

NewResourceGroupID returns a new ResourceGroupId struct

func ParseResourceGroupID

func ParseResourceGroupID(input string) (*ResourceGroupId, error)

ParseResourceGroupID parses 'input' into a ResourceGroupId

func ParseResourceGroupIDInsensitively

func ParseResourceGroupIDInsensitively(input string) (*ResourceGroupId, error)

ParseResourceGroupIDInsensitively parses 'input' case-insensitively into a ResourceGroupId note: this method should only be used for API response data and not user input

func (ResourceGroupId) ID

func (id ResourceGroupId) ID() string

ID returns the formatted Resource Group ID

func (ResourceGroupId) Segments

func (id ResourceGroupId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Resource Group ID

func (ResourceGroupId) String

func (id ResourceGroupId) String() string

String returns a human-readable description of this Resource Group ID

type ScopeId added in v0.21.0

type ScopeId struct {
	Scope string
}

ScopeId is a struct representing the Resource ID for a Scope

func NewScopeID added in v0.21.0

func NewScopeID(scope string) ScopeId

NewScopeID returns a new ScopeId struct

func ParseScopeID added in v0.21.0

func ParseScopeID(input string) (*ScopeId, error)

ParseScopeID parses 'input' into a ScopeId

func ParseScopeIDInsensitively added in v0.21.0

func ParseScopeIDInsensitively(input string) (*ScopeId, error)

ParseScopeIDInsensitively parses 'input' case-insensitively into a ScopeId note: this method should only be used for API response data and not user input

func (ScopeId) ID added in v0.21.0

func (id ScopeId) ID() string

ID returns the formatted Scope ID

func (ScopeId) Segments added in v0.21.0

func (id ScopeId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Scope ID

func (ScopeId) String added in v0.21.0

func (id ScopeId) String() string

String returns a human-readable description of this Scope ID

type SubscriptionId

type SubscriptionId struct {
	SubscriptionId string
}

SubscriptionId is a struct representing the Resource ID for a Subscription

func NewSubscriptionID

func NewSubscriptionID(subscriptionId string) SubscriptionId

NewSubscriptionID returns a new SubscriptionId struct

func ParseSubscriptionID

func ParseSubscriptionID(input string) (*SubscriptionId, error)

ParseSubscriptionID parses 'input' into a SubscriptionId

func ParseSubscriptionIDInsensitively

func ParseSubscriptionIDInsensitively(input string) (*SubscriptionId, error)

ParseSubscriptionIDInsensitively parses 'input' case-insensitively into a SubscriptionId note: this method should only be used for API response data and not user input

func (SubscriptionId) ID

func (id SubscriptionId) ID() string

ID returns the formatted Subscription ID

func (SubscriptionId) Segments

func (id SubscriptionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Subscription ID

func (SubscriptionId) String

func (id SubscriptionId) String() string

String returns a human-readable description of this Subscription ID

type UserAssignedIdentityId

type UserAssignedIdentityId struct {
	SubscriptionId    string
	ResourceGroupName string
	ResourceName      string
}

UserAssignedIdentityId is a struct representing the Resource ID for a User Assigned Identity

func NewUserAssignedIdentityID

func NewUserAssignedIdentityID(subscriptionId string, resourceGroupName string, resourceName string) UserAssignedIdentityId

NewUserAssignedIdentityID returns a new UserAssignedIdentityId struct

func ParseUserAssignedIdentityID

func ParseUserAssignedIdentityID(input string) (*UserAssignedIdentityId, error)

ParseUserAssignedIdentityID parses 'input' into a UserAssignedIdentityId

func ParseUserAssignedIdentityIDInsensitively

func ParseUserAssignedIdentityIDInsensitively(input string) (*UserAssignedIdentityId, error)

ParseUserAssignedIdentityIDInsensitively parses 'input' case-insensitively into a UserAssignedIdentityId note: this method should only be used for API response data and not user input

func (UserAssignedIdentityId) ID

ID returns the formatted User Assigned Identity ID

func (UserAssignedIdentityId) Segments

func (id UserAssignedIdentityId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this User Assigned Identity ID

func (UserAssignedIdentityId) String

func (id UserAssignedIdentityId) String() string

String returns a human-readable description of this User Assigned Identities ID

Jump to

Keyboard shortcuts

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