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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagementGroupAssignmentId

type ManagementGroupAssignmentId struct {
	ManagementGroupName  string
	PolicyAssignmentName string
}

func ManagementGroupAssignmentID

func ManagementGroupAssignmentID(input string) (*ManagementGroupAssignmentId, error)

ManagementGroupAssignmentID parses a ManagementGroupAssignment ID into an ManagementGroupAssignmentId struct

func NewManagementGroupAssignmentID

func NewManagementGroupAssignmentID(managementGroupName, policyAssignmentName string) ManagementGroupAssignmentId

func (ManagementGroupAssignmentId) ID

func (ManagementGroupAssignmentId) String

func (id ManagementGroupAssignmentId) String() string

type PolicyAssignmentId

type PolicyAssignmentId struct {
	Name  string
	Scope string
}

func NewPolicyAssignmentId

func NewPolicyAssignmentId(scope, name string) PolicyAssignmentId

func PolicyAssignmentID

func PolicyAssignmentID(input string) (*PolicyAssignmentId, error)

TODO: This paring function is currently suppressing every case difference due to github issue: https://github.com/Azure/azure-rest-api-specs/issues/8353

func (PolicyAssignmentId) ID

func (id PolicyAssignmentId) ID() string

func (PolicyAssignmentId) String

func (id PolicyAssignmentId) String() string

type PolicyDefinitionId

type PolicyDefinitionId struct {
	Name string
	Id   string
	PolicyScopeId
}

func PolicyDefinitionID

func PolicyDefinitionID(input string) (*PolicyDefinitionId, error)

TODO: This parsing function is currently suppressing every case difference due to github issue: https://github.com/Azure/azure-rest-api-specs/issues/8353

type PolicyRemediationId

type PolicyRemediationId struct {
	Name string
	PolicyScopeId
}

func PolicyRemediationID

func PolicyRemediationID(input string) (*PolicyRemediationId, error)

TODO: This paring function is currently suppressing every case difference due to github issue: https://github.com/Azure/azure-rest-api-specs/issues/8353 Currently the returned Remediation response from the service will have all the IDs converted into lower cases

type PolicyScopeId

type PolicyScopeId interface {
	ScopeId() string
}

func PolicyScopeID

func PolicyScopeID(input string) (PolicyScopeId, error)

type PolicySetDefinitionId

type PolicySetDefinitionId struct {
	Name string
	Id   string
	PolicyScopeId
}

func PolicySetDefinitionID

func PolicySetDefinitionID(input string) (*PolicySetDefinitionId, error)

TODO: This parsing function is currently suppressing case difference due to github issue: https://github.com/Azure/azure-rest-api-specs/issues/8353

type ResourceGroupAssignmentId

type ResourceGroupAssignmentId struct {
	SubscriptionId       string
	ResourceGroup        string
	PolicyAssignmentName string
}

func NewResourceGroupAssignmentID

func NewResourceGroupAssignmentID(subscriptionId, resourceGroup, policyAssignmentName string) ResourceGroupAssignmentId

func ResourceGroupAssignmentID

func ResourceGroupAssignmentID(input string) (*ResourceGroupAssignmentId, error)

ResourceGroupAssignmentID parses a ResourceGroupAssignment ID into an ResourceGroupAssignmentId struct

func (ResourceGroupAssignmentId) ID

func (ResourceGroupAssignmentId) String

func (id ResourceGroupAssignmentId) String() string

type ScopeAtManagementGroup

type ScopeAtManagementGroup struct {
	ManagementGroupName string
	// contains filtered or unexported fields
}

func (ScopeAtManagementGroup) ScopeId

func (id ScopeAtManagementGroup) ScopeId() string

type ScopeAtResource

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

func (ScopeAtResource) ScopeId

func (id ScopeAtResource) ScopeId() string

type ScopeAtResourceGroup

type ScopeAtResourceGroup struct {
	SubscriptionId string
	ResourceGroup  string
	// contains filtered or unexported fields
}

func (ScopeAtResourceGroup) ScopeId

