azure

package
v1.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DTU   skuType = 0
	VCore skuType = 1
)

Variables

This section is empty.

Functions

func EventHubAuthorizationRuleCustomizeDiff

func EventHubAuthorizationRuleCustomizeDiff(d *schema.ResourceDiff, _ interface{}) error

func EventHubAuthorizationRuleSchemaFrom

func EventHubAuthorizationRuleSchemaFrom(s map[string]*schema.Schema) map[string]*schema.Schema

func ExpandApiManagementOperationParameterContract

func ExpandApiManagementOperationParameterContract(input []interface{}) *[]apimanagement.ParameterContract

func ExpandApiManagementOperationRepresentation

func ExpandApiManagementOperationRepresentation(input []interface{}) (*[]apimanagement.RepresentationContract, error)

func ExpandApplicationInsightsAPIKeyLinkedProperties

func ExpandApplicationInsightsAPIKeyLinkedProperties(v *schema.Set, appInsightsId string) *[]string

func ExpandCertificatePermissions

func ExpandCertificatePermissions(input []interface{}) *[]keyvault.CertificatePermissions

func ExpandDevTestLabVirtualMachineGalleryImageReference

func ExpandDevTestLabVirtualMachineGalleryImageReference(input []interface{}, osType string) *dtl.GalleryImageReference

func ExpandDevTestLabVirtualMachineNatRules

func ExpandDevTestLabVirtualMachineNatRules(input *schema.Set) []dtl.InboundNatRule

func ExpandEventHubAuthorizationRuleRights

func ExpandEventHubAuthorizationRuleRights(d *schema.ResourceData) *[]eventhub.AccessRights

schema

func ExpandKeyPermissions

func ExpandKeyPermissions(keyPermissionsRaw []interface{}) *[]keyvault.KeyPermissions

func ExpandKeyVaultAccessPolicies

func ExpandKeyVaultAccessPolicies(input []interface{}) (*[]keyvault.AccessPolicyEntry, error)

func ExpandSecretPermissions

func ExpandSecretPermissions(input []interface{}) *[]keyvault.SecretPermissions

func ExpandServiceBusAuthorizationRuleRights

func ExpandServiceBusAuthorizationRuleRights(d *schema.ResourceData) *[]servicebus.AccessRights

func ExpandStoragePermissions

func ExpandStoragePermissions(input []interface{}) *[]keyvault.StoragePermissions

func ExpandStreamAnalyticsOutputSerialization

func ExpandStreamAnalyticsOutputSerialization(input []interface{}) (streamanalytics.BasicSerialization, error)

func ExpandStreamAnalyticsStreamInputSerialization

func ExpandStreamAnalyticsStreamInputSerialization(input []interface{}) (streamanalytics.BasicSerialization, error)

func ExpandZones

func ExpandZones(v []interface{}) *[]string

func FindNetworkInterfaceIPConfiguration

func FindNetworkInterfaceIPConfiguration(input *[]network.InterfaceIPConfiguration, name string) *network.InterfaceIPConfiguration

func FlattenApiManagementOperationParameterContract

func FlattenApiManagementOperationParameterContract(input *[]apimanagement.ParameterContract) []interface{}

func FlattenApiManagementOperationRepresentation

func FlattenApiManagementOperationRepresentation(input *[]apimanagement.RepresentationContract) []interface{}

func FlattenApplicationInsightsAPIKeyLinkedProperties

func FlattenApplicationInsightsAPIKeyLinkedProperties(props *[]string) *[]string

func FlattenCertificatePermissions

func FlattenCertificatePermissions(input *[]keyvault.CertificatePermissions) []interface{}

func FlattenDevTestVirtualMachineGalleryImage

func FlattenDevTestVirtualMachineGalleryImage(input *dtl.GalleryImageReference) []interface{}

func FlattenEventHubAuthorizationRuleRights

func FlattenEventHubAuthorizationRuleRights(rights *[]eventhub.AccessRights) (listen, send, manage bool)

func FlattenKeyPermissions

func FlattenKeyPermissions(input *[]keyvault.KeyPermissions) []interface{}

func FlattenKeyVaultAccessPolicies

func FlattenKeyVaultAccessPolicies(policies *[]keyvault.AccessPolicyEntry) []map[string]interface{}

func FlattenSecretPermissions

func FlattenSecretPermissions(input *[]keyvault.SecretPermissions) []interface{}

func FlattenServiceBusAuthorizationRuleRights

func FlattenServiceBusAuthorizationRuleRights(rights *[]servicebus.AccessRights) (listen, send, manage bool)

func FlattenStoragePermissions

func FlattenStoragePermissions(input *[]keyvault.StoragePermissions) []interface{}

func FlattenStreamAnalyticsOutputSerialization

func FlattenStreamAnalyticsOutputSerialization(input streamanalytics.BasicSerialization) []interface{}

func FlattenStreamAnalyticsStreamInputSerialization

func FlattenStreamAnalyticsStreamInputSerialization(input streamanalytics.BasicSerialization) []interface{}

func FlattenZones

func FlattenZones(v *[]string) []interface{}

func GetKeyVaultBaseUrlFromID

func GetKeyVaultBaseUrlFromID(ctx context.Context, client *keyvault.VaultsClient, keyVaultId string) (string, error)

func GetKeyVaultIDFromBaseUrl

func GetKeyVaultIDFromBaseUrl(ctx context.Context, client *keyvault.VaultsClient, keyVaultUrl string) (*string, error)

func HandleAzureSdkForGoBug2824

func HandleAzureSdkForGoBug2824(id string) string

This code is a workaround for this bug https://github.com/Azure/azure-sdk-for-go/issues/2824

func HashIPv6Address deprecated

func HashIPv6Address(ipv6 interface{}) int

Deprecated: moved to internal and will be removed in 3.0

func KeyVaultExists

func KeyVaultExists(ctx context.Context, client *keyvault.VaultsClient, keyVaultId string) (bool, error)

func MSSQLElasticPoolValidateSKU

func MSSQLElasticPoolValidateSKU(diff *schema.ResourceDiff) error

func MergeSchema

func MergeSchema(a map[string]*schema.Schema, b map[string]*schema.Schema) map[string]*schema.Schema

shared schema

func MinCapacitySkuNameInSlice

func MinCapacitySkuNameInSlice(valid []string, minCapacity int32, ignoreCase bool) schema.SchemaValidateFunc

MinCapacitySkuNameInSlice returns a SchemaValidateFunc which tests if the provided value is of type string and matches the value of an element in the valid slice will test with in lower case if ignoreCase is true will also validate if the capacity if above passed minCapacity value

func NormalizeIPv6Address deprecated

func NormalizeIPv6Address(ipv6 interface{}) string

Deprecated: moved to utils and will be removed in 3.0

func NormalizeJson deprecated

func NormalizeJson(jsonString interface{}) string

Deprecated: moved to utils and will be removed in 3.0

func NormalizeLocation

func NormalizeLocation(input interface{}) string

azure.NormalizeLocation is a function which normalises human-readable region/location names (e.g. "West US") to the values used and returned by the Azure API (e.g. "westus"). In state we track the API internal version as it is easier to go from the human form to the canonical form than the other way around.

func SchemaApiManagementApiName

func SchemaApiManagementApiName() *schema.Schema

SchemaApiManagementChildName returns the Schema for the identifier used by resources within nested under the API Management Service resource

func SchemaApiManagementChildDataSourceName

func SchemaApiManagementChildDataSourceName() *schema.Schema

SchemaApiManagementChildDataSourceName returns the Schema for the identifier used by resources within nested under the API Management Service resource

func SchemaApiManagementChildID

func SchemaApiManagementChildID() *schema.Schema

SchemaApiManagementChildID returns the Schema for the identifier used by resources within nested under the API Management Service resource

func SchemaApiManagementChildName

func SchemaApiManagementChildName() *schema.Schema

SchemaApiManagementChildName returns the Schema for the identifier used by resources within nested under the API Management Service resource

func SchemaApiManagementDataSourceName

func SchemaApiManagementDataSourceName() *schema.Schema

