pspulumiyaml.azurenative.billing.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionBillingGetBillingRoleAssignmentByDepartment { param ( [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a billing account.)')] [string] $billingAccountName, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a role assignment.)')] [string] $billingRoleAssignmentName, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a department.)')] [string] $departmentName ) process { $arguments = @{} $arguments["billingAccountName"] = $billingAccountName $arguments["billingRoleAssignmentName"] = $billingRoleAssignmentName $arguments["departmentName"] = $departmentName $functionObject = Invoke-PulumiFunction -Name azure-native:billing:getBillingRoleAssignmentByDepartment -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBillingGetBillingRoleAssignmentByEnrollmentAccount { param ( [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies an enrollment account.)')] [string] $enrollmentAccountName, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a billing account.)')] [string] $billingAccountName, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a role assignment.)')] [string] $billingRoleAssignmentName ) process { $arguments = @{} $arguments["billingAccountName"] = $billingAccountName $arguments["billingRoleAssignmentName"] = $billingRoleAssignmentName $arguments["enrollmentAccountName"] = $enrollmentAccountName $functionObject = Invoke-PulumiFunction -Name azure-native:billing:getBillingRoleAssignmentByEnrollmentAccount -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBillingListBillingAccountInvoiceSectionsByCreateSubscriptionPermission { param ( [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a billing account.)')] [string] $billingAccountName ) process { $arguments = @{} $arguments["billingAccountName"] = $billingAccountName $functionObject = Invoke-PulumiFunction -Name azure-native:billing:listBillingAccountInvoiceSectionsByCreateSubscriptionPermission -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBillingGetBillingRoleAssignmentByBillingAccount { param ( [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a role assignment.)')] [string] $billingRoleAssignmentName, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a billing account.)')] [string] $billingAccountName ) process { $arguments = @{} $arguments["billingAccountName"] = $billingAccountName $arguments["billingRoleAssignmentName"] = $billingRoleAssignmentName $functionObject = Invoke-PulumiFunction -Name azure-native:billing:getBillingRoleAssignmentByBillingAccount -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function New-AzureNativeBillingBillingRoleAssignmentByEnrollmentAccount { [Alias('azure_native_billing_billingroleassignmentbyenrollmentaccount')] param ( [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies an enrollment account.)')] [string] $enrollmentAccountName, [parameter(mandatory=$False,HelpMessage='The principal tenant id of the user to whom the role was assigned.)')] [string] $principalTenantId, [parameter(mandatory=$False,HelpMessage='The principal id of the user to whom the role was assigned.)')] [string] $principalId, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a billing account.)')] [string] $billingAccountName, [parameter(mandatory=$False,HelpMessage='The ID of the role definition.)')] [string] $roleDefinitionId, [parameter(mandatory=$False,HelpMessage='The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.)')] [string] $userAuthenticationType, [parameter(mandatory=$False,HelpMessage='The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.)')] [string] $userEmailAddress, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a role assignment.)')] [string] $billingRoleAssignmentName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:billing:BillingRoleAssignmentByEnrollmentAccount") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["billingAccountName"] = $billingAccountName $resource.properties["enrollmentAccountName"] = $enrollmentAccountName if($PSBoundParameters.Keys -icontains 'principalTenantId') { $resource.properties["principalTenantId"] = $principalTenantId } if($PSBoundParameters.Keys -icontains 'principalId') { $resource.properties["principalId"] = $principalId } if($PSBoundParameters.Keys -icontains 'roleDefinitionId') { $resource.properties["roleDefinitionId"] = $roleDefinitionId } if($PSBoundParameters.Keys -icontains 'userAuthenticationType') { $resource.properties["userAuthenticationType"] = $userAuthenticationType } if($PSBoundParameters.Keys -icontains 'userEmailAddress') { $resource.properties["userEmailAddress"] = $userEmailAddress } if($PSBoundParameters.Keys -icontains 'billingRoleAssignmentName') { $resource.properties["billingRoleAssignmentName"] = $billingRoleAssignmentName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeBillingBillingRoleAssignmentByBillingAccount { [Alias('azure_native_billing_billingroleassignmentbybillingaccount')] param ( [parameter(mandatory=$False,HelpMessage='The principal id of the user to whom the role was assigned.)')] [string] $principalId, [parameter(mandatory=$False,HelpMessage='The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.)')] [string] $userAuthenticationType, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a role assignment.)')] [string] $billingRoleAssignmentName, [parameter(mandatory=$False,HelpMessage='The ID of the role definition.)')] [string] $roleDefinitionId, [parameter(mandatory=$False,HelpMessage='The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.)')] [string] $userEmailAddress, [parameter(mandatory=$False,HelpMessage='The principal tenant id of the user to whom the role was assigned.)')] [string] $principalTenantId, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a billing account.)')] [string] $billingAccountName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:billing:BillingRoleAssignmentByBillingAccount") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["billingAccountName"] = $billingAccountName if($PSBoundParameters.Keys -icontains 'principalId') { $resource.properties["principalId"] = $principalId } if($PSBoundParameters.Keys -icontains 'userAuthenticationType') { $resource.properties["userAuthenticationType"] = $userAuthenticationType } if($PSBoundParameters.Keys -icontains 'billingRoleAssignmentName') { $resource.properties["billingRoleAssignmentName"] = $billingRoleAssignmentName } if($PSBoundParameters.Keys -icontains 'roleDefinitionId') { $resource.properties["roleDefinitionId"] = $roleDefinitionId } if($PSBoundParameters.Keys -icontains 'userEmailAddress') { $resource.properties["userEmailAddress"] = $userEmailAddress } if($PSBoundParameters.Keys -icontains 'principalTenantId') { $resource.properties["principalTenantId"] = $principalTenantId } $global:pulumiresources += $resource return $resource } } function New-AzureNativeBillingBillingRoleAssignmentByDepartment { [Alias('azure_native_billing_billingroleassignmentbydepartment')] param ( [parameter(mandatory=$False,HelpMessage='The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.)')] [string] $userEmailAddress, [parameter(mandatory=$False,HelpMessage='The principal tenant id of the user to whom the role was assigned.)')] [string] $principalTenantId, [parameter(mandatory=$False,HelpMessage='The principal id of the user to whom the role was assigned.)')] [string] $principalId, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a billing account.)')] [string] $billingAccountName, [parameter(mandatory=$False,HelpMessage='The ID of the role definition.)')] [string] $roleDefinitionId, [parameter(mandatory=$False,HelpMessage='The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.)')] [string] $userAuthenticationType, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a department.)')] [string] $departmentName, [parameter(mandatory=$False,HelpMessage='The ID that uniquely identifies a role assignment.)')] [string] $billingRoleAssignmentName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:billing:BillingRoleAssignmentByDepartment") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["billingAccountName"] = $billingAccountName $resource.properties["departmentName"] = $departmentName if($PSBoundParameters.Keys -icontains 'userEmailAddress') { $resource.properties["userEmailAddress"] = $userEmailAddress } if($PSBoundParameters.Keys -icontains 'principalTenantId') { $resource.properties["principalTenantId"] = $principalTenantId } if($PSBoundParameters.Keys -icontains 'principalId') { $resource.properties["principalId"] = $principalId } if($PSBoundParameters.Keys -icontains 'roleDefinitionId') { $resource.properties["roleDefinitionId"] = $roleDefinitionId } if($PSBoundParameters.Keys -icontains 'userAuthenticationType') { $resource.properties["userAuthenticationType"] = $userAuthenticationType } if($PSBoundParameters.Keys -icontains 'billingRoleAssignmentName') { $resource.properties["billingRoleAssignmentName"] = $billingRoleAssignmentName } $global:pulumiresources += $resource return $resource } } |