parse

package
v2.96.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateManagementLockID

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

ValidateManagementLockID checks that 'input' can be parsed as a Management Lock ID

Types

type FeatureId

type FeatureId struct {
	SubscriptionId    string
	ProviderNamespace string
	Name              string
}

func FeatureID

func FeatureID(input string) (*FeatureId, error)

FeatureID parses a Feature ID into an FeatureId struct

func NewFeatureID

func NewFeatureID(subscriptionId, resourceProvider, name string) FeatureId

func (FeatureId) ID

func (id FeatureId) ID() string

func (FeatureId) String

func (id FeatureId) String() string

type ManagementGroupTemplateDeploymentId

type ManagementGroupTemplateDeploymentId struct {
	ManagementGroupName string
	DeploymentName      string
}

func ManagementGroupTemplateDeploymentID

func ManagementGroupTemplateDeploymentID(input string) (*ManagementGroupTemplateDeploymentId, error)

ManagementGroupTemplateDeploymentID parses a ManagementGroupTemplateDeployment ID into an ManagementGroupTemplateDeploymentId struct

func NewManagementGroupTemplateDeploymentID

func NewManagementGroupTemplateDeploymentID(managementGroupName, deploymentName string) ManagementGroupTemplateDeploymentId

func (ManagementGroupTemplateDeploymentId) ID

func (ManagementGroupTemplateDeploymentId) String

type ManagementLockId

type ManagementLockId struct {
	Scope string
	Name  string
}

ManagementLockId is a struct representing the Resource ID for a Management Lock

func NewManagementLockID

func NewManagementLockID(scope string, name string) ManagementLockId

NewManagementLockID returns a new ManagementLockId struct

func ParseManagementLockID

func ParseManagementLockID(input string) (*ManagementLockId, error)

ParseManagementLockID parses 'input' into a ManagementLockId

func (ManagementLockId) ID

func (id ManagementLockId) ID() string

ID returns the formatted Management Lock ID

func (ManagementLockId) Segments

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

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

func (ManagementLockId) String

func (id ManagementLockId) String() string

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

type ResourceGroupId

type ResourceGroupId struct {
	SubscriptionId string
	ResourceGroup  string
}

func NewResourceGroupID

func NewResourceGroupID(subscriptionId, resourceGroup string) ResourceGroupId

func ResourceGroupID

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

ResourceGroupID parses a ResourceGroup ID into an ResourceGroupId struct

func (ResourceGroupId) ID

func (id ResourceGroupId) ID() string

func (ResourceGroupId) String

func (id ResourceGroupId) String() string

type ResourceGroupTemplateDeploymentId

type ResourceGroupTemplateDeploymentId struct {
	SubscriptionId string
	ResourceGroup  string
	DeploymentName string
}

func NewResourceGroupTemplateDeploymentID

func NewResourceGroupTemplateDeploymentID(subscriptionId, resourceGroup, deploymentName string) ResourceGroupTemplateDeploymentId

func ResourceGroupTemplateDeploymentID

func ResourceGroupTemplateDeploymentID(input string) (*ResourceGroupTemplateDeploymentId, error)

ResourceGroupTemplateDeploymentID parses a ResourceGroupTemplateDeployment ID into an ResourceGroupTemplateDeploymentId struct

func ResourceGroupTemplateDeploymentIDInsensitively

func ResourceGroupTemplateDeploymentIDInsensitively(input string) (*ResourceGroupTemplateDeploymentId, error)

ResourceGroupTemplateDeploymentIDInsensitively parses an ResourceGroupTemplateDeployment ID into an ResourceGroupTemplateDeploymentId struct, insensitively This should only be used to parse an ID for rewriting, the ResourceGroupTemplateDeploymentID method should be used instead for validation etc.

Whilst this may seem strange, this enables Terraform have consistent casing which works around issues in Core, whilst handling broken API responses.

func (ResourceGroupTemplateDeploymentId) ID

func (ResourceGroupTemplateDeploymentId) String

type ResourceProviderId

type ResourceProviderId struct {
	SubscriptionId   string
	ResourceProvider string
}

func NewResourceProviderID

func NewResourceProviderID(subscriptionId, resourceProvider string) ResourceProviderId

func ResourceProviderID

func ResourceProviderID(input string) (*ResourceProviderId, error)

ResourceProviderID parses a ResourceProvider ID into an ResourceProviderId struct

func (ResourceProviderId) ID

func (id ResourceProviderId) ID() string

type SubscriptionTemplateDeploymentId

type SubscriptionTemplateDeploymentId struct {
	SubscriptionId string
	DeploymentName string
}

func NewSubscriptionTemplateDeploymentID

func NewSubscriptionTemplateDeploymentID(subscriptionId, deploymentName string) SubscriptionTemplateDeploymentId

func SubscriptionTemplateDeploymentID

func SubscriptionTemplateDeploymentID(input string) (*SubscriptionTemplateDeploymentId, error)

SubscriptionTemplateDeploymentID parses a SubscriptionTemplateDeployment ID into an SubscriptionTemplateDeploymentId struct

func (SubscriptionTemplateDeploymentId) ID

func (SubscriptionTemplateDeploymentId) String

type TemplateSpecVersionId

type TemplateSpecVersionId struct {
	SubscriptionId   string
	ResourceGroup    string
	TemplateSpecName string
	VersionName      string
}

func NewTemplateSpecVersionID

func NewTemplateSpecVersionID(subscriptionId, resourceGroup, templateSpecName, versionName string) TemplateSpecVersionId

func TemplateSpecVersionID

func TemplateSpecVersionID(input string) (*TemplateSpecVersionId, error)

TemplateSpecVersionID parses a TemplateSpecVersion ID into an TemplateSpecVersionId struct

func (TemplateSpecVersionId) ID

func (id TemplateSpecVersionId) ID() string

func (TemplateSpecVersionId) String

func (id TemplateSpecVersionId) String() string

type TenantTemplateDeploymentId

type TenantTemplateDeploymentId struct {
	DeploymentName string
}

func NewTenantTemplateDeploymentID

func NewTenantTemplateDeploymentID(deploymentName string) TenantTemplateDeploymentId

func TenantTemplateDeploymentID

func TenantTemplateDeploymentID(input string) (*TenantTemplateDeploymentId, error)

TenantTemplateDeploymentID parses a TenantTemplateDeployment ID into an TenantTemplateDeploymentId struct

func (TenantTemplateDeploymentId) ID

func (TenantTemplateDeploymentId) String

func (id TenantTemplateDeploymentId) String() string

Jump to

Keyboard shortcuts

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