func SchemaApiManagementName

func SchemaApiManagementName() *schema.Schema

func SchemaApiManagementOperationParameterContract

func SchemaApiManagementOperationParameterContract() *schema.Schema

func SchemaApiManagementOperationRepresentation

func SchemaApiManagementOperationRepresentation() *schema.Schema

func SchemaApiManagementUserDataSourceName

func SchemaApiManagementUserDataSourceName() *schema.Schema

func SchemaApiManagementUserName

func SchemaApiManagementUserName() *schema.Schema

func SchemaDevTestVirtualMachineGalleryImageReference

func SchemaDevTestVirtualMachineGalleryImageReference() *schema.Schema

func SchemaDevTestVirtualMachineInboundNatRule

func SchemaDevTestVirtualMachineInboundNatRule() *schema.Schema

func SchemaKeyVaultCertificatePermissions

func SchemaKeyVaultCertificatePermissions() *schema.Schema

func SchemaKeyVaultKeyPermissions

func SchemaKeyVaultKeyPermissions() *schema.Schema

func SchemaKeyVaultSecretPermissions

func SchemaKeyVaultSecretPermissions() *schema.Schema

func SchemaKeyVaultStoragePermissions

func SchemaKeyVaultStoragePermissions() *schema.Schema

func SchemaLocation

func SchemaLocation() *schema.Schema

func SchemaLocationForDataSource

func SchemaLocationForDataSource() *schema.Schema

func SchemaLocationOptional

func SchemaLocationOptional() *schema.Schema

func SchemaMultipleZones

func SchemaMultipleZones() *schema.Schema

func SchemaResourceGroupName

func SchemaResourceGroupName() *schema.Schema

func SchemaResourceGroupNameDeprecated

func SchemaResourceGroupNameDeprecated() *schema.Schema

func SchemaResourceGroupNameDiffSuppress

func SchemaResourceGroupNameDiffSuppress() *schema.Schema

func SchemaResourceGroupNameForDataSource

func SchemaResourceGroupNameForDataSource() *schema.Schema

func SchemaResourceGroupNameOptional

func SchemaResourceGroupNameOptional() *schema.Schema

func SchemaResourceGroupNameOptionalComputed

func SchemaResourceGroupNameOptionalComputed() *schema.Schema

func SchemaResourceGroupNameSetOptional

func SchemaResourceGroupNameSetOptional() *schema.Schema

func SchemaSingleZone

func SchemaSingleZone() *schema.Schema

func SchemaStorageAccountCorsRule

func SchemaStorageAccountCorsRule(patchEnabled bool) *schema.Schema

func SchemaStreamAnalyticsOutputSerialization

func SchemaStreamAnalyticsOutputSerialization() *schema.Schema

func SchemaStreamAnalyticsStreamInputSerialization

func SchemaStreamAnalyticsStreamInputSerialization() *schema.Schema

func SchemaZones

func SchemaZones() *schema.Schema

func SchemaZonesComputed

func SchemaZonesComputed() *schema.Schema

func ServiceBusAuthorizationRuleCustomizeDiff

func ServiceBusAuthorizationRuleCustomizeDiff(d *schema.ResourceDiff, _ interface{}) error

func ServiceBusAuthorizationRuleSchemaFrom

func ServiceBusAuthorizationRuleSchemaFrom(s map[string]*schema.Schema) map[string]*schema.Schema

func SliceContainsValue deprecated

func SliceContainsValue(input []string, value string) bool

Deprecated: moved to utils and will be remove din 3.0

func SplitSku

func SplitSku(sku string) (string, int32, error)

func ValidateEventHubAuthorizationRuleName

func ValidateEventHubAuthorizationRuleName() schema.SchemaValidateFunc

func ValidateEventHubConsumerName

func ValidateEventHubConsumerName() schema.SchemaValidateFunc

func ValidateEventHubName

func ValidateEventHubName() schema.SchemaValidateFunc

func ValidateEventHubNamespaceName

func ValidateEventHubNamespaceName() schema.SchemaValidateFunc

validation

func ValidateKeyVaultChildId

func ValidateKeyVaultChildId(i interface{}, k string) (warnings []string, errors []error)

Unfortunately this can't (easily) go in the Validate package since there's a circular reference on this package

func ValidateKeyVaultChildIdVersionOptional

func ValidateKeyVaultChildIdVersionOptional(i interface{}, k string) (warnings []string, errors []error)

Unfortunately this can't (easily) go in the Validate package since there's a circular reference on this package

func ValidateKeyVaultChildName

func ValidateKeyVaultChildName(v interface{}, k string) (warnings []string, errors []error)

func ValidateLongTermRetentionPoliciesIsoFormat

func ValidateLongTermRetentionPoliciesIsoFormat(i interface{}, k string) (_ []string, errors []error)

func ValidateMsSqlDatabaseName

func ValidateMsSqlDatabaseName(i interface{}, k string) (_ []string, errors []error)

Your database name can't end with '.' or ' ', can't contain '<,>,*,%,&,:,\,/,?' or control characters, and can't have more than 128 characters.

func ValidateMsSqlElasticPoolName

func ValidateMsSqlElasticPoolName(i interface{}, k string) (_ []string, errors []error)

Following characters and any control characters are not allowed for resource name '%,&,\\\\,?,/'.\" The name can not end with characters: '. ' TODO: unsure about length, was able to deploy one at 120

func ValidateMsSqlFailoverGroupName

func ValidateMsSqlFailoverGroupName(i interface{}, k string) (_ []string, errors []error)

func ValidateMsSqlServerName

func ValidateMsSqlServerName(i interface{}, k string) (_ []string, errors []error)

Your server name can contain only lowercase letters, numbers, and '-', but can't start or end with '-' or have more than 63 characters.

func ValidateRecoveryServicesVaultName

func ValidateRecoveryServicesVaultName(v interface{}, k string) (warnings []string, errors []error)

func ValidateResourceID

func ValidateResourceID(i interface{}, k string) (warnings []string, errors []error)

func ValidateResourceIDOrEmpty

func ValidateResourceIDOrEmpty(i interface{}, k string) (_ []string, errors []error)

true for a resource ID or an empty string

func ValidateServiceBusAuthorizationRuleName

func ValidateServiceBusAuthorizationRuleName() schema.SchemaValidateFunc

func ValidateServiceBusQueueName

func ValidateServiceBusQueueName() schema.SchemaValidateFunc

validation

func ValidateServiceBusSubscriptionName

func ValidateServiceBusSubscriptionName() schema.SchemaValidateFunc

func ValidateServiceBusTopicName

func ValidateServiceBusTopicName() schema.SchemaValidateFunc

Types

type KeyVaultChildID

type KeyVaultChildID struct {
	KeyVaultBaseUrl string
	Name            string
	Version         string
}

func ParseKeyVaultChildID

func ParseKeyVaultChildID(id string) (*KeyVaultChildID, error)

func ParseKeyVaultChildIDVersionOptional

func ParseKeyVaultChildIDVersionOptional(id string) (*KeyVaultChildID, error)

type ResourceID

type ResourceID struct {
	SubscriptionID string
	ResourceGroup  string
	Provider       string
	Path           map[string]string
}

ResourceID represents a parsed long-form Azure Resource Manager ID with the Subscription ID, Resource Group and the Provider as top- level fields, and other key-value pairs available via a map in the Path field.

func ParseAzureResourceID

func ParseAzureResourceID(id string) (*ResourceID, error)

ParseAzureResourceID converts a long-form Azure Resource Manager ID into a ResourceID. We make assumptions about the structure of URLs, which is obviously not good, but the best thing available given the SDK.

func (*ResourceID) PopSegment

func (id *ResourceID) PopSegment(name string) (string, error)

PopSegment retrieves a segment from the Path and returns it if found it removes it from the Path then return the value if not found, this returns nil

func (*ResourceID) ValidateNoEmptySegments

func (id *ResourceID) ValidateNoEmptySegments(sourceId string) error

ValidateNoEmptySegments validates ...

Jump to

Keyboard shortcuts

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