pspulumiyaml.azurenative.edgeorder.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionEdgeorderGetOrderItemByName { param ( [parameter(mandatory=$False,HelpMessage='$expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the order item)')] [string] $orderItemName ) process { $arguments = @{} $arguments["orderItemName"] = $orderItemName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:edgeorder:getOrderItemByName -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionEdgeorderGetAddressByName { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only)')] [string] $addressName ) process { $arguments = @{} $arguments["addressName"] = $addressName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:edgeorder:getAddressByName -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class CustomerSubscriptionRegisteredFeatures { [string] $name [string] $state } function New-AzureNativeTypeEdgeorderCustomerSubscriptionRegisteredFeatures { param ( [parameter(mandatory=$False,HelpMessage='Name of subscription registered feature)')] [string] $name, [parameter(mandatory=$False,HelpMessage='State of subscription registered feature)')] [string] $state ) process { return $([CustomerSubscriptionRegisteredFeatures]$PSBoundParameters) } } class CustomerSubscriptionDetails { [CustomerSubscriptionRegisteredFeatures[]] $registeredFeatures [string] $locationPlacementId [string] $quotaId } function New-AzureNativeTypeEdgeorderCustomerSubscriptionDetails { param ( [parameter(mandatory=$False,HelpMessage='List of registered feature flags for subscription)')] $registeredFeatures, [parameter(mandatory=$False,HelpMessage='Location placement Id of a subscription)')] [string] $locationPlacementId, [parameter(mandatory=$False,HelpMessage='Quota ID of a subscription)')] [string] $quotaId ) process { return $([CustomerSubscriptionDetails]$PSBoundParameters) } } function Invoke-AzureNativeFunctionEdgeorderListConfigurations { param ( [parameter(mandatory=$False,HelpMessage='$skipToken is supported on list of configurations, which provides the next page in the list of configurations.)')] [string] $skipToken, [parameter(mandatory=$False,HelpMessage='Holds details about product hierarchy information and filterable property.)')] $configurationFilters, [parameter(mandatory=$False,HelpMessage='Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing subscription details)')] [CustomerSubscriptionDetails] $customerSubscriptionDetails ) process { $arguments = @{} $arguments["configurationFilters"] = $configurationFilters if($PSBoundParameters.Keys -icontains 'skipToken') { $arguments["skipToken"] = $skipToken } if($PSBoundParameters.Keys -icontains 'customerSubscriptionDetails') { $arguments["customerSubscriptionDetails"] = $customerSubscriptionDetails } $functionObject = Invoke-PulumiFunction -Name azure-native:edgeorder:listConfigurations -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionEdgeorderListProductFamilies { param ( [parameter(mandatory=$False,HelpMessage='$skipToken is supported on list of product families, which provides the next page in the list of product families.)')] [string] $skipToken, [parameter(mandatory=$False,HelpMessage='$expand is supported on configurations parameter for product, which provides details on the configurations for the product.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing subscription details)')] [CustomerSubscriptionDetails] $customerSubscriptionDetails, [parameter(mandatory=$False,HelpMessage='Dictionary of filterable properties on product family.)')] [object] $filterableProperties ) process { $arguments = @{} $arguments["filterableProperties"] = $filterableProperties if($PSBoundParameters.Keys -icontains 'skipToken') { $arguments["skipToken"] = $skipToken } if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } if($PSBoundParameters.Keys -icontains 'customerSubscriptionDetails') { $arguments["customerSubscriptionDetails"] = $customerSubscriptionDetails } $functionObject = Invoke-PulumiFunction -Name azure-native:edgeorder:listProductFamilies -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class EncryptionPreferences { [ValidateSet('Disabled', 'Enabled')] [string] $doubleEncryptionStatus } function New-AzureNativeTypeEdgeorderEncryptionPreferences { param ( [parameter(mandatory=$False,HelpMessage='Double encryption status as entered by the customer. It is compulsory to give this parameter if the ''Deny'' or ''Disabled'' policy is configured.)')] [string] [ValidateSet('Disabled', 'Enabled')] $doubleEncryptionStatus ) process { return $([EncryptionPreferences]$PSBoundParameters) } } class ManagementResourcePreferences { [string] $preferredManagementResourceId } function New-AzureNativeTypeEdgeorderManagementResourcePreferences { param ( [parameter(mandatory=$False,HelpMessage='Customer preferred Management resource ARM ID)')] [string] $preferredManagementResourceId ) process { return $([ManagementResourcePreferences]$PSBoundParameters) } } class NotificationPreference { [ValidateSet('Shipped', 'Delivered')] [string] $stageName [ValidateSet('Shipped', 'Delivered')] [bool] $sendNotification } function New-AzureNativeTypeEdgeorderNotificationPreference { param ( [parameter(mandatory=$False,HelpMessage='Name of the stage.)')] [string] [ValidateSet('Shipped', 'Delivered')] $stageName, [parameter(mandatory=$False,HelpMessage='Notification is required or not.)')] [bool] $sendNotification ) process { return $([NotificationPreference]$PSBoundParameters) } } class TransportPreferences { [ValidateSet('CustomerManaged', 'MicrosoftManaged')] [string] $preferredShipmentType } function New-AzureNativeTypeEdgeorderTransportPreferences { param ( [parameter(mandatory=$False,HelpMessage='Indicates Shipment Logistics type that the customer preferred.)')] [string] [ValidateSet('CustomerManaged', 'MicrosoftManaged')] $preferredShipmentType ) process { return $([TransportPreferences]$PSBoundParameters) } } class Preferences { [EncryptionPreferences] $encryptionPreferences [ManagementResourcePreferences] $managementResourcePreferences [NotificationPreference[]] $notificationPreferences [TransportPreferences] $transportPreferences } function New-AzureNativeTypeEdgeorderPreferences { param ( [parameter(mandatory=$False,HelpMessage='Preferences related to the Encryption.)')] [EncryptionPreferences] $encryptionPreferences, [parameter(mandatory=$False,HelpMessage='Preferences related to the Management resource.)')] [ManagementResourcePreferences] $managementResourcePreferences, [parameter(mandatory=$False,HelpMessage='Notification preferences.)')] $notificationPreferences, [parameter(mandatory=$False,HelpMessage='Preferences related to the shipment logistics of the order.)')] [TransportPreferences] $transportPreferences ) process { return $([Preferences]$PSBoundParameters) } } class HierarchyInformation { [ValidateSet('Purchase', 'Rental')] [string] $productName [ValidateSet('Purchase', 'Rental')] [string] $productFamilyName [ValidateSet('Purchase', 'Rental')] [string] $productLineName [ValidateSet('Purchase', 'Rental')] [string] $configurationName } function New-AzureNativeTypeEdgeorderHierarchyInformation { param ( [parameter(mandatory=$False,HelpMessage='Represents product name that uniquely identifies product)')] [string] $productName, [parameter(mandatory=$False,HelpMessage='Represents product family name that uniquely identifies product family)')] [string] $productFamilyName, [parameter(mandatory=$False,HelpMessage='Represents product line name that uniquely identifies product line)')] [string] $productLineName, [parameter(mandatory=$False,HelpMessage='Represents configuration name that uniquely identifies configuration)')] [string] $configurationName ) process { return $([HierarchyInformation]$PSBoundParameters) } } class ProductDetails { [ValidateSet('Purchase', 'Rental')] [HierarchyInformation] $hierarchyInformation } function New-AzureNativeTypeEdgeorderProductDetails { param ( [parameter(mandatory=$False,HelpMessage='Hierarchy of the product which uniquely identifies the product)')] [HierarchyInformation] $hierarchyInformation ) process { return $([ProductDetails]$PSBoundParameters) } } class OrderItemDetails { [Preferences] $preferences [ValidateSet('Purchase', 'Rental')] [string] $orderItemType [ValidateSet('Purchase', 'Rental')] [ProductDetails] $productDetails [ValidateSet('Purchase', 'Rental')] [string[]] $notificationEmailList } function New-AzureNativeTypeEdgeorderOrderItemDetails { param ( [parameter(mandatory=$False,HelpMessage='Customer notification Preferences)')] [Preferences] $preferences, [parameter(mandatory=$False,HelpMessage='Order item type.)')] [string] [ValidateSet('Purchase', 'Rental')] $orderItemType, [parameter(mandatory=$False,HelpMessage='Unique identifier for configuration.)')] [ProductDetails] $productDetails, [parameter(mandatory=$False,HelpMessage='Additional notification email list)')] [string[]] $notificationEmailList ) process { return $([OrderItemDetails]$PSBoundParameters) } } class ContactDetails { [string] $mobile [string] $contactName [string] $phone [string[]] $emailList [string] $phoneExtension } function New-AzureNativeTypeEdgeorderContactDetails { param ( [parameter(mandatory=$False,HelpMessage='Mobile number of the contact person.)')] [string] $mobile, [parameter(mandatory=$False,HelpMessage='Contact name of the person.)')] [string] $contactName, [parameter(mandatory=$False,HelpMessage='Phone number of the contact person.)')] [string] $phone, [parameter(mandatory=$False,HelpMessage='List of Email-ids to be notified about job progress.)')] [string[]] $emailList, [parameter(mandatory=$False,HelpMessage='Phone extension number of the contact person.)')] [string] $phoneExtension ) process { return $([ContactDetails]$PSBoundParameters) } } class ShippingAddress { [ValidateSet('None', 'Residential', 'Commercial')] [string] $addressType [ValidateSet('None', 'Residential', 'Commercial')] [string] $streetAddress3 [ValidateSet('None', 'Residential', 'Commercial')] [string] $streetAddress1 [ValidateSet('None', 'Residential', 'Commercial')] [string] $streetAddress2 [ValidateSet('None', 'Residential', 'Commercial')] [string] $postalCode [ValidateSet('None', 'Residential', 'Commercial')] [string] $zipExtendedCode [ValidateSet('None', 'Residential', 'Commercial')] [string] $companyName [ValidateSet('None', 'Residential', 'Commercial')] [string] $stateOrProvince [ValidateSet('None', 'Residential', 'Commercial')] [string] $city [ValidateSet('None', 'Residential', 'Commercial')] [string] $country } function New-AzureNativeTypeEdgeorderShippingAddress { param ( [parameter(mandatory=$False,HelpMessage='Type of address.)')] [string] [ValidateSet('None', 'Residential', 'Commercial')] $addressType, [parameter(mandatory=$False,HelpMessage='Street Address line 3.)')] [string] $streetAddress3, [parameter(mandatory=$False,HelpMessage='Street Address line 1.)')] [string] $streetAddress1, [parameter(mandatory=$False,HelpMessage='Street Address line 2.)')] [string] $streetAddress2, [parameter(mandatory=$False,HelpMessage='Postal code.)')] [string] $postalCode, [parameter(mandatory=$False,HelpMessage='Extended Zip Code.)')] [string] $zipExtendedCode, [parameter(mandatory=$False,HelpMessage='Name of the company.)')] [string] $companyName, [parameter(mandatory=$False,HelpMessage='Name of the State or Province.)')] [string] $stateOrProvince, [parameter(mandatory=$False,HelpMessage='Name of the City.)')] [string] $city, [parameter(mandatory=$False,HelpMessage='Name of the Country.)')] [string] $country ) process { return $([ShippingAddress]$PSBoundParameters) } } class AddressProperties { [ContactDetails] $contactDetails [ShippingAddress] $shippingAddress } function New-AzureNativeTypeEdgeorderAddressProperties { param ( [parameter(mandatory=$False,HelpMessage='Contact details for the address)')] [ContactDetails] $contactDetails, [parameter(mandatory=$False,HelpMessage='Shipping details for the address)')] [ShippingAddress] $shippingAddress ) process { return $([AddressProperties]$PSBoundParameters) } } class AddressDetails { [AddressProperties] $forwardAddress } function New-AzureNativeTypeEdgeorderAddressDetails { param ( [parameter(mandatory=$False,HelpMessage='Customer address and contact details. It should be address resource)')] [AddressProperties] $forwardAddress ) process { return $([AddressDetails]$PSBoundParameters) } } function New-AzureNativeEdgeorderOrderItemByName { [Alias('azure_native_edgeorder_orderitembyname')] param ( [parameter(mandatory=$False,HelpMessage='Represents order item details.)')] [OrderItemDetails] $orderItemDetails, [parameter(mandatory=$False,HelpMessage='Represents shipping and return address for order item)')] [AddressDetails] $addressDetails, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Id of the order to which order item belongs to)')] [string] $orderId, [parameter(mandatory=$False,HelpMessage='The name of the order item)')] [string] $orderItemName, [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:edgeorder:OrderItemByName") $resource.properties["addressDetails"] = $addressDetails $resource.properties["orderId"] = $orderId $resource.properties["orderItemDetails"] = $orderItemDetails $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'orderItemName') { $resource.properties["orderItemName"] = $orderItemName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeEdgeorderAddressByName { [Alias('azure_native_edgeorder_addressbyname')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Shipping details for the address)')] [ShippingAddress] $shippingAddress, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only)')] [string] $addressName, [parameter(mandatory=$False,HelpMessage='Contact details for the address)')] [ContactDetails] $contactDetails, [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:edgeorder:AddressByName") $resource.properties["contactDetails"] = $contactDetails $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'shippingAddress') { $resource.properties["shippingAddress"] = $shippingAddress } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'addressName') { $resource.properties["addressName"] = $addressName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } |