pspulumiyaml.azurenative.extendedlocation.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionExtendedlocationGetResourceSyncRule { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource Sync Rule name.)')] [string] $childResourceName, [parameter(mandatory=$False,HelpMessage='Custom Locations name.)')] [string] $resourceName ) process { $arguments = @{} $arguments["childResourceName"] = $childResourceName $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:extendedlocation:getResourceSyncRule -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionExtendedlocationGetCustomLocation { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Custom Locations name.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:extendedlocation:getCustomLocation -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class CustomLocationPropertiesAuthentication { [string] $value [string] $type } function New-AzureNativeTypeExtendedlocationCustomLocationPropertiesAuthentication { param ( [parameter(mandatory=$False,HelpMessage='The kubeconfig value.)')] [string] $value, [parameter(mandatory=$False,HelpMessage='The type of the Custom Locations authentication)')] [string] $type ) process { return $([CustomLocationPropertiesAuthentication]$PSBoundParameters) } } function New-AzureNativeExtendedlocationCustomLocation { [Alias('azure_native_extendedlocation_customlocation')] param ( [parameter(mandatory=$False,HelpMessage='Provisioning State for the Custom Location.)')] [string] $provisioningState, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Custom Locations name.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Contains the reference to the add-on that contains charts to deploy CRDs and operators.)')] [string[]] $clusterExtensionIds, [parameter(mandatory=$False,HelpMessage='Display name for the Custom Locations location.)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='Type of host the Custom Locations is referencing (Kubernetes, etc...).)')] [string] [ValidateSet('Kubernetes')] $hostType, [parameter(mandatory=$False,HelpMessage='Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.)')] [string] $hostResourceId, [parameter(mandatory=$False,HelpMessage='Kubernetes namespace that will be created on the specified cluster.)')] [string] $namespace, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='This is optional input that contains the authentication that should be used to generate the namespace.)')] [CustomLocationPropertiesAuthentication] $authentication, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:extendedlocation:CustomLocation") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'provisioningState') { $resource.properties["provisioningState"] = $provisioningState } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'clusterExtensionIds') { $resource.properties["clusterExtensionIds"] = $clusterExtensionIds } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'hostType') { $resource.properties["hostType"] = $hostType } if($PSBoundParameters.Keys -icontains 'hostResourceId') { $resource.properties["hostResourceId"] = $hostResourceId } if($PSBoundParameters.Keys -icontains 'namespace') { $resource.properties["namespace"] = $namespace } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'authentication') { $resource.properties["authentication"] = $authentication } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class ResourceSyncRulePropertiesSelector { [object] $matchLabels } function New-AzureNativeTypeExtendedlocationResourceSyncRulePropertiesSelector { param ( [parameter(mandatory=$False,HelpMessage='MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is ''key'', the operator is ''In'', and the values array contains only ''value''.)')] [hashtable] $matchLabels ) process { return $([ResourceSyncRulePropertiesSelector]$PSBoundParameters) } } function New-AzureNativeExtendedlocationResourceSyncRule { [Alias('azure_native_extendedlocation_resourcesyncrule')] param ( [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='A label selector is composed of two parts, matchLabels and matchExpressions. The first part, matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is ''key'', the operator is ''In'', and the values array contains only ''value''. The second part, matchExpressions is a list of resource selector requirements. Valid operators include In, NotIn, Exists, and DoesNotExist. The values set must be non-empty in the case of In and NotIn. The values set must be empty in the case of Exists and DoesNotExist. All of the requirements, from both matchLabels and matchExpressions must all be satisfied in order to match.)')] [ResourceSyncRulePropertiesSelector] $selector, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource Sync Rule name.)')] [string] $childResourceName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Priority represents a priority of the Resource Sync Rule)')] [int] $priority, [parameter(mandatory=$False,HelpMessage='For an unmapped custom resource, its labels will be used to find matching resource sync rules. If this resource sync rule is one of the matching rules with highest priority, then the unmapped custom resource will be projected to the target resource group associated with this resource sync rule. The user creating this resource sync rule should have write permissions on the target resource group and this write permission will be validated when creating the resource sync rule.)')] [string] $targetResourceGroup, [parameter(mandatory=$False,HelpMessage='Custom Locations name.)')] [string] $resourceName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:extendedlocation:ResourceSyncRule") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'selector') { $resource.properties["selector"] = $selector } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'childResourceName') { $resource.properties["childResourceName"] = $childResourceName } if($PSBoundParameters.Keys -icontains 'priority') { $resource.properties["priority"] = $priority } if($PSBoundParameters.Keys -icontains 'targetResourceGroup') { $resource.properties["targetResourceGroup"] = $targetResourceGroup } $global:pulumiresources += $resource return $resource } } |