pspulumiyaml.azurenative.scheduler.psm1
using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" } function Invoke-AzureNativeFunctionSchedulerGetJobCollection { param ( [parameter(mandatory=$False,HelpMessage='The job collection name.)')] [string] $jobCollectionName, [parameter(mandatory=$False,HelpMessage='The resource group name.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["jobCollectionName"] = $jobCollectionName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:scheduler:getJobCollection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionSchedulerGetJob { param ( [parameter(mandatory=$False,HelpMessage='The resource group name.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The job collection name.)')] [string] $jobCollectionName, [parameter(mandatory=$False,HelpMessage='The job name.)')] [string] $jobName ) process { $arguments = @{} $arguments["jobCollectionName"] = $jobCollectionName $arguments["jobName"] = $jobName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:scheduler:getJob -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class JobRecurrenceScheduleMonthlyOccurrence { [ArgumentCompletions('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')] [object] $day [int] $occurrence } function New-AzureNativeTypeSchedulerJobRecurrenceScheduleMonthlyOccurrence { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the day. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.)')] $day, [parameter(mandatory=$False,HelpMessage='Gets or sets the occurrence. Must be between -5 and 5.)')] [int] $occurrence ) process { return $([JobRecurrenceScheduleMonthlyOccurrence]$PSBoundParameters) } } class JobRecurrenceSchedule { [int[]] $minutes [int[]] $monthDays [ArgumentCompletions('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')] [string] $weekDays [JobRecurrenceScheduleMonthlyOccurrence[]] $monthlyOccurrences [int[]] $hours } function New-AzureNativeTypeSchedulerJobRecurrenceSchedule { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the minutes of the hour that the job should execute at.)')] [int[]] $minutes, [parameter(mandatory=$False,HelpMessage='Gets or sets the days of the month that the job should execute on. Must be between 1 and 31.)')] [int[]] $monthDays, [parameter(mandatory=$False,HelpMessage='Gets or sets the days of the week that the job should execute on.)')] $weekDays, [parameter(mandatory=$False,HelpMessage='Gets or sets the occurrences of days within a month.)')] $monthlyOccurrences, [parameter(mandatory=$False,HelpMessage='Gets or sets the hours of the day that the job should execute at.)')] [int[]] $hours ) process { return $([JobRecurrenceSchedule]$PSBoundParameters) } } class JobRecurrence { [ArgumentCompletions('Minute', 'Hour', 'Day', 'Week', 'Month')] [object] $frequency [JobRecurrenceSchedule] $schedule [int] $interval [string] $endTime [int] $count } function New-AzureNativeTypeSchedulerJobRecurrence { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the frequency of recurrence (second, minute, hour, day, week, month).)')] $frequency, [parameter(mandatory=$False,HelpMessage=')')] [JobRecurrenceSchedule] $schedule, [parameter(mandatory=$False,HelpMessage='Gets or sets the interval between retries.)')] [int] $interval, [parameter(mandatory=$False,HelpMessage='Gets or sets the time at which the job will complete.)')] [string] $endTime, [parameter(mandatory=$False,HelpMessage='Gets or sets the maximum number of times that the job should run.)')] [int] $count ) process { return $([JobRecurrence]$PSBoundParameters) } } class ServiceBusBrokeredMessageProperties { [string] $replyToSessionId [string] $contentType [string] $messageId [string] $label [string] $viaPartitionKey [string] $timeToLive [string] $correlationId [string] $to [bool] $forcePersistence [string] $scheduledEnqueueTimeUtc [string] $sessionId [string] $replyTo [string] $partitionKey } function New-AzureNativeTypeSchedulerServiceBusBrokeredMessageProperties { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the reply to session ID.)')] [string] $replyToSessionId, [parameter(mandatory=$False,HelpMessage='Gets or sets the content type.)')] [string] $contentType, [parameter(mandatory=$False,HelpMessage='Gets or sets the message ID.)')] [string] $messageId, [parameter(mandatory=$False,HelpMessage='Gets or sets the label.)')] [string] $label, [parameter(mandatory=$False,HelpMessage='Gets or sets the via partition key.)')] [string] $viaPartitionKey, [parameter(mandatory=$False,HelpMessage='Gets or sets the time to live.)')] [string] $timeToLive, [parameter(mandatory=$False,HelpMessage='Gets or sets the correlation ID.)')] [string] $correlationId, [parameter(mandatory=$False,HelpMessage='Gets or sets the to.)')] [string] $to, [parameter(mandatory=$False,HelpMessage='Gets or sets the force persistence.)')] [bool] $forcePersistence, [parameter(mandatory=$False,HelpMessage='Gets or sets the scheduled enqueue time UTC.)')] [string] $scheduledEnqueueTimeUtc, [parameter(mandatory=$False,HelpMessage='Gets or sets the session ID.)')] [string] $sessionId, [parameter(mandatory=$False,HelpMessage='Gets or sets the reply to.)')] [string] $replyTo, [parameter(mandatory=$False,HelpMessage='Gets or sets the partition key.)')] [string] $partitionKey ) process { return $([ServiceBusBrokeredMessageProperties]$PSBoundParameters) } } class ServiceBusAuthentication { [ArgumentCompletions('NotSpecified', 'SharedAccessKey')] [object] $type [string] $sasKey [string] $sasKeyName } function New-AzureNativeTypeSchedulerServiceBusAuthentication { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the authentication type.)')] $type, [parameter(mandatory=$False,HelpMessage='Gets or sets the SAS key.)')] [string] $sasKey, [parameter(mandatory=$False,HelpMessage='Gets or sets the SAS key name.)')] [string] $sasKeyName ) process { return $([ServiceBusAuthentication]$PSBoundParameters) } } class ServiceBusTopicMessage { [string] $topicPath [string] $message [ArgumentCompletions('NotSpecified', 'NetMessaging', 'AMQP')] [object] $transportType [ServiceBusBrokeredMessageProperties] $brokeredMessageProperties [ServiceBusAuthentication] $authentication [string] $namespace [object] $customMessageProperties } function New-AzureNativeTypeSchedulerServiceBusTopicMessage { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the topic path.)')] [string] $topicPath, [parameter(mandatory=$False,HelpMessage='Gets or sets the message.)')] [string] $message, [parameter(mandatory=$False,HelpMessage='Gets or sets the transport type.)')] $transportType, [parameter(mandatory=$False,HelpMessage='Gets or sets the brokered message properties.)')] [ServiceBusBrokeredMessageProperties] $brokeredMessageProperties, [parameter(mandatory=$False,HelpMessage='Gets or sets the Service Bus authentication.)')] [ServiceBusAuthentication] $authentication, [parameter(mandatory=$False,HelpMessage='Gets or sets the namespace.)')] [string] $namespace, [parameter(mandatory=$False,HelpMessage='Gets or sets the custom message properties.)')] [hashtable] $customMessageProperties ) process { return $([ServiceBusTopicMessage]$PSBoundParameters) } } class RetryPolicy { [int] $retryCount [ArgumentCompletions('None', 'Fixed')] [object] $retryType [string] $retryInterval } function New-AzureNativeTypeSchedulerRetryPolicy { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the number of times a retry should be attempted.)')] [int] $retryCount, [parameter(mandatory=$False,HelpMessage='Gets or sets the retry strategy to be used.)')] $retryType, [parameter(mandatory=$False,HelpMessage='Gets or sets the retry interval between retries, specify duration in ISO 8601 format.)')] [string] $retryInterval ) process { return $([RetryPolicy]$PSBoundParameters) } } class ServiceBusQueueMessage { [string] $message [ArgumentCompletions('NotSpecified', 'NetMessaging', 'AMQP')] [object] $transportType [ServiceBusBrokeredMessageProperties] $brokeredMessageProperties [string] $queueName [ServiceBusAuthentication] $authentication [string] $namespace [object] $customMessageProperties } function New-AzureNativeTypeSchedulerServiceBusQueueMessage { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the message.)')] [string] $message, [parameter(mandatory=$False,HelpMessage='Gets or sets the transport type.)')] $transportType, [parameter(mandatory=$False,HelpMessage='Gets or sets the brokered message properties.)')] [ServiceBusBrokeredMessageProperties] $brokeredMessageProperties, [parameter(mandatory=$False,HelpMessage='Gets or sets the queue name.)')] [string] $queueName, [parameter(mandatory=$False,HelpMessage='Gets or sets the Service Bus authentication.)')] [ServiceBusAuthentication] $authentication, [parameter(mandatory=$False,HelpMessage='Gets or sets the namespace.)')] [string] $namespace, [parameter(mandatory=$False,HelpMessage='Gets or sets the custom message properties.)')] [hashtable] $customMessageProperties ) process { return $([ServiceBusQueueMessage]$PSBoundParameters) } } class StorageQueueMessage { [string] $message [string] $queueName [string] $sasToken [string] $storageAccount } function New-AzureNativeTypeSchedulerStorageQueueMessage { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the message.)')] [string] $message, [parameter(mandatory=$False,HelpMessage='Gets or sets the queue name.)')] [string] $queueName, [parameter(mandatory=$False,HelpMessage='Gets or sets the SAS key.)')] [string] $sasToken, [parameter(mandatory=$False,HelpMessage='Gets or sets the storage account name.)')] [string] $storageAccount ) process { return $([StorageQueueMessage]$PSBoundParameters) } } class HttpRequest { [object] $authentication #todo add class here [object] $headers [string] $method [string] $body [string] $uri } class OAuthAuthentication { [string] $audience [string] $type [string] $clientId [string] $tenant [string] $secret } function New-AzureNativeTypeSchedulerOAuthAuthentication { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the audience.)')] [string] $audience, [parameter(mandatory=$False,HelpMessage='Gets or sets the HTTP authentication type. Expected value is ''ActiveDirectoryOAuth''.)')] [string] $type, [parameter(mandatory=$False,HelpMessage='Gets or sets the client identifier.)')] [string] $clientId, [parameter(mandatory=$False,HelpMessage='Gets or sets the tenant.)')] [string] $tenant, [parameter(mandatory=$False,HelpMessage='Gets or sets the secret, return value will always be empty.)')] [string] $secret ) process { return $([OAuthAuthentication]$PSBoundParameters) } } function New-AzureNativeTypeSchedulerHttpRequest { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the authentication method of the request.)')] [OAuthAuthentication] $authentication, [parameter(mandatory=$False,HelpMessage='Gets or sets the headers.)')] [hashtable] $headers, [parameter(mandatory=$False,HelpMessage='Gets or sets the method of the request.)')] [string] $method, [parameter(mandatory=$False,HelpMessage='Gets or sets the request body.)')] [string] $body, [parameter(mandatory=$False,HelpMessage='Gets or sets the URI of the request.)')] [string] $uri ) process { return $([HttpRequest]$PSBoundParameters) } } class JobErrorAction { [ServiceBusTopicMessage] $serviceBusTopicMessage [RetryPolicy] $retryPolicy [ServiceBusQueueMessage] $serviceBusQueueMessage [ArgumentCompletions('Http', 'Https', 'StorageQueue', 'ServiceBusQueue', 'ServiceBusTopic')] [object] $type [StorageQueueMessage] $queueMessage [HttpRequest] $request } function New-AzureNativeTypeSchedulerJobErrorAction { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the service bus topic message.)')] [ServiceBusTopicMessage] $serviceBusTopicMessage, [parameter(mandatory=$False,HelpMessage='Gets or sets the retry policy.)')] [RetryPolicy] $retryPolicy, [parameter(mandatory=$False,HelpMessage='Gets or sets the service bus queue message.)')] [ServiceBusQueueMessage] $serviceBusQueueMessage, [parameter(mandatory=$False,HelpMessage='Gets or sets the job error action type.)')] $type, [parameter(mandatory=$False,HelpMessage='Gets or sets the storage queue message.)')] [StorageQueueMessage] $queueMessage, [parameter(mandatory=$False,HelpMessage='Gets or sets the http requests.)')] [HttpRequest] $request ) process { return $([JobErrorAction]$PSBoundParameters) } } class JobAction { [ServiceBusTopicMessage] $serviceBusTopicMessage [RetryPolicy] $retryPolicy [ServiceBusQueueMessage] $serviceBusQueueMessage [ArgumentCompletions('Http', 'Https', 'StorageQueue', 'ServiceBusQueue', 'ServiceBusTopic')] [object] $type [StorageQueueMessage] $queueMessage [HttpRequest] $request [JobErrorAction] $errorAction } function New-AzureNativeTypeSchedulerJobAction { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the service bus topic message.)')] [ServiceBusTopicMessage] $serviceBusTopicMessage, [parameter(mandatory=$False,HelpMessage='Gets or sets the retry policy.)')] [RetryPolicy] $retryPolicy, [parameter(mandatory=$False,HelpMessage='Gets or sets the service bus queue message.)')] [ServiceBusQueueMessage] $serviceBusQueueMessage, [parameter(mandatory=$False,HelpMessage='Gets or sets the job action type.)')] $type, [parameter(mandatory=$False,HelpMessage='Gets or sets the storage queue message.)')] [StorageQueueMessage] $queueMessage, [parameter(mandatory=$False,HelpMessage='Gets or sets the http requests.)')] [HttpRequest] $request, [parameter(mandatory=$False,HelpMessage='Gets or sets the error action.)')] [JobErrorAction] $errorAction ) process { return $([JobAction]$PSBoundParameters) } } class JobProperties { [string] $startTime [JobRecurrence] $recurrence [ArgumentCompletions('Enabled', 'Disabled', 'Faulted', 'Completed')] [object] $state [JobAction] $action } function New-AzureNativeTypeSchedulerJobProperties { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the job start time.)')] [string] $startTime, [parameter(mandatory=$False,HelpMessage='Gets or sets the job recurrence.)')] [JobRecurrence] $recurrence, [parameter(mandatory=$False,HelpMessage='Gets or set the job state.)')] $state, [parameter(mandatory=$False,HelpMessage='Gets or sets the job action.)')] [JobAction] $action ) process { return $([JobProperties]$PSBoundParameters) } } function New-AzureNativeSchedulerJob { [Alias('azure_native_scheduler_job')] param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the job properties.)')] [JobProperties] $properties, [parameter(mandatory=$False,HelpMessage='The resource group name.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The job collection name.)')] [string] $jobCollectionName, [parameter(mandatory=$False,HelpMessage='The job name.)')] [string] $jobName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:scheduler:Job") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["jobCollectionName"] = $jobCollectionName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'jobName') { $resource.properties["jobName"] = $jobName } $global:pulumiresources += $resource return $resource } } class Sku { [ArgumentCompletions('Standard', 'Free', 'P10Premium', 'P20Premium')] [object] $name } function New-AzureNativeTypeSchedulerSku { param ( [parameter(mandatory=$False,HelpMessage='Gets or set the SKU.)')] $name ) process { return $([Sku]$PSBoundParameters) } } class JobMaxRecurrence { [ArgumentCompletions('Minute', 'Hour', 'Day', 'Week', 'Month')] [object] $frequency [int] $interval } function New-AzureNativeTypeSchedulerJobMaxRecurrence { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the frequency of recurrence (second, minute, hour, day, week, month).)')] $frequency, [parameter(mandatory=$False,HelpMessage='Gets or sets the interval between retries.)')] [int] $interval ) process { return $([JobMaxRecurrence]$PSBoundParameters) } } class JobCollectionQuota { [JobMaxRecurrence] $maxRecurrence [int] $maxJobOccurrence [int] $maxJobCount } function New-AzureNativeTypeSchedulerJobCollectionQuota { param ( [parameter(mandatory=$False,HelpMessage='Gets or set the maximum recurrence.)')] [JobMaxRecurrence] $maxRecurrence, [parameter(mandatory=$False,HelpMessage='Gets or sets the maximum job occurrence.)')] [int] $maxJobOccurrence, [parameter(mandatory=$False,HelpMessage='Gets or set the maximum job count.)')] [int] $maxJobCount ) process { return $([JobCollectionQuota]$PSBoundParameters) } } class JobCollectionProperties { [Sku] $sku [ArgumentCompletions('Enabled', 'Disabled', 'Suspended', 'Deleted')] [object] $state [JobCollectionQuota] $quota } function New-AzureNativeTypeSchedulerJobCollectionProperties { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the SKU.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='Gets or sets the state.)')] $state, [parameter(mandatory=$False,HelpMessage='Gets or sets the job collection quota.)')] [JobCollectionQuota] $quota ) process { return $([JobCollectionProperties]$PSBoundParameters) } } function New-AzureNativeSchedulerJobCollection { [Alias('azure_native_scheduler_jobcollection')] param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the job collection properties.)')] [JobCollectionProperties] $properties, [parameter(mandatory=$False,HelpMessage='The job collection name.)')] [string] $jobCollectionName, [parameter(mandatory=$False,HelpMessage='Gets or sets the storage account location.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Gets or sets the job collection resource name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Gets or sets the tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The resource group name.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:scheduler:JobCollection") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'jobCollectionName') { $resource.properties["jobCollectionName"] = $jobCollectionName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } |