parse

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiPath added in v1.7.0

type ApiPath struct {
	UrlFormat       string
	ResourceType    string
	URL             string
	ParentIDExample string
}

type DataPlaneResourceId added in v1.7.0

type DataPlaneResourceId struct {
	AzureResourceId   string
	ApiVersion        string
	AzureResourceType string
	Name              string
	ParentId          string
}

func DataPlaneResourceIDWithResourceType added in v1.7.0

func DataPlaneResourceIDWithResourceType(azureResourceId, resourceType string) (DataPlaneResourceId, error)

DataPlaneResourceIDWithResourceType parses a Resource ID and resource type into an ResourceId struct

func NewDataPlaneResourceId added in v1.7.0

func NewDataPlaneResourceId(name, parentId, resourceType string) (DataPlaneResourceId, error)

func (DataPlaneResourceId) ID added in v1.7.0

func (id DataPlaneResourceId) ID() string

func (DataPlaneResourceId) String added in v1.7.0

func (id DataPlaneResourceId) String() string

type ResourceId

type ResourceId struct {
	AzureResourceId   string
	ApiVersion        string
	AzureResourceType string
	Name              string
	ParentId          string
	ResourceDef       *types.ResourceType
}

func NewResourceID

func NewResourceID(name, parentId, resourceType string) (ResourceId, error)

func NewResourceIDSkipScopeValidation added in v1.9.0

func NewResourceIDSkipScopeValidation(name, parentId, resourceType string) (ResourceId, error)

func ResourceIDWithApiVersion added in v0.6.0

func ResourceIDWithApiVersion(input string) (ResourceId, error)

ResourceIDWithApiVersion parses a Resource ID which contains api-version into an ResourceId struct

func ResourceIDWithResourceType added in v0.6.0

func ResourceIDWithResourceType(azureResourceId, resourceType string) (ResourceId, error)

ResourceIDWithResourceType parses a Resource ID and resource type into an ResourceId struct

func (ResourceId) ID

func (id ResourceId) ID() string

func (ResourceId) String

func (id ResourceId) String() string

type UserAssignedIdentitiesId

type UserAssignedIdentitiesId struct {
	SubscriptionId           string
	ResourceGroup            string
	UserAssignedIdentityName string
}

func NewUserAssignedIdentitiesID

func NewUserAssignedIdentitiesID(subscriptionId, resourceGroup, userAssignedIdentityName string) UserAssignedIdentitiesId

func UserAssignedIdentitiesID

func UserAssignedIdentitiesID(input string) (*UserAssignedIdentitiesId, error)

UserAssignedIdentitiesID parses a UserAssignedIdentities ID into an UserAssignedIdentitiesId struct

func (UserAssignedIdentitiesId) ID

func (UserAssignedIdentitiesId) String

func (id UserAssignedIdentitiesId) String() string

Jump to

Keyboard shortcuts

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