Documentation
¶
Index ¶
- Constants
- func EventHubAuthorizationRuleCustomizeDiff(d *schema.ResourceDiff, _ interface{}) error
- func EventHubAuthorizationRuleSchemaFrom(s map[string]*schema.Schema) map[string]*schema.Schema
- func ExpandApiManagementOperationParameterContract(input []interface{}) *[]apimanagement.ParameterContract
- func ExpandApiManagementOperationRepresentation(input []interface{}) (*[]apimanagement.RepresentationContract, error)
- func ExpandApplicationInsightsAPIKeyLinkedProperties(v *schema.Set, appInsightsId string) *[]string
- func ExpandCertificatePermissions(input []interface{}) *[]keyvault.CertificatePermissions
- func ExpandDevTestLabVirtualMachineGalleryImageReference(input []interface{}, osType string) *dtl.GalleryImageReference
- func ExpandDevTestLabVirtualMachineNatRules(input *schema.Set) []dtl.InboundNatRule
- func ExpandEventHubAuthorizationRuleRights(d *schema.ResourceData) *[]eventhub.AccessRights
- func ExpandKeyPermissions(keyPermissionsRaw []interface{}) *[]keyvault.KeyPermissions
- func ExpandKeyVaultAccessPolicies(input []interface{}) (*[]keyvault.AccessPolicyEntry, error)
- func ExpandSecretPermissions(input []interface{}) *[]keyvault.SecretPermissions
- func ExpandServiceBusAuthorizationRuleRights(d *schema.ResourceData) *[]servicebus.AccessRights
- func ExpandStoragePermissions(input []interface{}) *[]keyvault.StoragePermissions
- func ExpandStreamAnalyticsOutputSerialization(input []interface{}) (streamanalytics.BasicSerialization, error)
- func ExpandStreamAnalyticsStreamInputSerialization(input []interface{}) (streamanalytics.BasicSerialization, error)
- func ExpandZones(v []interface{}) *[]string
- func FindNetworkInterfaceIPConfiguration(input *[]network.InterfaceIPConfiguration, name string) *network.InterfaceIPConfiguration
- func FlattenApiManagementOperationParameterContract(input *[]apimanagement.ParameterContract) []interface{}
- func FlattenApiManagementOperationRepresentation(input *[]apimanagement.RepresentationContract) []interface{}
- func FlattenApplicationInsightsAPIKeyLinkedProperties(props *[]string) *[]string
- func FlattenCertificatePermissions(input *[]keyvault.CertificatePermissions) []interface{}
- func FlattenDevTestVirtualMachineGalleryImage(input *dtl.GalleryImageReference) []interface{}
- func FlattenEventHubAuthorizationRuleRights(rights *[]eventhub.AccessRights) (listen, send, manage bool)
- func FlattenKeyPermissions(input *[]keyvault.KeyPermissions) []interface{}
- func FlattenKeyVaultAccessPolicies(policies *[]keyvault.AccessPolicyEntry) []map[string]interface{}
- func FlattenSecretPermissions(input *[]keyvault.SecretPermissions) []interface{}
- func FlattenServiceBusAuthorizationRuleRights(rights *[]servicebus.AccessRights) (listen, send, manage bool)
- func FlattenStoragePermissions(input *[]keyvault.StoragePermissions) []interface{}
- func FlattenStreamAnalyticsOutputSerialization(input streamanalytics.BasicSerialization) []interface{}
- func FlattenStreamAnalyticsStreamInputSerialization(input streamanalytics.BasicSerialization) []interface{}
- func FlattenZones(v *[]string) []interface{}
- func GetKeyVaultBaseUrlFromID(ctx context.Context, client *keyvault.VaultsClient, keyVaultId string) (string, error)
- func GetKeyVaultIDFromBaseUrl(ctx context.Context, client *keyvault.VaultsClient, keyVaultUrl string) (*string, error)
- func HandleAzureSdkForGoBug2824(id string) string
- func HashIPv6Address(ipv6 interface{}) intdeprecated
- func KeyVaultExists(ctx context.Context, client *keyvault.VaultsClient, keyVaultId string) (bool, error)
- func MSSQLElasticPoolValidateSKU(diff *schema.ResourceDiff) error
- func MergeSchema(a map[string]*schema.Schema, b map[string]*schema.Schema) map[string]*schema.Schema
- func MinCapacitySkuNameInSlice(valid []string, minCapacity int32, ignoreCase bool) schema.SchemaValidateFunc
- func NormalizeIPv6Address(ipv6 interface{}) stringdeprecated
- func NormalizeJson(jsonString interface{}) stringdeprecated
- func NormalizeLocation(input interface{}) string
- func SchemaApiManagementApiName() *schema.Schema
- func SchemaApiManagementChildDataSourceName() *schema.Schema
- func SchemaApiManagementChildID() *schema.Schema
- func SchemaApiManagementChildName() *schema.Schema
- func SchemaApiManagementDataSourceName() *schema.Schema
- func SchemaApiManagementName() *schema.Schema
- func SchemaApiManagementOperationParameterContract() *schema.Schema
- func SchemaApiManagementOperationRepresentation() *schema.Schema
- func SchemaApiManagementUserDataSourceName() *schema.Schema
- func SchemaApiManagementUserName() *schema.Schema
- func SchemaDevTestVirtualMachineGalleryImageReference() *schema.Schema
- func SchemaDevTestVirtualMachineInboundNatRule() *schema.Schema
- func SchemaKeyVaultCertificatePermissions() *schema.Schema
- func SchemaKeyVaultKeyPermissions() *schema.Schema
- func SchemaKeyVaultSecretPermissions() *schema.Schema
- func SchemaKeyVaultStoragePermissions() *schema.Schema
- func SchemaLocation() *schema.Schema
- func SchemaLocationForDataSource() *schema.Schema
- func SchemaLocationOptional() *schema.Schema
- func SchemaMultipleZones() *schema.Schema
- func SchemaResourceGroupName() *schema.Schema
- func SchemaResourceGroupNameDeprecated() *schema.Schema
- func SchemaResourceGroupNameDiffSuppress() *schema.Schema
- func SchemaResourceGroupNameForDataSource() *schema.Schema
- func SchemaResourceGroupNameOptional() *schema.Schema
- func SchemaResourceGroupNameOptionalComputed() *schema.Schema
- func SchemaResourceGroupNameSetOptional() *schema.Schema
- func SchemaSingleZone() *schema.Schema
- func SchemaStorageAccountCorsRule(patchEnabled bool) *schema.Schema
- func SchemaStreamAnalyticsOutputSerialization() *schema.Schema
- func SchemaStreamAnalyticsStreamInputSerialization() *schema.Schema
- func SchemaZones() *schema.Schema
- func SchemaZonesComputed() *schema.Schema
- func ServiceBusAuthorizationRuleCustomizeDiff(d *schema.ResourceDiff, _ interface{}) error
- func ServiceBusAuthorizationRuleSchemaFrom(s map[string]*schema.Schema) map[string]*schema.Schema
- func SliceContainsValue(input []string, value string) booldeprecated
- func SplitSku(sku string) (string, int32, error)
- func UpdateNetworkInterfaceIPConfiguration(config network.InterfaceIPConfiguration, ...) *[]network.InterfaceIPConfiguration
- func ValidateEventHubAuthorizationRuleName() schema.SchemaValidateFunc
- func ValidateEventHubConsumerName() schema.SchemaValidateFunc
- func ValidateEventHubName() schema.SchemaValidateFunc
- func ValidateEventHubNamespaceName() schema.SchemaValidateFunc
- func ValidateKeyVaultChildId(i interface{}, k string) (warnings []string, errors []error)
- func ValidateKeyVaultChildIdVersionOptional(i interface{}, k string) (warnings []string, errors []error)
- func ValidateKeyVaultChildName(v interface{}, k string) (warnings []string, errors []error)
- func ValidateLongTermRetentionPoliciesIsoFormat(i interface{}, k string) (_ []string, errors []error)
- func ValidateMsSqlDatabaseName(i interface{}, k string) (_ []string, errors []error)
- func ValidateMsSqlElasticPoolName(i interface{}, k string) (_ []string, errors []error)
- func ValidateMsSqlFailoverGroupName(i interface{}, k string) (_ []string, errors []error)
- func ValidateMsSqlServerName(i interface{}, k string) (_ []string, errors []error)
- func ValidateRecoveryServicesVaultName(v interface{}, k string) (warnings []string, errors []error)
- func ValidateResourceID(i interface{}, k string) (warnings []string, errors []error)
- func ValidateResourceIDOrEmpty(i interface{}, k string) (_ []string, errors []error)
- func ValidateServiceBusAuthorizationRuleName() schema.SchemaValidateFunc
- func ValidateServiceBusQueueName() schema.SchemaValidateFunc
- func ValidateServiceBusSubscriptionName() schema.SchemaValidateFunc
- func ValidateServiceBusTopicName() schema.SchemaValidateFunc
- type KeyVaultChildID
- type ResourceID
Constants ¶
const ( DTU skuType = 0 VCore skuType = 1 )
Variables ¶
This section is empty.
Functions ¶
func EventHubAuthorizationRuleCustomizeDiff ¶
func EventHubAuthorizationRuleCustomizeDiff(d *schema.ResourceDiff, _ interface{}) error
func ExpandApiManagementOperationParameterContract ¶
func ExpandApiManagementOperationParameterContract(input []interface{}) *[]apimanagement.ParameterContract
func ExpandApiManagementOperationRepresentation ¶
func ExpandApiManagementOperationRepresentation(input []interface{}) (*[]apimanagement.RepresentationContract, error)
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 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 HandleAzureSdkForGoBug2824 ¶
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 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 ¶
SchemaApiManagementChildName returns the Schema for the identifier used by resources within nested under the API Management Service resource
func SchemaApiManagementChildDataSourceName ¶
SchemaApiManagementChildDataSourceName returns the Schema for the identifier used by resources within nested under the API Management Service resource
func SchemaApiManagementChildID ¶
SchemaApiManagementChildID returns the Schema for the identifier used by resources within nested under the API Management Service resource
func SchemaApiManagementChildName ¶
SchemaApiManagementChildName returns the Schema for the identifier used by resources within nested under the API Management Service resource
func SchemaApiManagementName ¶
func SchemaLocation ¶
func SchemaLocationOptional ¶
func SchemaMultipleZones ¶
func SchemaResourceGroupName ¶
func SchemaSingleZone ¶
func SchemaZones ¶
func SchemaZonesComputed ¶
func ServiceBusAuthorizationRuleCustomizeDiff ¶
func ServiceBusAuthorizationRuleCustomizeDiff(d *schema.ResourceDiff, _ interface{}) error
func SliceContainsValue
deprecated
func UpdateNetworkInterfaceIPConfiguration ¶
func UpdateNetworkInterfaceIPConfiguration(config network.InterfaceIPConfiguration, configs *[]network.InterfaceIPConfiguration) *[]network.InterfaceIPConfiguration
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 ¶
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 ValidateMsSqlDatabaseName ¶
Your database name can't end with '.' or ' ', can't contain '<,>,*,%,&,:,\,/,?' or control characters, and can't have more than 128 characters.
func ValidateMsSqlElasticPoolName ¶
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 ValidateMsSqlServerName ¶
Your server name can contain only lowercase letters, numbers, and '-', but can't start or end with '-' or have more than 63 characters.
func ValidateResourceID ¶
func ValidateResourceIDOrEmpty ¶
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 ¶
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 ...
Source Files
¶
- api_management.go
- app_insights.go
- contains.go
- devtest.go
- elasticpool.go
- eventhub.go
- ipv6.go
- json.go
- key_vault.go
- key_vault_access_policy.go
- key_vault_child.go
- location.go
- mssql.go
- network_interface.go
- recovery_services_vault.go
- resource_group.go
- resourceid.go
- servicebus.go
- sku.go
- storage_account.go
- stream_analytics_output.go
- stream_analytics_stream_input.go
- validate.go
- zones.go