func (id ScopeAtResourceGroup) ScopeId() string

type ScopeAtSubscription

type ScopeAtSubscription struct {
	SubscriptionId string
	// contains filtered or unexported fields
}

func (ScopeAtSubscription) ScopeId

func (id ScopeAtSubscription) ScopeId() string

type SubscriptionAssignmentId

type SubscriptionAssignmentId struct {
	SubscriptionId       string
	PolicyAssignmentName string
}

func NewSubscriptionAssignmentID

func NewSubscriptionAssignmentID(subscriptionId, policyAssignmentName string) SubscriptionAssignmentId

func SubscriptionAssignmentID

func SubscriptionAssignmentID(input string) (*SubscriptionAssignmentId, error)

SubscriptionAssignmentID parses a SubscriptionAssignment ID into an SubscriptionAssignmentId struct

func (SubscriptionAssignmentId) ID

func (SubscriptionAssignmentId) String

func (id SubscriptionAssignmentId) String() string

type VirtualMachineConfigurationAssignmentId

type VirtualMachineConfigurationAssignmentId struct {
	SubscriptionId                   string
	ResourceGroup                    string
	VirtualMachineName               string
	GuestConfigurationAssignmentName string
}

func NewVirtualMachineConfigurationAssignmentID

func NewVirtualMachineConfigurationAssignmentID(subscriptionId, resourceGroup, virtualMachineName, guestConfigurationAssignmentName string) VirtualMachineConfigurationAssignmentId

func VirtualMachineConfigurationAssignmentID

func VirtualMachineConfigurationAssignmentID(input string) (*VirtualMachineConfigurationAssignmentId, error)

VirtualMachineConfigurationAssignmentID parses a VirtualMachineConfigurationAssignment ID into an VirtualMachineConfigurationAssignmentId struct

func VirtualMachineConfigurationAssignmentIDInsensitively

func VirtualMachineConfigurationAssignmentIDInsensitively(input string) (*VirtualMachineConfigurationAssignmentId, error)

VirtualMachineConfigurationAssignmentIDInsensitively parses an VirtualMachineConfigurationAssignment ID into an VirtualMachineConfigurationAssignmentId struct, insensitively This should only be used to parse an ID for rewriting, the VirtualMachineConfigurationAssignmentID 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 (VirtualMachineConfigurationAssignmentId) ID

func (VirtualMachineConfigurationAssignmentId) String

type VirtualMachineConfigurationPolicyAssignmentId

type VirtualMachineConfigurationPolicyAssignmentId struct {
	SubscriptionId                   string
	ResourceGroup                    string
	VirtualMachineName               string
	GuestConfigurationAssignmentName string
}

func NewVirtualMachineConfigurationPolicyAssignmentID

func NewVirtualMachineConfigurationPolicyAssignmentID(subscriptionId, resourceGroup, virtualMachineName, guestConfigurationAssignmentName string) VirtualMachineConfigurationPolicyAssignmentId

func VirtualMachineConfigurationPolicyAssignmentID

func VirtualMachineConfigurationPolicyAssignmentID(input string) (*VirtualMachineConfigurationPolicyAssignmentId, error)

VirtualMachineConfigurationPolicyAssignmentID parses a VirtualMachineConfigurationPolicyAssignment ID into an VirtualMachineConfigurationPolicyAssignmentId struct

func VirtualMachineConfigurationPolicyAssignmentIDInsensitively

func VirtualMachineConfigurationPolicyAssignmentIDInsensitively(input string) (*VirtualMachineConfigurationPolicyAssignmentId, error)

VirtualMachineConfigurationPolicyAssignmentIDInsensitively parses an VirtualMachineConfigurationPolicyAssignment ID into an VirtualMachineConfigurationPolicyAssignmentId struct, insensitively This should only be used to parse an ID for rewriting, the VirtualMachineConfigurationPolicyAssignmentID 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 (VirtualMachineConfigurationPolicyAssignmentId) ID

func (VirtualMachineConfigurationPolicyAssignmentId) String

Jump to

Keyboard shortcuts

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