pspulumiyaml.azurenative.containerregistry.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionContainerregistryGetToken { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the token.)')] [string] $tokenName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["tokenName"] = $tokenName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getToken -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetTask { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the container registry task.)')] [string] $taskName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["taskName"] = $taskName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getTask -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryListBuildStepBuildArguments { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry build task.)')] [string] $buildTaskName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of a build step for a container registry build task.)')] [string] $stepName ) process { $arguments = @{} $arguments["buildTaskName"] = $buildTaskName $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["stepName"] = $stepName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:listBuildStepBuildArguments -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryListRegistryCredentials { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:listRegistryCredentials -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetRegistry { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getRegistry -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryListBuildTaskSourceRepositoryProperties { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry build task.)')] [string] $buildTaskName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["buildTaskName"] = $buildTaskName $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:listBuildTaskSourceRepositoryProperties -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryListRunLogSasUrl { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The run ID.)')] [string] $runId ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["runId"] = $runId $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:listRunLogSasUrl -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetAgentPool { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the agent pool.)')] [string] $agentPoolName ) process { $arguments = @{} $arguments["agentPoolName"] = $agentPoolName $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getAgentPool -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryListTaskDetails { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the container registry task.)')] [string] $taskName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["taskName"] = $taskName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:listTaskDetails -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetWebhookCallbackConfig { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the webhook.)')] [string] $webhookName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["webhookName"] = $webhookName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getWebhookCallbackConfig -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetWebhook { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the webhook.)')] [string] $webhookName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["webhookName"] = $webhookName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getWebhook -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryListRegistryBuildSourceUploadUrl { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:listRegistryBuildSourceUploadUrl -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetPipelineRun { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the pipeline run.)')] [string] $pipelineRunName ) process { $arguments = @{} $arguments["pipelineRunName"] = $pipelineRunName $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getPipelineRun -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryListTaskRunDetails { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the task run.)')] [string] $taskRunName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["taskRunName"] = $taskRunName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:listTaskRunDetails -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetImportPipeline { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the import pipeline.)')] [string] $importPipelineName ) process { $arguments = @{} $arguments["importPipelineName"] = $importPipelineName $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getImportPipeline -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetRegistryBuildSourceUploadUrl { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getRegistryBuildSourceUploadUrl -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName ) process { $arguments = @{} $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getPrivateEndpointConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetReplication { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the replication.)')] [string] $replicationName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["replicationName"] = $replicationName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getReplication -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetTaskRun { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the task run.)')] [string] $taskRunName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["taskRunName"] = $taskRunName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getTaskRun -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetBuildLogLink { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The build ID.)')] [string] $buildId ) process { $arguments = @{} $arguments["buildId"] = $buildId $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getBuildLogLink -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryListWebhookEvents { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the webhook.)')] [string] $webhookName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["webhookName"] = $webhookName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:listWebhookEvents -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryListAgentPoolQueueStatus { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the agent pool.)')] [string] $agentPoolName ) process { $arguments = @{} $arguments["agentPoolName"] = $agentPoolName $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:listAgentPoolQueueStatus -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetConnectedRegistry { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the connected registry.)')] [string] $connectedRegistryName ) process { $arguments = @{} $arguments["connectedRegistryName"] = $connectedRegistryName $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getConnectedRegistry -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetRegistryCredentials { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getRegistryCredentials -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetExportPipeline { param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the export pipeline.)')] [string] $exportPipelineName ) process { $arguments = @{} $arguments["exportPipelineName"] = $exportPipelineName $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getExportPipeline -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionContainerregistryGetScopeMap { param ( [parameter(mandatory=$False,HelpMessage='The name of the scope map.)')] [string] $scopeMapName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["registryName"] = $registryName $arguments["resourceGroupName"] = $resourceGroupName $arguments["scopeMapName"] = $scopeMapName $functionObject = Invoke-PulumiFunction -Name azure-native:containerregistry:getScopeMap -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class PipelineRunSourceProperties { [string] $name [ValidateSet('AzureStorageBlob')] [string] $type } function New-AzureNativeTypeContainerregistryPipelineRunSourceProperties { param ( [parameter(mandatory=$False,HelpMessage='The name of the source.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The type of the source.)')] [string] [ValidateSet('AzureStorageBlob')] $type ) process { return $([PipelineRunSourceProperties]$PSBoundParameters) } } class PipelineRunTargetProperties { [string] $name [ValidateSet('AzureStorageBlob')] [string] $type } function New-AzureNativeTypeContainerregistryPipelineRunTargetProperties { param ( [parameter(mandatory=$False,HelpMessage='The name of the target.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The type of the target.)')] [string] [ValidateSet('AzureStorageBlob')] $type ) process { return $([PipelineRunTargetProperties]$PSBoundParameters) } } class PipelineRunRequest { [string] $catalogDigest [string[]] $artifacts [PipelineRunSourceProperties] $source [PipelineRunTargetProperties] $target [string] $pipelineResourceId } function New-AzureNativeTypeContainerregistryPipelineRunRequest { param ( [parameter(mandatory=$False,HelpMessage='The digest of the tar used to transfer the artifacts.)')] [string] $catalogDigest, [parameter(mandatory=$False,HelpMessage='List of source artifacts to be transferred by the pipeline. Specify an image by repository (''hello-world''). This will use the ''latest'' tag. Specify an image by tag (''hello-world:latest''). Specify an image by sha256-based manifest digest (''hello-world@sha256:abc123'').)')] [string[]] $artifacts, [parameter(mandatory=$False,HelpMessage='The source properties of the pipeline run.)')] [PipelineRunSourceProperties] $source, [parameter(mandatory=$False,HelpMessage='The target properties of the pipeline run.)')] [PipelineRunTargetProperties] $target, [parameter(mandatory=$False,HelpMessage='The resource ID of the pipeline to run.)')] [string] $pipelineResourceId ) process { return $([PipelineRunRequest]$PSBoundParameters) } } function New-AzureNativeContainerregistryPipelineRun { [Alias('azure_native_containerregistry_pipelinerun')] param ( [parameter(mandatory=$False,HelpMessage='The name of the pipeline run.)')] [string] $pipelineRunName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The request parameters for a pipeline run.)')] [PipelineRunRequest] $request, [parameter(mandatory=$False,HelpMessage='How the pipeline run should be forced to recreate even if the pipeline run configuration has not changed.)')] [string] $forceUpdateTag, [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:containerregistry:PipelineRun") $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'pipelineRunName') { $resource.properties["pipelineRunName"] = $pipelineRunName } if($PSBoundParameters.Keys -icontains 'request') { $resource.properties["request"] = $request } if($PSBoundParameters.Keys -icontains 'forceUpdateTag') { $resource.properties["forceUpdateTag"] = $forceUpdateTag } $global:pulumiresources += $resource return $resource } } class PlatformProperties { [ValidateSet('amd64', 'x86', '386', 'arm', 'arm64')] [string] $architecture [ValidateSet('v6', 'v7', 'v8')] [string] $variant [ValidateSet('Windows', 'Linux')] [string] $os } function New-AzureNativeTypeContainerregistryPlatformProperties { param ( [parameter(mandatory=$False,HelpMessage='The OS architecture.)')] [string] [ValidateSet('amd64', 'x86', '386', 'arm', 'arm64')] $architecture, [parameter(mandatory=$False,HelpMessage='Variant of the CPU.)')] [string] [ValidateSet('v6', 'v7', 'v8')] $variant, [parameter(mandatory=$False,HelpMessage='The operating system type required for the run.)')] [string] [ValidateSet('Windows', 'Linux')] $os ) process { return $([PlatformProperties]$PSBoundParameters) } } class SourceRegistryCredentials { [ValidateSet('None', 'Default')] [string] $loginMode } function New-AzureNativeTypeContainerregistrySourceRegistryCredentials { param ( [parameter(mandatory=$False,HelpMessage='The authentication mode which determines the source registry login scope. The credentials for the source registry will be generated using the given scope. These credentials will be used to login to the source registry during the run.)')] [string] [ValidateSet('None', 'Default')] $loginMode ) process { return $([SourceRegistryCredentials]$PSBoundParameters) } } class Credentials { [SourceRegistryCredentials] $sourceRegistry [object] $customRegistries } class SecretObject { [string] $value [ValidateSet('Opaque', 'Vaultsecret')] [string] $type } function New-AzureNativeTypeContainerregistrySecretObject { param ( [parameter(mandatory=$False,HelpMessage='The value of the secret. The format of this value will be determined based on the type of the secret object. If the type is Opaque, the value will be used as is without any modification.)')] [string] $value, [parameter(mandatory=$False,HelpMessage='The type of the secret object which determines how the value of the secret object has to be interpreted.)')] [string] [ValidateSet('Opaque', 'Vaultsecret')] $type ) process { return $([SecretObject]$PSBoundParameters) } } class CustomRegistryCredentials { [SecretObject] $userName [SecretObject] $password [string] $identity } function New-AzureNativeTypeContainerregistryCustomRegistryCredentials { param ( [parameter(mandatory=$False,HelpMessage='The username for logging into the custom registry.)')] [SecretObject] $userName, [parameter(mandatory=$False,HelpMessage='The password for logging into the custom registry. The password is a secret object that allows multiple ways of providing the value for it.)')] [SecretObject] $password, [parameter(mandatory=$False,HelpMessage='Indicates the managed identity assigned to the custom credential. If a user-assigned identity this value is the Client ID. If a system-assigned identity, the value will be `system`. In the case of a system-assigned identity, the Client ID will be determined by the runner. This identity may be used to authenticate to key vault to retrieve credentials or it may be the only source of authentication used for accessing the registry.)')] [string] $identity ) process { return $([CustomRegistryCredentials]$PSBoundParameters) } } function New-AzureNativeTypeContainerregistryCredentials { param ( [parameter(mandatory=$False,HelpMessage='Describes the credential parameters for accessing the source registry.)')] [SourceRegistryCredentials] $sourceRegistry, [parameter(mandatory=$False,HelpMessage='Describes the credential parameters for accessing other custom registries. The key for the dictionary item will be the registry login server (myregistry.azurecr.io) and the value of the item will be the registry credentials for accessing the registry.)')] [CustomRegistryCredentials] $customRegistries ) process { return $([Credentials]$PSBoundParameters) } } class IdentityProperties { [object] $userAssignedIdentities [string] $tenantId [ValidateSet('SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None')] [object] $type [ValidateSet('SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None')] [string] $principalId } class UserIdentityProperties { [string] $principalId [string] $clientId } function New-AzureNativeTypeContainerregistryUserIdentityProperties { param ( [parameter(mandatory=$False,HelpMessage='The principal id of user assigned identity.)')] [string] $principalId, [parameter(mandatory=$False,HelpMessage='The client id of user assigned identity.)')] [string] $clientId ) process { return $([UserIdentityProperties]$PSBoundParameters) } } function New-AzureNativeTypeContainerregistryIdentityProperties { param ( [parameter(mandatory=$False,HelpMessage='The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}''.)')] [UserIdentityProperties] $userAssignedIdentities, [parameter(mandatory=$False,HelpMessage='The tenant ID of resource.)')] [string] $tenantId, [parameter(mandatory=$False,HelpMessage='The identity type.)')] $type, [parameter(mandatory=$False,HelpMessage='The principal ID of resource identity.)')] [string] $principalId ) process { return $([IdentityProperties]$PSBoundParameters) } } class BaseImageTrigger { [ValidateSet('Disabled', 'Enabled')] [string] $status [ValidateSet('Disabled', 'Enabled')] [string] $name [ValidateSet('Default', 'Token')] [string] $updateTriggerPayloadType [ValidateSet('Default', 'Token')] [string] $updateTriggerEndpoint [ValidateSet('All', 'Runtime')] [string] $baseImageTriggerType } function New-AzureNativeTypeContainerregistryBaseImageTrigger { param ( [parameter(mandatory=$False,HelpMessage='The current status of trigger.)')] [string] [ValidateSet('Disabled', 'Enabled')] $status, [parameter(mandatory=$False,HelpMessage='The name of the trigger.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Type of Payload body for Base image update triggers.)')] [string] [ValidateSet('Default', 'Token')] $updateTriggerPayloadType, [parameter(mandatory=$False,HelpMessage='The endpoint URL for receiving update triggers.)')] [string] $updateTriggerEndpoint, [parameter(mandatory=$False,HelpMessage='The type of the auto trigger for base image dependency updates.)')] [string] [ValidateSet('All', 'Runtime')] $baseImageTriggerType ) process { return $([BaseImageTrigger]$PSBoundParameters) } } class AuthInfo { [ValidateSet('Github', 'VisualStudioTeamService')] [int] $expiresIn [ValidateSet('PAT', 'OAuth')] [string] $tokenType [ValidateSet('PAT', 'OAuth')] [string] $refreshToken [ValidateSet('PAT', 'OAuth')] [string] $scope [ValidateSet('PAT', 'OAuth')] [string] $token } function New-AzureNativeTypeContainerregistryAuthInfo { param ( [parameter(mandatory=$False,HelpMessage='Time in seconds that the token remains valid)')] [int] $expiresIn, [parameter(mandatory=$False,HelpMessage='The type of Auth token.)')] [string] [ValidateSet('PAT', 'OAuth')] $tokenType, [parameter(mandatory=$False,HelpMessage='The refresh token used to refresh the access token.)')] [string] $refreshToken, [parameter(mandatory=$False,HelpMessage='The scope of the access token.)')] [string] $scope, [parameter(mandatory=$False,HelpMessage='The access token used to access the source control provider.)')] [string] $token ) process { return $([AuthInfo]$PSBoundParameters) } } class SourceProperties { [ValidateSet('Github', 'VisualStudioTeamService')] [string] $sourceControlType [ValidateSet('Github', 'VisualStudioTeamService')] [AuthInfo] $sourceControlAuthProperties [ValidateSet('Github', 'VisualStudioTeamService')] [string] $repositoryUrl [ValidateSet('Github', 'VisualStudioTeamService')] [string] $branch } function New-AzureNativeTypeContainerregistrySourceProperties { param ( [parameter(mandatory=$False,HelpMessage='The type of source control service.)')] [string] [ValidateSet('Github', 'VisualStudioTeamService')] $sourceControlType, [parameter(mandatory=$False,HelpMessage='The authorization properties for accessing the source code repository and to set up webhooks for notifications.)')] [AuthInfo] $sourceControlAuthProperties, [parameter(mandatory=$False,HelpMessage='The full URL to the source code repository)')] [string] $repositoryUrl, [parameter(mandatory=$False,HelpMessage='The branch name of the source code.)')] [string] $branch ) process { return $([SourceProperties]$PSBoundParameters) } } class SourceTrigger { [string[]] $sourceTriggerEvents [string] $name [SourceProperties] $sourceRepository [ValidateSet('Disabled', 'Enabled')] [string] $status } function New-AzureNativeTypeContainerregistrySourceTrigger { param ( [parameter(mandatory=$False,HelpMessage='The source event corresponding to the trigger.)')] $sourceTriggerEvents, [parameter(mandatory=$False,HelpMessage='The name of the trigger.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The properties that describes the source(code) for the task.)')] [SourceProperties] $sourceRepository, [parameter(mandatory=$False,HelpMessage='The current status of trigger.)')] [string] [ValidateSet('Disabled', 'Enabled')] $status ) process { return $([SourceTrigger]$PSBoundParameters) } } class TimerTrigger { [ValidateSet('Disabled', 'Enabled')] [string] $status [ValidateSet('Disabled', 'Enabled')] [string] $name [ValidateSet('Disabled', 'Enabled')] [string] $schedule } function New-AzureNativeTypeContainerregistryTimerTrigger { param ( [parameter(mandatory=$False,HelpMessage='The current status of trigger.)')] [string] [ValidateSet('Disabled', 'Enabled')] $status, [parameter(mandatory=$False,HelpMessage='The name of the trigger.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The CRON expression for the task schedule)')] [string] $schedule ) process { return $([TimerTrigger]$PSBoundParameters) } } class TriggerProperties { [BaseImageTrigger] $baseImageTrigger [SourceTrigger[]] $sourceTriggers [TimerTrigger[]] $timerTriggers } function New-AzureNativeTypeContainerregistryTriggerProperties { param ( [parameter(mandatory=$False,HelpMessage='The trigger based on base image dependencies.)')] [BaseImageTrigger] $baseImageTrigger, [parameter(mandatory=$False,HelpMessage='The collection of triggers based on source code repository.)')] $sourceTriggers, [parameter(mandatory=$False,HelpMessage='The collection of timer triggers.)')] $timerTriggers ) process { return $([TriggerProperties]$PSBoundParameters) } } class AgentProperties { [int] $cpu } function New-AzureNativeTypeContainerregistryAgentProperties { param ( [parameter(mandatory=$False,HelpMessage='The CPU configuration in terms of number of cores required for the run.)')] [int] $cpu ) process { return $([AgentProperties]$PSBoundParameters) } } class SetValue { [string] $name [bool] $isSecret [string] $value } function New-AzureNativeTypeContainerregistrySetValue { param ( [parameter(mandatory=$False,HelpMessage='The name of the overridable value.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Flag to indicate whether the value represents a secret or not.)')] [bool] $isSecret, [parameter(mandatory=$False,HelpMessage='The overridable value.)')] [string] $value ) process { return $([SetValue]$PSBoundParameters) } } class FileTaskStep { [string] $type [string] $taskFilePath [string] $contextAccessToken [string] $contextPath [string] $valuesFilePath [SetValue[]] $values } function New-AzureNativeTypeContainerregistryFileTaskStep { param ( [parameter(mandatory=$False,HelpMessage='The type of the step. Expected value is ''FileTask''.)')] [string] $type, [parameter(mandatory=$False,HelpMessage='The task template/definition file path relative to the source context.)')] [string] $taskFilePath, [parameter(mandatory=$False,HelpMessage='The token (git PAT or SAS token of storage account blob) associated with the context for a step.)')] [string] $contextAccessToken, [parameter(mandatory=$False,HelpMessage='The URL(absolute or relative) of the source context for the task step.)')] [string] $contextPath, [parameter(mandatory=$False,HelpMessage='The task values/parameters file path relative to the source context.)')] [string] $valuesFilePath, [parameter(mandatory=$False,HelpMessage='The collection of overridable values that can be passed when running a task.)')] $values ) process { return $([FileTaskStep]$PSBoundParameters) } } function New-AzureNativeContainerregistryTask { [Alias('azure_native_containerregistry_task')] param ( [parameter(mandatory=$False,HelpMessage='The platform properties against which the run has to happen.)')] [PlatformProperties] $platform, [parameter(mandatory=$False,HelpMessage='The tags of the resource.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The properties that describes a set of credentials that will be used when this run is invoked.)')] [Credentials] $credentials, [parameter(mandatory=$False,HelpMessage='The location of the resource. This cannot be changed after the resource is created.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the container registry task.)')] [string] $taskName, [parameter(mandatory=$False,HelpMessage='Identity for the resource.)')] [IdentityProperties] $identity, [parameter(mandatory=$False,HelpMessage='The properties that describe all triggers for the task.)')] [TriggerProperties] $trigger, [parameter(mandatory=$False,HelpMessage='Run timeout in seconds.)')] [int] $timeout, [parameter(mandatory=$False,HelpMessage='The value of this property indicates whether the task resource is system task or not.)')] [bool] $isSystemTask, [parameter(mandatory=$False,HelpMessage='The dedicated agent pool for the task.)')] [string] $agentPoolName, [parameter(mandatory=$False,HelpMessage='The template that describes the repository and tag information for run log artifact.)')] [string] $logTemplate, [parameter(mandatory=$False,HelpMessage='The current status of task.)')] [string] [ValidateSet('Disabled', 'Enabled')] $status, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The machine configuration of the run agent.)')] [AgentProperties] $agentConfiguration, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The properties of a task step.)')] [FileTaskStep] $step, [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:containerregistry:Task") $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'platform') { $resource.properties["platform"] = $platform } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'credentials') { $resource.properties["credentials"] = $credentials } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'taskName') { $resource.properties["taskName"] = $taskName } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'trigger') { $resource.properties["trigger"] = $trigger } if($PSBoundParameters.Keys -icontains 'timeout') { $resource.properties["timeout"] = $timeout } if($PSBoundParameters.Keys -icontains 'isSystemTask') { $resource.properties["isSystemTask"] = $isSystemTask } if($PSBoundParameters.Keys -icontains 'agentPoolName') { $resource.properties["agentPoolName"] = $agentPoolName } if($PSBoundParameters.Keys -icontains 'logTemplate') { $resource.properties["logTemplate"] = $logTemplate } if($PSBoundParameters.Keys -icontains 'status') { $resource.properties["status"] = $status } if($PSBoundParameters.Keys -icontains 'agentConfiguration') { $resource.properties["agentConfiguration"] = $agentConfiguration } if($PSBoundParameters.Keys -icontains 'step') { $resource.properties["step"] = $step } $global:pulumiresources += $resource return $resource } } class ExportPipelineTargetProperties { [string] $type [string] $keyVaultUri [string] $uri } function New-AzureNativeTypeContainerregistryExportPipelineTargetProperties { param ( [parameter(mandatory=$False,HelpMessage='The type of target for the export pipeline.)')] [string] $type, [parameter(mandatory=$False,HelpMessage='They key vault secret uri to obtain the target storage SAS token.)')] [string] $keyVaultUri, [parameter(mandatory=$False,HelpMessage='The target uri of the export pipeline. When ''AzureStorageBlob'': "https://accountName.blob.core.windows.net/containerName/blobName" When ''AzureStorageBlobContainer'': "https://accountName.blob.core.windows.net/containerName")')] [string] $uri ) process { return $([ExportPipelineTargetProperties]$PSBoundParameters) } } function New-AzureNativeContainerregistryExportPipeline { [Alias('azure_native_containerregistry_exportpipeline')] param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The list of all options configured for the pipeline.)')] $options, [parameter(mandatory=$False,HelpMessage='The name of the export pipeline.)')] [string] $exportPipelineName, [parameter(mandatory=$False,HelpMessage='The identity of the export pipeline.)')] [IdentityProperties] $identity, [parameter(mandatory=$False,HelpMessage='The target properties of the export pipeline.)')] [ExportPipelineTargetProperties] $target, [parameter(mandatory=$False,HelpMessage='The location of the export pipeline.)')] [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:containerregistry:ExportPipeline") $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["target"] = $target if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'exportPipelineName') { $resource.properties["exportPipelineName"] = $exportPipelineName } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class TokenPassword { [string] $creationTime [string] $expiry [ValidateSet('password1', 'password2')] [string] $name } function New-AzureNativeTypeContainerregistryTokenPassword { param ( [parameter(mandatory=$False,HelpMessage='The creation datetime of the password.)')] [string] $creationTime, [parameter(mandatory=$False,HelpMessage='The expiry datetime of the password.)')] [string] $expiry, [parameter(mandatory=$False,HelpMessage='The password name "password1" or "password2")')] [string] [ValidateSet('password1', 'password2')] $name ) process { return $([TokenPassword]$PSBoundParameters) } } class TokenCertificate { [ValidateSet('certificate1', 'certificate2')] [string] $name [ValidateSet('certificate1', 'certificate2')] [string] $thumbprint [ValidateSet('certificate1', 'certificate2')] [string] $expiry [ValidateSet('certificate1', 'certificate2')] [string] $encodedPemCertificate } function New-AzureNativeTypeContainerregistryTokenCertificate { param ( [parameter(mandatory=$False,HelpMessage=')')] [string] [ValidateSet('certificate1', 'certificate2')] $name, [parameter(mandatory=$False,HelpMessage='The thumbprint of the certificate.)')] [string] $thumbprint, [parameter(mandatory=$False,HelpMessage='The expiry datetime of the certificate.)')] [string] $expiry, [parameter(mandatory=$False,HelpMessage='Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.)')] [string] $encodedPemCertificate ) process { return $([TokenCertificate]$PSBoundParameters) } } class TokenCredentialsProperties { [TokenPassword[]] $passwords [TokenCertificate[]] $certificates } function New-AzureNativeTypeContainerregistryTokenCredentialsProperties { param ( [parameter(mandatory=$False,HelpMessage=')')] $passwords, [parameter(mandatory=$False,HelpMessage=')')] $certificates ) process { return $([TokenCredentialsProperties]$PSBoundParameters) } } function New-AzureNativeContainerregistryToken { [Alias('azure_native_containerregistry_token')] param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the token.)')] [string] $tokenName, [parameter(mandatory=$False,HelpMessage='The status of the token example enabled or disabled.)')] [string] [ValidateSet('enabled', 'disabled')] $status, [parameter(mandatory=$False,HelpMessage='The resource ID of the scope map to which the token will be associated with.)')] [string] $scopeMapId, [parameter(mandatory=$False,HelpMessage='The credentials that can be used for authenticating the token.)')] [TokenCredentialsProperties] $credentials, [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:containerregistry:Token") $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tokenName') { $resource.properties["tokenName"] = $tokenName } if($PSBoundParameters.Keys -icontains 'status') { $resource.properties["status"] = $status } if($PSBoundParameters.Keys -icontains 'scopeMapId') { $resource.properties["scopeMapId"] = $scopeMapId } if($PSBoundParameters.Keys -icontains 'credentials') { $resource.properties["credentials"] = $credentials } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerregistryWebhook { [Alias('azure_native_containerregistry_webhook')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The status of the webhook at the time the operation was called.)')] [string] [ValidateSet('enabled', 'disabled')] $status, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='Custom headers that will be added to the webhook notifications.)')] [hashtable] $customHeaders, [parameter(mandatory=$False,HelpMessage='The service URI for the webhook to post notifications.)')] [string] $serviceUri, [parameter(mandatory=$False,HelpMessage='The name of the webhook.)')] [string] $webhookName, [parameter(mandatory=$False,HelpMessage='The scope of repositories where the event can be triggered. For example, ''foo:*'' means events for all tags under repository ''foo''. ''foo:bar'' means events for ''foo:bar'' only. ''foo'' is equivalent to ''foo:latest''. Empty means all events.)')] [string] $scope, [parameter(mandatory=$False,HelpMessage='The tags for the webhook.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The list of actions that trigger the webhook to post notifications.)')] $actions, [parameter(mandatory=$False,HelpMessage='The location of the webhook. This cannot be changed after the resource is created.)')] [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:containerregistry:Webhook") $resource.properties["actions"] = $actions $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["serviceUri"] = $serviceUri if($PSBoundParameters.Keys -icontains 'status') { $resource.properties["status"] = $status } if($PSBoundParameters.Keys -icontains 'customHeaders') { $resource.properties["customHeaders"] = $customHeaders } if($PSBoundParameters.Keys -icontains 'webhookName') { $resource.properties["webhookName"] = $webhookName } if($PSBoundParameters.Keys -icontains 'scope') { $resource.properties["scope"] = $scope } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class PipelineSourceTriggerProperties { [ValidateSet('Disabled', 'Enabled')] [string] $status } function New-AzureNativeTypeContainerregistryPipelineSourceTriggerProperties { param ( [parameter(mandatory=$False,HelpMessage='The current status of the source trigger.)')] [string] [ValidateSet('Disabled', 'Enabled')] $status ) process { return $([PipelineSourceTriggerProperties]$PSBoundParameters) } } class PipelineTriggerProperties { [PipelineSourceTriggerProperties] $sourceTrigger } function New-AzureNativeTypeContainerregistryPipelineTriggerProperties { param ( [parameter(mandatory=$False,HelpMessage='The source trigger properties of the pipeline.)')] [PipelineSourceTriggerProperties] $sourceTrigger ) process { return $([PipelineTriggerProperties]$PSBoundParameters) } } class ImportPipelineSourceProperties { [ValidateSet('AzureStorageBlobContainer')] [string] $type [ValidateSet('AzureStorageBlobContainer')] [string] $keyVaultUri [ValidateSet('AzureStorageBlobContainer')] [string] $uri } function New-AzureNativeTypeContainerregistryImportPipelineSourceProperties { param ( [parameter(mandatory=$False,HelpMessage='The type of source for the import pipeline.)')] [string] [ValidateSet('AzureStorageBlobContainer')] $type, [parameter(mandatory=$False,HelpMessage='They key vault secret uri to obtain the source storage SAS token.)')] [string] $keyVaultUri, [parameter(mandatory=$False,HelpMessage='The source uri of the import pipeline. When ''AzureStorageBlob'': "https://accountName.blob.core.windows.net/containerName/blobName" When ''AzureStorageBlobContainer'': "https://accountName.blob.core.windows.net/containerName")')] [string] $uri ) process { return $([ImportPipelineSourceProperties]$PSBoundParameters) } } function New-AzureNativeContainerregistryImportPipeline { [Alias('azure_native_containerregistry_importpipeline')] param ( [parameter(mandatory=$False,HelpMessage='The name of the import pipeline.)')] [string] $importPipelineName, [parameter(mandatory=$False,HelpMessage='The list of all options configured for the pipeline.)')] $options, [parameter(mandatory=$False,HelpMessage='The identity of the import pipeline.)')] [IdentityProperties] $identity, [parameter(mandatory=$False,HelpMessage='The properties that describe the trigger of the import pipeline.)')] [PipelineTriggerProperties] $trigger, [parameter(mandatory=$False,HelpMessage='The location of the import pipeline.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The source properties of the import pipeline.)')] [ImportPipelineSourceProperties] $source, [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:containerregistry:ImportPipeline") $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["source"] = $source if($PSBoundParameters.Keys -icontains 'importPipelineName') { $resource.properties["importPipelineName"] = $importPipelineName } if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'trigger') { $resource.properties["trigger"] = $trigger } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerregistryReplication { [Alias('azure_native_containerregistry_replication')] param ( [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The tags of the resource.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The location of the resource. This cannot be changed after the resource is created.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the replication.)')] [string] $replicationName, [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:containerregistry:Replication") $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'replicationName') { $resource.properties["replicationName"] = $replicationName } $global:pulumiresources += $resource return $resource } } class LoggingProperties { [ValidateSet('Debug', 'Information', 'Warning', 'Error', 'None')] [string] $logLevel [ValidateSet('Enabled', 'Disabled')] [string] $auditLogStatus } function New-AzureNativeTypeContainerregistryLoggingProperties { param ( [parameter(mandatory=$False,HelpMessage='The verbosity of logs persisted on the connected registry.)')] [string] [ValidateSet('Debug', 'Information', 'Warning', 'Error', 'None')] $logLevel, [parameter(mandatory=$False,HelpMessage='Indicates whether audit logs are enabled on the connected registry.)')] [string] [ValidateSet('Enabled', 'Disabled')] $auditLogStatus ) process { return $([LoggingProperties]$PSBoundParameters) } } class SyncProperties { [string] $tokenId [string] $messageTtl [string] $syncWindow [string] $schedule } function New-AzureNativeTypeContainerregistrySyncProperties { param ( [parameter(mandatory=$False,HelpMessage='The resource ID of the ACR token used to authenticate the connected registry to its parent during sync.)')] [string] $tokenId, [parameter(mandatory=$False,HelpMessage='The period of time for which a message is available to sync before it is expired. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601.)')] [string] $messageTtl, [parameter(mandatory=$False,HelpMessage='The time window during which sync is enabled for each schedule occurrence. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601.)')] [string] $syncWindow, [parameter(mandatory=$False,HelpMessage='The cron expression indicating the schedule that the connected registry will sync with its parent.)')] [string] $schedule ) process { return $([SyncProperties]$PSBoundParameters) } } class ParentProperties { [string] $id [SyncProperties] $syncProperties } function New-AzureNativeTypeContainerregistryParentProperties { param ( [parameter(mandatory=$False,HelpMessage='The resource ID of the parent to which the connected registry will be associated.)')] [string] $id, [parameter(mandatory=$False,HelpMessage='The sync properties of the connected registry with its parent.)')] [SyncProperties] $syncProperties ) process { return $([ParentProperties]$PSBoundParameters) } } function New-AzureNativeContainerregistryConnectedRegistry { [Alias('azure_native_containerregistry_connectedregistry')] param ( [parameter(mandatory=$False,HelpMessage='The mode of the connected registry resource that indicates the permissions of the registry.)')] [string] [ValidateSet('Registry', 'Mirror')] $mode, [parameter(mandatory=$False,HelpMessage='The logging properties of the connected registry.)')] [LoggingProperties] $logging, [parameter(mandatory=$False,HelpMessage='The list of the ACR token resource IDs used to authenticate clients to the connected registry.)')] [string[]] $clientTokenIds, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The parent of the connected registry.)')] [ParentProperties] $parent, [parameter(mandatory=$False,HelpMessage='The name of the connected registry.)')] [string] $connectedRegistryName, [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:containerregistry:ConnectedRegistry") $resource.properties["mode"] = $mode $resource.properties["parent"] = $parent $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'logging') { $resource.properties["logging"] = $logging } if($PSBoundParameters.Keys -icontains 'clientTokenIds') { $resource.properties["clientTokenIds"] = $clientTokenIds } if($PSBoundParameters.Keys -icontains 'connectedRegistryName') { $resource.properties["connectedRegistryName"] = $connectedRegistryName } $global:pulumiresources += $resource return $resource } } class PrivateEndpoint { [string] $id } function New-AzureNativeTypeContainerregistryPrivateEndpoint { param ( [parameter(mandatory=$False,HelpMessage='This is private endpoint resource created with Microsoft.Network resource provider.)')] [string] $id ) process { return $([PrivateEndpoint]$PSBoundParameters) } } class PrivateLinkServiceConnectionState { [string] $description [ValidateSet('None', 'Recreate')] [string] $actionsRequired [ValidateSet('Approved', 'Pending', 'Rejected', 'Disconnected')] [string] $status } function New-AzureNativeTypeContainerregistryPrivateLinkServiceConnectionState { param ( [parameter(mandatory=$False,HelpMessage='The description for connection status. For example if connection is rejected it can indicate reason for rejection.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='A message indicating if changes on the service provider require any updates on the consumer.)')] [string] [ValidateSet('None', 'Recreate')] $actionsRequired, [parameter(mandatory=$False,HelpMessage='The private link service connection status.)')] [string] [ValidateSet('Approved', 'Pending', 'Rejected', 'Disconnected')] $status ) process { return $([PrivateLinkServiceConnectionState]$PSBoundParameters) } } function New-AzureNativeContainerregistryPrivateEndpointConnection { [Alias('azure_native_containerregistry_privateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='The resource of private endpoint.)')] [PrivateEndpoint] $privateEndpoint, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='A collection of information about the state of the connection between service consumer and provider.)')] [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [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:containerregistry:PrivateEndpointConnection") $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'privateEndpoint') { $resource.properties["privateEndpoint"] = $privateEndpoint } if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } if($PSBoundParameters.Keys -icontains 'privateLinkServiceConnectionState') { $resource.properties["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerregistryScopeMap { [Alias('azure_native_containerregistry_scopemap')] param ( [parameter(mandatory=$False,HelpMessage='The list of scoped permissions for registry artifacts. E.g. repositories/repository-name/content/read, repositories/repository-name/metadata/write)')] [string[]] $actions, [parameter(mandatory=$False,HelpMessage='The user friendly description of the scope map.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The name of the scope map.)')] [string] $scopeMapName, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [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:containerregistry:ScopeMap") $resource.properties["actions"] = $actions $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'scopeMapName') { $resource.properties["scopeMapName"] = $scopeMapName } $global:pulumiresources += $resource return $resource } } class RetentionPolicy { [ValidateSet('enabled', 'disabled')] [string] $status [ValidateSet('enabled', 'disabled')] [int] $days } function New-AzureNativeTypeContainerregistryRetentionPolicy { param ( [parameter(mandatory=$False,HelpMessage='The value that indicates whether the policy is enabled or not.)')] [string] [ValidateSet('enabled', 'disabled')] $status, [parameter(mandatory=$False,HelpMessage='The number of days to retain an untagged manifest after which it gets purged.)')] [int] $days ) process { return $([RetentionPolicy]$PSBoundParameters) } } class TrustPolicy { [ValidateSet('enabled', 'disabled')] [string] $status [ValidateSet('Notary')] [string] $type } function New-AzureNativeTypeContainerregistryTrustPolicy { param ( [parameter(mandatory=$False,HelpMessage='The value that indicates whether the policy is enabled or not.)')] [string] [ValidateSet('enabled', 'disabled')] $status, [parameter(mandatory=$False,HelpMessage='The type of trust policy.)')] [string] [ValidateSet('Notary')] $type ) process { return $([TrustPolicy]$PSBoundParameters) } } class QuarantinePolicy { [ValidateSet('enabled', 'disabled')] [string] $status } function New-AzureNativeTypeContainerregistryQuarantinePolicy { param ( [parameter(mandatory=$False,HelpMessage='The value that indicates whether the policy is enabled or not.)')] [string] [ValidateSet('enabled', 'disabled')] $status ) process { return $([QuarantinePolicy]$PSBoundParameters) } } class Policies { [RetentionPolicy] $retentionPolicy [TrustPolicy] $trustPolicy [QuarantinePolicy] $quarantinePolicy } function New-AzureNativeTypeContainerregistryPolicies { param ( [parameter(mandatory=$False,HelpMessage='The retention policy for a container registry.)')] [RetentionPolicy] $retentionPolicy, [parameter(mandatory=$False,HelpMessage='The content trust policy for a container registry.)')] [TrustPolicy] $trustPolicy, [parameter(mandatory=$False,HelpMessage='The quarantine policy for a container registry.)')] [QuarantinePolicy] $quarantinePolicy ) process { return $([Policies]$PSBoundParameters) } } class VirtualNetworkRule { [ValidateSet('Allow')] [string] $action [ValidateSet('Allow')] [string] $virtualNetworkResourceId } function New-AzureNativeTypeContainerregistryVirtualNetworkRule { param ( [parameter(mandatory=$False,HelpMessage='The action of virtual network rule.)')] [string] [ValidateSet('Allow')] $action, [parameter(mandatory=$False,HelpMessage='Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.)')] [string] $virtualNetworkResourceId ) process { return $([VirtualNetworkRule]$PSBoundParameters) } } class IPRule { [ValidateSet('Allow')] [string] $action [ValidateSet('Allow')] [string] $iPAddressOrRange } function New-AzureNativeTypeContainerregistryIPRule { param ( [parameter(mandatory=$False,HelpMessage='The action of IP ACL rule.)')] [string] [ValidateSet('Allow')] $action, [parameter(mandatory=$False,HelpMessage='Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.)')] [string] $iPAddressOrRange ) process { return $([IPRule]$PSBoundParameters) } } class NetworkRuleSet { [VirtualNetworkRule[]] $virtualNetworkRules [ValidateSet('Allow', 'Deny')] [string] $defaultAction [ValidateSet('Allow', 'Deny')] [IPRule[]] $ipRules } function New-AzureNativeTypeContainerregistryNetworkRuleSet { param ( [parameter(mandatory=$False,HelpMessage='The virtual network rules.)')] $virtualNetworkRules, [parameter(mandatory=$False,HelpMessage='The default action of allow or deny when no other rules match.)')] [string] [ValidateSet('Allow', 'Deny')] $defaultAction, [parameter(mandatory=$False,HelpMessage='The IP ACL rules.)')] $ipRules ) process { return $([NetworkRuleSet]$PSBoundParameters) } } class Sku { [ValidateSet('Classic', 'Basic', 'Standard', 'Premium')] [string] $name } function New-AzureNativeTypeContainerregistrySku { param ( [parameter(mandatory=$False,HelpMessage='The SKU name of the container registry. Required for registry creation.)')] [string] [ValidateSet('Classic', 'Basic', 'Standard', 'Premium')] $name ) process { return $([Sku]$PSBoundParameters) } } class StorageAccountProperties { [string] $id } function New-AzureNativeTypeContainerregistryStorageAccountProperties { param ( [parameter(mandatory=$False,HelpMessage='The resource ID of the storage account.)')] [string] $id ) process { return $([StorageAccountProperties]$PSBoundParameters) } } function New-AzureNativeContainerregistryRegistry { [Alias('azure_native_containerregistry_registry')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The location of the resource. This cannot be changed after the resource is created.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The policies for a container registry.)')] [Policies] $policies, [parameter(mandatory=$False,HelpMessage='The network rule set for a container registry.)')] [NetworkRuleSet] $networkRuleSet, [parameter(mandatory=$False,HelpMessage='The SKU of the container registry.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='The tags of the resource.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The properties of the storage account for the container registry. Only applicable to Classic SKU.)')] [StorageAccountProperties] $storageAccount, [parameter(mandatory=$False,HelpMessage='The value that indicates whether the admin user is enabled.)')] [bool] $adminUserEnabled, [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:containerregistry:Registry") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["sku"] = $sku if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'policies') { $resource.properties["policies"] = $policies } if($PSBoundParameters.Keys -icontains 'networkRuleSet') { $resource.properties["networkRuleSet"] = $networkRuleSet } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'registryName') { $resource.properties["registryName"] = $registryName } if($PSBoundParameters.Keys -icontains 'storageAccount') { $resource.properties["storageAccount"] = $storageAccount } if($PSBoundParameters.Keys -icontains 'adminUserEnabled') { $resource.properties["adminUserEnabled"] = $adminUserEnabled } $global:pulumiresources += $resource return $resource } } function New-AzureNativeContainerregistryAgentPool { [Alias('azure_native_containerregistry_agentpool')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='The OS of agent machine)')] [string] [ValidateSet('Windows', 'Linux')] $os, [parameter(mandatory=$False,HelpMessage='The Tier of agent machine)')] [string] $tier, [parameter(mandatory=$False,HelpMessage='The name of the agent pool.)')] [string] $agentPoolName, [parameter(mandatory=$False,HelpMessage='The tags of the resource.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The count of agent machine)')] [int] $count, [parameter(mandatory=$False,HelpMessage='The Virtual Network Subnet Resource Id of the agent machine)')] [string] $virtualNetworkSubnetResourceId, [parameter(mandatory=$False,HelpMessage='The location of the resource. This cannot be changed after the resource is created.)')] [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:containerregistry:AgentPool") $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'os') { $resource.properties["os"] = $os } if($PSBoundParameters.Keys -icontains 'tier') { $resource.properties["tier"] = $tier } if($PSBoundParameters.Keys -icontains 'agentPoolName') { $resource.properties["agentPoolName"] = $agentPoolName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'count') { $resource.properties["count"] = $count } if($PSBoundParameters.Keys -icontains 'virtualNetworkSubnetResourceId') { $resource.properties["virtualNetworkSubnetResourceId"] = $virtualNetworkSubnetResourceId } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class Argument { [string] $name [bool] $isSecret [string] $value } function New-AzureNativeTypeContainerregistryArgument { param ( [parameter(mandatory=$False,HelpMessage='The name of the argument.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Flag to indicate whether the argument represents a secret and want to be removed from build logs.)')] [bool] $isSecret, [parameter(mandatory=$False,HelpMessage='The value of the argument.)')] [string] $value ) process { return $([Argument]$PSBoundParameters) } } class OverrideTaskStepProperties { [string] $updateTriggerToken [string] $target [string] $contextPath [string] $file [SetValue[]] $values [Argument[]] $arguments } function New-AzureNativeTypeContainerregistryOverrideTaskStepProperties { param ( [parameter(mandatory=$False,HelpMessage='Base64 encoded update trigger token that will be attached with the base image trigger webhook.)')] [string] $updateTriggerToken, [parameter(mandatory=$False,HelpMessage='The name of the target build stage for the docker build.)')] [string] $target, [parameter(mandatory=$False,HelpMessage='The source context against which run has to be queued.)')] [string] $contextPath, [parameter(mandatory=$False,HelpMessage='The file against which run has to be queued.)')] [string] $file, [parameter(mandatory=$False,HelpMessage='The collection of overridable values that can be passed when running a Task.)')] $values, [parameter(mandatory=$False,HelpMessage='Gets or sets the collection of override arguments to be used when executing a build step.)')] $arguments ) process { return $([OverrideTaskStepProperties]$PSBoundParameters) } } class TaskRunRequest { [string] $logTemplate [string] $type [bool] $isArchiveEnabled [OverrideTaskStepProperties] $overrideTaskStepProperties [string] $agentPoolName [string] $taskId } function New-AzureNativeTypeContainerregistryTaskRunRequest { param ( [parameter(mandatory=$False,HelpMessage='The template that describes the repository and tag information for run log artifact.)')] [string] $logTemplate, [parameter(mandatory=$False,HelpMessage='The type of the run request. Expected value is ''TaskRunRequest''.)')] [string] $type, [parameter(mandatory=$False,HelpMessage='The value that indicates whether archiving is enabled for the run or not.)')] [bool] $isArchiveEnabled, [parameter(mandatory=$False,HelpMessage='Set of overridable parameters that can be passed when running a Task.)')] [OverrideTaskStepProperties] $overrideTaskStepProperties, [parameter(mandatory=$False,HelpMessage='The dedicated agent pool for the run.)')] [string] $agentPoolName, [parameter(mandatory=$False,HelpMessage='The resource ID of task against which run has to be queued.)')] [string] $taskId ) process { return $([TaskRunRequest]$PSBoundParameters) } } function New-AzureNativeContainerregistryTaskRun { [Alias('azure_native_containerregistry_taskrun')] param ( [parameter(mandatory=$False,HelpMessage='How the run should be forced to rerun even if the run request configuration has not changed)')] [string] $forceUpdateTag, [parameter(mandatory=$False,HelpMessage='The name of the resource group to which the container registry belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the container registry.)')] [string] $registryName, [parameter(mandatory=$False,HelpMessage='Identity for the resource.)')] [IdentityProperties] $identity, [parameter(mandatory=$False,HelpMessage='The name of the task run.)')] [string] $taskRunName, [parameter(mandatory=$False,HelpMessage='The request (parameters) for the run)')] [TaskRunRequest] $runRequest, [parameter(mandatory=$False,HelpMessage='The location of the resource)')] [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:containerregistry:TaskRun") $resource.properties["registryName"] = $registryName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'forceUpdateTag') { $resource.properties["forceUpdateTag"] = $forceUpdateTag } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'taskRunName') { $resource.properties["taskRunName"] = $taskRunName } if($PSBoundParameters.Keys -icontains 'runRequest') { $resource.properties["runRequest"] = $runRequest } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } |