policydefinitionversions

package
v0.20240123.1162016 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-04-01/policydefinitionversions Documentation

The policydefinitionversions SDK allows for interaction with the Azure Resource Manager Service resources (API Version 2023-04-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-04-01/policydefinitionversions"

Client Initialization

client := policydefinitionversions.NewPolicyDefinitionVersionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PolicyDefinitionVersionsClient.CreateOrUpdate

ctx := context.TODO()
id := policydefinitionversions.NewPolicyDefinitionVersionID("12345678-1234-9876-4563-123456789012", "policyDefinitionValue", "versionValue")

payload := policydefinitionversions.PolicyDefinitionVersion{
	// ...
}


read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.CreateOrUpdateAtManagementGroup

ctx := context.TODO()
id := policydefinitionversions.NewProviders2PolicyDefinitionVersionID("managementGroupValue", "policyDefinitionValue", "versionValue")

payload := policydefinitionversions.PolicyDefinitionVersion{
	// ...
}


read, err := client.CreateOrUpdateAtManagementGroup(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.Delete

ctx := context.TODO()
id := policydefinitionversions.NewPolicyDefinitionVersionID("12345678-1234-9876-4563-123456789012", "policyDefinitionValue", "versionValue")

read, err := client.Delete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.DeleteAtManagementGroup

ctx := context.TODO()
id := policydefinitionversions.NewProviders2PolicyDefinitionVersionID("managementGroupValue", "policyDefinitionValue", "versionValue")

read, err := client.DeleteAtManagementGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.Get

ctx := context.TODO()
id := policydefinitionversions.NewPolicyDefinitionVersionID("12345678-1234-9876-4563-123456789012", "policyDefinitionValue", "versionValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.GetAtManagementGroup

ctx := context.TODO()
id := policydefinitionversions.NewProviders2PolicyDefinitionVersionID("managementGroupValue", "policyDefinitionValue", "versionValue")

read, err := client.GetAtManagementGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.GetBuiltIn

ctx := context.TODO()
id := policydefinitionversions.NewVersionID("policyDefinitionValue", "versionValue")

read, err := client.GetBuiltIn(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.List

ctx := context.TODO()
id := policydefinitionversions.NewProviderPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "policyDefinitionValue")

// alternatively `client.List(ctx, id, policydefinitionversions.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, policydefinitionversions.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyDefinitionVersionsClient.ListAll

ctx := context.TODO()
id := policydefinitionversions.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.ListAll(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.ListAllAtManagementGroup

ctx := context.TODO()
id := policydefinitionversions.NewManagementGroupID("groupIdValue")

read, err := client.ListAllAtManagementGroup(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.ListAllBuiltins

ctx := context.TODO()


read, err := client.ListAllBuiltins(ctx)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyDefinitionVersionsClient.ListBuiltIn

ctx := context.TODO()
id := policydefinitionversions.NewPolicyDefinitionID("policyDefinitionValue")

// alternatively `client.ListBuiltIn(ctx, id, policydefinitionversions.DefaultListBuiltInOperationOptions())` can be used to do batched pagination
items, err := client.ListBuiltInComplete(ctx, id, policydefinitionversions.DefaultListBuiltInOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyDefinitionVersionsClient.ListByManagementGroup

ctx := context.TODO()
id := policydefinitionversions.NewProviders2PolicyDefinitionID("managementGroupValue", "policyDefinitionValue")

// alternatively `client.ListByManagementGroup(ctx, id, policydefinitionversions.DefaultListByManagementGroupOperationOptions())` can be used to do batched pagination
items, err := client.ListByManagementGroupComplete(ctx, id, policydefinitionversions.DefaultListByManagementGroupOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForParameterType

func PossibleValuesForParameterType() []string

func PossibleValuesForPolicyType

func PossibleValuesForPolicyType() []string

func ValidatePolicyDefinitionID

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

ValidatePolicyDefinitionID checks that 'input' can be parsed as a Policy Definition ID

func ValidatePolicyDefinitionVersionID

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

ValidatePolicyDefinitionVersionID checks that 'input' can be parsed as a Policy Definition Version ID

func ValidateProviderPolicyDefinitionID

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

ValidateProviderPolicyDefinitionID checks that 'input' can be parsed as a Provider Policy Definition ID

func ValidateProviders2PolicyDefinitionID

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

ValidateProviders2PolicyDefinitionID checks that 'input' can be parsed as a Providers 2 Policy Definition ID

func ValidateProviders2PolicyDefinitionVersionID

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

ValidateProviders2PolicyDefinitionVersionID checks that 'input' can be parsed as a Providers 2 Policy Definition Version ID

func ValidateVersionID

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

ValidateVersionID checks that 'input' can be parsed as a Version ID

Types

type CreateOrUpdateAtManagementGroupOperationResponse

type CreateOrUpdateAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PolicyDefinitionVersion
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PolicyDefinitionVersion
}

type DeleteAtManagementGroupOperationResponse

type DeleteAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetAtManagementGroupOperationResponse

type GetAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PolicyDefinitionVersion
}

type GetBuiltInOperationResponse

type GetBuiltInOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PolicyDefinitionVersion
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PolicyDefinitionVersion
}

type ListAllAtManagementGroupOperationResponse

type ListAllAtManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PolicyDefinitionVersionListResult
}

type ListAllBuiltinsOperationResponse

type ListAllBuiltinsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PolicyDefinitionVersionListResult
}

type ListAllOperationResponse

type ListAllOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PolicyDefinitionVersionListResult
}

type ListBuiltInCompleteResult

type ListBuiltInCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyDefinitionVersion
}

type ListBuiltInOperationOptions

type ListBuiltInOperationOptions struct {
	Top *int64
}

func DefaultListBuiltInOperationOptions

func DefaultListBuiltInOperationOptions() ListBuiltInOperationOptions

func (ListBuiltInOperationOptions) ToHeaders

func (ListBuiltInOperationOptions) ToOData

func (ListBuiltInOperationOptions) ToQuery

type ListBuiltInOperationResponse

type ListBuiltInOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyDefinitionVersion
}

type ListByManagementGroupCompleteResult

type ListByManagementGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyDefinitionVersion
}

type ListByManagementGroupOperationOptions

type ListByManagementGroupOperationOptions struct {
	Top *int64
}

func DefaultListByManagementGroupOperationOptions

func DefaultListByManagementGroupOperationOptions() ListByManagementGroupOperationOptions

func (ListByManagementGroupOperationOptions) ToHeaders

func (ListByManagementGroupOperationOptions) ToOData

func (ListByManagementGroupOperationOptions) ToQuery

type ListByManagementGroupOperationResponse

type ListByManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyDefinitionVersion
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyDefinitionVersion
}

type ListOperationOptions

type ListOperationOptions struct {
	Top *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyDefinitionVersion
}

type ParameterDefinitionsValue

type ParameterDefinitionsValue struct {
	AllowedValues *[]interface{}                     `json:"allowedValues,omitempty"`
	DefaultValue  *interface{}                       `json:"defaultValue,omitempty"`
	Metadata      *ParameterDefinitionsValueMetadata `json:"metadata,omitempty"`
	Schema        *interface{}                       `json:"schema,omitempty"`
	Type          *ParameterType                     `json:"type,omitempty"`
}

type ParameterDefinitionsValueMetadata

type ParameterDefinitionsValueMetadata struct {
	AssignPermissions *bool   `json:"assignPermissions,omitempty"`
	Description       *string `json:"description,omitempty"`
	DisplayName       *string `json:"displayName,omitempty"`
	StrongType        *string `json:"strongType,omitempty"`
}

type ParameterType

type ParameterType string
const (
	ParameterTypeArray    ParameterType = "Array"
	ParameterTypeBoolean  ParameterType = "Boolean"
	ParameterTypeDateTime ParameterType = "DateTime"
	ParameterTypeFloat    ParameterType = "Float"
	ParameterTypeInteger  ParameterType = "Integer"
	ParameterTypeObject   ParameterType = "Object"
	ParameterTypeString   ParameterType = "String"
)

func (*ParameterType) UnmarshalJSON

func (s *ParameterType) UnmarshalJSON(bytes []byte) error

type PolicyDefinitionId

type PolicyDefinitionId struct {
	PolicyDefinitionName string
}

PolicyDefinitionId is a struct representing the Resource ID for a Policy Definition

func NewPolicyDefinitionID

func NewPolicyDefinitionID(policyDefinitionName string) PolicyDefinitionId

NewPolicyDefinitionID returns a new PolicyDefinitionId struct

func ParsePolicyDefinitionID

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

ParsePolicyDefinitionID parses 'input' into a PolicyDefinitionId

func ParsePolicyDefinitionIDInsensitively

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

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

func (*PolicyDefinitionId) FromParseResult added in v0.20231127.1171502

func (id *PolicyDefinitionId) FromParseResult(input resourceids.ParseResult) error

func (PolicyDefinitionId) ID

func (id PolicyDefinitionId) ID() string

ID returns the formatted Policy Definition ID

func (PolicyDefinitionId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Policy Definition ID

func (PolicyDefinitionId) String

func (id PolicyDefinitionId) String() string

String returns a human-readable description of this Policy Definition ID

type PolicyDefinitionVersion

type PolicyDefinitionVersion struct {
	Id         *string                            `json:"id,omitempty"`
	Name       *string                            `json:"name,omitempty"`
	Properties *PolicyDefinitionVersionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData             `json:"systemData,omitempty"`
	Type       *string                            `json:"type,omitempty"`
}

type PolicyDefinitionVersionId

type PolicyDefinitionVersionId struct {
	SubscriptionId       string
	PolicyDefinitionName string
	VersionName          string
}

PolicyDefinitionVersionId is a struct representing the Resource ID for a Policy Definition Version

func NewPolicyDefinitionVersionID

func NewPolicyDefinitionVersionID(subscriptionId string, policyDefinitionName string, versionName string) PolicyDefinitionVersionId

NewPolicyDefinitionVersionID returns a new PolicyDefinitionVersionId struct

func ParsePolicyDefinitionVersionID

func ParsePolicyDefinitionVersionID(input string) (*PolicyDefinitionVersionId, error)

ParsePolicyDefinitionVersionID parses 'input' into a PolicyDefinitionVersionId

func ParsePolicyDefinitionVersionIDInsensitively

func ParsePolicyDefinitionVersionIDInsensitively(input string) (*PolicyDefinitionVersionId, error)

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

func (*PolicyDefinitionVersionId) FromParseResult added in v0.20231127.1171502

func (id *PolicyDefinitionVersionId) FromParseResult(input resourceids.ParseResult) error

func (PolicyDefinitionVersionId) ID

ID returns the formatted Policy Definition Version ID

func (PolicyDefinitionVersionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Policy Definition Version ID

func (PolicyDefinitionVersionId) String

func (id PolicyDefinitionVersionId) String() string

String returns a human-readable description of this Policy Definition Version ID

type PolicyDefinitionVersionListResult

type PolicyDefinitionVersionListResult struct {
	NextLink *string                    `json:"nextLink,omitempty"`
	Value    *[]PolicyDefinitionVersion `json:"value,omitempty"`
}

type PolicyDefinitionVersionOperationPredicate

type PolicyDefinitionVersionOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (PolicyDefinitionVersionOperationPredicate) Matches

type PolicyDefinitionVersionProperties

type PolicyDefinitionVersionProperties struct {
	Description *string                               `json:"description,omitempty"`
	DisplayName *string                               `json:"displayName,omitempty"`
	Metadata    *interface{}                          `json:"metadata,omitempty"`
	Mode        *string                               `json:"mode,omitempty"`
	Parameters  *map[string]ParameterDefinitionsValue `json:"parameters,omitempty"`
	PolicyRule  *interface{}                          `json:"policyRule,omitempty"`
	PolicyType  *PolicyType                           `json:"policyType,omitempty"`
	Version     *string                               `json:"version,omitempty"`
}

type PolicyDefinitionVersionsClient

type PolicyDefinitionVersionsClient struct {
	Client *resourcemanager.Client
}

func NewPolicyDefinitionVersionsClientWithBaseURI

func NewPolicyDefinitionVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyDefinitionVersionsClient, error)

func (PolicyDefinitionVersionsClient) CreateOrUpdate

CreateOrUpdate ...

func (PolicyDefinitionVersionsClient) CreateOrUpdateAtManagementGroup

CreateOrUpdateAtManagementGroup ...

func (PolicyDefinitionVersionsClient) Delete

Delete ...

func (PolicyDefinitionVersionsClient) DeleteAtManagementGroup

DeleteAtManagementGroup ...

func (PolicyDefinitionVersionsClient) Get

Get ...

func (PolicyDefinitionVersionsClient) GetAtManagementGroup

GetAtManagementGroup ...

func (PolicyDefinitionVersionsClient) GetBuiltIn

GetBuiltIn ...

func (PolicyDefinitionVersionsClient) List

List ...

func (PolicyDefinitionVersionsClient) ListAll

ListAll ...

func (PolicyDefinitionVersionsClient) ListAllAtManagementGroup

ListAllAtManagementGroup ...

func (PolicyDefinitionVersionsClient) ListAllBuiltins

ListAllBuiltins ...

func (PolicyDefinitionVersionsClient) ListBuiltIn

ListBuiltIn ...

func (PolicyDefinitionVersionsClient) ListBuiltInComplete

ListBuiltInComplete retrieves all the results into a single object

func (PolicyDefinitionVersionsClient) ListBuiltInCompleteMatchingPredicate

ListBuiltInCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyDefinitionVersionsClient) ListByManagementGroup

ListByManagementGroup ...

func (PolicyDefinitionVersionsClient) ListByManagementGroupComplete

ListByManagementGroupComplete retrieves all the results into a single object

func (PolicyDefinitionVersionsClient) ListByManagementGroupCompleteMatchingPredicate

ListByManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyDefinitionVersionsClient) ListComplete

ListComplete retrieves all the results into a single object

func (PolicyDefinitionVersionsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type PolicyType

type PolicyType string
const (
	PolicyTypeBuiltIn      PolicyType = "BuiltIn"
	PolicyTypeCustom       PolicyType = "Custom"
	PolicyTypeNotSpecified PolicyType = "NotSpecified"
	PolicyTypeStatic       PolicyType = "Static"
)

func (*PolicyType) UnmarshalJSON

func (s *PolicyType) UnmarshalJSON(bytes []byte) error

type ProviderPolicyDefinitionId

type ProviderPolicyDefinitionId struct {
	SubscriptionId       string
	PolicyDefinitionName string
}

ProviderPolicyDefinitionId is a struct representing the Resource ID for a Provider Policy Definition

func NewProviderPolicyDefinitionID

func NewProviderPolicyDefinitionID(subscriptionId string, policyDefinitionName string) ProviderPolicyDefinitionId

NewProviderPolicyDefinitionID returns a new ProviderPolicyDefinitionId struct

func ParseProviderPolicyDefinitionID

func ParseProviderPolicyDefinitionID(input string) (*ProviderPolicyDefinitionId, error)

ParseProviderPolicyDefinitionID parses 'input' into a ProviderPolicyDefinitionId

func ParseProviderPolicyDefinitionIDInsensitively

func ParseProviderPolicyDefinitionIDInsensitively(input string) (*ProviderPolicyDefinitionId, error)

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

func (*ProviderPolicyDefinitionId) FromParseResult added in v0.20231127.1171502

func (id *ProviderPolicyDefinitionId) FromParseResult(input resourceids.ParseResult) error

func (ProviderPolicyDefinitionId) ID

ID returns the formatted Provider Policy Definition ID

func (ProviderPolicyDefinitionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Provider Policy Definition ID

func (ProviderPolicyDefinitionId) String

func (id ProviderPolicyDefinitionId) String() string

String returns a human-readable description of this Provider Policy Definition ID

type Providers2PolicyDefinitionId

type Providers2PolicyDefinitionId struct {
	ManagementGroupName  string
	PolicyDefinitionName string
}

Providers2PolicyDefinitionId is a struct representing the Resource ID for a Providers 2 Policy Definition

func NewProviders2PolicyDefinitionID

func NewProviders2PolicyDefinitionID(managementGroupName string, policyDefinitionName string) Providers2PolicyDefinitionId

NewProviders2PolicyDefinitionID returns a new Providers2PolicyDefinitionId struct

func ParseProviders2PolicyDefinitionID

func ParseProviders2PolicyDefinitionID(input string) (*Providers2PolicyDefinitionId, error)

ParseProviders2PolicyDefinitionID parses 'input' into a Providers2PolicyDefinitionId

func ParseProviders2PolicyDefinitionIDInsensitively

func ParseProviders2PolicyDefinitionIDInsensitively(input string) (*Providers2PolicyDefinitionId, error)

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

func (*Providers2PolicyDefinitionId) FromParseResult added in v0.20231127.1171502

func (id *Providers2PolicyDefinitionId) FromParseResult(input resourceids.ParseResult) error

func (Providers2PolicyDefinitionId) ID

ID returns the formatted Providers 2 Policy Definition ID

func (Providers2PolicyDefinitionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Providers 2 Policy Definition ID

func (Providers2PolicyDefinitionId) String

String returns a human-readable description of this Providers 2 Policy Definition ID

type Providers2PolicyDefinitionVersionId

type Providers2PolicyDefinitionVersionId struct {
	ManagementGroupName  string
	PolicyDefinitionName string
	VersionName          string
}

Providers2PolicyDefinitionVersionId is a struct representing the Resource ID for a Providers 2 Policy Definition Version

func NewProviders2PolicyDefinitionVersionID

func NewProviders2PolicyDefinitionVersionID(managementGroupName string, policyDefinitionName string, versionName string) Providers2PolicyDefinitionVersionId

NewProviders2PolicyDefinitionVersionID returns a new Providers2PolicyDefinitionVersionId struct

func ParseProviders2PolicyDefinitionVersionID

func ParseProviders2PolicyDefinitionVersionID(input string) (*Providers2PolicyDefinitionVersionId, error)

ParseProviders2PolicyDefinitionVersionID parses 'input' into a Providers2PolicyDefinitionVersionId

func ParseProviders2PolicyDefinitionVersionIDInsensitively

func ParseProviders2PolicyDefinitionVersionIDInsensitively(input string) (*Providers2PolicyDefinitionVersionId, error)

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

func (*Providers2PolicyDefinitionVersionId) FromParseResult added in v0.20231127.1171502

func (Providers2PolicyDefinitionVersionId) ID

ID returns the formatted Providers 2 Policy Definition Version ID

func (Providers2PolicyDefinitionVersionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Providers 2 Policy Definition Version ID

func (Providers2PolicyDefinitionVersionId) String

String returns a human-readable description of this Providers 2 Policy Definition Version ID

type VersionId

type VersionId struct {
	PolicyDefinitionName string
	VersionName          string
}

VersionId is a struct representing the Resource ID for a Version

func NewVersionID

func NewVersionID(policyDefinitionName string, versionName string) VersionId

NewVersionID returns a new VersionId struct

func ParseVersionID

func ParseVersionID(input string) (*VersionId, error)

ParseVersionID parses 'input' into a VersionId

func ParseVersionIDInsensitively

func ParseVersionIDInsensitively(input string) (*VersionId, error)

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

func (*VersionId) FromParseResult added in v0.20231127.1171502

func (id *VersionId) FromParseResult(input resourceids.ParseResult) error

func (VersionId) ID

func (id VersionId) ID() string

ID returns the formatted Version ID

func (VersionId) Segments

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

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

func (VersionId) String

func (id VersionId) String() string

String returns a human-readable description of this Version ID

Jump to

Keyboard shortcuts

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